blob: a65e9e4d9465b4018ce0ff5ae9c10ce71c8399f2 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherf33ab862011-12-21 00:52:44 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
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#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 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.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Bill Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000565PACKAGE_STRING='LLVM 3.1svn'
566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
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
Eric Christopherbee515f2011-11-11 22:51:42 +0000685ENABLE_LIBCPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000695ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000696ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000697LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000698ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000700ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000701ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000702ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
708ENABLE_CBE_PRINTF_A
709OPTIMIZE_OPTION
710EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000711EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000712CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000714INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749POD2HTML
750POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766NO_VARIADIC_MACROS
767NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000768COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000769USE_UDIS86
770USE_OPROFILE
771HAVE_PTHREAD
772HUGE_VAL_SANITY
773MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000775SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776LLVM_PREFIX
777LLVM_BINDIR
778LLVM_LIBDIR
779LLVM_DATADIR
780LLVM_DOCSDIR
781LLVM_ETCDIR
782LLVM_INCLUDEDIR
783LLVM_INFODIR
784LLVM_MANDIR
785LLVM_CONFIGTIME
786BINDINGS_TO_BUILD
787ALL_BINDINGS
788OCAML_LIBDIR
789ENABLE_VISIBILITY_INLINES_HIDDEN
790RPATH
791RDYNAMIC
792LIBOBJS
793LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000794ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000802CXX
803CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000804CCC
805CPP'
John Criswell0157f502010-03-19 21:31:39 +0000806ac_subdirs_all='projects/llvm-gcc
807projects/test-suite
808projects/llvm-test
809projects/poolalloc
810projects/llvm-poolalloc
811projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000813projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-java
816projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000817projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000818projects/llvm-kernel
819tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000846# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000855includedir='${prefix}/include'
856oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000866
867ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000868ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000869for ac_option
870do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000873 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000874 ac_prev=
875 continue
876 fi
877
Reid Spencera773bd52006-08-04 18:18:08 +0000878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
John Criswell7a73b802003-06-30 21:59:07 +0000882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
Reid Spencera773bd52006-08-04 18:18:08 +0000885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000910 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000912 datadir=$ac_optarg ;;
913
Reid Spencera773bd52006-08-04 18:18:08 +0000914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
John Criswell7a73b802003-06-30 21:59:07 +0000921 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000923 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000939
940 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000942 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
Reid Spencera773bd52006-08-04 18:18:08 +0000974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
John Criswell7a73b802003-06-30 21:59:07 +0000980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
Reid Spencera773bd52006-08-04 18:18:08 +00001004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
John Criswell7a73b802003-06-30 21:59:07 +00001009 -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 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
Reid Spencera773bd52006-08-04 18:18:08 +00001078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
John Criswell7a73b802003-06-30 21:59:07 +00001088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001139 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001148 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001184 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001202fi
1203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001209do
Reid Spencera773bd52006-08-04 18:18:08 +00001210 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001211 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001214 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
Reid Spencera773bd52006-08-04 18:18:08 +00001243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001251
1252
John Criswell7a73b802003-06-30 21:59:07 +00001253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001256 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 ac_confdir=`$as_dirname -- "$0" ||
1258$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\).*/{
1276 s//\1/
1277 q
1278 }
1279 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001281 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=..
1283 fi
1284else
1285 ac_srcdir_defaulted=no
1286fi
Reid Spencera773bd52006-08-04 18:18:08 +00001287if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001291fi
Reid Spencera773bd52006-08-04 18:18:08 +00001292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
John Criswell7a73b802003-06-30 21:59:07 +00001313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001321\`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
John Criswell7a73b802003-06-30 21:59:07 +00001341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001369 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386 case $ac_init_help in
Eric Christopherf33ab862011-12-21 00:52:44 +00001387 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001388 esac
1389 cat <<\_ACEOF
1390
1391Optional Features:
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001394 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001395 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1399 YES)
David Greenea696d242007-06-28 19:36:08 +00001400 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001401 Compile with expensive debug checks enabled (default
1402 is NO)
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001407 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001408 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001409 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001410 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001411 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001412 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001413 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001414 --enable-shared Build a shared library and link tools against it
1415 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001416 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001417 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001418 --enable-timestamps Enable embedding timestamp information in build
1419 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001420 --enable-targets Build specific host targets: all or
1421 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001422 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423 xcore, msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001424 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1425 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001426 --enable-bindings Build specific language bindings:
1427 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001428 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001429 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001430
1431Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001434 --with-optimize-option Select the compiler options to use for optimized
1435 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001436 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001437 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001438 --with-ocaml-libdir Specify install location for ocaml bindings (default
1439 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001440 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001441 --with-clang-resource-dir
1442 Relative directory from the Clang binary for
1443 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001444 --with-c-include-dirs Colon separated list of directories clang will
1445 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001446 --with-gcc-toolchain Directory where gcc is installed.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001447 --with-binutils-include Specify path to binutils/include/ containing
1448 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001449 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001450 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001451 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001452 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001453 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001454 --with-oprofile=<prefix>
1455 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001456
1457Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001458 CC C compiler command
1459 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001463 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001466 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001467
1468Use these variables to override the choices made by `configure' or to help
1469it to find libraries and programs with nonstandard names/locations.
1470
Eric Christopherf33ab862011-12-21 00:52:44 +00001471Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001472_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001473ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001479 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001480 ac_builddir=.
1481
Reid Spencera773bd52006-08-04 18:18:08 +00001482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001486 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001497
1498case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001499 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001500 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001511esac
Reid Spencera773bd52006-08-04 18:18:08 +00001512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001513
Reid Spencera773bd52006-08-04 18:18:08 +00001514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001522 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001526 done
1527fi
1528
Reid Spencera773bd52006-08-04 18:18:08 +00001529test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001530if $ac_init_version; then
1531 cat <<\_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001532LLVM configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001533generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001535Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15362002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001537This configure script is free software; the Free Software Foundation
1538gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001539
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001540Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001541_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001542 exit
John Criswell7a73b802003-06-30 21:59:07 +00001543fi
Reid Spencera773bd52006-08-04 18:18:08 +00001544cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001545This file contains any messages produced by compilers while
1546running configure, to aid debugging if configure makes a mistake.
1547
Eric Christopherf33ab862011-12-21 00:52:44 +00001548It was created by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001549generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001550
1551 $ $0 $@
1552
1553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001554exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001555{
1556cat <<_ASUNAME
1557## --------- ##
1558## Platform. ##
1559## --------- ##
1560
1561hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566
1567/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1569
1570/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1571/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1572/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001573/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001574/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1575/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1576/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1577
1578_ASUNAME
1579
1580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581for as_dir in $PATH
1582do
1583 IFS=$as_save_IFS
1584 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001585 echo "PATH: $as_dir"
1586done
Reid Spencera773bd52006-08-04 18:18:08 +00001587IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001588
1589} >&5
1590
1591cat >&5 <<_ACEOF
1592
1593
1594## ----------- ##
1595## Core tests. ##
1596## ----------- ##
1597
1598_ACEOF
1599
1600
1601# Keep a trace of the command line.
1602# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001603# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001604# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001605# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001606ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001607ac_configure_args0=
1608ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001609ac_must_keep_next=false
1610for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001611do
John Criswell0c38eaf2003-09-10 15:17:25 +00001612 for ac_arg
1613 do
1614 case $ac_arg in
1615 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617 | -silent | --silent | --silen | --sile | --sil)
1618 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001619 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001620 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001621 esac
1622 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001623 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001627 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001629 case $ac_arg in
1630 *=* | --config-cache | -C | -disable-* | --disable-* \
1631 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633 | -with-* | --with-* | -without-* | --without-* | --x)
1634 case "$ac_configure_args0 " in
1635 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1636 esac
1637 ;;
1638 -* ) ac_must_keep_next=true ;;
1639 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001641 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001642 ;;
1643 esac
1644 done
John Criswell7a73b802003-06-30 21:59:07 +00001645done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647$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 +00001648
1649# When interrupted or exit'd, cleanup temporary files, and complete
1650# config.log. We remove comments because anyway the quotes in there
1651# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001652# WARNING: Use '\'' to represent an apostrophe within the trap.
1653# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001654trap 'exit_status=$?
1655 # Save into config.log some information that might help in debugging.
1656 {
1657 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001658
John Criswell7a73b802003-06-30 21:59:07 +00001659 cat <<\_ASBOX
1660## ---------------- ##
1661## Cache variables. ##
1662## ---------------- ##
1663_ASBOX
1664 echo
1665 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001666(
1667 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668 eval ac_val=\$$ac_var
1669 case $ac_val in #(
1670 *${as_nl}*)
1671 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001672 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001674 esac
1675 case $ac_var in #(
1676 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001677 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac ;;
1679 esac
1680 done
John Criswell7a73b802003-06-30 21:59:07 +00001681 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001682 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001684 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001685 "s/'\''/'\''\\\\'\'''\''/g;
1686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1687 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001688 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001690 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001691 esac |
1692 sort
1693)
John Criswell7a73b802003-06-30 21:59:07 +00001694 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001695
1696 cat <<\_ASBOX
1697## ----------------- ##
1698## Output variables. ##
1699## ----------------- ##
1700_ASBOX
1701 echo
1702 for ac_var in $ac_subst_vars
1703 do
Reid Spencera773bd52006-08-04 18:18:08 +00001704 eval ac_val=\$$ac_var
1705 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001706 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001707 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001708 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 done | sort
1710 echo
1711
1712 if test -n "$ac_subst_files"; then
1713 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001714## ------------------- ##
1715## File substitutions. ##
1716## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001717_ASBOX
1718 echo
1719 for ac_var in $ac_subst_files
1720 do
Reid Spencera773bd52006-08-04 18:18:08 +00001721 eval ac_val=\$$ac_var
1722 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001724 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001726 done | sort
1727 echo
1728 fi
1729
John Criswell7a73b802003-06-30 21:59:07 +00001730 if test -s confdefs.h; then
1731 cat <<\_ASBOX
1732## ----------- ##
1733## confdefs.h. ##
1734## ----------- ##
1735_ASBOX
1736 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001737 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001738 echo
1739 fi
1740 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001741 echo "$as_me: caught signal $ac_signal"
1742 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001743 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001744 rm -f core *.core core.conftest.* &&
1745 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001746 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001747' 0
John Criswell7a73b802003-06-30 21:59:07 +00001748for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001750done
1751ac_signal=0
1752
1753# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001754rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001755
1756# Predefined preprocessor variables.
1757
1758cat >>confdefs.h <<_ACEOF
1759#define PACKAGE_NAME "$PACKAGE_NAME"
1760_ACEOF
1761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001762
John Criswell7a73b802003-06-30 21:59:07 +00001763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1765_ACEOF
1766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767
John Criswell7a73b802003-06-30 21:59:07 +00001768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_VERSION "$PACKAGE_VERSION"
1770_ACEOF
1771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001772
John Criswell7a73b802003-06-30 21:59:07 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_STRING "$PACKAGE_STRING"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1780_ACEOF
1781
1782
1783# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001784# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001785if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001787elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$ac_default_prefix/share/config.site" \
1791 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793shift
1794for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001795do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796 if test -r "$ac_site_file"; then
1797 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001799 sed 's/^/| /' "$ac_site_file" >&5
1800 . "$ac_site_file"
1801 fi
1802done
1803
1804if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 # Some versions of bash will fail to source /dev/null (special
1806 # files actually), so we avoid doing that.
1807 if test -f "$cache_file"; then
1808 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001810 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001811 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001813 esac
1814 fi
1815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001816 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001818 >$cache_file
1819fi
1820
1821# Check that the precious variables saved in the cache have kept the same
1822# value.
1823ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001824for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001825 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001827 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001829 case $ac_old_set,$ac_new_set in
1830 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001831 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001833 ac_cache_corrupted=: ;;
1834 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,);;
1839 *)
1840 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001841 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1844echo "$as_me: former value: $ac_old_val" >&2;}
1845 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1846echo "$as_me: current value: $ac_new_val" >&2;}
1847 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001848 fi;;
1849 esac
1850 # Pass precious variables to config.status.
1851 if test "$ac_new_set" = set; then
1852 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001853 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001854 *) ac_arg=$ac_var=$ac_new_val ;;
1855 esac
1856 case " $ac_configure_args " in
1857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001859 esac
1860 fi
1861done
1862if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
Reid Spencera773bd52006-08-04 18:18:08 +00001893
John Criswell7a73b802003-06-30 21:59:07 +00001894ac_ext=c
1895ac_cpp='$CPP $CPPFLAGS'
1896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898ac_compiler_gnu=$ac_cv_c_compiler_gnu
1899
1900
1901
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001902cat >>confdefs.h <<\_ACEOF
1903#define LLVM_VERSION_MAJOR 3
1904_ACEOF
1905
1906
1907cat >>confdefs.h <<\_ACEOF
1908#define LLVM_VERSION_MINOR 1
1909_ACEOF
1910
1911
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001912LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001913
1914
1915
1916
1917
1918
1919
John Criswell7a73b802003-06-30 21:59:07 +00001920ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001921for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001922 if test -f "$ac_dir/install-sh"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
1926 elif test -f "$ac_dir/install.sh"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
1930 elif test -f "$ac_dir/shtool"; then
1931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1934 fi
John Criswell7a73b802003-06-30 21:59:07 +00001935done
1936if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001940fi
Reid Spencera773bd52006-08-04 18:18:08 +00001941
1942# These three variables are undocumented and unsupported,
1943# and are intended to be withdrawn in a future Autoconf release.
1944# They can cause serious problems if a builder's source tree is in a directory
1945# whose full name contains unusual characters.
1946ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1949
John Criswell7a73b802003-06-30 21:59:07 +00001950
John Criswell392aaa32003-07-22 19:18:09 +00001951
Reid Spencer2706f8c2004-09-19 23:53:36 +00001952if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001953 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001954 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001957 fi
John Criswell93e1c722003-09-15 17:04:06 +00001958fi
1959
Nick Lewycky83fc4472009-09-29 05:48:51 +00001960ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001965if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001966 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001967 do
1968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001974else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001977else
1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979for as_dir in $PATH
1980do
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 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 +00001985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001987 break 2
1988 fi
1989done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001990done
Reid Spencera773bd52006-08-04 18:18:08 +00001991IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001992
1993fi
1994fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001995CC=$ac_cv_prog_CC
1996if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001997 { echo "$as_me:$LINENO: result: $CC" >&5
1998echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002000 { echo "$as_me:$LINENO: result: no" >&5
2001echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002002fi
2003
Reid Spencera773bd52006-08-04 18:18:08 +00002004
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002005 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002006 done
2007fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002008if test -z "$CC"; then
2009 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002010 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002011do
2012 # Extract the first word of "$ac_prog", so it can be a program name with args.
2013set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002018else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002019 if test -n "$ac_ct_CC"; then
2020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002021else
2022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023for as_dir in $PATH
2024do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 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 +00002029 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002031 break 2
2032 fi
2033done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034done
Reid Spencera773bd52006-08-04 18:18:08 +00002035IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002036
2037fi
2038fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002039ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002041 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044 { echo "$as_me:$LINENO: result: no" >&5
2045echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002046fi
2047
Reid Spencera773bd52006-08-04 18:18:08 +00002048
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002049 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002050done
John Criswell7a73b802003-06-30 21:59:07 +00002051
Reid Spencera773bd52006-08-04 18:18:08 +00002052 if test "x$ac_ct_CC" = x; then
2053 CC=""
2054 else
2055 case $cross_compiling:$ac_tool_warned in
2056yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002057{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2058whose name does not start with the host triplet. If you think this
2059configuration is useful to you, please write to autoconf@gnu.org." >&5
2060echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2061whose name does not start with the host triplet. If you think this
2062configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002063ac_tool_warned=yes ;;
2064esac
2065 CC=$ac_ct_CC
2066 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002067fi
2068
John Criswell7a73b802003-06-30 21:59:07 +00002069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&2;}
2074 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002075
John Criswell7a73b802003-06-30 21:59:07 +00002076# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077echo "$as_me:$LINENO: checking for C compiler version" >&5
2078ac_compiler=`set X $ac_compile; echo $2`
2079{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002080case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002086 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089{ (ac_try="$ac_compiler -v >&5"
2090case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093esac
2094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler -v >&5") 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099{ (ac_try="$ac_compiler -V >&5"
2100case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103esac
2104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -V >&5") 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002110cat >conftest.$ac_ext <<_ACEOF
2111/* confdefs.h. */
2112_ACEOF
2113cat confdefs.h >>conftest.$ac_ext
2114cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002115/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002116
John Criswell7a73b802003-06-30 21:59:07 +00002117int
2118main ()
2119{
2120
2121 ;
2122 return 0;
2123}
2124_ACEOF
2125ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002126ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002127# Try to create an executable without -o first, disregard a.out.
2128# It will help us diagnose broken compilers, and finding out an intuition
2129# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002130{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2131echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2132ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2133#
2134# List of possible output files, starting from the most likely.
2135# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2136# only as a last resort. b.out is created by i960 compilers.
2137ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2138#
2139# The IRIX 6 linker writes into existing files which may not be
2140# executable, retaining their permissions. Remove them first so a
2141# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002142ac_rmfiles=
2143for ac_file in $ac_files
2144do
2145 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002147 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2148 esac
2149done
2150rm -f $ac_rmfiles
2151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002152if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002153case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002158 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002159 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2163# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2164# in a Makefile. We should not override ac_cv_exeext if it was cached,
2165# so that the user can short-circuit this test for compilers unknown to
2166# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002167for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002168do
2169 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002170 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002172 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002173 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002174 # We found the default executable, but exeext='' is most
2175 # certainly right.
2176 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002177 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002179 then :; else
2180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2181 fi
2182 # We set ac_cv_exeext here because the later test for it is not
2183 # safe: cross compilers may not add the suffix if given an `-o'
2184 # argument, so we may need to know it at that point already.
2185 # Even if this section looks crufty: it has the advantage of
2186 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002188 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002189 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002190 esac
2191done
Reid Spencera773bd52006-08-04 18:18:08 +00002192test "$ac_cv_exeext" = no && ac_cv_exeext=
2193
John Criswell7a73b802003-06-30 21:59:07 +00002194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002196sed 's/^/| /' conftest.$ac_ext >&5
2197
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002198{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: C compiler cannot create executables
2201See \`config.log' for more details." >&2;}
2202 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002203fi
John Criswell7a73b802003-06-30 21:59:07 +00002204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002205ac_exeext=$ac_cv_exeext
2206{ echo "$as_me:$LINENO: result: $ac_file" >&5
2207echo "${ECHO_T}$ac_file" >&6; }
2208
2209# Check that the compiler produces executables we can run. If not, either
2210# the compiler is broken, or we cross compile.
2211{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2213# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214# If not cross compiling, check that we can run a simple program.
2215if test "$cross_compiling" != yes; then
2216 if { ac_try='./$ac_file'
2217 { (case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2220esac
2221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2222 (eval "$ac_try") 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 cross_compiling=no
2227 else
2228 if test "$cross_compiling" = maybe; then
2229 cross_compiling=yes
2230 else
2231 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232If you meant to cross compile, use \`--host'.
2233See \`config.log' for more details." >&5
2234echo "$as_me: error: cannot run C compiled programs.
2235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2238 fi
2239 fi
2240fi
2241{ echo "$as_me:$LINENO: result: yes" >&5
2242echo "${ECHO_T}yes" >&6; }
2243
2244rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002245ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002246# Check that the compiler produces executables we can run. If not, either
2247# the compiler is broken, or we cross compile.
2248{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2250{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251echo "${ECHO_T}$cross_compiling" >&6; }
2252
2253{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2255if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002256case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2259esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002261 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002262 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2266# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2267# work properly (i.e., refer to `conftest.exe'), while it won't with
2268# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002269for ac_file in conftest.exe conftest conftest.*; do
2270 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002271 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002274 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002275 * ) break;;
2276 esac
2277done
2278else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002279 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280See \`config.log' for more details." >&5
2281echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002285
2286rm -f conftest$ac_cv_exeext
2287{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002289
2290rm -f conftest.$ac_ext
2291EXEEXT=$ac_cv_exeext
2292ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002293{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2295if test "${ac_cv_objext+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002298 cat >conftest.$ac_ext <<_ACEOF
2299/* confdefs.h. */
2300_ACEOF
2301cat confdefs.h >>conftest.$ac_ext
2302cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002304
John Criswell7a73b802003-06-30 21:59:07 +00002305int
2306main ()
2307{
2308
2309 ;
2310 return 0;
2311}
2312_ACEOF
2313rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002314if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002315case "(($ac_try" in
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2318esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002320 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002321 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002324 for ac_file in conftest.o conftest.obj conftest.*; do
2325 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002326 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002328 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2329 break;;
2330 esac
2331done
2332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002334sed 's/^/| /' conftest.$ac_ext >&5
2335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2337See \`config.log' for more details." >&5
2338echo "$as_me: error: cannot compute suffix of object files: cannot compile
2339See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002342
John Criswell7a73b802003-06-30 21:59:07 +00002343rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2346echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002347OBJEXT=$ac_cv_objext
2348ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002349{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2350echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2351if test "${ac_cv_c_compiler_gnu+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002353else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002354 cat >conftest.$ac_ext <<_ACEOF
2355/* confdefs.h. */
2356_ACEOF
2357cat confdefs.h >>conftest.$ac_ext
2358cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002360
John Criswell7a73b802003-06-30 21:59:07 +00002361int
2362main ()
2363{
2364#ifndef __GNUC__
2365 choke me
2366#endif
2367
2368 ;
2369 return 0;
2370}
2371_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002372rm -f conftest.$ac_objext
2373if { (ac_try="$ac_compile"
2374case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377esac
2378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compile") 2>conftest.er1
2380 ac_status=$?
2381 grep -v '^ *+' conftest.er1 >conftest.err
2382 rm -f conftest.er1
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2387 { (case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390esac
2391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_try") 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400esac
2401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002406 ac_compiler_gnu=yes
2407else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002408 echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
2410
2411 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413
Reid Spencera773bd52006-08-04 18:18:08 +00002414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002416
2417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002418{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2419echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2420GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421ac_test_CFLAGS=${CFLAGS+set}
2422ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2424echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2425if test "${ac_cv_prog_cc_g+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002427else
Reid Spencera773bd52006-08-04 18:18:08 +00002428 ac_save_c_werror_flag=$ac_c_werror_flag
2429 ac_c_werror_flag=yes
2430 ac_cv_prog_cc_g=no
2431 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002432 cat >conftest.$ac_ext <<_ACEOF
2433/* confdefs.h. */
2434_ACEOF
2435cat confdefs.h >>conftest.$ac_ext
2436cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002438
John Criswell7a73b802003-06-30 21:59:07 +00002439int
2440main ()
2441{
2442
2443 ;
2444 return 0;
2445}
2446_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002447rm -f conftest.$ac_objext
2448if { (ac_try="$ac_compile"
2449case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452esac
2453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_compile") 2>conftest.er1
2455 ac_status=$?
2456 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465esac
2466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_try") 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475esac
2476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002483 echo "$as_me: failed program was:" >&5
2484sed 's/^/| /' conftest.$ac_ext >&5
2485
2486 CFLAGS=""
2487 cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h. */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002492/* end confdefs.h. */
2493
2494int
2495main ()
2496{
2497
2498 ;
2499 return 0;
2500}
2501_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002502rm -f conftest.$ac_objext
2503if { (ac_try="$ac_compile"
2504case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507esac
2508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_compile") 2>conftest.er1
2510 ac_status=$?
2511 grep -v '^ *+' conftest.er1 >conftest.err
2512 rm -f conftest.er1
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 :
Torok Edwin871384f2010-01-26 08:50:50 +00002537else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002538 echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002542 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002543 cat >conftest.$ac_ext <<_ACEOF
2544/* confdefs.h. */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002548/* end confdefs.h. */
2549
2550int
2551main ()
2552{
2553
2554 ;
2555 return 0;
2556}
2557_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002558rm -f conftest.$ac_objext
2559if { (ac_try="$ac_compile"
2560case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2563esac
2564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_compile") 2>conftest.er1
2566 ac_status=$?
2567 grep -v '^ *+' conftest.er1 >conftest.err
2568 rm -f conftest.er1
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2573 { (case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576esac
2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_try") 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002592 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593else
2594 echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597
John Criswell7a73b802003-06-30 21:59:07 +00002598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002599
Reid Spencera773bd52006-08-04 18:18:08 +00002600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002601fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602
Reid Spencera773bd52006-08-04 18:18:08 +00002603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002605
Reid Spencera773bd52006-08-04 18:18:08 +00002606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_c_werror_flag=$ac_save_c_werror_flag
2608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611if test "$ac_test_CFLAGS" = set; then
2612 CFLAGS=$ac_save_CFLAGS
2613elif test $ac_cv_prog_cc_g = yes; then
2614 if test "$GCC" = yes; then
2615 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002616 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002618 fi
2619else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620 if test "$GCC" = yes; then
2621 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002622 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002624 fi
2625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002626{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2627echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2628if test "${ac_cv_prog_cc_c89+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630else
Reid Spencera773bd52006-08-04 18:18:08 +00002631 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002633cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h. */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638/* end confdefs.h. */
2639#include <stdarg.h>
2640#include <stdio.h>
2641#include <sys/types.h>
2642#include <sys/stat.h>
2643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2644struct buf { int x; };
2645FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646static char *e (p, i)
2647 char **p;
2648 int i;
2649{
2650 return p[i];
2651}
2652static char *f (char * (*g) (char **, int), char **p, ...)
2653{
2654 char *s;
2655 va_list v;
2656 va_start (v,p);
2657 s = g (p, va_arg (v,int));
2658 va_end (v);
2659 return s;
2660}
2661
2662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2663 function prototypes and stuff, but not '\xHH' hex character constants.
2664 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002665 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2667 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002668 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670
Reid Spencera773bd52006-08-04 18:18:08 +00002671/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2672 inside strings and character constants. */
2673#define FOO(x) 'x'
2674int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2675
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676int test (int i, double x);
2677struct s1 {int (*f) (int a);};
2678struct s2 {int (*f) (double a);};
2679int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2680int argc;
2681char **argv;
2682int
2683main ()
2684{
2685return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2686 ;
2687 return 0;
2688}
2689_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002690for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2691 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002692do
2693 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002694 rm -f conftest.$ac_objext
2695if { (ac_try="$ac_compile"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compile") 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2709 { (case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_try") 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002728 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002729else
2730 echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002735
Reid Spencera773bd52006-08-04 18:18:08 +00002736rm -f core conftest.err conftest.$ac_objext
2737 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002738done
Reid Spencera773bd52006-08-04 18:18:08 +00002739rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002740CC=$ac_save_CC
2741
2742fi
Reid Spencera773bd52006-08-04 18:18:08 +00002743# AC_CACHE_VAL
2744case "x$ac_cv_prog_cc_c89" in
2745 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002746 { echo "$as_me:$LINENO: result: none needed" >&5
2747echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002748 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002749 { echo "$as_me:$LINENO: result: unsupported" >&5
2750echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002751 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002752 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002753 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2754echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002755esac
2756
John Criswell0c38eaf2003-09-10 15:17:25 +00002757
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002758ac_ext=c
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
Eric Christopherffee5722011-09-16 20:36:25 +00002764ac_ext=cpp
2765ac_cpp='$CXXCPP $CPPFLAGS'
2766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2769if test -z "$CXX"; then
2770 if test -n "$CCC"; then
2771 CXX=$CCC
2772 else
2773 if test -n "$ac_tool_prefix"; then
2774 for ac_prog in clang++ llvm-g++ g++
2775 do
2776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2777set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780if test "${ac_cv_prog_CXX+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782else
2783 if test -n "$CXX"; then
2784 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797done
2798done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803CXX=$ac_cv_prog_CXX
2804if test -n "$CXX"; then
2805 { echo "$as_me:$LINENO: result: $CXX" >&5
2806echo "${ECHO_T}$CXX" >&6; }
2807else
2808 { echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6; }
2810fi
2811
2812
2813 test -n "$CXX" && break
2814 done
2815fi
2816if test -z "$CXX"; then
2817 ac_ct_CXX=$CXX
2818 for ac_prog in clang++ llvm-g++ g++
2819do
2820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2821set dummy $ac_prog; ac_word=$2
2822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2824if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827 if test -n "$ac_ct_CXX"; then
2828 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_ac_ct_CXX="$ac_prog"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842done
2843IFS=$as_save_IFS
2844
2845fi
2846fi
2847ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2848if test -n "$ac_ct_CXX"; then
2849 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2850echo "${ECHO_T}$ac_ct_CXX" >&6; }
2851else
2852 { echo "$as_me:$LINENO: result: no" >&5
2853echo "${ECHO_T}no" >&6; }
2854fi
2855
2856
2857 test -n "$ac_ct_CXX" && break
2858done
2859
2860 if test "x$ac_ct_CXX" = x; then
2861 CXX="g++"
2862 else
2863 case $cross_compiling:$ac_tool_warned in
2864yes:)
2865{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2866whose name does not start with the host triplet. If you think this
2867configuration is useful to you, please write to autoconf@gnu.org." >&5
2868echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2869whose name does not start with the host triplet. If you think this
2870configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2871ac_tool_warned=yes ;;
2872esac
2873 CXX=$ac_ct_CXX
2874 fi
2875fi
2876
2877 fi
2878fi
2879# Provide some information about the compiler.
2880echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2881ac_compiler=`set X $ac_compile; echo $2`
2882{ (ac_try="$ac_compiler --version >&5"
2883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compiler --version >&5") 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892{ (ac_try="$ac_compiler -v >&5"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler -v >&5") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902{ (ac_try="$ac_compiler -V >&5"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -V >&5") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912
2913{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2914echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2915if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924
2925int
2926main ()
2927{
2928#ifndef __GNUC__
2929 choke me
2930#endif
2931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936rm -f conftest.$ac_objext
2937if { (ac_try="$ac_compile"
2938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2951 { (case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_try") 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 ac_compiler_gnu=yes
2971else
2972 echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 ac_compiler_gnu=no
2976fi
2977
2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2980
2981fi
2982{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2983echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2984GXX=`test $ac_compiler_gnu = yes && echo yes`
2985ac_test_CXXFLAGS=${CXXFLAGS+set}
2986ac_save_CXXFLAGS=$CXXFLAGS
2987{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2988echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2989if test "${ac_cv_prog_cxx_g+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2991else
2992 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2993 ac_cxx_werror_flag=yes
2994 ac_cv_prog_cxx_g=no
2995 CXXFLAGS="-g"
2996 cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h. */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h. */
3002
3003int
3004main ()
3005{
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (ac_try="$ac_compile"
3013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3019 ac_status=$?
3020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 ac_cv_prog_cxx_g=yes
3046else
3047 echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 CXXFLAGS=""
3051 cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h. */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h. */
3057
3058int
3059main ()
3060{
3061
3062 ;
3063 return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext
3067if { (ac_try="$ac_compile"
3068case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 :
3101else
3102 echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3106 CXXFLAGS="-g"
3107 cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h. */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h. */
3113
3114int
3115main ()
3116{
3117
3118 ;
3119 return 0;
3120}
3121_ACEOF
3122rm -f conftest.$ac_objext
3123if { (ac_try="$ac_compile"
3124case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 ac_cv_prog_cxx_g=yes
3157else
3158 echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161
3162fi
3163
3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165fi
3166
3167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168fi
3169
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3172fi
3173{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3174echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3175if test "$ac_test_CXXFLAGS" = set; then
3176 CXXFLAGS=$ac_save_CXXFLAGS
3177elif test $ac_cv_prog_cxx_g = yes; then
3178 if test "$GXX" = yes; then
3179 CXXFLAGS="-g -O2"
3180 else
3181 CXXFLAGS="-g"
3182 fi
3183else
3184 if test "$GXX" = yes; then
3185 CXXFLAGS="-O2"
3186 else
3187 CXXFLAGS=
3188 fi
3189fi
3190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003195
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003196ac_ext=c
3197ac_cpp='$CPP $CPPFLAGS'
3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003201{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3202echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003203# On Suns, sometimes $CPP names a directory.
3204if test -n "$CPP" && test -d "$CPP"; then
3205 CPP=
3206fi
3207if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003208 if test "${ac_cv_prog_CPP+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003210else
3211 # Double quotes because CPP needs to be expanded
3212 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3213 do
3214 ac_preproc_ok=false
3215for ac_c_preproc_warn_flag in '' yes
3216do
3217 # Use a header file that comes with gcc, so configuring glibc
3218 # with a fresh cross-compiler works.
3219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220 # <limits.h> exists even on freestanding compilers.
3221 # On the NeXT, cc -E runs the code through the compiler's parser,
3222 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003223 cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003228/* end confdefs.h. */
3229#ifdef __STDC__
3230# include <limits.h>
3231#else
3232# include <assert.h>
3233#endif
3234 Syntax error
3235_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003236if { (ac_try="$ac_cpp conftest.$ac_ext"
3237case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240esac
3241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev/null; then
3249 if test -s conftest.err; then
3250 ac_cpp_err=$ac_c_preproc_warn_flag
3251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252 else
3253 ac_cpp_err=
3254 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003255else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003256 ac_cpp_err=yes
3257fi
3258if test -z "$ac_cpp_err"; then
3259 :
3260else
3261 echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003264 # Broken: fails on valid input.
3265continue
3266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003267
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268rm -f conftest.err conftest.$ac_ext
3269
Reid Spencera773bd52006-08-04 18:18:08 +00003270 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003272 cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003277/* end confdefs.h. */
3278#include <ac_nonexistent.h>
3279_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003280if { (ac_try="$ac_cpp conftest.$ac_ext"
3281case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284esac
3285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287 ac_status=$?
3288 grep -v '^ *+' conftest.er1 >conftest.err
3289 rm -f conftest.er1
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } >/dev/null; then
3293 if test -s conftest.err; then
3294 ac_cpp_err=$ac_c_preproc_warn_flag
3295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296 else
3297 ac_cpp_err=
3298 fi
3299else
3300 ac_cpp_err=yes
3301fi
3302if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303 # Broken: success on invalid input.
3304continue
3305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003306 echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003309 # Passes both tests.
3310ac_preproc_ok=:
3311break
3312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003313
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314rm -f conftest.err conftest.$ac_ext
3315
3316done
3317# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3318rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003319if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003320 break
3321fi
3322
3323 done
3324 ac_cv_prog_CPP=$CPP
3325
3326fi
3327 CPP=$ac_cv_prog_CPP
3328else
3329 ac_cv_prog_CPP=$CPP
3330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003331{ echo "$as_me:$LINENO: result: $CPP" >&5
3332echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333ac_preproc_ok=false
3334for ac_c_preproc_warn_flag in '' yes
3335do
3336 # Use a header file that comes with gcc, so configuring glibc
3337 # with a fresh cross-compiler works.
3338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339 # <limits.h> exists even on freestanding compilers.
3340 # On the NeXT, cc -E runs the code through the compiler's parser,
3341 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003342 cat >conftest.$ac_ext <<_ACEOF
3343/* confdefs.h. */
3344_ACEOF
3345cat confdefs.h >>conftest.$ac_ext
3346cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347/* end confdefs.h. */
3348#ifdef __STDC__
3349# include <limits.h>
3350#else
3351# include <assert.h>
3352#endif
3353 Syntax error
3354_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003355if { (ac_try="$ac_cpp conftest.$ac_ext"
3356case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359esac
3360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_c_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371 else
3372 ac_cpp_err=
3373 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003374else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003375 ac_cpp_err=yes
3376fi
3377if test -z "$ac_cpp_err"; then
3378 :
3379else
3380 echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383 # Broken: fails on valid input.
3384continue
3385fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003386
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387rm -f conftest.err conftest.$ac_ext
3388
Reid Spencera773bd52006-08-04 18:18:08 +00003389 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003391 cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396/* end confdefs.h. */
3397#include <ac_nonexistent.h>
3398_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003399if { (ac_try="$ac_cpp conftest.$ac_ext"
3400case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403esac
3404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null; then
3412 if test -s conftest.err; then
3413 ac_cpp_err=$ac_c_preproc_warn_flag
3414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 else
3416 ac_cpp_err=
3417 fi
3418else
3419 ac_cpp_err=yes
3420fi
3421if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422 # Broken: success on invalid input.
3423continue
3424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003425 echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428 # Passes both tests.
3429ac_preproc_ok=:
3430break
3431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003433rm -f conftest.err conftest.$ac_ext
3434
3435done
3436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003438if $ac_preproc_ok; then
3439 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003441 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3442See \`config.log' for more details." >&5
3443echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&2;}
3445 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003446fi
3447
John Criswell7a73b802003-06-30 21:59:07 +00003448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
John Criswell7a73b802003-06-30 21:59:07 +00003454
Eric Christopherffee5722011-09-16 20:36:25 +00003455
3456
3457if test -d ${srcdir}/projects/llvm-gcc ; then
3458 subdirs="$subdirs projects/llvm-gcc"
3459
3460fi
3461
3462if test -d ${srcdir}/projects/test-suite ; then
3463 subdirs="$subdirs projects/test-suite"
3464
3465fi
3466
3467if test -d ${srcdir}/projects/llvm-test ; then
3468 subdirs="$subdirs projects/llvm-test"
3469
3470fi
3471
3472if test -d ${srcdir}/projects/poolalloc ; then
3473 subdirs="$subdirs projects/poolalloc"
3474
3475fi
3476
3477if test -d ${srcdir}/projects/llvm-poolalloc ; then
3478 subdirs="$subdirs projects/llvm-poolalloc"
3479
3480fi
3481
3482for i in `ls ${srcdir}/projects`
3483do
3484 if test -d ${srcdir}/projects/${i} ; then
3485 case ${i} in
3486 sample) subdirs="$subdirs projects/sample"
3487 ;;
3488 privbracket) subdirs="$subdirs projects/privbracket"
3489 ;;
3490 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3491 ;;
3492 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3493;;
3494 llvm-java) subdirs="$subdirs projects/llvm-java"
3495 ;;
3496 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3497 ;;
3498 safecode) subdirs="$subdirs projects/safecode"
3499 ;;
3500 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3501 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003502 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003503 llvm-gcc) ;;
3504 test-suite) ;;
3505 llvm-test) ;;
3506 poolalloc) ;;
3507 llvm-poolalloc) ;;
3508 *)
3509 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3510echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3511 ;;
3512 esac
3513 fi
3514done
3515
3516# Check whether --enable-polly was given.
3517if test "${enable_polly+set}" = set; then
3518 enableval=$enable_polly;
3519else
3520 enableval=default
3521fi
3522
3523case "$enableval" in
3524 yes) ENABLE_POLLY=1
3525 ;;
3526 no) ENABLE_POLLY=0
3527 ;;
3528 default) ENABLE_POLLY=1
3529 ;;
3530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3531echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3532 { (exit 1); exit 1; }; } ;;
3533esac
3534
3535
3536if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3537 LLVM_HAS_POLLY=1
3538
3539 subdirs="$subdirs tools/polly"
3540
3541fi
3542
3543
3544# Make sure we can run config.sub.
3545$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3546 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3547echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3548 { (exit 1); exit 1; }; }
3549
3550{ echo "$as_me:$LINENO: checking build system type" >&5
3551echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3552if test "${ac_cv_build+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555 ac_build_alias=$build_alias
3556test "x$ac_build_alias" = x &&
3557 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3558test "x$ac_build_alias" = x &&
3559 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3560echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3561 { (exit 1); exit 1; }; }
3562ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3563 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3564echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3565 { (exit 1); exit 1; }; }
3566
3567fi
3568{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3569echo "${ECHO_T}$ac_cv_build" >&6; }
3570case $ac_cv_build in
3571*-*-*) ;;
3572*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3573echo "$as_me: error: invalid value of canonical build" >&2;}
3574 { (exit 1); exit 1; }; };;
3575esac
3576build=$ac_cv_build
3577ac_save_IFS=$IFS; IFS='-'
3578set x $ac_cv_build
3579shift
3580build_cpu=$1
3581build_vendor=$2
3582shift; shift
3583# Remember, the first character of IFS is used to create $*,
3584# except with old shells:
3585build_os=$*
3586IFS=$ac_save_IFS
3587case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3588
3589
3590{ echo "$as_me:$LINENO: checking host system type" >&5
3591echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3592if test "${ac_cv_host+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595 if test "x$host_alias" = x; then
3596 ac_cv_host=$ac_cv_build
3597else
3598 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3599 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3600echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3601 { (exit 1); exit 1; }; }
3602fi
3603
3604fi
3605{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3606echo "${ECHO_T}$ac_cv_host" >&6; }
3607case $ac_cv_host in
3608*-*-*) ;;
3609*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3610echo "$as_me: error: invalid value of canonical host" >&2;}
3611 { (exit 1); exit 1; }; };;
3612esac
3613host=$ac_cv_host
3614ac_save_IFS=$IFS; IFS='-'
3615set x $ac_cv_host
3616shift
3617host_cpu=$1
3618host_vendor=$2
3619shift; shift
3620# Remember, the first character of IFS is used to create $*,
3621# except with old shells:
3622host_os=$*
3623IFS=$ac_save_IFS
3624case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3625
3626
3627{ echo "$as_me:$LINENO: checking target system type" >&5
3628echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3629if test "${ac_cv_target+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632 if test "x$target_alias" = x; then
3633 ac_cv_target=$ac_cv_host
3634else
3635 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3636 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3637echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3638 { (exit 1); exit 1; }; }
3639fi
3640
3641fi
3642{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3643echo "${ECHO_T}$ac_cv_target" >&6; }
3644case $ac_cv_target in
3645*-*-*) ;;
3646*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3647echo "$as_me: error: invalid value of canonical target" >&2;}
3648 { (exit 1); exit 1; }; };;
3649esac
3650target=$ac_cv_target
3651ac_save_IFS=$IFS; IFS='-'
3652set x $ac_cv_target
3653shift
3654target_cpu=$1
3655target_vendor=$2
3656shift; shift
3657# Remember, the first character of IFS is used to create $*,
3658# except with old shells:
3659target_os=$*
3660IFS=$ac_save_IFS
3661case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3662
3663
3664# The aliases save the names the user supplied, while $host etc.
3665# will get canonicalized.
3666test -n "$target_alias" &&
3667 test "$program_prefix$program_suffix$program_transform_name" = \
3668 NONENONEs,x,x, &&
3669 program_prefix=${target_alias}-
3670
3671{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3672echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3673if test "${llvm_cv_os_type+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
3676 case $host in
3677 *-*-aix*)
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="AIX"
3681 llvm_cv_platform_type="Unix" ;;
3682 *-*-irix*)
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="IRIX"
3686 llvm_cv_platform_type="Unix" ;;
3687 *-*-cygwin*)
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="Cygwin"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-darwin*)
3693 llvm_cv_link_all_option="-Wl,-all_load"
3694 llvm_cv_no_link_all_option="-Wl,-noall_load"
3695 llvm_cv_os_type="Darwin"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-minix*)
3698 llvm_cv_link_all_option="-Wl,-all_load"
3699 llvm_cv_no_link_all_option="-Wl,-noall_load"
3700 llvm_cv_os_type="Minix"
3701 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003702 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="FreeBSD"
3706 llvm_cv_platform_type="Unix" ;;
3707 *-*-openbsd*)
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="OpenBSD"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-*-netbsd*)
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="NetBSD"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-*-dragonfly*)
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="DragonFly"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-*-hpux*)
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="HP-UX"
3726 llvm_cv_platform_type="Unix" ;;
3727 *-*-interix*)
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="Interix"
3731 llvm_cv_platform_type="Unix" ;;
3732 *-*-linux*)
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="Linux"
3736 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003737 *-*-gnu*)
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="GNU"
3741 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003742 *-*-solaris*)
3743 llvm_cv_link_all_option="-Wl,-z,allextract"
3744 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3745 llvm_cv_os_type="SunOS"
3746 llvm_cv_platform_type="Unix" ;;
3747 *-*-auroraux*)
3748 llvm_cv_link_all_option="-Wl,-z,allextract"
3749 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3750 llvm_cv_os_type="AuroraUX"
3751 llvm_cv_platform_type="Unix" ;;
3752 *-*-win32*)
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="Win32"
3756 llvm_cv_platform_type="Win32" ;;
3757 *-*-mingw*)
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="MingW"
3761 llvm_cv_platform_type="Win32" ;;
3762 *-*-haiku*)
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="Haiku"
3766 llvm_cv_platform_type="Unix" ;;
3767 *-unknown-eabi*)
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="Freestanding"
3771 llvm_cv_platform_type="Unix" ;;
3772 *-unknown-elf*)
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Freestanding"
3776 llvm_cv_platform_type="Unix" ;;
3777 *)
3778 llvm_cv_link_all_option=""
3779 llvm_cv_no_link_all_option=""
3780 llvm_cv_os_type="Unknown"
3781 llvm_cv_platform_type="Unknown" ;;
3782esac
3783fi
3784{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3785echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3786
3787{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3788echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3789if test "${llvm_cv_target_os_type+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792 case $target in
3793 *-*-aix*)
3794 llvm_cv_target_os_type="AIX" ;;
3795 *-*-irix*)
3796 llvm_cv_target_os_type="IRIX" ;;
3797 *-*-cygwin*)
3798 llvm_cv_target_os_type="Cygwin" ;;
3799 *-*-darwin*)
3800 llvm_cv_target_os_type="Darwin" ;;
3801 *-*-minix*)
3802 llvm_cv_target_os_type="Minix" ;;
3803 *-*-freebsd*)
3804 llvm_cv_target_os_type="FreeBSD" ;;
3805 *-*-openbsd*)
3806 llvm_cv_target_os_type="OpenBSD" ;;
3807 *-*-netbsd*)
3808 llvm_cv_target_os_type="NetBSD" ;;
3809 *-*-dragonfly*)
3810 llvm_cv_target_os_type="DragonFly" ;;
3811 *-*-hpux*)
3812 llvm_cv_target_os_type="HP-UX" ;;
3813 *-*-interix*)
3814 llvm_cv_target_os_type="Interix" ;;
3815 *-*-linux*)
3816 llvm_cv_target_os_type="Linux" ;;
3817 *-*-solaris*)
3818 llvm_cv_target_os_type="SunOS" ;;
3819 *-*-auroraux*)
3820 llvm_cv_target_os_type="AuroraUX" ;;
3821 *-*-win32*)
3822 llvm_cv_target_os_type="Win32" ;;
3823 *-*-mingw*)
3824 llvm_cv_target_os_type="MingW" ;;
3825 *-*-haiku*)
3826 llvm_cv_target_os_type="Haiku" ;;
3827 *-*-rtems*)
3828 llvm_cv_target_os_type="RTEMS" ;;
3829 *-*-nacl*)
3830 llvm_cv_target_os_type="NativeClient" ;;
3831 *-unknown-eabi*)
3832 llvm_cv_target_os_type="Freestanding" ;;
3833 *)
3834 llvm_cv_target_os_type="Unknown" ;;
3835esac
3836fi
3837{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3838echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3839
3840if test "$llvm_cv_os_type" = "Unknown" ; then
3841 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3842echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3843 { (exit 1); exit 1; }; }
3844fi
3845
3846OS=$llvm_cv_os_type
3847
3848HOST_OS=$llvm_cv_os_type
3849
3850TARGET_OS=$llvm_cv_target_os_type
3851
3852
3853LINKALL=$llvm_cv_link_all_option
3854
3855NOLINKALL=$llvm_cv_no_link_all_option
3856
3857
3858case $llvm_cv_platform_type in
3859 Unix)
3860
3861cat >>confdefs.h <<\_ACEOF
3862#define LLVM_ON_UNIX 1
3863_ACEOF
3864
3865 LLVM_ON_UNIX=1
3866
3867 LLVM_ON_WIN32=0
3868
3869 ;;
3870 Win32)
3871
3872cat >>confdefs.h <<\_ACEOF
3873#define LLVM_ON_WIN32 1
3874_ACEOF
3875
3876 LLVM_ON_UNIX=0
3877
3878 LLVM_ON_WIN32=1
3879
3880 ;;
3881esac
3882
3883{ echo "$as_me:$LINENO: checking target architecture" >&5
3884echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3885if test "${llvm_cv_target_arch+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888 case $target in
3889 i?86-*) llvm_cv_target_arch="x86" ;;
3890 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3891 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3892 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003893 arm*-*) llvm_cv_target_arch="ARM" ;;
3894 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003895 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003896 xcore-*) llvm_cv_target_arch="XCore" ;;
3897 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003898 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003899 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3900 ptx-*) llvm_cv_target_arch="PTX" ;;
3901 *) llvm_cv_target_arch="Unknown" ;;
3902esac
3903fi
3904{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3905echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3906
3907if test "$llvm_cv_target_arch" = "Unknown" ; then
3908 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3909echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3910fi
3911
Eric Christopherffee5722011-09-16 20:36:25 +00003912case "$llvm_cv_target_arch" in
3913 x86) LLVM_NATIVE_ARCH="X86" ;;
3914 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3915 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3916esac
3917
3918ARCH=$llvm_cv_target_arch
3919
3920
3921
3922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3925if test "${ac_cv_path_GREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003928 # Extract the first word of "grep ggrep" to use in msg output
3929if test -z "$GREP"; then
3930set dummy grep ggrep; ac_prog_name=$2
3931if test "${ac_cv_path_GREP+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
Reid Spencera773bd52006-08-04 18:18:08 +00003934 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003935# Loop through the user's path and test for each of PROGNAME-LIST
3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003937for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003938do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003941 for ac_prog in grep ggrep; do
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3945 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003946 # Check for GNU $ac_path_GREP
3947case `"$ac_path_GREP" --version 2>&1` in
3948*GNU*)
3949 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3950*)
3951 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003952 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003953 while :
3954 do
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003958 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_GREP="$ac_path_GREP"
3965 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003966 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3969 done
3970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971esac
3972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003973
3974 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003975 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003976done
3977
3978done
Reid Spencera773bd52006-08-04 18:18:08 +00003979IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980
3981
3982fi
3983
3984GREP="$ac_cv_path_GREP"
3985if test -z "$GREP"; then
3986 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3987echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3988 { (exit 1); exit 1; }; }
3989fi
3990
Reid Spencera773bd52006-08-04 18:18:08 +00003991else
3992 ac_cv_path_GREP=$GREP
3993fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003995
Reid Spencera773bd52006-08-04 18:18:08 +00003996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003997{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3998echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003999 GREP="$ac_cv_path_GREP"
4000
4001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002{ echo "$as_me:$LINENO: checking for egrep" >&5
4003echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4004if test "${ac_cv_path_EGREP+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004006else
4007 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4008 then ac_cv_path_EGREP="$GREP -E"
4009 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004010 # Extract the first word of "egrep" to use in msg output
4011if test -z "$EGREP"; then
4012set dummy egrep; ac_prog_name=$2
4013if test "${ac_cv_path_EGREP+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
Reid Spencera773bd52006-08-04 18:18:08 +00004016 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004017# Loop through the user's path and test for each of PROGNAME-LIST
4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004019for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004023 for ac_prog in egrep; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4027 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004028 # Check for GNU $ac_path_EGREP
4029case `"$ac_path_EGREP" --version 2>&1` in
4030*GNU*)
4031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4032*)
4033 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004034 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004035 while :
4036 do
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004040 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_EGREP="$ac_path_EGREP"
4047 ac_path_EGREP_max=$ac_count
4048 fi
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4051 done
4052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053esac
4054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004055
4056 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004057 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004058done
4059
4060done
Reid Spencera773bd52006-08-04 18:18:08 +00004061IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004062
4063
4064fi
4065
4066EGREP="$ac_cv_path_EGREP"
4067if test -z "$EGREP"; then
4068 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070 { (exit 1); exit 1; }; }
4071fi
4072
Reid Spencera773bd52006-08-04 18:18:08 +00004073else
4074 ac_cv_path_EGREP=$EGREP
4075fi
4076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004077
Reid Spencera773bd52006-08-04 18:18:08 +00004078 fi
4079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004080{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4081echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004082 EGREP="$ac_cv_path_EGREP"
4083
4084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004085{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4086echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4087if test "${ac_cv_header_stdc+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004090 cat >conftest.$ac_ext <<_ACEOF
4091/* confdefs.h. */
4092_ACEOF
4093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004096#include <stdlib.h>
4097#include <stdarg.h>
4098#include <string.h>
4099#include <float.h>
4100
John Criswell0c38eaf2003-09-10 15:17:25 +00004101int
4102main ()
4103{
4104
4105 ;
4106 return 0;
4107}
John Criswell7a73b802003-06-30 21:59:07 +00004108_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004109rm -f conftest.$ac_objext
4110if { (ac_try="$ac_compile"
4111case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114esac
4115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try='test -s conftest.$ac_objext'
4134 { (case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_try") 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004143 ac_cv_header_stdc=yes
4144else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004145 echo "$as_me: failed program was:" >&5
4146sed 's/^/| /' conftest.$ac_ext >&5
4147
4148 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004149fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150
Reid Spencera773bd52006-08-04 18:18:08 +00004151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004152
4153if test $ac_cv_header_stdc = yes; then
4154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004155 cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004160/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004161#include <string.h>
4162
4163_ACEOF
4164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004165 $EGREP "memchr" >/dev/null 2>&1; then
4166 :
John Criswell7a73b802003-06-30 21:59:07 +00004167else
4168 ac_cv_header_stdc=no
4169fi
4170rm -f conftest*
4171
4172fi
4173
4174if test $ac_cv_header_stdc = yes; then
4175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004176 cat >conftest.$ac_ext <<_ACEOF
4177/* confdefs.h. */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004181/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004182#include <stdlib.h>
4183
4184_ACEOF
4185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004186 $EGREP "free" >/dev/null 2>&1; then
4187 :
John Criswell7a73b802003-06-30 21:59:07 +00004188else
4189 ac_cv_header_stdc=no
4190fi
4191rm -f conftest*
4192
4193fi
4194
4195if test $ac_cv_header_stdc = yes; then
4196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004197 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004198 :
4199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004200 cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004205/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004206#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004207#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004208#if ((' ' & 0x0FF) == 0x020)
4209# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4210# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4211#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004212# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004213 (('a' <= (c) && (c) <= 'i') \
4214 || ('j' <= (c) && (c) <= 'r') \
4215 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004216# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4217#endif
4218
4219#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4220int
4221main ()
4222{
4223 int i;
4224 for (i = 0; i < 256; i++)
4225 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004226 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004227 return 2;
4228 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004229}
4230_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004231rm -f conftest$ac_exeext
4232if { (ac_try="$ac_link"
4233case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_link") 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4242 { (case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245esac
4246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_try") 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 :
John Criswell7a73b802003-06-30 21:59:07 +00004252else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004253 echo "$as_me: program exited with status $ac_status" >&5
4254echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257( exit $ac_status )
4258ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004260rm -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 +00004261fi
4262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004263
John Criswell7a73b802003-06-30 21:59:07 +00004264fi
4265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004266{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004268if test $ac_cv_header_stdc = yes; then
4269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004270cat >>confdefs.h <<\_ACEOF
4271#define STDC_HEADERS 1
4272_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004273
4274fi
4275
Reid Spencera773bd52006-08-04 18:18:08 +00004276# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004277
4278
4279
4280
4281
4282
4283
4284
4285
Reid Spencera773bd52006-08-04 18:18:08 +00004286for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004288do
4289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294else
4295 cat >conftest.$ac_ext <<_ACEOF
4296/* confdefs.h. */
4297_ACEOF
4298cat confdefs.h >>conftest.$ac_ext
4299cat >>conftest.$ac_ext <<_ACEOF
4300/* end confdefs.h. */
4301$ac_includes_default
4302
4303#include <$ac_header>
4304_ACEOF
4305rm -f conftest.$ac_objext
4306if { (ac_try="$ac_compile"
4307case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310esac
4311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_compile") 2>conftest.er1
4313 ac_status=$?
4314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4320 { (case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323esac
4324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_try") 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; } &&
4329 { ac_try='test -s conftest.$ac_objext'
4330 { (case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333esac
4334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335 (eval "$ac_try") 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 eval "$as_ac_Header=yes"
4340else
4341 echo "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 eval "$as_ac_Header=no"
4345fi
4346
4347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348fi
4349ac_res=`eval echo '${'$as_ac_Header'}'`
4350 { echo "$as_me:$LINENO: result: $ac_res" >&5
4351echo "${ECHO_T}$ac_res" >&6; }
4352if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004353 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004355_ACEOF
4356
4357fi
4358
4359done
4360
4361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004362{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4363echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4364if test "${ac_cv_c_bigendian+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004366else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004367 # See if sys/param.h defines the BYTE_ORDER macro.
4368cat >conftest.$ac_ext <<_ACEOF
4369/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004370_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004371cat confdefs.h >>conftest.$ac_ext
4372cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004373/* end confdefs.h. */
4374#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004376
4377int
4378main ()
4379{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004380#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4381 bogus endian macros
4382#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004383
4384 ;
4385 return 0;
4386}
4387_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004388rm -f conftest.$ac_objext
4389if { (ac_try="$ac_compile"
4390case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393esac
4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_compile") 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403 { (case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406esac
4407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_try") 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416esac
4417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_try") 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004422 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423cat >conftest.$ac_ext <<_ACEOF
4424/* confdefs.h. */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004428/* end confdefs.h. */
4429#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004430#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004431
4432int
4433main ()
4434{
4435#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004436 not big endian
4437#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004438
4439 ;
4440 return 0;
4441}
4442_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443rm -f conftest.$ac_objext
4444if { (ac_try="$ac_compile"
4445case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448esac
4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_compile") 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4458 { (case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
4462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_try") 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471esac
4472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_try") 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004477 ac_cv_c_bigendian=yes
4478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004479 echo "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004482 ac_cv_c_bigendian=no
4483fi
4484
4485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486else
4487 echo "$as_me: failed program was:" >&5
4488sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 # It does not; compile a test program.
4491if test "$cross_compiling" = yes; then
4492 # try to guess the endianness by grepping values into an object file
4493 ac_cv_c_bigendian=unknown
4494 cat >conftest.$ac_ext <<_ACEOF
4495/* confdefs.h. */
4496_ACEOF
4497cat confdefs.h >>conftest.$ac_ext
4498cat >>conftest.$ac_ext <<_ACEOF
4499/* end confdefs.h. */
4500short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4501short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4502void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4503short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4504short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4505void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004506int
4507main ()
4508{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004509 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004510 ;
4511 return 0;
4512}
4513_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004514rm -f conftest.$ac_objext
4515if { (ac_try="$ac_compile"
4516case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519esac
4520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_compile") 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4529 { (case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532esac
4533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534 (eval "$ac_try") 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; } &&
4538 { ac_try='test -s conftest.$ac_objext'
4539 { (case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4542esac
4543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_try") 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004549 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550fi
4551if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4552 if test "$ac_cv_c_bigendian" = unknown; then
4553 ac_cv_c_bigendian=no
4554 else
4555 # finding both strings is unlikely to happen, but who knows?
4556 ac_cv_c_bigendian=unknown
4557 fi
4558fi
Reid Spencera773bd52006-08-04 18:18:08 +00004559else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004560 echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004563
Torok Edwin871384f2010-01-26 08:50:50 +00004564fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565
Reid Spencera773bd52006-08-04 18:18:08 +00004566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004568 cat >conftest.$ac_ext <<_ACEOF
4569/* confdefs.h. */
4570_ACEOF
4571cat confdefs.h >>conftest.$ac_ext
4572cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004573/* end confdefs.h. */
4574$ac_includes_default
4575int
4576main ()
4577{
4578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579 /* Are we little or big endian? From Harbison&Steele. */
4580 union
4581 {
4582 long int l;
4583 char c[sizeof (long int)];
4584 } u;
4585 u.l = 1;
4586 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004587
4588 ;
4589 return 0;
4590}
4591_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592rm -f conftest$ac_exeext
4593if { (ac_try="$ac_link"
4594case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
4598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_link") 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4603 { (case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4606esac
4607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_try") 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004612 ac_cv_c_bigendian=no
4613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614 echo "$as_me: program exited with status $ac_status" >&5
4615echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618( exit $ac_status )
4619ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621rm -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 +00004622fi
4623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004624
Reid Spencera773bd52006-08-04 18:18:08 +00004625fi
4626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628fi
4629{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4630echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4631case $ac_cv_c_bigendian in
4632 yes)
4633 ENDIAN=big
4634 ;;
4635 no)
4636 ENDIAN=little
4637 ;;
4638 *)
4639 { { echo "$as_me:$LINENO: error: unknown endianness
4640presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4641echo "$as_me: error: unknown endianness
4642presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4643 { (exit 1); exit 1; }; } ;;
4644esac
Reid Spencera773bd52006-08-04 18:18:08 +00004645
4646
4647if test "$cross_compiling" = yes; then
4648 LLVM_CROSS_COMPILING=1
4649
4650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004651{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4652echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4653if test "${ac_cv_build_exeext+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004655else
4656 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4657 ac_cv_build_exeext=.exe
4658else
4659 ac_build_prefix=${build_alias}-
4660
4661 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4662set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004667else
4668 if test -n "$BUILD_CC"; then
4669 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 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 +00004678 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004680 break 2
4681 fi
4682done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004683done
Reid Spencera773bd52006-08-04 18:18:08 +00004684IFS=$as_save_IFS
4685
4686fi
4687fi
4688BUILD_CC=$ac_cv_prog_BUILD_CC
4689if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004690 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4691echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004692else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004693 { echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004695fi
4696
4697
4698 if test -z "$BUILD_CC"; then
4699 # Extract the first word of "gcc", so it can be a program name with args.
4700set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004705else
4706 if test -n "$BUILD_CC"; then
4707 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 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 +00004716 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004718 break 2
4719 fi
4720done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004721done
Reid Spencera773bd52006-08-04 18:18:08 +00004722IFS=$as_save_IFS
4723
4724fi
4725fi
4726BUILD_CC=$ac_cv_prog_BUILD_CC
4727if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004728 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4729echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004731 { echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004733fi
4734
4735
4736 if test -z "$BUILD_CC"; then
4737 # Extract the first word of "cc", so it can be a program name with args.
4738set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004743else
4744 if test -n "$BUILD_CC"; then
4745 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4746else
4747 ac_prog_rejected=no
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 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 +00004755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4756 ac_prog_rejected=yes
4757 continue
4758 fi
4759 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004761 break 2
4762 fi
4763done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004764done
Reid Spencera773bd52006-08-04 18:18:08 +00004765IFS=$as_save_IFS
4766
4767if test $ac_prog_rejected = yes; then
4768 # We found a bogon in the path, so make sure we never use it.
4769 set dummy $ac_cv_prog_BUILD_CC
4770 shift
4771 if test $# != 0; then
4772 # We chose a different compiler from the bogus one.
4773 # However, it has the same basename, so the bogon will be chosen
4774 # first if we set BUILD_CC to just the basename; use the full file name.
4775 shift
4776 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4777 fi
4778fi
4779fi
4780fi
4781BUILD_CC=$ac_cv_prog_BUILD_CC
4782if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004783 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4784echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004785else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004786 { echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004788fi
4789
4790
4791 fi
4792 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004793 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4794echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4795 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004796 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4797 rm -f conftest*
4798 echo 'int main () { return 0; }' > conftest.$ac_ext
4799 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004800 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004801 (eval $ac_build_link) 2>&5
4802 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004805 for file in conftest.*; do
4806 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004807 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004808 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4809 esac
4810 done
4811 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004812 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4813echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4814 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004815 fi
4816 rm -f conftest*
4817 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4818fi
4819fi
4820
4821BUILD_EXEEXT=""
4822test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004823{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4824echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004825ac_build_exeext=$BUILD_EXEEXT
4826
Jim Grosbach673612e2008-10-02 22:56:44 +00004827 ac_build_prefix=${build_alias}-
4828 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4829set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004834else
4835 if test -n "$BUILD_CXX"; then
4836 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4837else
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 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 +00004845 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004847 break 2
4848 fi
4849done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850done
Jim Grosbach673612e2008-10-02 22:56:44 +00004851IFS=$as_save_IFS
4852
4853fi
4854fi
4855BUILD_CXX=$ac_cv_prog_BUILD_CXX
4856if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004857 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4858echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004860 { echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004862fi
4863
4864
4865 if test -z "$BUILD_CXX"; then
4866 # Extract the first word of "g++", so it can be a program name with args.
4867set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004872else
4873 if test -n "$BUILD_CXX"; then
4874 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 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 +00004883 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004885 break 2
4886 fi
4887done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004888done
Jim Grosbach673612e2008-10-02 22:56:44 +00004889IFS=$as_save_IFS
4890
4891fi
4892fi
4893BUILD_CXX=$ac_cv_prog_BUILD_CXX
4894if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004895 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4896echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004898 { echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004900fi
4901
4902
4903 if test -z "$BUILD_CXX"; then
4904 # Extract the first word of "c++", so it can be a program name with args.
4905set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004910else
4911 if test -n "$BUILD_CXX"; then
4912 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4913else
4914 ac_prog_rejected=no
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 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 +00004922 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4923 ac_prog_rejected=yes
4924 continue
4925 fi
4926 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004928 break 2
4929 fi
4930done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004931done
Jim Grosbach673612e2008-10-02 22:56:44 +00004932IFS=$as_save_IFS
4933
4934if test $ac_prog_rejected = yes; then
4935 # We found a bogon in the path, so make sure we never use it.
4936 set dummy $ac_cv_prog_BUILD_CXX
4937 shift
4938 if test $# != 0; then
4939 # We chose a different compiler from the bogus one.
4940 # However, it has the same basename, so the bogon will be chosen
4941 # first if we set BUILD_CXX to just the basename; use the full file name.
4942 shift
4943 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4944 fi
4945fi
4946fi
4947fi
4948BUILD_CXX=$ac_cv_prog_BUILD_CXX
4949if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004950 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4951echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004952else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004953 { echo "$as_me:$LINENO: result: no" >&5
4954echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004955fi
4956
4957
4958 fi
4959 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004960else
4961 LLVM_CROSS_COMPILING=0
4962
4963fi
4964
Dan Gohman56fb5f92010-08-04 16:25:01 +00004965if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004966 cvsbuild="yes"
4967 optimize="no"
4968 CVSBUILD=CVSBUILD=1
4969
4970else
4971 cvsbuild="no"
4972 optimize="yes"
4973fi
4974
4975
Eric Christopherbee515f2011-11-11 22:51:42 +00004976# Check whether --enable-libcpp was given.
4977if test "${enable_libcpp+set}" = set; then
4978 enableval=$enable_libcpp;
4979else
4980 enableval=default
4981fi
4982
4983case "$enableval" in
4984 yes) ENABLE_LIBCPP=1
4985 ;;
4986 no) ENABLE_LIBCPP=0
4987 ;;
4988 default) ENABLE_LIBCPP=0
4989;;
4990 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4991echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4992 { (exit 1); exit 1; }; } ;;
4993esac
4994
Reid Spencera773bd52006-08-04 18:18:08 +00004995# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004996if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004997 enableval=$enable_optimized;
4998else
4999 enableval=$optimize
5000fi
5001
5002if test ${enableval} = "no" ; then
5003 ENABLE_OPTIMIZED=
5004
5005else
5006 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5007
5008fi
5009
David Greene2a5a12c2009-04-17 14:50:39 +00005010# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005011if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005012 enableval=$enable_profiling;
5013else
5014 enableval="no"
5015fi
5016
5017if test ${enableval} = "no" ; then
5018 ENABLE_PROFILING=
5019
5020else
5021 ENABLE_PROFILING=ENABLE_PROFILING=1
5022
5023fi
5024
Reid Spencera773bd52006-08-04 18:18:08 +00005025# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005026if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005027 enableval=$enable_assertions;
5028else
5029 enableval="yes"
5030fi
5031
5032if test ${enableval} = "yes" ; then
5033 DISABLE_ASSERTIONS=
5034
5035else
5036 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5037
5038fi
5039
David Greenea696d242007-06-28 19:36:08 +00005040# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005041if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005042 enableval=$enable_expensive_checks;
5043else
5044 enableval="no"
5045fi
5046
5047if test ${enableval} = "yes" ; then
5048 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5049
5050 EXPENSIVE_CHECKS=yes
5051
5052else
5053 ENABLE_EXPENSIVE_CHECKS=
5054
5055 EXPENSIVE_CHECKS=no
5056
5057fi
5058
Reid Spencer8b2e1412006-11-17 03:32:33 +00005059# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005060if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005061 enableval=$enable_debug_runtime;
5062else
5063 enableval=no
5064fi
5065
5066if test ${enableval} = "no" ; then
5067 DEBUG_RUNTIME=
5068
5069else
5070 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5071
5072fi
5073
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005074# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005075if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005076 enableval=$enable_debug_symbols;
5077else
5078 enableval=no
5079fi
5080
5081if test ${enableval} = "no" ; then
5082 DEBUG_SYMBOLS=
5083
5084else
5085 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5086
5087fi
5088
Reid Spencera773bd52006-08-04 18:18:08 +00005089# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005090if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005091 enableval=$enable_jit;
5092else
5093 enableval=default
5094fi
5095
5096if test ${enableval} = "no"
5097then
5098 JIT=
5099
5100else
5101 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005102 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005103 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005104 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005105 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005106 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005107 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005108 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005109 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005110 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005111 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005112 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005113 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005114 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005115 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005116 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005117 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005118 Hexagon) TARGET_HAS_JIT=0
5119 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005120 MBlaze) TARGET_HAS_JIT=0
5121 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005122 PTX) TARGET_HAS_JIT=0
5123 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005124 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005125 ;;
5126 esac
5127fi
5128
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005129# Check whether --enable-docs was given.
5130if test "${enable_docs+set}" = set; then
5131 enableval=$enable_docs;
5132else
5133 enableval=default
5134fi
5135
5136case "$enableval" in
5137 yes) ENABLE_DOCS=1
5138 ;;
5139 no) ENABLE_DOCS=0
5140 ;;
5141 default) ENABLE_DOCS=1
5142 ;;
5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5144echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5146esac
5147
Reid Spencera773bd52006-08-04 18:18:08 +00005148# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005149if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005150 enableval=$enable_doxygen;
5151else
5152 enableval=default
5153fi
5154
5155case "$enableval" in
5156 yes) ENABLE_DOXYGEN=1
5157 ;;
5158 no) ENABLE_DOXYGEN=0
5159 ;;
5160 default) ENABLE_DOXYGEN=0
5161 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005162 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5163echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5164 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005165esac
5166
5167# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005168if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005169 enableval=$enable_threads;
5170else
Reid Spencer65c5d752006-11-05 17:08:18 +00005171 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005172fi
5173
5174case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005175 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005176 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005177 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005178 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005179 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005180 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005181 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5182echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5183 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005184esac
5185
Owen Andersona8603702009-05-19 22:18:56 +00005186cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005187#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005188_ACEOF
5189
5190
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005191# Check whether --enable-pthreads was given.
5192if test "${enable_pthreads+set}" = set; then
5193 enableval=$enable_pthreads;
5194else
5195 enableval=default
5196fi
5197
5198case "$enableval" in
5199 yes) ENABLE_PTHREADS=1
5200 ;;
5201 no) ENABLE_PTHREADS=0
5202 ;;
5203 default) ENABLE_PTHREADS=1
5204 ;;
5205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5206echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5208esac
5209
Reid Spencer89b0d992006-12-16 22:07:52 +00005210# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005211if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005212 enableval=$enable_pic;
5213else
5214 enableval=default
5215fi
5216
5217case "$enableval" in
5218 yes) ENABLE_PIC=1
5219 ;;
5220 no) ENABLE_PIC=0
5221 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005222 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005223 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005224 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5225echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5226 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005227esac
5228
5229cat >>confdefs.h <<_ACEOF
5230#define ENABLE_PIC $ENABLE_PIC
5231_ACEOF
5232
5233
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005234# Check whether --enable-shared was given.
5235if test "${enable_shared+set}" = set; then
5236 enableval=$enable_shared;
5237else
5238 enableval=default
5239fi
5240
5241case "$enableval" in
5242 yes) ENABLE_SHARED=1
5243 ;;
5244 no) ENABLE_SHARED=0
5245 ;;
5246 default) ENABLE_SHARED=0
5247 ;;
5248 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5249echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5250 { (exit 1); exit 1; }; } ;;
5251esac
5252
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005253# Check whether --enable-embed-stdcxx was given.
5254if test "${enable_embed_stdcxx+set}" = set; then
5255 enableval=$enable_embed_stdcxx;
5256else
5257 enableval=default
5258fi
5259
5260case "$enableval" in
5261 yes) ENABLE_EMBED_STDCXX=1
5262 ;;
5263 no) ENABLE_EMBED_STDCXX=0
5264 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005265 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005266 ;;
5267 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5268echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5269 { (exit 1); exit 1; }; } ;;
5270esac
5271
Daniel Dunbardd464df2010-05-10 20:11:56 +00005272# Check whether --enable-timestamps was given.
5273if test "${enable_timestamps+set}" = set; then
5274 enableval=$enable_timestamps;
5275else
5276 enableval=default
5277fi
5278
5279case "$enableval" in
5280 yes) ENABLE_TIMESTAMPS=1
5281 ;;
5282 no) ENABLE_TIMESTAMPS=0
5283 ;;
5284 default) ENABLE_TIMESTAMPS=1
5285 ;;
5286 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5287echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5288 { (exit 1); exit 1; }; } ;;
5289esac
5290
5291cat >>confdefs.h <<_ACEOF
5292#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5293_ACEOF
5294
5295
Reid Spencera773bd52006-08-04 18:18:08 +00005296TARGETS_TO_BUILD=""
5297# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005298if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005299 enableval=$enable_targets;
5300else
5301 enableval=all
5302fi
5303
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005304if test "$enableval" = host-only ; then
5305 enableval=host
5306fi
Reid Spencera773bd52006-08-04 18:18:08 +00005307case "$enableval" in
Tony Linthicumb4b54152011-12-12 21:14:40 +00005308 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005309 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5310 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005311 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5312 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5313 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5314 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005315 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5316 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005317 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005318 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005319 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5320 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005321 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005322 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005323 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005324 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005325 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005326 host) case "$llvm_cv_target_arch" in
5327 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5330 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005331 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5332 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005333 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005334 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005335 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5336 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005337 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005338 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005339 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5340echo "$as_me: error: Can not set target to build" >&2;}
5341 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005342 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005343 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5344echo "$as_me: error: Unrecognized target $a_target" >&2;}
5345 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005346 esac
5347 done
5348 ;;
5349esac
Reid Spencera773bd52006-08-04 18:18:08 +00005350TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5351
5352
Douglas Gregor0711c302009-06-17 00:43:20 +00005353for a_target in $TARGETS_TO_BUILD; do
5354 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5355
5356cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005357#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5358_ACEOF
5359
5360 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5361 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005362 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005363 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005364 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5365 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5366 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005367
5368cat >>confdefs.h <<_ACEOF
5369#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005370_ACEOF
5371
5372
5373cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005374#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5375_ACEOF
5376
5377
5378cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005379#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005380_ACEOF
5381
5382
5383cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005384#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005385_ACEOF
5386
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005387 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005388
5389cat >>confdefs.h <<_ACEOF
5390#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5391_ACEOF
5392
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005393 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005394 fi
5395done
5396
Douglas Gregor1555a232009-06-16 20:12:29 +00005397LLVM_ENUM_TARGETS=""
5398LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005399LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005400LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005401for target_to_build in $TARGETS_TO_BUILD; do
5402 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005403 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005404 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5405 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005406 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5407 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5408 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005409 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5410 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5411 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005412done
5413
5414
5415
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005416
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005417
Reid Spencer65c5d752006-11-05 17:08:18 +00005418# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005419if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005420 enableval=$enable_cbe_printf_a;
5421else
5422 enableval=default
5423fi
5424
5425case "$enableval" in
5426 yes) ENABLE_CBE_PRINTF_A=1
5427 ;;
5428 no) ENABLE_CBE_PRINTF_A=0
5429 ;;
5430 default) ENABLE_CBE_PRINTF_A=1
5431 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005432 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5433echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5434 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005435esac
5436
5437cat >>confdefs.h <<_ACEOF
5438#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5439_ACEOF
5440
5441
Reid Spencera773bd52006-08-04 18:18:08 +00005442
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005443# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005444if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005445 withval=$with_optimize_option;
5446else
5447 withval=default
5448fi
5449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005450{ echo "$as_me:$LINENO: checking optimization flags" >&5
5451echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005452case "$withval" in
5453 default)
5454 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005455 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005456 MingW) optimize_option=-O2 ;;
5457 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005458 esac ;;
5459 *) optimize_option="$withval" ;;
5460esac
5461OPTIMIZE_OPTION=$optimize_option
5462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005463{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5464echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005465
5466
Reid Spencera773bd52006-08-04 18:18:08 +00005467# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005468if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005469 withval=$with_extra_options;
5470else
5471 withval=default
5472fi
5473
5474case "$withval" in
5475 default) EXTRA_OPTIONS= ;;
5476 *) EXTRA_OPTIONS=$withval ;;
5477esac
5478EXTRA_OPTIONS=$EXTRA_OPTIONS
5479
5480
Daniel Dunbared344d22011-06-16 22:30:41 +00005481
5482# Check whether --with-extra-ld-options was given.
5483if test "${with_extra_ld_options+set}" = set; then
5484 withval=$with_extra_ld_options;
5485else
5486 withval=default
5487fi
5488
5489case "$withval" in
5490 default) EXTRA_LD_OPTIONS= ;;
5491 *) EXTRA_LD_OPTIONS=$withval ;;
5492esac
5493EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5494
5495
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005496# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005497if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005498 enableval=$enable_bindings;
5499else
5500 enableval=default
5501fi
5502
5503BINDINGS_TO_BUILD=""
5504case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005505 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005506 all ) BINDINGS_TO_BUILD="ocaml" ;;
5507 none | no) BINDINGS_TO_BUILD="" ;;
5508 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5509 case "$a_binding" in
5510 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005511 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5512echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5513 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005514 esac
5515 done
5516 ;;
5517esac
5518
Reid Spencera773bd52006-08-04 18:18:08 +00005519
Gordon Henriksenf0915682007-10-02 16:42:22 +00005520# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005521if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005522 withval=$with_ocaml_libdir;
5523else
5524 withval=auto
5525fi
5526
5527case "$withval" in
5528 auto) with_ocaml_libdir="$withval" ;;
5529 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005530 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5531echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5532 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005533esac
5534
5535
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005536# Check whether --with-clang-srcdir was given.
5537if test "${with_clang_srcdir+set}" = set; then
5538 withval=$with_clang_srcdir;
5539else
5540 withval="-"
5541fi
5542
5543case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005544 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005545 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5546 *) clang_src_root="$ac_pwd/$withval" ;;
5547esac
5548CLANG_SRC_ROOT=$clang_src_root
5549
5550
5551
Chandler Carruth6b241162010-10-19 08:21:25 +00005552# Check whether --with-clang-resource-dir was given.
5553if test "${with_clang_resource_dir+set}" = set; then
5554 withval=$with_clang_resource_dir;
5555else
5556 withval=""
5557fi
5558
5559
5560cat >>confdefs.h <<_ACEOF
5561#define CLANG_RESOURCE_DIR "$withval"
5562_ACEOF
5563
5564
5565
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005566# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005567if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005568 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005569else
5570 withval=""
5571fi
5572
5573
5574cat >>confdefs.h <<_ACEOF
5575#define C_INCLUDE_DIRS "$withval"
5576_ACEOF
5577
5578
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005579# Clang normally uses the system c++ headers and libraries. With this option,
5580# clang will use the ones provided by a gcc installation instead. This option should
5581# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005582
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005583# Check whether --with-gcc-toolchain was given.
5584if test "${with_gcc_toolchain+set}" = set; then
5585 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005586else
5587 withval=""
5588fi
5589
5590
5591cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005592#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005593_ACEOF
5594
5595
5596
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005597# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005598if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005599 withval=$with_binutils_include;
5600else
5601 withval=default
5602fi
5603
5604case "$withval" in
5605 default) WITH_BINUTILS_INCDIR=default ;;
5606 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005607 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5608echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5609 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005610esac
5611if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5612 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5613
5614 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5615 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5617echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5618 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005619 fi
5620fi
5621
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005622
5623# Check whether --with-bug-report-url was given.
5624if test "${with_bug_report_url+set}" = set; then
5625 withval=$with_bug_report_url;
5626else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005627 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005628fi
5629
5630
5631cat >>confdefs.h <<_ACEOF
5632#define BUG_REPORT_URL "$withval"
5633_ACEOF
5634
5635
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005636# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005637if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005638 enableval=$enable_libffi; case "$enableval" in
5639 yes) llvm_cv_enable_libffi="yes" ;;
5640 no) llvm_cv_enable_libffi="no" ;;
5641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005642echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5643 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005644 esac
5645else
5646 llvm_cv_enable_libffi=no
5647fi
5648
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005649
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005650
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005651# Check whether --with-internal-prefix was given.
5652if test "${with_internal_prefix+set}" = set; then
5653 withval=$with_internal_prefix;
5654else
5655 withval=""
5656fi
5657
5658INTERNAL_PREFIX=$withval
5659
5660
5661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005662{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5663echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5664if test "${lt_cv_path_NM+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005666else
5667 if test -n "$NM"; then
5668 # Let the user override the test.
5669 lt_cv_path_NM="$NM"
5670else
5671 lt_nm_to_check="${ac_tool_prefix}nm"
5672 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5673 lt_nm_to_check="$lt_nm_to_check nm"
5674 fi
5675 for lt_tmp_nm in $lt_nm_to_check; do
5676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5677 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5678 IFS="$lt_save_ifs"
5679 test -z "$ac_dir" && ac_dir=.
5680 tmp_nm="$ac_dir/$lt_tmp_nm"
5681 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5682 # Check to see if the nm accepts a BSD-compat flag.
5683 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5684 # nm: unknown option "B" ignored
5685 # Tru64's nm complains that /dev/null is an invalid object file
5686 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5687 */dev/null* | *'Invalid file or object type'*)
5688 lt_cv_path_NM="$tmp_nm -B"
5689 break
5690 ;;
5691 *)
5692 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5693 */dev/null*)
5694 lt_cv_path_NM="$tmp_nm -p"
5695 break
5696 ;;
5697 *)
5698 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5699 continue # so that we can try to find one that supports BSD flags
5700 ;;
5701 esac
5702 ;;
5703 esac
5704 fi
5705 done
5706 IFS="$lt_save_ifs"
5707 done
5708 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5709fi
5710fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005711{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5712echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005713NM="$lt_cv_path_NM"
5714
5715
5716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005717{ echo "$as_me:$LINENO: checking for GNU make" >&5
5718echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5719if test "${llvm_cv_gnu_make_command+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005721else
5722 llvm_cv_gnu_make_command=''
5723 for a in "$MAKE" make gmake gnumake ; do
5724 if test -z "$a" ; then continue ; fi ;
5725 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5726 then
5727 llvm_cv_gnu_make_command=$a ;
5728 break;
5729 fi
5730 done
5731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005732{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5733echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005734 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5735 ifGNUmake='' ;
5736 else
5737 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005738 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5739echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005740 fi
5741
5742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5744echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005745LN_S=$as_ln_s
5746if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747 { echo "$as_me:$LINENO: result: yes" >&5
5748echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005750 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5751echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005752fi
5753
5754# Extract the first word of "cmp", so it can be a program name with args.
5755set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5758if test "${ac_cv_path_CMP+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005760else
5761 case $CMP in
5762 [\\/]* | ?:[\\/]*)
5763 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5764 ;;
5765 *)
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767for as_dir in $PATH
5768do
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005773 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005775 break 2
5776 fi
5777done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005778done
Reid Spencera773bd52006-08-04 18:18:08 +00005779IFS=$as_save_IFS
5780
5781 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5782 ;;
5783esac
5784fi
5785CMP=$ac_cv_path_CMP
5786if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787 { echo "$as_me:$LINENO: result: $CMP" >&5
5788echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005790 { echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005792fi
5793
5794
5795# Extract the first word of "cp", so it can be a program name with args.
5796set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799if test "${ac_cv_path_CP+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005801else
5802 case $CP in
5803 [\\/]* | ?:[\\/]*)
5804 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5805 ;;
5806 *)
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005814 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005816 break 2
5817 fi
5818done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005819done
Reid Spencera773bd52006-08-04 18:18:08 +00005820IFS=$as_save_IFS
5821
5822 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5823 ;;
5824esac
5825fi
5826CP=$ac_cv_path_CP
5827if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828 { echo "$as_me:$LINENO: result: $CP" >&5
5829echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005831 { echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005833fi
5834
5835
5836# Extract the first word of "date", so it can be a program name with args.
5837set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5840if test "${ac_cv_path_DATE+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005842else
5843 case $DATE in
5844 [\\/]* | ?:[\\/]*)
5845 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5846 ;;
5847 *)
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849for as_dir in $PATH
5850do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005855 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005857 break 2
5858 fi
5859done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005860done
Reid Spencera773bd52006-08-04 18:18:08 +00005861IFS=$as_save_IFS
5862
5863 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5864 ;;
5865esac
5866fi
5867DATE=$ac_cv_path_DATE
5868if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869 { echo "$as_me:$LINENO: result: $DATE" >&5
5870echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872 { echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005874fi
5875
5876
5877# Extract the first word of "find", so it can be a program name with args.
5878set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881if test "${ac_cv_path_FIND+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005883else
5884 case $FIND in
5885 [\\/]* | ?:[\\/]*)
5886 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5887 ;;
5888 *)
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005896 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005898 break 2
5899 fi
5900done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005901done
Reid Spencera773bd52006-08-04 18:18:08 +00005902IFS=$as_save_IFS
5903
5904 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5905 ;;
5906esac
5907fi
5908FIND=$ac_cv_path_FIND
5909if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005910 { echo "$as_me:$LINENO: result: $FIND" >&5
5911echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005913 { echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005915fi
5916
5917
5918# Extract the first word of "grep", so it can be a program name with args.
5919set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922if test "${ac_cv_path_GREP+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005924else
5925 case $GREP in
5926 [\\/]* | ?:[\\/]*)
5927 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5928 ;;
5929 *)
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005937 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005939 break 2
5940 fi
5941done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005942done
Reid Spencera773bd52006-08-04 18:18:08 +00005943IFS=$as_save_IFS
5944
5945 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5946 ;;
5947esac
5948fi
5949GREP=$ac_cv_path_GREP
5950if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005951 { echo "$as_me:$LINENO: result: $GREP" >&5
5952echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005954 { echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005956fi
5957
5958
5959# Extract the first word of "mkdir", so it can be a program name with args.
5960set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963if test "${ac_cv_path_MKDIR+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005965else
5966 case $MKDIR in
5967 [\\/]* | ?:[\\/]*)
5968 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5969 ;;
5970 *)
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972for as_dir in $PATH
5973do
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005978 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005980 break 2
5981 fi
5982done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005983done
Reid Spencera773bd52006-08-04 18:18:08 +00005984IFS=$as_save_IFS
5985
5986 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5987 ;;
5988esac
5989fi
5990MKDIR=$ac_cv_path_MKDIR
5991if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005992 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5993echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005994else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005995 { echo "$as_me:$LINENO: result: no" >&5
5996echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005997fi
5998
5999
6000# Extract the first word of "mv", so it can be a program name with args.
6001set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004if test "${ac_cv_path_MV+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006006else
6007 case $MV in
6008 [\\/]* | ?:[\\/]*)
6009 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6010 ;;
6011 *)
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013for as_dir in $PATH
6014do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006019 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006021 break 2
6022 fi
6023done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006024done
Reid Spencera773bd52006-08-04 18:18:08 +00006025IFS=$as_save_IFS
6026
6027 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6028 ;;
6029esac
6030fi
6031MV=$ac_cv_path_MV
6032if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006033 { echo "$as_me:$LINENO: result: $MV" >&5
6034echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006035else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006036 { echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006038fi
6039
6040
6041if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6043set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046if test "${ac_cv_prog_RANLIB+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006048else
6049 if test -n "$RANLIB"; then
6050 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6051else
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006061 break 2
6062 fi
6063done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064done
Reid Spencera773bd52006-08-04 18:18:08 +00006065IFS=$as_save_IFS
6066
6067fi
6068fi
6069RANLIB=$ac_cv_prog_RANLIB
6070if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006071 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6072echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006073else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006074 { echo "$as_me:$LINENO: result: no" >&5
6075echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006076fi
6077
6078
6079fi
6080if test -z "$ac_cv_prog_RANLIB"; then
6081 ac_ct_RANLIB=$RANLIB
6082 # Extract the first word of "ranlib", so it can be a program name with args.
6083set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6086if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006088else
6089 if test -n "$ac_ct_RANLIB"; then
6090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6091else
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006099 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006101 break 2
6102 fi
6103done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104done
Reid Spencera773bd52006-08-04 18:18:08 +00006105IFS=$as_save_IFS
6106
6107fi
6108fi
6109ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6110if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006111 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6112echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006113else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006114 { echo "$as_me:$LINENO: result: no" >&5
6115echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006116fi
6117
6118 if test "x$ac_ct_RANLIB" = x; then
6119 RANLIB=":"
6120 else
6121 case $cross_compiling:$ac_tool_warned in
6122yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006123{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6124whose name does not start with the host triplet. If you think this
6125configuration is useful to you, please write to autoconf@gnu.org." >&5
6126echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6127whose name does not start with the host triplet. If you think this
6128configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006129ac_tool_warned=yes ;;
6130esac
6131 RANLIB=$ac_ct_RANLIB
6132 fi
6133else
6134 RANLIB="$ac_cv_prog_RANLIB"
6135fi
6136
Torok Edwin871384f2010-01-26 08:50:50 +00006137if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6139set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142if test "${ac_cv_prog_AR+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006144else
6145 if test -n "$AR"; then
6146 ac_cv_prog_AR="$AR" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006155 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006157 break 2
6158 fi
6159done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006160done
Torok Edwin871384f2010-01-26 08:50:50 +00006161IFS=$as_save_IFS
6162
6163fi
6164fi
6165AR=$ac_cv_prog_AR
6166if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167 { echo "$as_me:$LINENO: result: $AR" >&5
6168echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006169else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006170 { echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006172fi
6173
6174
6175fi
6176if test -z "$ac_cv_prog_AR"; then
6177 ac_ct_AR=$AR
6178 # Extract the first word of "ar", so it can be a program name with args.
6179set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006184else
6185 if test -n "$ac_ct_AR"; then
6186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006195 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006197 break 2
6198 fi
6199done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006200done
Torok Edwin871384f2010-01-26 08:50:50 +00006201IFS=$as_save_IFS
6202
6203fi
6204fi
6205ac_ct_AR=$ac_cv_prog_ac_ct_AR
6206if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006207 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6208echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006210 { echo "$as_me:$LINENO: result: no" >&5
6211echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006212fi
6213
6214 if test "x$ac_ct_AR" = x; then
6215 AR="false"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006219{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6220whose name does not start with the host triplet. If you think this
6221configuration is useful to you, please write to autoconf@gnu.org." >&5
6222echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6223whose name does not start with the host triplet. If you think this
6224configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006225ac_tool_warned=yes ;;
6226esac
6227 AR=$ac_ct_AR
6228 fi
6229else
6230 AR="$ac_cv_prog_AR"
6231fi
6232
Reid Spencera773bd52006-08-04 18:18:08 +00006233# Extract the first word of "rm", so it can be a program name with args.
6234set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237if test "${ac_cv_path_RM+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006239else
6240 case $RM in
6241 [\\/]* | ?:[\\/]*)
6242 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6243 ;;
6244 *)
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006252 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006254 break 2
6255 fi
6256done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257done
Reid Spencera773bd52006-08-04 18:18:08 +00006258IFS=$as_save_IFS
6259
6260 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6261 ;;
6262esac
6263fi
6264RM=$ac_cv_path_RM
6265if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006266 { echo "$as_me:$LINENO: result: $RM" >&5
6267echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006268else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006269 { echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006271fi
6272
6273
6274# Extract the first word of "sed", so it can be a program name with args.
6275set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6278if test "${ac_cv_path_SED+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006280else
6281 case $SED in
6282 [\\/]* | ?:[\\/]*)
6283 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6284 ;;
6285 *)
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287for as_dir in $PATH
6288do
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006293 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006295 break 2
6296 fi
6297done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298done
Reid Spencera773bd52006-08-04 18:18:08 +00006299IFS=$as_save_IFS
6300
6301 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6302 ;;
6303esac
6304fi
6305SED=$ac_cv_path_SED
6306if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307 { echo "$as_me:$LINENO: result: $SED" >&5
6308echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006309else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006310 { echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006312fi
6313
6314
6315# Extract the first word of "tar", so it can be a program name with args.
6316set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6319if test "${ac_cv_path_TAR+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006321else
6322 case $TAR in
6323 [\\/]* | ?:[\\/]*)
6324 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6325 ;;
6326 *)
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006334 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006336 break 2
6337 fi
6338done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006339done
Reid Spencera773bd52006-08-04 18:18:08 +00006340IFS=$as_save_IFS
6341
6342 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6343 ;;
6344esac
6345fi
6346TAR=$ac_cv_path_TAR
6347if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348 { echo "$as_me:$LINENO: result: $TAR" >&5
6349echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006350else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006351 { echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006353fi
6354
6355
6356# Extract the first word of "pwd", so it can be a program name with args.
6357set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6360if test "${ac_cv_path_BINPWD+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006362else
6363 case $BINPWD in
6364 [\\/]* | ?:[\\/]*)
6365 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6366 ;;
6367 *)
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006375 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006377 break 2
6378 fi
6379done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380done
Reid Spencera773bd52006-08-04 18:18:08 +00006381IFS=$as_save_IFS
6382
6383 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6384 ;;
6385esac
6386fi
6387BINPWD=$ac_cv_path_BINPWD
6388if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6390echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006392 { echo "$as_me:$LINENO: result: no" >&5
6393echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006394fi
6395
6396
6397
6398# Extract the first word of "Graphviz", so it can be a program name with args.
6399set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6402if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006404else
6405 case $GRAPHVIZ in
6406 [\\/]* | ?:[\\/]*)
6407 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6408 ;;
6409 *)
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006417 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006419 break 2
6420 fi
6421done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422done
Reid Spencera773bd52006-08-04 18:18:08 +00006423IFS=$as_save_IFS
6424
6425 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6426 ;;
6427esac
6428fi
6429GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6430if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006431 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6432echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006434 { echo "$as_me:$LINENO: result: no" >&5
6435echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006436fi
6437
6438
6439if test "$GRAPHVIZ" != "echo Graphviz" ; then
6440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441cat >>confdefs.h <<\_ACEOF
6442#define HAVE_GRAPHVIZ 1
6443_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006444
Jeff Cohen28783c32007-01-12 18:22:38 +00006445 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006446 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6447 fi
6448
6449cat >>confdefs.h <<_ACEOF
6450#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6451_ACEOF
6452
6453fi
6454# Extract the first word of "dot", so it can be a program name with args.
6455set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458if test "${ac_cv_path_DOT+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006460else
6461 case $DOT in
6462 [\\/]* | ?:[\\/]*)
6463 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6464 ;;
6465 *)
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006473 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006475 break 2
6476 fi
6477done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478done
Reid Spencera773bd52006-08-04 18:18:08 +00006479IFS=$as_save_IFS
6480
6481 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6482 ;;
6483esac
6484fi
6485DOT=$ac_cv_path_DOT
6486if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006487 { echo "$as_me:$LINENO: result: $DOT" >&5
6488echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006490 { echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006492fi
6493
6494
6495if test "$DOT" != "echo dot" ; then
6496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006497cat >>confdefs.h <<\_ACEOF
6498#define HAVE_DOT 1
6499_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006500
Jeff Cohen28783c32007-01-12 18:22:38 +00006501 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006502 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6503 fi
6504
6505cat >>confdefs.h <<_ACEOF
6506#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6507_ACEOF
6508
6509fi
David Greenef0b9eff2009-07-09 17:16:26 +00006510# Extract the first word of "fdp", so it can be a program name with args.
6511set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514if test "${ac_cv_path_FDP+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006516else
6517 case $FDP in
6518 [\\/]* | ?:[\\/]*)
6519 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6520 ;;
6521 *)
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006529 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006531 break 2
6532 fi
6533done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534done
David Greenef0b9eff2009-07-09 17:16:26 +00006535IFS=$as_save_IFS
6536
6537 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6538 ;;
6539esac
6540fi
6541FDP=$ac_cv_path_FDP
6542if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006543 { echo "$as_me:$LINENO: result: $FDP" >&5
6544echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546 { echo "$as_me:$LINENO: result: no" >&5
6547echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006548fi
6549
6550
6551if test "$FDP" != "echo fdp" ; then
6552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553cat >>confdefs.h <<\_ACEOF
6554#define HAVE_FDP 1
6555_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006556
6557 if test "$llvm_cv_os_type" = "MingW" ; then
6558 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6559 fi
6560
6561cat >>confdefs.h <<_ACEOF
6562#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6563_ACEOF
6564
6565fi
6566# Extract the first word of "neato", so it can be a program name with args.
6567set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570if test "${ac_cv_path_NEATO+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006572else
6573 case $NEATO in
6574 [\\/]* | ?:[\\/]*)
6575 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6576 ;;
6577 *)
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006585 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006587 break 2
6588 fi
6589done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006590done
David Greenef0b9eff2009-07-09 17:16:26 +00006591IFS=$as_save_IFS
6592
6593 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6594 ;;
6595esac
6596fi
6597NEATO=$ac_cv_path_NEATO
6598if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599 { echo "$as_me:$LINENO: result: $NEATO" >&5
6600echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006602 { echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006604fi
6605
6606
6607if test "$NEATO" != "echo neato" ; then
6608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609cat >>confdefs.h <<\_ACEOF
6610#define HAVE_NEATO 1
6611_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006612
6613 if test "$llvm_cv_os_type" = "MingW" ; then
6614 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6615 fi
6616
6617cat >>confdefs.h <<_ACEOF
6618#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6619_ACEOF
6620
6621fi
6622# Extract the first word of "twopi", so it can be a program name with args.
6623set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626if test "${ac_cv_path_TWOPI+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006628else
6629 case $TWOPI in
6630 [\\/]* | ?:[\\/]*)
6631 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6632 ;;
6633 *)
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006641 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006643 break 2
6644 fi
6645done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646done
David Greenef0b9eff2009-07-09 17:16:26 +00006647IFS=$as_save_IFS
6648
6649 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6650 ;;
6651esac
6652fi
6653TWOPI=$ac_cv_path_TWOPI
6654if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006655 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6656echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006658 { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006660fi
6661
6662
6663if test "$TWOPI" != "echo twopi" ; then
6664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665cat >>confdefs.h <<\_ACEOF
6666#define HAVE_TWOPI 1
6667_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006668
6669 if test "$llvm_cv_os_type" = "MingW" ; then
6670 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6671 fi
6672
6673cat >>confdefs.h <<_ACEOF
6674#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6675_ACEOF
6676
6677fi
6678# Extract the first word of "circo", so it can be a program name with args.
6679set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682if test "${ac_cv_path_CIRCO+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006684else
6685 case $CIRCO in
6686 [\\/]* | ?:[\\/]*)
6687 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6688 ;;
6689 *)
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006697 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006699 break 2
6700 fi
6701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702done
David Greenef0b9eff2009-07-09 17:16:26 +00006703IFS=$as_save_IFS
6704
6705 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6706 ;;
6707esac
6708fi
6709CIRCO=$ac_cv_path_CIRCO
6710if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6712echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006714 { echo "$as_me:$LINENO: result: no" >&5
6715echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006716fi
6717
6718
6719if test "$CIRCO" != "echo circo" ; then
6720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721cat >>confdefs.h <<\_ACEOF
6722#define HAVE_CIRCO 1
6723_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006724
6725 if test "$llvm_cv_os_type" = "MingW" ; then
6726 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6727 fi
6728
6729cat >>confdefs.h <<_ACEOF
6730#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6731_ACEOF
6732
6733fi
Reid Spencera773bd52006-08-04 18:18:08 +00006734for ac_prog in gv gsview32
6735do
6736 # Extract the first word of "$ac_prog", so it can be a program name with args.
6737set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740if test "${ac_cv_path_GV+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006742else
6743 case $GV in
6744 [\\/]* | ?:[\\/]*)
6745 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6746 ;;
6747 *)
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006755 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006757 break 2
6758 fi
6759done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760done
Reid Spencera773bd52006-08-04 18:18:08 +00006761IFS=$as_save_IFS
6762
6763 ;;
6764esac
6765fi
6766GV=$ac_cv_path_GV
6767if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006768 { echo "$as_me:$LINENO: result: $GV" >&5
6769echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006771 { echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006773fi
6774
6775
6776 test -n "$GV" && break
6777done
6778test -n "$GV" || GV="echo gv"
6779
6780if test "$GV" != "echo gv" ; then
6781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782cat >>confdefs.h <<\_ACEOF
6783#define HAVE_GV 1
6784_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006785
Jeff Cohen28783c32007-01-12 18:22:38 +00006786 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006787 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6788 fi
6789
6790cat >>confdefs.h <<_ACEOF
6791#define LLVM_PATH_GV "$GV${EXEEXT}"
6792_ACEOF
6793
6794fi
6795# Extract the first word of "dotty", so it can be a program name with args.
6796set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799if test "${ac_cv_path_DOTTY+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006801else
6802 case $DOTTY in
6803 [\\/]* | ?:[\\/]*)
6804 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6805 ;;
6806 *)
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006814 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006816 break 2
6817 fi
6818done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006819done
Reid Spencera773bd52006-08-04 18:18:08 +00006820IFS=$as_save_IFS
6821
6822 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6823 ;;
6824esac
6825fi
6826DOTTY=$ac_cv_path_DOTTY
6827if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006828 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6829echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006831 { echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006833fi
6834
6835
6836if test "$DOTTY" != "echo dotty" ; then
6837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838cat >>confdefs.h <<\_ACEOF
6839#define HAVE_DOTTY 1
6840_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006841
Jeff Cohen28783c32007-01-12 18:22:38 +00006842 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006843 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6844 fi
6845
6846cat >>confdefs.h <<_ACEOF
6847#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6848_ACEOF
6849
6850fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006851# Extract the first word of "xdot.py", so it can be a program name with args.
6852set dummy xdot.py; ac_word=$2
6853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855if test "${ac_cv_path_XDOT_PY+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858 case $XDOT_PY in
6859 [\\/]* | ?:[\\/]*)
6860 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6861 ;;
6862 *)
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874done
6875done
6876IFS=$as_save_IFS
6877
6878 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6879 ;;
6880esac
6881fi
6882XDOT_PY=$ac_cv_path_XDOT_PY
6883if test -n "$XDOT_PY"; then
6884 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6885echo "${ECHO_T}$XDOT_PY" >&6; }
6886else
6887 { echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6; }
6889fi
6890
6891
6892if test "$XDOT_PY" != "echo xdot.py" ; then
6893
6894cat >>confdefs.h <<\_ACEOF
6895#define HAVE_XDOT_PY 1
6896_ACEOF
6897
6898 if test "$llvm_cv_os_type" = "MingW" ; then
6899 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6900 fi
6901
6902cat >>confdefs.h <<_ACEOF
6903#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6904_ACEOF
6905
6906fi
Reid Spencera773bd52006-08-04 18:18:08 +00006907
6908
6909# Extract the first word of "perl", so it can be a program name with args.
6910set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913if test "${ac_cv_path_PERL+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006915else
6916 case $PERL in
6917 [\\/]* | ?:[\\/]*)
6918 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6919 ;;
6920 *)
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006928 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006930 break 2
6931 fi
6932done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933done
Reid Spencera773bd52006-08-04 18:18:08 +00006934IFS=$as_save_IFS
6935
6936 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6937 ;;
6938esac
6939fi
6940PERL=$ac_cv_path_PERL
6941if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942 { echo "$as_me:$LINENO: result: $PERL" >&5
6943echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945 { echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006947fi
6948
6949
6950if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006951 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6952echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006953 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954 { echo "$as_me:$LINENO: result: yes" >&5
6955echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006956 else
6957 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006958 { echo "$as_me:$LINENO: result: not found" >&5
6959echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006960 fi
6961fi
6962
6963
6964if test x"$PERL" = xnone; then
6965 HAVE_PERL=0
6966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6968echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6969 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006970else
6971 HAVE_PERL=1
6972
6973fi
6974
6975# Find a good install program. We prefer a C program (faster),
6976# so one script is as good as another. But avoid the broken or
6977# incompatible versions:
6978# SysV /etc/install, /usr/sbin/install
6979# SunOS /usr/etc/install
6980# IRIX /sbin/install
6981# AIX /bin/install
6982# AmigaOS /C/install, which installs bootblocks on floppy discs
6983# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6984# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6985# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6986# OS/2's system install, which has a completely different semantic
6987# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6989echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006990if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991if test "${ac_cv_path_install+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006993else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006999 # Account for people who put trailing slashes in PATH elements.
7000case $as_dir/ in
7001 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007002 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007004 /usr/ucb/* ) ;;
7005 *)
7006 # OSF1 and SCO ODT 3.0 have their own names for install.
7007 # Don't use installbsd from OSF since it installs stuff as root
7008 # by default.
7009 for ac_prog in ginstall scoinst install; do
7010 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007011 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007012 if test $ac_prog = install &&
7013 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7014 # AIX install. It has an incompatible calling convention.
7015 :
7016 elif test $ac_prog = install &&
7017 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7018 # program-specific install script used by HP pwplus--don't use.
7019 :
7020 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7022 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007023 fi
7024 fi
7025 done
7026 done
7027 ;;
7028esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029done
Reid Spencera773bd52006-08-04 18:18:08 +00007030IFS=$as_save_IFS
7031
7032
7033fi
7034 if test "${ac_cv_path_install+set}" = set; then
7035 INSTALL=$ac_cv_path_install
7036 else
7037 # As a last resort, use the slow shell script. Don't cache a
7038 # value for INSTALL within a source directory, because that will
7039 # break other packages using the cache if that directory is
7040 # removed, or if the value is a relative name.
7041 INSTALL=$ac_install_sh
7042 fi
7043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7045echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007046
7047# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7048# It thinks the first close brace ends the variable substitution.
7049test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7050
7051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7052
7053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7054
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007055case "$INSTALL" in
7056 [\\/$]* | ?:[\\/]* ) ;;
7057 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7058esac
Reid Spencera773bd52006-08-04 18:18:08 +00007059
7060# Extract the first word of "bzip2", so it can be a program name with args.
7061set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064if test "${ac_cv_path_BZIP2+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007066else
7067 case $BZIP2 in
7068 [\\/]* | ?:[\\/]*)
7069 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7070 ;;
7071 *)
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007079 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007081 break 2
7082 fi
7083done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084done
Reid Spencera773bd52006-08-04 18:18:08 +00007085IFS=$as_save_IFS
7086
Reid Spencera773bd52006-08-04 18:18:08 +00007087 ;;
7088esac
7089fi
7090BZIP2=$ac_cv_path_BZIP2
7091if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7093echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007094else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007095 { echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007097fi
7098
7099
mike-m68cb3192010-05-06 23:45:43 +00007100# Extract the first word of "cat", so it can be a program name with args.
7101set dummy cat; ac_word=$2
7102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104if test "${ac_cv_path_CAT+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106else
7107 case $CAT in
7108 [\\/]* | ?:[\\/]*)
7109 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7110 ;;
7111 *)
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7122 fi
7123done
7124done
7125IFS=$as_save_IFS
7126
7127 ;;
7128esac
7129fi
7130CAT=$ac_cv_path_CAT
7131if test -n "$CAT"; then
7132 { echo "$as_me:$LINENO: result: $CAT" >&5
7133echo "${ECHO_T}$CAT" >&6; }
7134else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6; }
7137fi
7138
7139
Reid Spencera773bd52006-08-04 18:18:08 +00007140# Extract the first word of "doxygen", so it can be a program name with args.
7141set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144if test "${ac_cv_path_DOXYGEN+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007146else
7147 case $DOXYGEN in
7148 [\\/]* | ?:[\\/]*)
7149 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7150 ;;
7151 *)
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007159 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007161 break 2
7162 fi
7163done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007164done
Reid Spencera773bd52006-08-04 18:18:08 +00007165IFS=$as_save_IFS
7166
Reid Spencera773bd52006-08-04 18:18:08 +00007167 ;;
7168esac
7169fi
7170DOXYGEN=$ac_cv_path_DOXYGEN
7171if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7173echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007174else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175 { echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007177fi
7178
7179
Reid Spencera773bd52006-08-04 18:18:08 +00007180# Extract the first word of "groff", so it can be a program name with args.
7181set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184if test "${ac_cv_path_GROFF+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007186else
7187 case $GROFF in
7188 [\\/]* | ?:[\\/]*)
7189 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7190 ;;
7191 *)
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007199 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007201 break 2
7202 fi
7203done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204done
Reid Spencera773bd52006-08-04 18:18:08 +00007205IFS=$as_save_IFS
7206
Reid Spencera773bd52006-08-04 18:18:08 +00007207 ;;
7208esac
7209fi
7210GROFF=$ac_cv_path_GROFF
7211if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212 { echo "$as_me:$LINENO: result: $GROFF" >&5
7213echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007214else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215 { echo "$as_me:$LINENO: result: no" >&5
7216echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007217fi
7218
7219
7220# Extract the first word of "gzip", so it can be a program name with args.
7221set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007224if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007226else
Eric Christopher031d3072010-12-10 01:31:51 +00007227 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007228 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007229 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007230 ;;
7231 *)
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007239 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007241 break 2
7242 fi
7243done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244done
Reid Spencera773bd52006-08-04 18:18:08 +00007245IFS=$as_save_IFS
7246
Reid Spencera773bd52006-08-04 18:18:08 +00007247 ;;
7248esac
7249fi
Eric Christopher031d3072010-12-10 01:31:51 +00007250GZIPBIN=$ac_cv_path_GZIPBIN
7251if test -n "$GZIPBIN"; then
7252 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7253echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255 { echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007257fi
7258
7259
7260# Extract the first word of "pod2html", so it can be a program name with args.
7261set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_path_POD2HTML+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007266else
7267 case $POD2HTML in
7268 [\\/]* | ?:[\\/]*)
7269 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7270 ;;
7271 *)
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007279 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007281 break 2
7282 fi
7283done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284done
Reid Spencera773bd52006-08-04 18:18:08 +00007285IFS=$as_save_IFS
7286
Reid Spencera773bd52006-08-04 18:18:08 +00007287 ;;
7288esac
7289fi
7290POD2HTML=$ac_cv_path_POD2HTML
7291if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007292 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7293echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007295 { echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007297fi
7298
7299
7300# Extract the first word of "pod2man", so it can be a program name with args.
7301set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304if test "${ac_cv_path_POD2MAN+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007306else
7307 case $POD2MAN in
7308 [\\/]* | ?:[\\/]*)
7309 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7310 ;;
7311 *)
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007319 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007321 break 2
7322 fi
7323done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324done
Reid Spencera773bd52006-08-04 18:18:08 +00007325IFS=$as_save_IFS
7326
Reid Spencera773bd52006-08-04 18:18:08 +00007327 ;;
7328esac
7329fi
7330POD2MAN=$ac_cv_path_POD2MAN
7331if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7333echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335 { echo "$as_me:$LINENO: result: no" >&5
7336echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007337fi
7338
7339
mike-m68cb3192010-05-06 23:45:43 +00007340# Extract the first word of "pdfroff", so it can be a program name with args.
7341set dummy pdfroff; ac_word=$2
7342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344if test "${ac_cv_path_PDFROFF+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347 case $PDFROFF in
7348 [\\/]* | ?:[\\/]*)
7349 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7350 ;;
7351 *)
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363done
7364done
7365IFS=$as_save_IFS
7366
7367 ;;
7368esac
7369fi
7370PDFROFF=$ac_cv_path_PDFROFF
7371if test -n "$PDFROFF"; then
7372 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7373echo "${ECHO_T}$PDFROFF" >&6; }
7374else
7375 { echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6; }
7377fi
7378
7379
Reid Spencera773bd52006-08-04 18:18:08 +00007380# Extract the first word of "runtest", so it can be a program name with args.
7381set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384if test "${ac_cv_path_RUNTEST+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007386else
7387 case $RUNTEST in
7388 [\\/]* | ?:[\\/]*)
7389 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7390 ;;
7391 *)
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007399 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007401 break 2
7402 fi
7403done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404done
Reid Spencera773bd52006-08-04 18:18:08 +00007405IFS=$as_save_IFS
7406
Reid Spencera773bd52006-08-04 18:18:08 +00007407 ;;
7408esac
7409fi
7410RUNTEST=$ac_cv_path_RUNTEST
7411if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7413echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007415 { echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007417fi
7418
7419
7420
7421no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007422{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7423echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007424
7425# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007427 withval=$with_tclinclude; with_tclinclude=${withval}
7428else
7429 with_tclinclude=''
7430fi
7431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007432if test "${ac_cv_path_tclsh+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007434else
7435
7436if test x"${with_tclinclude}" != x ; then
7437 if test -f ${with_tclinclude}/tclsh ; then
7438 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7439 elif test -f ${with_tclinclude}/src/tclsh ; then
7440 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7441 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7443echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7444 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007445 fi
7446fi
Torok Edwin871384f2010-01-26 08:50:50 +00007447fi
7448
Reid Spencera773bd52006-08-04 18:18:08 +00007449
7450if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451 { echo "$as_me:$LINENO: result: none" >&5
7452echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007453 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7454do
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459if test "${ac_cv_path_TCLSH+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007461else
7462 case $TCLSH in
7463 [\\/]* | ?:[\\/]*)
7464 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7465 ;;
7466 *)
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007474 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007476 break 2
7477 fi
7478done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007479done
Reid Spencera773bd52006-08-04 18:18:08 +00007480IFS=$as_save_IFS
7481
7482 ;;
7483esac
7484fi
7485TCLSH=$ac_cv_path_TCLSH
7486if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007487 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7488echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490 { echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007492fi
7493
7494
7495 test -n "$TCLSH" && break
7496done
7497
7498 if test x"${TCLSH}" = x ; then
7499 ac_cv_path_tclsh='';
7500 else
7501 ac_cv_path_tclsh="${TCLSH}";
7502 fi
7503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7505echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007506 TCLSH="${ac_cv_path_tclsh}"
7507
7508fi
7509
Reid Spencera773bd52006-08-04 18:18:08 +00007510# Extract the first word of "zip", so it can be a program name with args.
7511set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514if test "${ac_cv_path_ZIP+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007516else
7517 case $ZIP in
7518 [\\/]* | ?:[\\/]*)
7519 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7520 ;;
7521 *)
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007529 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007531 break 2
7532 fi
7533done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007534done
Reid Spencera773bd52006-08-04 18:18:08 +00007535IFS=$as_save_IFS
7536
Reid Spencera773bd52006-08-04 18:18:08 +00007537 ;;
7538esac
7539fi
7540ZIP=$ac_cv_path_ZIP
7541if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007542 { echo "$as_me:$LINENO: result: $ZIP" >&5
7543echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007545 { echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007547fi
7548
7549
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007550for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007551do
7552 # Extract the first word of "$ac_prog", so it can be a program name with args.
7553set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556if test "${ac_cv_path_OCAMLC+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007558else
7559 case $OCAMLC in
7560 [\\/]* | ?:[\\/]*)
7561 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7562 ;;
7563 *)
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007571 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007573 break 2
7574 fi
7575done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007577IFS=$as_save_IFS
7578
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007579 ;;
7580esac
7581fi
7582OCAMLC=$ac_cv_path_OCAMLC
7583if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7585echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007587 { echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007589fi
7590
7591
Gordon Henriksene7072162008-03-07 18:20:01 +00007592 test -n "$OCAMLC" && break
7593done
7594
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007595for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007596do
7597 # Extract the first word of "$ac_prog", so it can be a program name with args.
7598set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007603else
7604 case $OCAMLOPT in
7605 [\\/]* | ?:[\\/]*)
7606 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7607 ;;
7608 *)
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007616 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007618 break 2
7619 fi
7620done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007621done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007622IFS=$as_save_IFS
7623
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007624 ;;
7625esac
7626fi
7627OCAMLOPT=$ac_cv_path_OCAMLOPT
7628if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007629 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7630echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007632 { echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007634fi
7635
7636
Gordon Henriksene7072162008-03-07 18:20:01 +00007637 test -n "$OCAMLOPT" && break
7638done
7639
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007640for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007641do
7642 # Extract the first word of "$ac_prog", so it can be a program name with args.
7643set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007648else
7649 case $OCAMLDEP in
7650 [\\/]* | ?:[\\/]*)
7651 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7652 ;;
7653 *)
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007661 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007663 break 2
7664 fi
7665done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007667IFS=$as_save_IFS
7668
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007669 ;;
7670esac
7671fi
7672OCAMLDEP=$ac_cv_path_OCAMLDEP
7673if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007674 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7675echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677 { echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007679fi
7680
7681
Gordon Henriksene7072162008-03-07 18:20:01 +00007682 test -n "$OCAMLDEP" && break
7683done
7684
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007685for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007686do
7687 # Extract the first word of "$ac_prog", so it can be a program name with args.
7688set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007693else
7694 case $OCAMLDOC in
7695 [\\/]* | ?:[\\/]*)
7696 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7697 ;;
7698 *)
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007706 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007708 break 2
7709 fi
7710done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007711done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007712IFS=$as_save_IFS
7713
7714 ;;
7715esac
7716fi
7717OCAMLDOC=$ac_cv_path_OCAMLDOC
7718if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007719 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7720echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007721else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007722 { echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007724fi
7725
7726
7727 test -n "$OCAMLDOC" && break
7728done
7729
Torok Edwincc499a42008-10-22 09:56:27 +00007730for ac_prog in gas as
7731do
7732 # Extract the first word of "$ac_prog", so it can be a program name with args.
7733set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736if test "${ac_cv_path_GAS+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007738else
7739 case $GAS in
7740 [\\/]* | ?:[\\/]*)
7741 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7742 ;;
7743 *)
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00007751 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007753 break 2
7754 fi
7755done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756done
Torok Edwincc499a42008-10-22 09:56:27 +00007757IFS=$as_save_IFS
7758
7759 ;;
7760esac
7761fi
7762GAS=$ac_cv_path_GAS
7763if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007764 { echo "$as_me:$LINENO: result: $GAS" >&5
7765echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007767 { echo "$as_me:$LINENO: result: no" >&5
7768echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007769fi
7770
7771
7772 test -n "$GAS" && break
7773done
7774
Reid Spencera773bd52006-08-04 18:18:08 +00007775
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007776{ echo "$as_me:$LINENO: checking for linker version" >&5
7777echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7778if test "${llvm_cv_link_version+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780else
7781
7782 version_string="$(ld -v 2>&1 | head -1)"
7783
7784 # Check for ld64.
7785 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007786 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007787 else
7788 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7789 fi
7790
7791fi
7792{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7793echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7794
7795cat >>confdefs.h <<_ACEOF
7796#define HOST_LINK_VERSION "$llvm_cv_link_version"
7797_ACEOF
7798
7799
7800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7802echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7803if test "${llvm_cv_link_use_r+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007805else
7806 ac_ext=c
7807ac_cpp='$CPP $CPPFLAGS'
7808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811
7812 oldcflags="$CFLAGS"
7813 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814 cat >conftest.$ac_ext <<_ACEOF
7815/* confdefs.h. */
7816_ACEOF
7817cat confdefs.h >>conftest.$ac_ext
7818cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007819/* end confdefs.h. */
7820
7821int
7822main ()
7823{
Dan Gohman39ed6782010-04-25 00:12:20 +00007824
Reid Spencera773bd52006-08-04 18:18:08 +00007825 ;
7826 return 0;
7827}
7828_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007829rm -f conftest.$ac_objext conftest$ac_exeext
7830if { (ac_try="$ac_link"
7831case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834esac
7835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_link") 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847esac
7848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857esac
7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_try") 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007863 llvm_cv_link_use_r=yes
7864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 echo "$as_me: failed program was:" >&5
7866sed 's/^/| /' conftest.$ac_ext >&5
7867
7868 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007870
Bill Wendlingebcceee2009-04-18 11:20:33 +00007871rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007873 CFLAGS="$oldcflags"
7874 ac_ext=c
7875ac_cpp='$CPP $CPPFLAGS'
7876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879
7880
7881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007882{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7883echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007884if test "$llvm_cv_link_use_r" = yes ; then
7885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007886cat >>confdefs.h <<\_ACEOF
7887#define HAVE_LINK_R 1
7888_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007889
7890 fi
7891
7892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007893{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7894echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7895if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007897else
7898 ac_ext=c
7899ac_cpp='$CPP $CPPFLAGS'
7900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903
7904 oldcflags="$CFLAGS"
7905 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906 cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h. */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007911/* end confdefs.h. */
7912
7913int
7914main ()
7915{
Dan Gohman39ed6782010-04-25 00:12:20 +00007916
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007917 ;
7918 return 0;
7919}
7920_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007921rm -f conftest.$ac_objext conftest$ac_exeext
7922if { (ac_try="$ac_link"
7923case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
7927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_link") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7936 { (case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939esac
7940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_try") 2>&5
7942 ac_status=$?
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; } &&
7945 { ac_try='test -s conftest$ac_exeext'
7946 { (case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949esac
7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_try") 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007955 llvm_cv_link_use_export_dynamic=yes
7956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007957 echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007961fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007962
Bill Wendlingebcceee2009-04-18 11:20:33 +00007963rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007964 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007965 CFLAGS="$oldcflags"
7966 ac_ext=c
7967ac_cpp='$CPP $CPPFLAGS'
7968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971
7972
7973fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007974{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7975echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007976if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007978cat >>confdefs.h <<\_ACEOF
7979#define HAVE_LINK_EXPORT_DYNAMIC 1
7980_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007981
7982 fi
7983
7984
Dan Gohmanda612d62010-06-01 14:56:56 +00007985{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7986echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7987if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990 ac_ext=c
7991ac_cpp='$CPP $CPPFLAGS'
7992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996 oldcflags="$CFLAGS"
7997
7998 # The following code is from the autoconf manual,
7999 # "11.13: Limitations of Usual Tools".
8000 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8001 # Use mktemp if possible; otherwise fall back on mkdir,
8002 # with $RANDOM to make collisions less likely.
8003 : ${TMPDIR=/tmp}
8004 {
8005 tmp=`
8006 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8007 ` &&
8008 test -n "$tmp" && test -d "$tmp"
8009 } || {
8010 tmp=$TMPDIR/foo$$-$RANDOM
8011 (umask 077 && mkdir "$tmp")
8012 } || exit $?
8013
Dan Gohmanda612d62010-06-01 14:56:56 +00008014 echo "{" > "$tmp/export.map"
8015 echo " global: main;" >> "$tmp/export.map"
8016 echo " local: *;" >> "$tmp/export.map"
8017 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008018
Dan Gohmanda612d62010-06-01 14:56:56 +00008019 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008020 cat >conftest.$ac_ext <<_ACEOF
8021/* confdefs.h. */
8022_ACEOF
8023cat confdefs.h >>conftest.$ac_ext
8024cat >>conftest.$ac_ext <<_ACEOF
8025/* end confdefs.h. */
8026
8027int
8028main ()
8029{
Dan Gohman39ed6782010-04-25 00:12:20 +00008030
Dan Gohman391569c2010-04-16 22:59:06 +00008031 ;
8032 return 0;
8033}
8034_ACEOF
8035rm -f conftest.$ac_objext conftest$ac_exeext
8036if { (ac_try="$ac_link"
8037case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040esac
8041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_link") 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8050 { (case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_try") 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest$ac_exeext'
8060 { (case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063esac
8064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_try") 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008069 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008070else
8071 echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
8073
Dan Gohman943005e2010-06-01 16:22:27 +00008074 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008075fi
8076
8077rm -f core conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008079 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008080 rmdir "$tmp"
8081 CFLAGS="$oldcflags"
8082 ac_ext=c
8083ac_cpp='$CPP $CPPFLAGS'
8084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8086ac_compiler_gnu=$ac_cv_c_compiler_gnu
8087
8088
8089fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008090{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8091echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8092if test "$llvm_cv_link_use_version_script" = yes ; then
8093 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008094
8095 fi
8096
8097
Reid Spencera773bd52006-08-04 18:18:08 +00008098
8099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008100{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8101echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8102if test "${ac_cv_c_const+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008105 cat >conftest.$ac_ext <<_ACEOF
8106/* confdefs.h. */
8107_ACEOF
8108cat confdefs.h >>conftest.$ac_ext
8109cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008110/* end confdefs.h. */
8111
8112int
8113main ()
8114{
8115/* FIXME: Include the comments suggested by Paul. */
8116#ifndef __cplusplus
8117 /* Ultrix mips cc rejects this. */
8118 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008119 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008120 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008121 char const *const *ccp;
8122 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008123 /* NEC SVR4.0.2 mips cc rejects this. */
8124 struct point {int x, y;};
8125 static struct point const zero = {0,0};
8126 /* AIX XL C 1.02.0.0 rejects this.
8127 It does not let you subtract one const X* pointer from another in
8128 an arm of an if-expression whose if-part is not a constant
8129 expression */
8130 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008132 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008133 ++ccp;
8134 p = (char**) ccp;
8135 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008136 { /* SCO 3.2v4 cc rejects this. */
8137 char *t;
8138 char const *s = 0 ? (char *) 0 : (char const *) 0;
8139
8140 *t++ = 0;
8141 if (s) return 0;
8142 }
8143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8144 int x[] = {25, 17};
8145 const int *foo = &x[0];
8146 ++foo;
8147 }
8148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8149 typedef const int *iptr;
8150 iptr p = 0;
8151 ++p;
8152 }
8153 { /* AIX XL C 1.02.0.0 rejects this saying
8154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8155 struct s { int j; const int *ap[3]; };
8156 struct s *b; b->j = 5;
8157 }
8158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8159 const int foo = 10;
8160 if (!foo) return 0;
8161 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008162 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008163#endif
8164
8165 ;
8166 return 0;
8167}
8168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169rm -f conftest.$ac_objext
8170if { (ac_try="$ac_compile"
8171case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174esac
8175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_compile") 2>conftest.er1
8177 ac_status=$?
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8184 { (case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187esac
8188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_try") 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197esac
8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_try") 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008203 ac_cv_c_const=yes
8204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008205 echo "$as_me: failed program was:" >&5
8206sed 's/^/| /' conftest.$ac_ext >&5
8207
8208 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210
Reid Spencera773bd52006-08-04 18:18:08 +00008211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008213{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8214echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008215if test $ac_cv_c_const = no; then
8216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008217cat >>confdefs.h <<\_ACEOF
8218#define const
8219_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008220
8221fi
8222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008223
8224
8225
8226
8227
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008228ac_header_dirent=no
8229for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008230 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8231{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8232echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236 cat >conftest.$ac_ext <<_ACEOF
8237/* confdefs.h. */
8238_ACEOF
8239cat confdefs.h >>conftest.$ac_ext
8240cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008241/* end confdefs.h. */
8242#include <sys/types.h>
8243#include <$ac_hdr>
8244
8245int
8246main ()
8247{
8248if ((DIR *) 0)
8249return 0;
8250 ;
8251 return 0;
8252}
8253_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254rm -f conftest.$ac_objext
8255if { (ac_try="$ac_compile"
8256case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_compile") 2>conftest.er1
8262 ac_status=$?
8263 grep -v '^ *+' conftest.er1 >conftest.err
8264 rm -f conftest.er1
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8269 { (case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8272esac
8273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_try") 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try='test -s conftest.$ac_objext'
8279 { (case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8282esac
8283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_try") 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008288 eval "$as_ac_Header=yes"
8289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008290 echo "$as_me: failed program was:" >&5
8291sed 's/^/| /' conftest.$ac_ext >&5
8292
8293 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008295
Reid Spencera773bd52006-08-04 18:18:08 +00008296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298ac_res=`eval echo '${'$as_ac_Header'}'`
8299 { echo "$as_me:$LINENO: result: $ac_res" >&5
8300echo "${ECHO_T}$ac_res" >&6; }
8301if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008302 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008303#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008304_ACEOF
8305
8306ac_header_dirent=$ac_hdr; break
8307fi
8308
8309done
8310# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8311if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008312 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8313echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8314if test "${ac_cv_search_opendir+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008316else
8317 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318cat >conftest.$ac_ext <<_ACEOF
8319/* confdefs.h. */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008323/* end confdefs.h. */
8324
Reid Spencera773bd52006-08-04 18:18:08 +00008325/* Override any GCC internal prototype to avoid an error.
8326 Use char because int might match the return type of a GCC
8327 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008328#ifdef __cplusplus
8329extern "C"
8330#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008331char opendir ();
8332int
8333main ()
8334{
Reid Spencera773bd52006-08-04 18:18:08 +00008335return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008336 ;
8337 return 0;
8338}
8339_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008340for ac_lib in '' dir; do
8341 if test -z "$ac_lib"; then
8342 ac_res="none required"
8343 else
8344 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008346 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347 rm -f conftest.$ac_objext conftest$ac_exeext
8348if { (ac_try="$ac_link"
8349case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352esac
8353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_link") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362 { (case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365esac
8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_try") 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008381 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008382else
8383 echo "$as_me: failed program was:" >&5
8384sed 's/^/| /' conftest.$ac_ext >&5
8385
8386
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008388
Bill Wendlingebcceee2009-04-18 11:20:33 +00008389rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008390 conftest$ac_exeext
8391 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008392 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008393fi
John Criswell7a73b802003-06-30 21:59:07 +00008394done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008395if test "${ac_cv_search_opendir+set}" = set; then
8396 :
Reid Spencera773bd52006-08-04 18:18:08 +00008397else
8398 ac_cv_search_opendir=no
8399fi
8400rm conftest.$ac_ext
8401LIBS=$ac_func_search_save_LIBS
8402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008403{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8404echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008405ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008406if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008408
Reid Spencera773bd52006-08-04 18:18:08 +00008409fi
8410
8411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008412 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8413echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8414if test "${ac_cv_search_opendir+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008416else
8417 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h. */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008423/* end confdefs.h. */
8424
8425/* Override any GCC internal prototype to avoid an error.
8426 Use char because int might match the return type of a GCC
8427 builtin and then its argument prototype would still apply. */
8428#ifdef __cplusplus
8429extern "C"
8430#endif
8431char opendir ();
8432int
8433main ()
8434{
8435return opendir ();
8436 ;
8437 return 0;
8438}
8439_ACEOF
8440for ac_lib in '' x; do
8441 if test -z "$ac_lib"; then
8442 ac_res="none required"
8443 else
8444 ac_res=-l$ac_lib
8445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8446 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008447 rm -f conftest.$ac_objext conftest$ac_exeext
8448if { (ac_try="$ac_link"
8449case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452esac
8453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_link") 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462 { (case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8465esac
8466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_try") 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; } &&
8471 { ac_try='test -s conftest$ac_exeext'
8472 { (case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8475esac
8476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_try") 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008481 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008482else
8483 echo "$as_me: failed program was:" >&5
8484sed 's/^/| /' conftest.$ac_ext >&5
8485
8486
Reid Spencera773bd52006-08-04 18:18:08 +00008487fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008488
Bill Wendlingebcceee2009-04-18 11:20:33 +00008489rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490 conftest$ac_exeext
8491 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008492 break
8493fi
8494done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008495if test "${ac_cv_search_opendir+set}" = set; then
8496 :
Reid Spencera773bd52006-08-04 18:18:08 +00008497else
8498 ac_cv_search_opendir=no
8499fi
8500rm conftest.$ac_ext
8501LIBS=$ac_func_search_save_LIBS
8502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008503{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8504echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008505ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008506if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8508
8509fi
8510
8511fi
John Criswell7a73b802003-06-30 21:59:07 +00008512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513
John Criswell7a73b802003-06-30 21:59:07 +00008514for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008515do
8516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522fi
8523ac_res=`eval echo '${'$as_ac_Header'}'`
8524 { echo "$as_me:$LINENO: result: $ac_res" >&5
8525echo "${ECHO_T}$ac_res" >&6; }
8526else
8527 # Is the header compilable?
8528{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8530cat >conftest.$ac_ext <<_ACEOF
8531/* confdefs.h. */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h. */
8536$ac_includes_default
8537#include <$ac_header>
8538_ACEOF
8539rm -f conftest.$ac_objext
8540if { (ac_try="$ac_compile"
8541case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8544esac
8545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554 { (case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8557esac
8558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_try") 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest.$ac_objext'
8564 { (case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567esac
8568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_try") 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_header_compiler=yes
8574else
8575 echo "$as_me: failed program was:" >&5
8576sed 's/^/| /' conftest.$ac_ext >&5
8577
8578 ac_header_compiler=no
8579fi
8580
8581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8583echo "${ECHO_T}$ac_header_compiler" >&6; }
8584
8585# Is the header present?
8586{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8587echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8588cat >conftest.$ac_ext <<_ACEOF
8589/* confdefs.h. */
8590_ACEOF
8591cat confdefs.h >>conftest.$ac_ext
8592cat >>conftest.$ac_ext <<_ACEOF
8593/* end confdefs.h. */
8594#include <$ac_header>
8595_ACEOF
8596if { (ac_try="$ac_cpp conftest.$ac_ext"
8597case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8600esac
8601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } >/dev/null; then
8609 if test -s conftest.err; then
8610 ac_cpp_err=$ac_c_preproc_warn_flag
8611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8612 else
8613 ac_cpp_err=
8614 fi
8615else
8616 ac_cpp_err=yes
8617fi
8618if test -z "$ac_cpp_err"; then
8619 ac_header_preproc=yes
8620else
8621 echo "$as_me: failed program was:" >&5
8622sed 's/^/| /' conftest.$ac_ext >&5
8623
8624 ac_header_preproc=no
8625fi
8626
8627rm -f conftest.err conftest.$ac_ext
8628{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8629echo "${ECHO_T}$ac_header_preproc" >&6; }
8630
8631# So? What about this header?
8632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8633 yes:no: )
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8637echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8638 ac_header_preproc=yes
8639 ;;
8640 no:yes:* )
8641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8644echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8646echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8648echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8653 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008654## ------------------------------------ ##
8655## Report this to http://llvm.org/bugs/ ##
8656## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008657_ASBOX
8658 ) | sed "s/^/$as_me: WARNING: /" >&2
8659 ;;
8660esac
8661{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8665else
8666 eval "$as_ac_Header=\$ac_header_preproc"
8667fi
8668ac_res=`eval echo '${'$as_ac_Header'}'`
8669 { echo "$as_me:$LINENO: result: $ac_res" >&5
8670echo "${ECHO_T}$ac_res" >&6; }
8671
8672fi
8673if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008674 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008676_ACEOF
8677
8678fi
8679
8680done
8681
Reid Spencera773bd52006-08-04 18:18:08 +00008682# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008683if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008684 enableval=$enable_ltdl_install;
8685fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008686
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008688
8689
8690if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008691 INSTALL_LTDL_TRUE=
8692 INSTALL_LTDL_FALSE='#'
8693else
8694 INSTALL_LTDL_TRUE='#'
8695 INSTALL_LTDL_FALSE=
8696fi
8697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008698
8699
8700if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008701 CONVENIENCE_LTDL_TRUE=
8702 CONVENIENCE_LTDL_FALSE='#'
8703else
8704 CONVENIENCE_LTDL_TRUE='#'
8705 CONVENIENCE_LTDL_FALSE=
8706fi
8707
8708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008709{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8710echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008711library_names_spec=
8712libname_spec='lib$name'
8713soname_spec=
8714shrext_cmds=".so"
8715postinstall_cmds=
8716postuninstall_cmds=
8717finish_cmds=
8718finish_eval=
8719shlibpath_var=
8720shlibpath_overrides_runpath=unknown
8721version_type=none
8722dynamic_linker="$host_os ld.so"
8723sys_lib_dlsearch_path_spec="/lib /usr/lib"
8724if test "$GCC" = yes; then
8725 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8726 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8727 # if the path contains ";" then we assume it to be the separator
8728 # otherwise default to the standard path separator (i.e. ":") - it is
8729 # assumed that no part of a normal pathname contains ";" but that should
8730 # okay in the real world where ";" in dirpaths is itself problematic.
8731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8732 else
8733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8734 fi
8735else
8736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8737fi
8738need_lib_prefix=unknown
8739hardcode_into_libs=no
8740
8741# when you set need_version to no, make sure it does not cause -set_version
8742# flags to be left without arguments
8743need_version=unknown
8744
8745case $host_os in
8746aix3*)
8747 version_type=linux
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8749 shlibpath_var=LIBPATH
8750
8751 # AIX 3 has no versioning support, so we append a major version to the name.
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 ;;
8754
8755aix4* | aix5*)
8756 version_type=linux
8757 need_lib_prefix=no
8758 need_version=no
8759 hardcode_into_libs=yes
8760 if test "$host_cpu" = ia64; then
8761 # AIX 5 supports IA64
8762 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8763 shlibpath_var=LD_LIBRARY_PATH
8764 else
8765 # With GCC up to 2.95.x, collect2 would create an import file
8766 # for dependence libraries. The import file would start with
8767 # the line `#! .'. This would cause the generated library to
8768 # depend on `.', always an invalid library. This was fixed in
8769 # development snapshots of GCC prior to 3.0.
8770 case $host_os in
8771 aix4 | aix4.[01] | aix4.[01].*)
8772 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8773 echo ' yes '
8774 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8775 :
8776 else
8777 can_build_shared=no
8778 fi
8779 ;;
8780 esac
8781 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8782 # soname into executable. Probably we can add versioning support to
8783 # collect2, so additional links can be useful in future.
8784 if test "$aix_use_runtimelinking" = yes; then
8785 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8786 # instead of lib<name>.a to let people know that these are not
8787 # typical AIX shared libraries.
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8789 else
8790 # We preserve .a as extension for shared libraries through AIX4.2
8791 # and later when we are not doing run time linking.
8792 library_names_spec='${libname}${release}.a $libname.a'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8794 fi
8795 shlibpath_var=LIBPATH
8796 fi
8797 ;;
8798
8799amigaos*)
8800 library_names_spec='$libname.ixlibrary $libname.a'
8801 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8802 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8803 ;;
8804
8805beos*)
8806 library_names_spec='${libname}${shared_ext}'
8807 dynamic_linker="$host_os ld.so"
8808 shlibpath_var=LIBRARY_PATH
8809 ;;
8810
8811bsdi[45]*)
8812 version_type=linux
8813 need_version=no
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8817 shlibpath_var=LD_LIBRARY_PATH
8818 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8819 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8820 # the default ld.so.conf also contains /usr/contrib/lib and
8821 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8822 # libtool to hard-code these into programs
8823 ;;
8824
8825cygwin* | mingw* | pw32*)
8826 version_type=windows
8827 shrext_cmds=".dll"
8828 need_version=no
8829 need_lib_prefix=no
8830
8831 case $GCC,$host_os in
8832 yes,cygwin* | yes,mingw* | yes,pw32*)
8833 library_names_spec='$libname.dll.a'
8834 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8835 postinstall_cmds='base_file=`basename \${file}`~
8836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8837 dldir=$destdir/`dirname \$dlpath`~
8838 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008839 $install_prog $dir/$dlname \$dldir/$dlname~
8840 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8842 dlpath=$dir/\$dldll~
8843 $rm \$dlpath'
8844 shlibpath_overrides_runpath=yes
8845
8846 case $host_os in
8847 cygwin*)
8848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8849 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8850 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8851 ;;
8852 mingw*)
8853 # MinGW DLLs use traditional 'lib' prefix
8854 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8856 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8857 # It is most probably a Windows format PATH printed by
8858 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8859 # path with ; separators, and with drive letters. We can handle the
8860 # drive letters (cygwin fileutils understands them), so leave them,
8861 # especially as we might pass files found there to a mingw objdump,
8862 # which wouldn't understand a cygwinified path. Ahh.
8863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8864 else
8865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8866 fi
8867 ;;
8868 pw32*)
8869 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008870 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008871 ;;
8872 esac
8873 ;;
8874
8875 *)
8876 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8877 ;;
8878 esac
8879 dynamic_linker='Win32 ld.exe'
8880 # FIXME: first we should search . and the directory the executable is in
8881 shlibpath_var=PATH
8882 ;;
8883
8884darwin* | rhapsody*)
8885 dynamic_linker="$host_os dyld"
8886 version_type=darwin
8887 need_lib_prefix=no
8888 need_version=no
8889 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8890 soname_spec='${libname}${release}${major}$shared_ext'
8891 shlibpath_overrides_runpath=yes
8892 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008893 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008894 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8895 if test "$GCC" = yes; then
8896 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8897 else
8898 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8899 fi
8900 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8901 ;;
8902
8903dgux*)
8904 version_type=linux
8905 need_lib_prefix=no
8906 need_version=no
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 ;;
8911
Eric Christopher360fa9a2011-10-26 00:42:12 +00008912freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008913 dynamic_linker=no
8914 ;;
8915
8916kfreebsd*-gnu)
8917 version_type=linux
8918 need_lib_prefix=no
8919 need_version=no
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 hardcode_into_libs=yes
8925 dynamic_linker='GNU ld.so'
8926 ;;
8927
Reid Spencera773bd52006-08-04 18:18:08 +00008928freebsd* | dragonfly*)
8929 # DragonFly does not have aout. When/if they implement a new
8930 # versioning mechanism, adjust this.
8931 if test -x /usr/bin/objformat; then
8932 objformat=`/usr/bin/objformat`
8933 else
8934 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008935 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008936 *) objformat=elf ;;
8937 esac
8938 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008939 version_type=freebsd-$objformat
8940 case $version_type in
8941 freebsd-elf*)
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8943 need_version=no
8944 need_lib_prefix=no
8945 ;;
8946 freebsd-*)
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8948 need_version=yes
8949 ;;
8950 esac
8951 shlibpath_var=LD_LIBRARY_PATH
8952 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008953 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008954 shlibpath_overrides_runpath=yes
8955 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008956 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008957 shlibpath_overrides_runpath=yes
8958 hardcode_into_libs=yes
8959 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008962 shlibpath_overrides_runpath=no
8963 hardcode_into_libs=yes
8964 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008965 freebsd*) # from 4.6 on
8966 shlibpath_overrides_runpath=yes
8967 hardcode_into_libs=yes
8968 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008969 esac
8970 ;;
8971
8972gnu*)
8973 version_type=linux
8974 need_lib_prefix=no
8975 need_version=no
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 hardcode_into_libs=yes
8980 ;;
8981
8982hpux9* | hpux10* | hpux11*)
8983 # Give a soname corresponding to the major version so that dld.sl refuses to
8984 # link against other versions.
8985 version_type=sunos
8986 need_lib_prefix=no
8987 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008988 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008989 ia64*)
8990 shrext_cmds='.so'
8991 hardcode_into_libs=yes
8992 dynamic_linker="$host_os dld.so"
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 if test "X$HPUX_IA64_MODE" = X32; then
8998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8999 else
9000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9001 fi
9002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9003 ;;
9004 hppa*64*)
9005 shrext_cmds='.sl'
9006 hardcode_into_libs=yes
9007 dynamic_linker="$host_os dld.sl"
9008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9014 ;;
9015 *)
9016 shrext_cmds='.sl'
9017 dynamic_linker="$host_os dld.sl"
9018 shlibpath_var=SHLIB_PATH
9019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 ;;
9023 esac
9024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9025 postinstall_cmds='chmod 555 $lib'
9026 ;;
9027
Reid Spencera773bd52006-08-04 18:18:08 +00009028interix3*)
9029 version_type=linux
9030 need_lib_prefix=no
9031 need_version=no
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 hardcode_into_libs=yes
9038 ;;
9039
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009040irix5* | irix6* | nonstopux*)
9041 case $host_os in
9042 nonstopux*) version_type=nonstopux ;;
9043 *)
9044 if test "$lt_cv_prog_gnu_ld" = yes; then
9045 version_type=linux
9046 else
9047 version_type=irix
9048 fi ;;
9049 esac
9050 need_lib_prefix=no
9051 need_version=no
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9054 case $host_os in
9055 irix5* | nonstopux*)
9056 libsuff= shlibsuff=
9057 ;;
9058 *)
9059 case $LD in # libtool.m4 will add one of these switches to LD
9060 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9061 libsuff= shlibsuff= libmagic=32-bit;;
9062 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9063 libsuff=32 shlibsuff=N32 libmagic=N32;;
9064 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9065 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9066 *) libsuff= shlibsuff= libmagic=never-match;;
9067 esac
9068 ;;
9069 esac
9070 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9071 shlibpath_overrides_runpath=no
9072 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9073 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9074 hardcode_into_libs=yes
9075 ;;
9076
9077# No shared lib support for Linux oldld, aout, or coff.
9078linux*oldld* | linux*aout* | linux*coff*)
9079 dynamic_linker=no
9080 ;;
9081
9082# This must be Linux ELF.
9083linux*)
9084 version_type=linux
9085 need_lib_prefix=no
9086 need_version=no
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=no
9092 # This implies no fast_install, which is unacceptable.
9093 # Some rework will be needed to allow for fast_install
9094 # before this can be enabled.
9095 hardcode_into_libs=yes
9096
9097 # Append ld.so.conf contents to the search path
9098 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009099 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009100 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9101 fi
9102
9103 # We used to test for /lib/ld.so.1 and disable shared libraries on
9104 # powerpc, because MkLinux only supported shared libraries with the
9105 # GNU dynamic linker. Since this was broken with cross compilers,
9106 # most powerpc-linux boxes support dynamic linking these days and
9107 # people can always --disable-shared, the test was removed, and we
9108 # assume the GNU/Linux dynamic linker is in use.
9109 dynamic_linker='GNU/Linux ld.so'
9110 ;;
9111
9112knetbsd*-gnu)
9113 version_type=linux
9114 need_lib_prefix=no
9115 need_version=no
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=no
9120 hardcode_into_libs=yes
9121 dynamic_linker='GNU ld.so'
9122 ;;
9123
9124netbsd*)
9125 version_type=sunos
9126 need_lib_prefix=no
9127 need_version=no
9128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9131 dynamic_linker='NetBSD (a.out) ld.so'
9132 else
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 dynamic_linker='NetBSD ld.elf_so'
9136 fi
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=yes
9139 hardcode_into_libs=yes
9140 ;;
9141
9142newsos6)
9143 version_type=linux
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 shlibpath_overrides_runpath=yes
9147 ;;
9148
9149nto-qnx*)
9150 version_type=linux
9151 need_lib_prefix=no
9152 need_version=no
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 shlibpath_overrides_runpath=yes
9157 ;;
9158
9159openbsd*)
9160 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009161 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009162 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009163 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9164 case $host_os in
9165 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9166 *) need_version=no ;;
9167 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9172 case $host_os in
9173 openbsd2.[89] | openbsd2.[89].*)
9174 shlibpath_overrides_runpath=no
9175 ;;
9176 *)
9177 shlibpath_overrides_runpath=yes
9178 ;;
9179 esac
9180 else
9181 shlibpath_overrides_runpath=yes
9182 fi
9183 ;;
9184
9185os2*)
9186 libname_spec='$name'
9187 shrext_cmds=".dll"
9188 need_lib_prefix=no
9189 library_names_spec='$libname${shared_ext} $libname.a'
9190 dynamic_linker='OS/2 ld.exe'
9191 shlibpath_var=LIBPATH
9192 ;;
9193
9194osf3* | osf4* | osf5*)
9195 version_type=osf
9196 need_lib_prefix=no
9197 need_version=no
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9202 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9203 ;;
9204
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009205solaris*)
9206 version_type=linux
9207 need_lib_prefix=no
9208 need_version=no
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=yes
9213 hardcode_into_libs=yes
9214 # ldd complains unless libraries are executable
9215 postinstall_cmds='chmod +x $lib'
9216 ;;
9217
9218sunos4*)
9219 version_type=sunos
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9221 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 shlibpath_overrides_runpath=yes
9224 if test "$with_gnu_ld" = yes; then
9225 need_lib_prefix=no
9226 fi
9227 need_version=yes
9228 ;;
9229
Reid Spencera773bd52006-08-04 18:18:08 +00009230sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009231 version_type=linux
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 case $host_vendor in
9236 sni)
9237 shlibpath_overrides_runpath=no
9238 need_lib_prefix=no
9239 export_dynamic_flag_spec='${wl}-Blargedynsym'
9240 runpath_var=LD_RUN_PATH
9241 ;;
9242 siemens)
9243 need_lib_prefix=no
9244 ;;
9245 motorola)
9246 need_lib_prefix=no
9247 need_version=no
9248 shlibpath_overrides_runpath=no
9249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9250 ;;
9251 esac
9252 ;;
9253
9254sysv4*MP*)
9255 if test -d /usr/nec ;then
9256 version_type=linux
9257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9258 soname_spec='$libname${shared_ext}.$major'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 fi
9261 ;;
9262
Reid Spencera773bd52006-08-04 18:18:08 +00009263sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9264 version_type=freebsd-elf
9265 need_lib_prefix=no
9266 need_version=no
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 hardcode_into_libs=yes
9271 if test "$with_gnu_ld" = yes; then
9272 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9273 shlibpath_overrides_runpath=no
9274 else
9275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9276 shlibpath_overrides_runpath=yes
9277 case $host_os in
9278 sco3.2v5*)
9279 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9280 ;;
9281 esac
9282 fi
9283 sys_lib_dlsearch_path_spec='/usr/lib'
9284 ;;
9285
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009286uts4*)
9287 version_type=linux
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 ;;
9292
9293*)
9294 dynamic_linker=no
9295 ;;
9296esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009297{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9298echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009299test "$dynamic_linker" = no && can_build_shared=no
9300
Reid Spencera773bd52006-08-04 18:18:08 +00009301variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9302if test "$GCC" = yes; then
9303 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9304fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009305
Reid Spencera773bd52006-08-04 18:18:08 +00009306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009307{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9308echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9309if test "${libltdl_cv_shlibext+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009311else
9312
9313module=yes
9314eval libltdl_cv_shlibext=$shrext_cmds
9315
9316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009317{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9318echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009319if test -n "$libltdl_cv_shlibext"; then
9320
9321cat >>confdefs.h <<_ACEOF
9322#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9323_ACEOF
9324
9325fi
9326
9327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009328{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9329echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9330if test "${libltdl_cv_shlibpath_var+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332else
9333 libltdl_cv_shlibpath_var="$shlibpath_var"
9334fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009335{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9336echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337if test -n "$libltdl_cv_shlibpath_var"; then
9338
9339cat >>confdefs.h <<_ACEOF
9340#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9341_ACEOF
9342
9343fi
9344
9345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009346{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9347echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9348if test "${libltdl_cv_sys_search_path+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009350else
9351 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009353{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9354echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009355if test -n "$libltdl_cv_sys_search_path"; then
9356 sys_search_path=
9357 for dir in $libltdl_cv_sys_search_path; do
9358 if test -z "$sys_search_path"; then
9359 sys_search_path="$dir"
9360 else
9361 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9362 fi
9363 done
9364
9365cat >>confdefs.h <<_ACEOF
9366#define LTDL_SYSSEARCHPATH "$sys_search_path"
9367_ACEOF
9368
9369fi
9370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009371{ echo "$as_me:$LINENO: checking for objdir" >&5
9372echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9373if test "${libltdl_cv_objdir+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009375else
9376 libltdl_cv_objdir="$objdir"
9377 if test -n "$objdir"; then
9378 :
9379 else
9380 rm -f .libs 2>/dev/null
9381 mkdir .libs 2>/dev/null
9382 if test -d .libs; then
9383 libltdl_cv_objdir=.libs
9384 else
9385 # MS-DOS does not allow filenames that begin with a dot.
9386 libltdl_cv_objdir=_libs
9387 fi
9388 rmdir .libs 2>/dev/null
9389 fi
9390
9391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009392{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9393echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009394
9395cat >>confdefs.h <<_ACEOF
9396#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9397_ACEOF
9398
9399
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400
9401
9402
9403
9404# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009405{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9406echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9407if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009409else
9410
9411# These are sane defaults that work on at least a few old systems.
9412# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9413
9414# Character class describing NM global symbol codes.
9415symcode='[BCDEGRST]'
9416
9417# Regexp to match symbols that can be accessed directly from C.
9418sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9419
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420# Transform an extracted symbol line into a proper C declaration
9421lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9422
9423# Transform an extracted symbol line into symbol name and symbol address
9424lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9425
9426# Define system-specific variables.
9427case $host_os in
9428aix*)
9429 symcode='[BCDT]'
9430 ;;
9431cygwin* | mingw* | pw32*)
9432 symcode='[ABCDGISTW]'
9433 ;;
9434hpux*) # Its linker distinguishes data from code symbols
9435 if test "$host_cpu" = ia64; then
9436 symcode='[ABCDEGRST]'
9437 fi
9438 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9439 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9440 ;;
9441linux*)
9442 if test "$host_cpu" = ia64; then
9443 symcode='[ABCDGIRSTW]'
9444 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9445 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9446 fi
9447 ;;
9448irix* | nonstopux*)
9449 symcode='[BCDEGRST]'
9450 ;;
9451osf*)
9452 symcode='[BCDEGQRST]'
9453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009454solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009455 symcode='[BDRT]'
9456 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009457sco3.2v5*)
9458 symcode='[DT]'
9459 ;;
9460sysv4.2uw2*)
9461 symcode='[DT]'
9462 ;;
9463sysv5* | sco5v6* | unixware* | OpenUNIX*)
9464 symcode='[ABDT]'
9465 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009466sysv4)
9467 symcode='[DFNSTU]'
9468 ;;
9469esac
9470
9471# Handle CRLF in mingw tool chain
9472opt_cr=
9473case $build_os in
9474mingw*)
9475 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9476 ;;
9477esac
9478
9479# If we're using GNU nm, then use its standard symbol codes.
9480case `$NM -V 2>&1` in
9481*GNU* | *'with BFD'*)
9482 symcode='[ABCDGIRSTW]' ;;
9483esac
9484
9485# Try without a prefix undercore, then with it.
9486for ac_symprfx in "" "_"; do
9487
Reid Spencera773bd52006-08-04 18:18:08 +00009488 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9489 symxfrm="\\1 $ac_symprfx\\2 \\2"
9490
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009492 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009493
9494 # Check to see that the pipe works correctly.
9495 pipe_works=no
9496
9497 rm -f conftest*
9498 cat > conftest.$ac_ext <<EOF
9499#ifdef __cplusplus
9500extern "C" {
9501#endif
9502char nm_test_var;
9503void nm_test_func(){}
9504#ifdef __cplusplus
9505}
9506#endif
9507int main(){nm_test_var='a';nm_test_func();return(0);}
9508EOF
9509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511 (eval $ac_compile) 2>&5
9512 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009515 # Now try to grab the symbols.
9516 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009517 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009518 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9519 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522 # Try sorting and uniquifying the output.
9523 if sort "$nlist" | uniq > "$nlist"T; then
9524 mv -f "$nlist"T "$nlist"
9525 else
9526 rm -f "$nlist"T
9527 fi
9528
9529 # Make sure that we snagged all the symbols we need.
9530 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9531 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9532 cat <<EOF > conftest.$ac_ext
9533#ifdef __cplusplus
9534extern "C" {
9535#endif
9536
9537EOF
9538 # Now generate the symbol file.
9539 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9540
9541 cat <<EOF >> conftest.$ac_ext
9542#if defined (__STDC__) && __STDC__
9543# define lt_ptr_t void *
9544#else
9545# define lt_ptr_t char *
9546# define const
9547#endif
9548
9549/* The mapping between symbol names and symbols. */
9550const struct {
9551 const char *name;
9552 lt_ptr_t address;
9553}
9554lt_preloaded_symbols[] =
9555{
9556EOF
9557 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9558 cat <<\EOF >> conftest.$ac_ext
9559 {0, (lt_ptr_t) 0}
9560};
9561
9562#ifdef __cplusplus
9563}
9564#endif
9565EOF
9566 # Now try linking the two files.
9567 mv conftest.$ac_objext conftstm.$ac_objext
9568 lt_save_LIBS="$LIBS"
9569 lt_save_CFLAGS="$CFLAGS"
9570 LIBS="conftstm.$ac_objext"
9571 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009573 (eval $ac_link) 2>&5
9574 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577 pipe_works=yes
9578 fi
9579 LIBS="$lt_save_LIBS"
9580 CFLAGS="$lt_save_CFLAGS"
9581 else
9582 echo "cannot find nm_test_func in $nlist" >&5
9583 fi
9584 else
9585 echo "cannot find nm_test_var in $nlist" >&5
9586 fi
9587 else
9588 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9589 fi
9590 else
9591 echo "$progname: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9593 fi
9594 rm -f conftest* conftst*
9595
9596 # Do not use the global_symbol_pipe unless it works.
9597 if test "$pipe_works" = yes; then
9598 break
9599 else
9600 lt_cv_sys_global_symbol_pipe=
9601 fi
9602done
9603
9604fi
9605
9606if test -z "$lt_cv_sys_global_symbol_pipe"; then
9607 lt_cv_sys_global_symbol_to_cdecl=
9608fi
9609if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009610 { echo "$as_me:$LINENO: result: failed" >&5
9611echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009613 { echo "$as_me:$LINENO: result: ok" >&5
9614echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009615fi
9616
9617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009618{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9619echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9620if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622else
9623 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9624 libltdl_cv_preloaded_symbols=yes
9625 else
9626 libltdl_cv_preloaded_symbols=no
9627 fi
9628
9629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009630{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9631echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009632if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009634cat >>confdefs.h <<\_ACEOF
9635#define HAVE_PRELOADED_SYMBOLS 1
9636_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009637
9638fi
9639
9640LIBADD_DL=
9641
9642ac_ext=c
9643ac_cpp='$CPP $CPPFLAGS'
9644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9646ac_compiler_gnu=$ac_cv_c_compiler_gnu
9647
9648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009649{ echo "$as_me:$LINENO: checking for shl_load" >&5
9650echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9651if test "${ac_cv_func_shl_load+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
9654 cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
9660/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9662#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009664/* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char shl_load (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9668
9669#ifdef __STDC__
9670# include <limits.h>
9671#else
9672# include <assert.h>
9673#endif
9674
9675#undef shl_load
9676
9677/* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9680#ifdef __cplusplus
9681extern "C"
9682#endif
9683char shl_load ();
9684/* The GNU C library defines this for functions which it implements
9685 to always fail with ENOSYS. Some functions are actually named
9686 something starting with __ and the normal name is an alias. */
9687#if defined __stub_shl_load || defined __stub___shl_load
9688choke me
9689#endif
9690
9691int
9692main ()
9693{
9694return shl_load ();
9695 ;
9696 return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext conftest$ac_exeext
9700if { (ac_try="$ac_link"
9701case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9704esac
9705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_link") 2>conftest.er1
9707 ac_status=$?
9708 grep -v '^ *+' conftest.er1 >conftest.err
9709 rm -f conftest.er1
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9714 { (case "(($ac_try" in
9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9717esac
9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_try") 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727esac
9728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_try") 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_func_shl_load=yes
9734else
9735 echo "$as_me: failed program was:" >&5
9736sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 ac_cv_func_shl_load=no
9739fi
9740
9741rm -f core conftest.err conftest.$ac_objext \
9742 conftest$ac_exeext conftest.$ac_ext
9743fi
9744{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9745echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9746if test $ac_cv_func_shl_load = yes; then
9747
9748cat >>confdefs.h <<\_ACEOF
9749#define HAVE_SHL_LOAD 1
9750_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751
9752else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009753 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9754echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9755if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757else
9758 ac_check_lib_save_LIBS=$LIBS
9759LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009760cat >conftest.$ac_ext <<_ACEOF
9761/* confdefs.h. */
9762_ACEOF
9763cat confdefs.h >>conftest.$ac_ext
9764cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009765/* end confdefs.h. */
9766
Reid Spencera773bd52006-08-04 18:18:08 +00009767/* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770#ifdef __cplusplus
9771extern "C"
9772#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773char shl_load ();
9774int
9775main ()
9776{
Reid Spencera773bd52006-08-04 18:18:08 +00009777return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009778 ;
9779 return 0;
9780}
9781_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009782rm -f conftest.$ac_objext conftest$ac_exeext
9783if { (ac_try="$ac_link"
9784case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800esac
9801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_try") 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009816 ac_cv_lib_dld_shl_load=yes
9817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009818 echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009823
Bill Wendlingebcceee2009-04-18 11:20:33 +00009824rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009825 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826LIBS=$ac_check_lib_save_LIBS
9827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009828{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9829echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9830if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009832cat >>confdefs.h <<\_ACEOF
9833#define HAVE_SHL_LOAD 1
9834_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835
9836 LIBADD_DL="$LIBADD_DL -ldld"
9837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009838 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9839echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9840if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842else
9843 ac_check_lib_save_LIBS=$LIBS
9844LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009845cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h. */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850/* end confdefs.h. */
9851
Reid Spencera773bd52006-08-04 18:18:08 +00009852/* Override any GCC internal prototype to avoid an error.
9853 Use char because int might match the return type of a GCC
9854 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855#ifdef __cplusplus
9856extern "C"
9857#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858char dlopen ();
9859int
9860main ()
9861{
Reid Spencera773bd52006-08-04 18:18:08 +00009862return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863 ;
9864 return 0;
9865}
9866_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009867rm -f conftest.$ac_objext conftest$ac_exeext
9868if { (ac_try="$ac_link"
9869case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_link") 2>conftest.er1
9875 ac_status=$?
9876 grep -v '^ *+' conftest.er1 >conftest.err
9877 rm -f conftest.er1
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9882 { (case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9885esac
9886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_try") 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest$ac_exeext'
9892 { (case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895esac
9896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_try") 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901 ac_cv_lib_dl_dlopen=yes
9902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009903 echo "$as_me: failed program was:" >&5
9904sed 's/^/| /' conftest.$ac_ext >&5
9905
9906 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009908
Bill Wendlingebcceee2009-04-18 11:20:33 +00009909rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009910 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911LIBS=$ac_check_lib_save_LIBS
9912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009913{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9914echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9915if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009917cat >>confdefs.h <<\_ACEOF
9918#define HAVE_LIBDL 1
9919_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920
9921 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009923 cat >conftest.$ac_ext <<_ACEOF
9924/* confdefs.h. */
9925_ACEOF
9926cat confdefs.h >>conftest.$ac_ext
9927cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928/* end confdefs.h. */
9929#if HAVE_DLFCN_H
9930# include <dlfcn.h>
9931#endif
9932
9933int
9934main ()
9935{
9936dlopen(0, 0);
9937 ;
9938 return 0;
9939}
9940_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009941rm -f conftest.$ac_objext conftest$ac_exeext
9942if { (ac_try="$ac_link"
9943case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9946esac
9947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_link") 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959esac
9960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009976cat >>confdefs.h <<\_ACEOF
9977#define HAVE_LIBDL 1
9978_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979 libltdl_cv_func_dlopen="yes"
9980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009981 echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9985echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9986if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988else
9989 ac_check_lib_save_LIBS=$LIBS
9990LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009991cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h. */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996/* end confdefs.h. */
9997
Reid Spencera773bd52006-08-04 18:18:08 +00009998/* Override any GCC internal prototype to avoid an error.
9999 Use char because int might match the return type of a GCC
10000 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001#ifdef __cplusplus
10002extern "C"
10003#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004char dlopen ();
10005int
10006main ()
10007{
Reid Spencera773bd52006-08-04 18:18:08 +000010008return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010009 ;
10010 return 0;
10011}
10012_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010013rm -f conftest.$ac_objext conftest$ac_exeext
10014if { (ac_try="$ac_link"
10015case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10018esac
10019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_link") 2>conftest.er1
10021 ac_status=$?
10022 grep -v '^ *+' conftest.er1 >conftest.err
10023 rm -f conftest.er1
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031esac
10032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try='test -s conftest$ac_exeext'
10038 { (case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041esac
10042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_try") 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047 ac_cv_lib_svld_dlopen=yes
10048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010049 echo "$as_me: failed program was:" >&5
10050sed 's/^/| /' conftest.$ac_ext >&5
10051
10052 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010054
Bill Wendlingebcceee2009-04-18 11:20:33 +000010055rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010056 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057LIBS=$ac_check_lib_save_LIBS
10058fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010059{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10060echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10061if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010063cat >>confdefs.h <<\_ACEOF
10064#define HAVE_LIBDL 1
10065_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066
10067 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10068else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010069 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10070echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10071if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073else
10074 ac_check_lib_save_LIBS=$LIBS
10075LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010076cat >conftest.$ac_ext <<_ACEOF
10077/* confdefs.h. */
10078_ACEOF
10079cat confdefs.h >>conftest.$ac_ext
10080cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081/* end confdefs.h. */
10082
Reid Spencera773bd52006-08-04 18:18:08 +000010083/* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086#ifdef __cplusplus
10087extern "C"
10088#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089char dld_link ();
10090int
10091main ()
10092{
Reid Spencera773bd52006-08-04 18:18:08 +000010093return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010094 ;
10095 return 0;
10096}
10097_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010098rm -f conftest.$ac_objext conftest$ac_exeext
10099if { (ac_try="$ac_link"
10100case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103esac
10104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_link") 2>conftest.er1
10106 ac_status=$?
10107 grep -v '^ *+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10116esac
10117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126esac
10127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132 ac_cv_lib_dld_dld_link=yes
10133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010134 echo "$as_me: failed program was:" >&5
10135sed 's/^/| /' conftest.$ac_ext >&5
10136
10137 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010139
Bill Wendlingebcceee2009-04-18 11:20:33 +000010140rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010141 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142LIBS=$ac_check_lib_save_LIBS
10143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010144{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10145echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10146if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010148cat >>confdefs.h <<\_ACEOF
10149#define HAVE_DLD 1
10150_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010151
10152 LIBADD_DL="$LIBADD_DL -ldld"
10153else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010154 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10155echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10156if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10158else
10159 cat >conftest.$ac_ext <<_ACEOF
10160/* confdefs.h. */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h. */
10165/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10167#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010169/* System header to define __stub macros and hopefully few prototypes,
10170 which can conflict with char _dyld_func_lookup (); below.
10171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10172 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010174#ifdef __STDC__
10175# include <limits.h>
10176#else
10177# include <assert.h>
10178#endif
10179
10180#undef _dyld_func_lookup
10181
10182/* Override any GCC internal prototype to avoid an error.
10183 Use char because int might match the return type of a GCC
10184 builtin and then its argument prototype would still apply. */
10185#ifdef __cplusplus
10186extern "C"
10187#endif
10188char _dyld_func_lookup ();
10189/* The GNU C library defines this for functions which it implements
10190 to always fail with ENOSYS. Some functions are actually named
10191 something starting with __ and the normal name is an alias. */
10192#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10193choke me
10194#endif
10195
10196int
10197main ()
10198{
10199return _dyld_func_lookup ();
10200 ;
10201 return 0;
10202}
10203_ACEOF
10204rm -f conftest.$ac_objext conftest$ac_exeext
10205if { (ac_try="$ac_link"
10206case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209esac
10210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_link") 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222esac
10223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest$ac_exeext'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_func__dyld_func_lookup=yes
10239else
10240 echo "$as_me: failed program was:" >&5
10241sed 's/^/| /' conftest.$ac_ext >&5
10242
10243 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010244fi
Reid Spencera773bd52006-08-04 18:18:08 +000010245
Bill Wendlingebcceee2009-04-18 11:20:33 +000010246rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010247 conftest$ac_exeext conftest.$ac_ext
10248fi
10249{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10250echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10251if test $ac_cv_func__dyld_func_lookup = yes; then
10252
10253cat >>confdefs.h <<\_ACEOF
10254#define HAVE_DYLD 1
10255_ACEOF
10256
10257fi
10258
10259
10260fi
10261
10262
10263fi
10264
10265
10266fi
10267
10268rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010270
10271fi
10272
10273
10274fi
10275
10276
10277fi
10278
10279
10280if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10281then
10282 lt_save_LIBS="$LIBS"
10283 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010284
10285for ac_func in dlerror
10286do
10287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10288{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10290if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292else
10293 cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h. */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h. */
10299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10301#define $ac_func innocuous_$ac_func
10302
10303/* System header to define __stub macros and hopefully few prototypes,
10304 which can conflict with char $ac_func (); below.
10305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10306 <limits.h> exists even on freestanding compilers. */
10307
10308#ifdef __STDC__
10309# include <limits.h>
10310#else
10311# include <assert.h>
10312#endif
10313
10314#undef $ac_func
10315
10316/* Override any GCC internal prototype to avoid an error.
10317 Use char because int might match the return type of a GCC
10318 builtin and then its argument prototype would still apply. */
10319#ifdef __cplusplus
10320extern "C"
10321#endif
10322char $ac_func ();
10323/* The GNU C library defines this for functions which it implements
10324 to always fail with ENOSYS. Some functions are actually named
10325 something starting with __ and the normal name is an alias. */
10326#if defined __stub_$ac_func || defined __stub___$ac_func
10327choke me
10328#endif
10329
10330int
10331main ()
10332{
10333return $ac_func ();
10334 ;
10335 return 0;
10336}
10337_ACEOF
10338rm -f conftest.$ac_objext conftest$ac_exeext
10339if { (ac_try="$ac_link"
10340case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343esac
10344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_link") 2>conftest.er1
10346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10353 { (case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356esac
10357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_try") 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; } &&
10362 { ac_try='test -s conftest$ac_exeext'
10363 { (case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10366esac
10367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_try") 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
10372 eval "$as_ac_var=yes"
10373else
10374 echo "$as_me: failed program was:" >&5
10375sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 eval "$as_ac_var=no"
10378fi
10379
10380rm -f core conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10382fi
10383ac_res=`eval echo '${'$as_ac_var'}'`
10384 { echo "$as_me:$LINENO: result: $ac_res" >&5
10385echo "${ECHO_T}$ac_res" >&6; }
10386if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389_ACEOF
10390
10391fi
10392done
10393
10394 LIBS="$lt_save_LIBS"
10395fi
10396ac_ext=c
10397ac_cpp='$CPP $CPPFLAGS'
10398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10400ac_compiler_gnu=$ac_cv_c_compiler_gnu
10401
10402
10403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010404{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10405echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10406if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408else
10409 ac_cv_sys_symbol_underscore=no
10410 cat > conftest.$ac_ext <<EOF
10411void nm_test_func(){}
10412int main(){nm_test_func;return 0;}
10413EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415 (eval $ac_compile) 2>&5
10416 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419 # Now try to grab the symbols.
10420 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010421 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10423 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426 # See whether the symbols have a leading underscore.
10427 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10428 ac_cv_sys_symbol_underscore=yes
10429 else
10430 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10431 :
10432 else
10433 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10434 fi
10435 fi
10436 else
10437 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10438 fi
10439 else
10440 echo "configure: failed program was:" >&5
10441 cat conftest.c >&5
10442 fi
10443 rm -rf conftest*
10444
10445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010446{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10447echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448
10449
10450if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10451 if test x"$libltdl_cv_func_dlopen" = xyes ||
10452 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010453 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10454echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10455if test "${libltdl_cv_need_uscore+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457else
10458 libltdl_cv_need_uscore=unknown
10459 save_LIBS="$LIBS"
10460 LIBS="$LIBS $LIBADD_DL"
10461 if test "$cross_compiling" = yes; then :
10462 libltdl_cv_need_uscore=cross
10463else
10464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10465 lt_status=$lt_dlunknown
10466 cat > conftest.$ac_ext <<EOF
Rafael Espindola9993a3a2012-02-28 23:32:06 +000010467#line 10467 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010468#include "confdefs.h"
10469
10470#if HAVE_DLFCN_H
10471#include <dlfcn.h>
10472#endif
10473
10474#include <stdio.h>
10475
10476#ifdef RTLD_GLOBAL
10477# define LT_DLGLOBAL RTLD_GLOBAL
10478#else
10479# ifdef DL_GLOBAL
10480# define LT_DLGLOBAL DL_GLOBAL
10481# else
10482# define LT_DLGLOBAL 0
10483# endif
10484#endif
10485
10486/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10487 find out it does not work in some platform. */
10488#ifndef LT_DLLAZY_OR_NOW
10489# ifdef RTLD_LAZY
10490# define LT_DLLAZY_OR_NOW RTLD_LAZY
10491# else
10492# ifdef DL_LAZY
10493# define LT_DLLAZY_OR_NOW DL_LAZY
10494# else
10495# ifdef RTLD_NOW
10496# define LT_DLLAZY_OR_NOW RTLD_NOW
10497# else
10498# ifdef DL_NOW
10499# define LT_DLLAZY_OR_NOW DL_NOW
10500# else
10501# define LT_DLLAZY_OR_NOW 0
10502# endif
10503# endif
10504# endif
10505# endif
10506#endif
10507
10508#ifdef __cplusplus
10509extern "C" void exit (int);
10510#endif
10511
10512void fnord() { int i=42;}
10513int main ()
10514{
10515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10516 int status = $lt_dlunknown;
10517
10518 if (self)
10519 {
10520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10521 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10522 /* dlclose (self); */
10523 }
Reid Spencera773bd52006-08-04 18:18:08 +000010524 else
10525 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526
10527 exit (status);
10528}
10529EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010531 (eval $ac_link) 2>&5
10532 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010535 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010536 lt_status=$?
10537 case x$lt_status in
10538 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10539 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010540 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541 esac
10542 else :
10543 # compilation failed
10544
10545 fi
10546fi
10547rm -fr conftest*
10548
10549 LIBS="$save_LIBS"
10550
10551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010552{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10553echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554 fi
10555fi
10556
10557if test x"$libltdl_cv_need_uscore" = xyes; then
10558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010559cat >>confdefs.h <<\_ACEOF
10560#define NEED_USCORE 1
10561_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562
10563fi
10564
10565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010566{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10567echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10568if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010570else
10571 # PORTME does your system automatically load deplibs for dlopen?
10572 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10573 # For now, we just catch OSes we know something about -- in the
10574 # future, we'll try test this programmatically.
10575 libltdl_cv_sys_dlopen_deplibs=unknown
10576 case "$host_os" in
10577 aix3*|aix4.1.*|aix4.2.*)
10578 # Unknown whether this is true for these versions of AIX, but
10579 # we want this `case' here to explicitly catch those versions.
10580 libltdl_cv_sys_dlopen_deplibs=unknown
10581 ;;
10582 aix[45]*)
10583 libltdl_cv_sys_dlopen_deplibs=yes
10584 ;;
10585 darwin*)
10586 # Assuming the user has installed a libdl from somewhere, this is true
10587 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10588 libltdl_cv_sys_dlopen_deplibs=yes
10589 ;;
10590 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10591 # GNU and its variants, using gnu ld.so (Glibc)
10592 libltdl_cv_sys_dlopen_deplibs=yes
10593 ;;
10594 hpux10*|hpux11*)
10595 libltdl_cv_sys_dlopen_deplibs=yes
10596 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010597 interix*)
10598 libltdl_cv_sys_dlopen_deplibs=yes
10599 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600 irix[12345]*|irix6.[01]*)
10601 # Catch all versions of IRIX before 6.2, and indicate that we don't
10602 # know how it worked for any of those versions.
10603 libltdl_cv_sys_dlopen_deplibs=unknown
10604 ;;
10605 irix*)
10606 # The case above catches anything before 6.2, and it's known that
10607 # at 6.2 and later dlopen does load deplibs.
10608 libltdl_cv_sys_dlopen_deplibs=yes
10609 ;;
10610 netbsd*)
10611 libltdl_cv_sys_dlopen_deplibs=yes
10612 ;;
10613 openbsd*)
10614 libltdl_cv_sys_dlopen_deplibs=yes
10615 ;;
10616 osf[1234]*)
10617 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10618 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010619 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010620 libltdl_cv_sys_dlopen_deplibs=no
10621 ;;
10622 osf5.0|osf5.0a|osf5.1)
10623 # dlopen *does* load deplibs and with the right loader patch applied
10624 # it even uses RPATH in a shared library to search for shared objects
10625 # that the library depends on, but there's no easy way to know if that
10626 # patch is installed. Since this is the case, all we can really
10627 # say is unknown -- it depends on the patch being installed. If
10628 # it is, this changes to `yes'. Without it, it would be `no'.
10629 libltdl_cv_sys_dlopen_deplibs=unknown
10630 ;;
10631 osf*)
10632 # the two cases above should catch all versions of osf <= 5.1. Read
10633 # the comments above for what we know about them.
10634 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10635 # is used to find them so we can finally say `yes'.
10636 libltdl_cv_sys_dlopen_deplibs=yes
10637 ;;
10638 solaris*)
10639 libltdl_cv_sys_dlopen_deplibs=yes
10640 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10642 libltdl_cv_sys_dlopen_deplibs=yes
10643 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644 esac
10645
10646fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010647{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10648echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010651cat >>confdefs.h <<\_ACEOF
10652#define LTDL_DLOPEN_DEPLIBS 1
10653_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010654
10655fi
10656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010657
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010658for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010659do
10660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666fi
10667ac_res=`eval echo '${'$as_ac_Header'}'`
10668 { echo "$as_me:$LINENO: result: $ac_res" >&5
10669echo "${ECHO_T}$ac_res" >&6; }
10670else
10671 # Is the header compilable?
10672{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
10680$ac_includes_default
10681#include <$ac_header>
10682_ACEOF
10683rm -f conftest.$ac_objext
10684if { (ac_try="$ac_compile"
10685case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688esac
10689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_compile") 2>conftest.er1
10691 ac_status=$?
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10698 { (case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701esac
10702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_try") 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest.$ac_objext'
10708 { (case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711esac
10712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_try") 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_header_compiler=yes
10718else
10719 echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722 ac_header_compiler=no
10723fi
10724
10725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10727echo "${ECHO_T}$ac_header_compiler" >&6; }
10728
10729# Is the header present?
10730{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10732cat >conftest.$ac_ext <<_ACEOF
10733/* confdefs.h. */
10734_ACEOF
10735cat confdefs.h >>conftest.$ac_ext
10736cat >>conftest.$ac_ext <<_ACEOF
10737/* end confdefs.h. */
10738#include <$ac_header>
10739_ACEOF
10740if { (ac_try="$ac_cpp conftest.$ac_ext"
10741case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } >/dev/null; then
10753 if test -s conftest.err; then
10754 ac_cpp_err=$ac_c_preproc_warn_flag
10755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10756 else
10757 ac_cpp_err=
10758 fi
10759else
10760 ac_cpp_err=yes
10761fi
10762if test -z "$ac_cpp_err"; then
10763 ac_header_preproc=yes
10764else
10765 echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
10768 ac_header_preproc=no
10769fi
10770
10771rm -f conftest.err conftest.$ac_ext
10772{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773echo "${ECHO_T}$ac_header_preproc" >&6; }
10774
10775# So? What about this header?
10776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10777 yes:no: )
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10779echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10781echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10782 ac_header_preproc=yes
10783 ;;
10784 no:yes:* )
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10786echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10788echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10790echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10792echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10794echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10796echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10797 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010798## ------------------------------------ ##
10799## Report this to http://llvm.org/bugs/ ##
10800## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010801_ASBOX
10802 ) | sed "s/^/$as_me: WARNING: /" >&2
10803 ;;
10804esac
10805{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10809else
10810 eval "$as_ac_Header=\$ac_header_preproc"
10811fi
10812ac_res=`eval echo '${'$as_ac_Header'}'`
10813 { echo "$as_me:$LINENO: result: $ac_res" >&5
10814echo "${ECHO_T}$ac_res" >&6; }
10815
10816fi
10817if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010818 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010820_ACEOF
10821
10822fi
10823
10824done
10825
10826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010827{ echo "$as_me:$LINENO: checking for error_t" >&5
10828echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10829if test "${ac_cv_type_error_t+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831else
10832 cat >conftest.$ac_ext <<_ACEOF
10833/* confdefs.h. */
10834_ACEOF
10835cat confdefs.h >>conftest.$ac_ext
10836cat >>conftest.$ac_ext <<_ACEOF
10837/* end confdefs.h. */
10838#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839# include <argz.h>
10840#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010841
10842typedef error_t ac__type_new_;
10843int
10844main ()
10845{
10846if ((ac__type_new_ *) 0)
10847 return 0;
10848if (sizeof (ac__type_new_))
10849 return 0;
10850 ;
10851 return 0;
10852}
10853_ACEOF
10854rm -f conftest.$ac_objext
10855if { (ac_try="$ac_compile"
10856case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859esac
10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_compile") 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872esac
10873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest.$ac_objext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882esac
10883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 ac_cv_type_error_t=yes
10889else
10890 echo "$as_me: failed program was:" >&5
10891sed 's/^/| /' conftest.$ac_ext >&5
10892
10893 ac_cv_type_error_t=no
10894fi
10895
10896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897fi
10898{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10899echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10900if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901
10902cat >>confdefs.h <<_ACEOF
10903#define HAVE_ERROR_T 1
10904_ACEOF
10905
10906
10907else
10908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010909cat >>confdefs.h <<\_ACEOF
10910#define error_t int
10911_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010912
10913fi
10914
10915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010916
10917
10918
10919
10920
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010921for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010922do
10923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10926if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928else
10929 cat >conftest.$ac_ext <<_ACEOF
10930/* confdefs.h. */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h. */
10935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10937#define $ac_func innocuous_$ac_func
10938
10939/* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func (); below.
10941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942 <limits.h> exists even on freestanding compilers. */
10943
10944#ifdef __STDC__
10945# include <limits.h>
10946#else
10947# include <assert.h>
10948#endif
10949
10950#undef $ac_func
10951
10952/* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10955#ifdef __cplusplus
10956extern "C"
10957#endif
10958char $ac_func ();
10959/* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962#if defined __stub_$ac_func || defined __stub___$ac_func
10963choke me
10964#endif
10965
10966int
10967main ()
10968{
10969return $ac_func ();
10970 ;
10971 return 0;
10972}
10973_ACEOF
10974rm -f conftest.$ac_objext conftest$ac_exeext
10975if { (ac_try="$ac_link"
10976case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979esac
10980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10989 { (case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992esac
10993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; } &&
10998 { ac_try='test -s conftest$ac_exeext'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11002esac
11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 eval "$as_ac_var=yes"
11009else
11010 echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013 eval "$as_ac_var=no"
11014fi
11015
11016rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11018fi
11019ac_res=`eval echo '${'$as_ac_var'}'`
11020 { echo "$as_me:$LINENO: result: $ac_res" >&5
11021echo "${ECHO_T}$ac_res" >&6; }
11022if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011023 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025_ACEOF
11026
11027fi
11028done
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011049
11050
11051
11052
11053
11054
11055
11056
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011057for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11058 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011059do
11060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11066fi
11067ac_res=`eval echo '${'$as_ac_Header'}'`
11068 { echo "$as_me:$LINENO: result: $ac_res" >&5
11069echo "${ECHO_T}$ac_res" >&6; }
11070else
11071 # Is the header compilable?
11072{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11074cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
11080$ac_includes_default
11081#include <$ac_header>
11082_ACEOF
11083rm -f conftest.$ac_objext
11084if { (ac_try="$ac_compile"
11085case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11088esac
11089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_compile") 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11098 { (case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_try") 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest.$ac_objext'
11108 { (case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11111esac
11112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_try") 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_header_compiler=yes
11118else
11119 echo "$as_me: failed program was:" >&5
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122 ac_header_compiler=no
11123fi
11124
11125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127echo "${ECHO_T}$ac_header_compiler" >&6; }
11128
11129# Is the header present?
11130{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11132cat >conftest.$ac_ext <<_ACEOF
11133/* confdefs.h. */
11134_ACEOF
11135cat confdefs.h >>conftest.$ac_ext
11136cat >>conftest.$ac_ext <<_ACEOF
11137/* end confdefs.h. */
11138#include <$ac_header>
11139_ACEOF
11140if { (ac_try="$ac_cpp conftest.$ac_ext"
11141case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } >/dev/null; then
11153 if test -s conftest.err; then
11154 ac_cpp_err=$ac_c_preproc_warn_flag
11155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11156 else
11157 ac_cpp_err=
11158 fi
11159else
11160 ac_cpp_err=yes
11161fi
11162if test -z "$ac_cpp_err"; then
11163 ac_header_preproc=yes
11164else
11165 echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168 ac_header_preproc=no
11169fi
11170
11171rm -f conftest.err conftest.$ac_ext
11172{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11173echo "${ECHO_T}$ac_header_preproc" >&6; }
11174
11175# So? What about this header?
11176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11177 yes:no: )
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11182 ac_header_preproc=yes
11183 ;;
11184 no:yes:* )
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11197 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011198## ------------------------------------ ##
11199## Report this to http://llvm.org/bugs/ ##
11200## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011201_ASBOX
11202 ) | sed "s/^/$as_me: WARNING: /" >&2
11203 ;;
11204esac
11205{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210 eval "$as_ac_Header=\$ac_header_preproc"
11211fi
11212ac_res=`eval echo '${'$as_ac_Header'}'`
11213 { echo "$as_me:$LINENO: result: $ac_res" >&5
11214echo "${ECHO_T}$ac_res" >&6; }
11215
11216fi
11217if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011220_ACEOF
11221
11222fi
11223
11224done
11225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011226
11227
11228
11229
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011230for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011231do
11232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238fi
11239ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result: $ac_res" >&5
11241echo "${ECHO_T}$ac_res" >&6; }
11242else
11243 # Is the header compilable?
11244{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246cat >conftest.$ac_ext <<_ACEOF
11247/* confdefs.h. */
11248_ACEOF
11249cat confdefs.h >>conftest.$ac_ext
11250cat >>conftest.$ac_ext <<_ACEOF
11251/* end confdefs.h. */
11252$ac_includes_default
11253#include <$ac_header>
11254_ACEOF
11255rm -f conftest.$ac_objext
11256if { (ac_try="$ac_compile"
11257case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260esac
11261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270 { (case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273esac
11274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_try") 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283esac
11284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 ac_header_compiler=yes
11290else
11291 echo "$as_me: failed program was:" >&5
11292sed 's/^/| /' conftest.$ac_ext >&5
11293
11294 ac_header_compiler=no
11295fi
11296
11297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299echo "${ECHO_T}$ac_header_compiler" >&6; }
11300
11301# Is the header present?
11302{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h. */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h. */
11310#include <$ac_header>
11311_ACEOF
11312if { (ac_try="$ac_cpp conftest.$ac_ext"
11313case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } >/dev/null; then
11325 if test -s conftest.err; then
11326 ac_cpp_err=$ac_c_preproc_warn_flag
11327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328 else
11329 ac_cpp_err=
11330 fi
11331else
11332 ac_cpp_err=yes
11333fi
11334if test -z "$ac_cpp_err"; then
11335 ac_header_preproc=yes
11336else
11337 echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
11340 ac_header_preproc=no
11341fi
11342
11343rm -f conftest.err conftest.$ac_ext
11344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345echo "${ECHO_T}$ac_header_preproc" >&6; }
11346
11347# So? What about this header?
11348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349 yes:no: )
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354 ac_header_preproc=yes
11355 ;;
11356 no:yes:* )
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011370## ------------------------------------ ##
11371## Report this to http://llvm.org/bugs/ ##
11372## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011373_ASBOX
11374 ) | sed "s/^/$as_me: WARNING: /" >&2
11375 ;;
11376esac
11377{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382 eval "$as_ac_Header=\$ac_header_preproc"
11383fi
11384ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386echo "${ECHO_T}$ac_res" >&6; }
11387
11388fi
11389if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011390 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392_ACEOF
11393
11394fi
11395
11396done
11397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011398
11399
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011400for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011401do
11402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11408fi
11409ac_res=`eval echo '${'$as_ac_Header'}'`
11410 { echo "$as_me:$LINENO: result: $ac_res" >&5
11411echo "${ECHO_T}$ac_res" >&6; }
11412else
11413 # Is the header compilable?
11414{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11416cat >conftest.$ac_ext <<_ACEOF
11417/* confdefs.h. */
11418_ACEOF
11419cat confdefs.h >>conftest.$ac_ext
11420cat >>conftest.$ac_ext <<_ACEOF
11421/* end confdefs.h. */
11422$ac_includes_default
11423#include <$ac_header>
11424_ACEOF
11425rm -f conftest.$ac_objext
11426if { (ac_try="$ac_compile"
11427case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430esac
11431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_compile") 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11440 { (case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443esac
11444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_try") 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453esac
11454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_try") 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_header_compiler=yes
11460else
11461 echo "$as_me: failed program was:" >&5
11462sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 ac_header_compiler=no
11465fi
11466
11467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11469echo "${ECHO_T}$ac_header_compiler" >&6; }
11470
11471# Is the header present?
11472{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11473echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11474cat >conftest.$ac_ext <<_ACEOF
11475/* confdefs.h. */
11476_ACEOF
11477cat confdefs.h >>conftest.$ac_ext
11478cat >>conftest.$ac_ext <<_ACEOF
11479/* end confdefs.h. */
11480#include <$ac_header>
11481_ACEOF
11482if { (ac_try="$ac_cpp conftest.$ac_ext"
11483case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486esac
11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } >/dev/null; then
11495 if test -s conftest.err; then
11496 ac_cpp_err=$ac_c_preproc_warn_flag
11497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11498 else
11499 ac_cpp_err=
11500 fi
11501else
11502 ac_cpp_err=yes
11503fi
11504if test -z "$ac_cpp_err"; then
11505 ac_header_preproc=yes
11506else
11507 echo "$as_me: failed program was:" >&5
11508sed 's/^/| /' conftest.$ac_ext >&5
11509
11510 ac_header_preproc=no
11511fi
11512
11513rm -f conftest.err conftest.$ac_ext
11514{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11515echo "${ECHO_T}$ac_header_preproc" >&6; }
11516
11517# So? What about this header?
11518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11519 yes:no: )
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11521echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11523echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11524 ac_header_preproc=yes
11525 ;;
11526 no:yes:* )
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11530echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11532echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11534echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11536echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11538echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11539 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011540## ------------------------------------ ##
11541## Report this to http://llvm.org/bugs/ ##
11542## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011543_ASBOX
11544 ) | sed "s/^/$as_me: WARNING: /" >&2
11545 ;;
11546esac
11547{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552 eval "$as_ac_Header=\$ac_header_preproc"
11553fi
11554ac_res=`eval echo '${'$as_ac_Header'}'`
11555 { echo "$as_me:$LINENO: result: $ac_res" >&5
11556echo "${ECHO_T}$ac_res" >&6; }
11557
11558fi
11559if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011561#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011562_ACEOF
11563 break
11564fi
11565
11566done
11567
11568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011569
11570
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011572do
11573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11574{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11576if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579 cat >conftest.$ac_ext <<_ACEOF
11580/* confdefs.h. */
11581_ACEOF
11582cat confdefs.h >>conftest.$ac_ext
11583cat >>conftest.$ac_ext <<_ACEOF
11584/* end confdefs.h. */
11585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11587#define $ac_func innocuous_$ac_func
11588
11589/* System header to define __stub macros and hopefully few prototypes,
11590 which can conflict with char $ac_func (); below.
11591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11592 <limits.h> exists even on freestanding compilers. */
11593
11594#ifdef __STDC__
11595# include <limits.h>
11596#else
11597# include <assert.h>
11598#endif
11599
11600#undef $ac_func
11601
11602/* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11605#ifdef __cplusplus
11606extern "C"
11607#endif
11608char $ac_func ();
11609/* The GNU C library defines this for functions which it implements
11610 to always fail with ENOSYS. Some functions are actually named
11611 something starting with __ and the normal name is an alias. */
11612#if defined __stub_$ac_func || defined __stub___$ac_func
11613choke me
11614#endif
11615
11616int
11617main ()
11618{
11619return $ac_func ();
11620 ;
11621 return 0;
11622}
11623_ACEOF
11624rm -f conftest.$ac_objext conftest$ac_exeext
11625if { (ac_try="$ac_link"
11626case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629esac
11630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_link") 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
11653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_try") 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11659else
11660 echo "$as_me: failed program was:" >&5
11661sed 's/^/| /' conftest.$ac_ext >&5
11662
11663 eval "$as_ac_var=no"
11664fi
11665
11666rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668fi
11669ac_res=`eval echo '${'$as_ac_var'}'`
11670 { echo "$as_me:$LINENO: result: $ac_res" >&5
11671echo "${ECHO_T}$ac_res" >&6; }
11672if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011673 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675_ACEOF
11676 break
11677fi
11678done
11679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011680
11681
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011682for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011683do
11684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11689else
11690 cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
11696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11698#define $ac_func innocuous_$ac_func
11699
11700/* System header to define __stub macros and hopefully few prototypes,
11701 which can conflict with char $ac_func (); below.
11702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703 <limits.h> exists even on freestanding compilers. */
11704
11705#ifdef __STDC__
11706# include <limits.h>
11707#else
11708# include <assert.h>
11709#endif
11710
11711#undef $ac_func
11712
11713/* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11716#ifdef __cplusplus
11717extern "C"
11718#endif
11719char $ac_func ();
11720/* The GNU C library defines this for functions which it implements
11721 to always fail with ENOSYS. Some functions are actually named
11722 something starting with __ and the normal name is an alias. */
11723#if defined __stub_$ac_func || defined __stub___$ac_func
11724choke me
11725#endif
11726
11727int
11728main ()
11729{
11730return $ac_func ();
11731 ;
11732 return 0;
11733}
11734_ACEOF
11735rm -f conftest.$ac_objext conftest$ac_exeext
11736if { (ac_try="$ac_link"
11737case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740esac
11741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_link") 2>conftest.er1
11743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753esac
11754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest$ac_exeext'
11760 { (case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763esac
11764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_try") 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 eval "$as_ac_var=yes"
11770else
11771 echo "$as_me: failed program was:" >&5
11772sed 's/^/| /' conftest.$ac_ext >&5
11773
11774 eval "$as_ac_var=no"
11775fi
11776
11777rm -f core conftest.err conftest.$ac_objext \
11778 conftest$ac_exeext conftest.$ac_ext
11779fi
11780ac_res=`eval echo '${'$as_ac_var'}'`
11781 { echo "$as_me:$LINENO: result: $ac_res" >&5
11782echo "${ECHO_T}$ac_res" >&6; }
11783if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786_ACEOF
11787 break
11788fi
11789done
11790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011791
11792
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011793for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011794do
11795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11796{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11798if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11809#define $ac_func innocuous_$ac_func
11810
11811/* System header to define __stub macros and hopefully few prototypes,
11812 which can conflict with char $ac_func (); below.
11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814 <limits.h> exists even on freestanding compilers. */
11815
11816#ifdef __STDC__
11817# include <limits.h>
11818#else
11819# include <assert.h>
11820#endif
11821
11822#undef $ac_func
11823
11824/* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11827#ifdef __cplusplus
11828extern "C"
11829#endif
11830char $ac_func ();
11831/* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834#if defined __stub_$ac_func || defined __stub___$ac_func
11835choke me
11836#endif
11837
11838int
11839main ()
11840{
11841return $ac_func ();
11842 ;
11843 return 0;
11844}
11845_ACEOF
11846rm -f conftest.$ac_objext conftest$ac_exeext
11847if { (ac_try="$ac_link"
11848case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_link") 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874esac
11875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_try") 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 eval "$as_ac_var=yes"
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 eval "$as_ac_var=no"
11886fi
11887
11888rm -f core conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11890fi
11891ac_res=`eval echo '${'$as_ac_var'}'`
11892 { echo "$as_me:$LINENO: result: $ac_res" >&5
11893echo "${ECHO_T}$ac_res" >&6; }
11894if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011895 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011897_ACEOF
11898 break
11899fi
11900done
11901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011902
11903
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011904for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011905do
11906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11907{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11909if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11911else
11912 cat >conftest.$ac_ext <<_ACEOF
11913/* confdefs.h. */
11914_ACEOF
11915cat confdefs.h >>conftest.$ac_ext
11916cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h. */
11918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11920#define $ac_func innocuous_$ac_func
11921
11922/* System header to define __stub macros and hopefully few prototypes,
11923 which can conflict with char $ac_func (); below.
11924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925 <limits.h> exists even on freestanding compilers. */
11926
11927#ifdef __STDC__
11928# include <limits.h>
11929#else
11930# include <assert.h>
11931#endif
11932
11933#undef $ac_func
11934
11935/* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11938#ifdef __cplusplus
11939extern "C"
11940#endif
11941char $ac_func ();
11942/* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945#if defined __stub_$ac_func || defined __stub___$ac_func
11946choke me
11947#endif
11948
11949int
11950main ()
11951{
11952return $ac_func ();
11953 ;
11954 return 0;
11955}
11956_ACEOF
11957rm -f conftest.$ac_objext conftest$ac_exeext
11958if { (ac_try="$ac_link"
11959case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11962esac
11963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_link") 2>conftest.er1
11965 ac_status=$?
11966 grep -v '^ *+' conftest.er1 >conftest.err
11967 rm -f conftest.er1
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11972 { (case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975esac
11976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_try") 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest$ac_exeext'
11982 { (case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985esac
11986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_try") 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 eval "$as_ac_var=yes"
11992else
11993 echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 eval "$as_ac_var=no"
11997fi
11998
11999rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12001fi
12002ac_res=`eval echo '${'$as_ac_var'}'`
12003 { echo "$as_me:$LINENO: result: $ac_res" >&5
12004echo "${ECHO_T}$ac_res" >&6; }
12005if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012006 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012007#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012008_ACEOF
12009
12010fi
12011done
12012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012013
12014
12015
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012016for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012017do
12018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12019{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12021if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023else
12024 cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h. */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h. */
12030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12032#define $ac_func innocuous_$ac_func
12033
12034/* System header to define __stub macros and hopefully few prototypes,
12035 which can conflict with char $ac_func (); below.
12036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12037 <limits.h> exists even on freestanding compilers. */
12038
12039#ifdef __STDC__
12040# include <limits.h>
12041#else
12042# include <assert.h>
12043#endif
12044
12045#undef $ac_func
12046
12047/* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050#ifdef __cplusplus
12051extern "C"
12052#endif
12053char $ac_func ();
12054/* The GNU C library defines this for functions which it implements
12055 to always fail with ENOSYS. Some functions are actually named
12056 something starting with __ and the normal name is an alias. */
12057#if defined __stub_$ac_func || defined __stub___$ac_func
12058choke me
12059#endif
12060
12061int
12062main ()
12063{
12064return $ac_func ();
12065 ;
12066 return 0;
12067}
12068_ACEOF
12069rm -f conftest.$ac_objext conftest$ac_exeext
12070if { (ac_try="$ac_link"
12071case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074esac
12075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_link") 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084 { (case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12087esac
12088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_try") 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
12094 { (case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097esac
12098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_try") 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 eval "$as_ac_var=yes"
12104else
12105 echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
12107
12108 eval "$as_ac_var=no"
12109fi
12110
12111rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12113fi
12114ac_res=`eval echo '${'$as_ac_var'}'`
12115 { echo "$as_me:$LINENO: result: $ac_res" >&5
12116echo "${ECHO_T}$ac_res" >&6; }
12117if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012118 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012119#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012120_ACEOF
12121
12122fi
12123done
12124
12125
Douglas Gregor01746742009-05-11 18:05:52 +000012126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012127{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12128echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012129
Reid Spencer86901802004-12-08 23:07:27 +000012130ICC=no
12131IXX=no
12132case $CC in
12133 icc*|icpc*)
12134 ICC=yes
12135 IXX=yes
12136 ;;
12137 *)
12138 ;;
12139esac
12140
Duraid Madina937c60a2006-02-15 07:57:42 +000012141if test "$GCC" != "yes" && test "$ICC" != "yes"
12142then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012143 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12144echo "$as_me: error: gcc|icc required but not found" >&2;}
12145 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012146fi
12147
12148if test "$GXX" != "yes" && test "$IXX" != "yes"
12149then
Eric Christopher73e36da2010-12-08 02:02:14 +000012150 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12151echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012152 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012153fi
12154
Reid Spencer86901802004-12-08 23:07:27 +000012155if test "$GCC" = "yes"
12156then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012157 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012158#if !defined(__GNUC__) || __GNUC__ < 3
12159#error Unsupported GCC version
12160#endif
12161
12162_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012163rm -f conftest.$ac_objext
12164if { (ac_try="$ac_compile"
12165case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168esac
12169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_compile") 2>conftest.er1
12171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178 { (case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12181esac
12182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_try") 2>&5
12184 ac_status=$?
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } &&
12187 { ac_try='test -s conftest.$ac_objext'
12188 { (case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191esac
12192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_try") 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012199 echo "$as_me: failed program was:" >&5
12200sed 's/^/| /' conftest.$ac_ext >&5
12201
12202 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12203echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12204 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012206
Chris Lattner399c7c72008-02-05 19:43:53 +000012207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012208fi
12209
12210if test -z "$llvm_cv_gnu_make_command"
12211then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012212 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12213echo "$as_me: error: GNU Make required but not found" >&2;}
12214 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012215fi
12216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012217{ echo "$as_me:$LINENO: result: ok" >&5
12218echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012220{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12221echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012222NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012223
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012224NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012225
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012226COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12227
12228{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12229echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&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 Takumic73f3d12011-11-28 01:07:19 +000012805if test "$LLVM_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
Eric Christopherf33ab862011-12-21 00:52:44 +000013673## ------------------------------------ ##
13674## Report this to http://llvm.org/bugs/ ##
13675## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013676_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
Eric Christopherf33ab862011-12-21 00:52:44 +000014463## ------------------------------------ ##
14464## Report this to http://llvm.org/bugs/ ##
14465## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014466_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
Eric Christopherf33ab862011-12-21 00:52:44 +000014637## ------------------------------------ ##
14638## Report this to http://llvm.org/bugs/ ##
14639## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014640_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
Eric Christopherf33ab862011-12-21 00:52:44 +000014807## ------------------------------------ ##
14808## Report this to http://llvm.org/bugs/ ##
14809## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014810_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
Eric Christopherf33ab862011-12-21 00:52:44 +000014980## ------------------------------------ ##
14981## Report this to http://llvm.org/bugs/ ##
14982## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014983_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
Eric Christopherf33ab862011-12-21 00:52:44 +000015152## ------------------------------------ ##
15153## Report this to http://llvm.org/bugs/ ##
15154## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015155_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
Eric Christopherf33ab862011-12-21 00:52:44 +000015321## ------------------------------------ ##
15322## Report this to http://llvm.org/bugs/ ##
15323## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015324_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
Eric Christopherf33ab862011-12-21 00:52:44 +000015490## ------------------------------------ ##
15491## Report this to http://llvm.org/bugs/ ##
15492## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015493_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 Takumic73f3d12011-11-28 01:07:19 +000015518if test "$LLVM_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
Eric Christopherf33ab862011-12-21 00:52:44 +000015660## ------------------------------------ ##
15661## Report this to http://llvm.org/bugs/ ##
15662## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015663_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
Eric Christopherf33ab862011-12-21 00:52:44 +000015840## ------------------------------------ ##
15841## Report this to http://llvm.org/bugs/ ##
15842## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015843_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
Eric Christopherf33ab862011-12-21 00:52:44 +000016011## ------------------------------------ ##
16012## Report this to http://llvm.org/bugs/ ##
16013## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016014_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
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017144
17145for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017146do
17147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17152else
17153 cat >conftest.$ac_ext <<_ACEOF
17154/* confdefs.h. */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h. */
17159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17161#define $ac_func innocuous_$ac_func
17162
17163/* System header to define __stub macros and hopefully few prototypes,
17164 which can conflict with char $ac_func (); below.
17165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17166 <limits.h> exists even on freestanding compilers. */
17167
17168#ifdef __STDC__
17169# include <limits.h>
17170#else
17171# include <assert.h>
17172#endif
17173
17174#undef $ac_func
17175
17176/* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17179#ifdef __cplusplus
17180extern "C"
17181#endif
17182char $ac_func ();
17183/* The GNU C library defines this for functions which it implements
17184 to always fail with ENOSYS. Some functions are actually named
17185 something starting with __ and the normal name is an alias. */
17186#if defined __stub_$ac_func || defined __stub___$ac_func
17187choke me
17188#endif
17189
17190int
17191main ()
17192{
17193return $ac_func ();
17194 ;
17195 return 0;
17196}
17197_ACEOF
17198rm -f conftest.$ac_objext conftest$ac_exeext
17199if { (ac_try="$ac_link"
17200case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203esac
17204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_link") 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17213 { (case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17216esac
17217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_try") 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest$ac_exeext'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 eval "$as_ac_var=yes"
17233else
17234 echo "$as_me: failed program was:" >&5
17235sed 's/^/| /' conftest.$ac_ext >&5
17236
17237 eval "$as_ac_var=no"
17238fi
17239
17240rm -f core conftest.err conftest.$ac_objext \
17241 conftest$ac_exeext conftest.$ac_ext
17242fi
17243ac_res=`eval echo '${'$as_ac_var'}'`
17244 { echo "$as_me:$LINENO: result: $ac_res" >&5
17245echo "${ECHO_T}$ac_res" >&6; }
17246if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017247 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017249_ACEOF
17250
17251fi
17252done
Reid Spencerdf3be822006-01-23 08:15:53 +000017253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017254
17255
17256
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017257for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017258do
17259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17260{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17262if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264else
17265 cat >conftest.$ac_ext <<_ACEOF
17266/* confdefs.h. */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h. */
17271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17273#define $ac_func innocuous_$ac_func
17274
17275/* System header to define __stub macros and hopefully few prototypes,
17276 which can conflict with char $ac_func (); below.
17277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17278 <limits.h> exists even on freestanding compilers. */
17279
17280#ifdef __STDC__
17281# include <limits.h>
17282#else
17283# include <assert.h>
17284#endif
17285
17286#undef $ac_func
17287
17288/* Override any GCC internal prototype to avoid an error.
17289 Use char because int might match the return type of a GCC
17290 builtin and then its argument prototype would still apply. */
17291#ifdef __cplusplus
17292extern "C"
17293#endif
17294char $ac_func ();
17295/* The GNU C library defines this for functions which it implements
17296 to always fail with ENOSYS. Some functions are actually named
17297 something starting with __ and the normal name is an alias. */
17298#if defined __stub_$ac_func || defined __stub___$ac_func
17299choke me
17300#endif
17301
17302int
17303main ()
17304{
17305return $ac_func ();
17306 ;
17307 return 0;
17308}
17309_ACEOF
17310rm -f conftest.$ac_objext conftest$ac_exeext
17311if { (ac_try="$ac_link"
17312case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315esac
17316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_link") 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17325 { (case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17328esac
17329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_try") 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; } &&
17334 { ac_try='test -s conftest$ac_exeext'
17335 { (case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338esac
17339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_try") 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 eval "$as_ac_var=yes"
17345else
17346 echo "$as_me: failed program was:" >&5
17347sed 's/^/| /' conftest.$ac_ext >&5
17348
17349 eval "$as_ac_var=no"
17350fi
17351
17352rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17354fi
17355ac_res=`eval echo '${'$as_ac_var'}'`
17356 { echo "$as_me:$LINENO: result: $ac_res" >&5
17357echo "${ECHO_T}$ac_res" >&6; }
17358if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017359 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017361_ACEOF
17362
17363fi
17364done
17365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017366
17367
17368
17369
Chris Lattner511f11d2005-11-14 07:25:50 +000017370for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017371do
17372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17373{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17375if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17377else
17378 cat >conftest.$ac_ext <<_ACEOF
17379/* confdefs.h. */
17380_ACEOF
17381cat confdefs.h >>conftest.$ac_ext
17382cat >>conftest.$ac_ext <<_ACEOF
17383/* end confdefs.h. */
17384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17386#define $ac_func innocuous_$ac_func
17387
17388/* System header to define __stub macros and hopefully few prototypes,
17389 which can conflict with char $ac_func (); below.
17390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17391 <limits.h> exists even on freestanding compilers. */
17392
17393#ifdef __STDC__
17394# include <limits.h>
17395#else
17396# include <assert.h>
17397#endif
17398
17399#undef $ac_func
17400
17401/* Override any GCC internal prototype to avoid an error.
17402 Use char because int might match the return type of a GCC
17403 builtin and then its argument prototype would still apply. */
17404#ifdef __cplusplus
17405extern "C"
17406#endif
17407char $ac_func ();
17408/* The GNU C library defines this for functions which it implements
17409 to always fail with ENOSYS. Some functions are actually named
17410 something starting with __ and the normal name is an alias. */
17411#if defined __stub_$ac_func || defined __stub___$ac_func
17412choke me
17413#endif
17414
17415int
17416main ()
17417{
17418return $ac_func ();
17419 ;
17420 return 0;
17421}
17422_ACEOF
17423rm -f conftest.$ac_objext conftest$ac_exeext
17424if { (ac_try="$ac_link"
17425case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17428esac
17429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17438 { (case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17441esac
17442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_try") 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest$ac_exeext'
17448 { (case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451esac
17452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_try") 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 eval "$as_ac_var=yes"
17458else
17459 echo "$as_me: failed program was:" >&5
17460sed 's/^/| /' conftest.$ac_ext >&5
17461
17462 eval "$as_ac_var=no"
17463fi
17464
17465rm -f core conftest.err conftest.$ac_objext \
17466 conftest$ac_exeext conftest.$ac_ext
17467fi
17468ac_res=`eval echo '${'$as_ac_var'}'`
17469 { echo "$as_me:$LINENO: result: $ac_res" >&5
17470echo "${ECHO_T}$ac_res" >&6; }
17471if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017472 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017474_ACEOF
17475
17476fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017477done
John Criswell7a73b802003-06-30 21:59:07 +000017478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017479
17480
17481
17482
Daniel Dunbar3e462932011-02-03 02:40:02 +000017483
17484for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017485do
17486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17489if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491else
17492 cat >conftest.$ac_ext <<_ACEOF
17493/* confdefs.h. */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h. */
17498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17500#define $ac_func innocuous_$ac_func
17501
17502/* System header to define __stub macros and hopefully few prototypes,
17503 which can conflict with char $ac_func (); below.
17504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17505 <limits.h> exists even on freestanding compilers. */
17506
17507#ifdef __STDC__
17508# include <limits.h>
17509#else
17510# include <assert.h>
17511#endif
17512
17513#undef $ac_func
17514
17515/* Override any GCC internal prototype to avoid an error.
17516 Use char because int might match the return type of a GCC
17517 builtin and then its argument prototype would still apply. */
17518#ifdef __cplusplus
17519extern "C"
17520#endif
17521char $ac_func ();
17522/* The GNU C library defines this for functions which it implements
17523 to always fail with ENOSYS. Some functions are actually named
17524 something starting with __ and the normal name is an alias. */
17525#if defined __stub_$ac_func || defined __stub___$ac_func
17526choke me
17527#endif
17528
17529int
17530main ()
17531{
17532return $ac_func ();
17533 ;
17534 return 0;
17535}
17536_ACEOF
17537rm -f conftest.$ac_objext conftest$ac_exeext
17538if { (ac_try="$ac_link"
17539case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17542esac
17543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_link") 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17552 { (case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17555esac
17556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_try") 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest$ac_exeext'
17562 { (case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17565esac
17566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_try") 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 eval "$as_ac_var=yes"
17572else
17573 echo "$as_me: failed program was:" >&5
17574sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 eval "$as_ac_var=no"
17577fi
17578
17579rm -f core conftest.err conftest.$ac_objext \
17580 conftest$ac_exeext conftest.$ac_ext
17581fi
17582ac_res=`eval echo '${'$as_ac_var'}'`
17583 { echo "$as_me:$LINENO: result: $ac_res" >&5
17584echo "${ECHO_T}$ac_res" >&6; }
17585if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017586 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017588_ACEOF
17589
17590fi
17591done
17592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017593{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17594echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17595if test "${llvm_cv_c_printf_a+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017597else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017598 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017599ac_cpp='$CPP $CPPFLAGS'
17600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17602ac_compiler_gnu=$ac_cv_c_compiler_gnu
17603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017604 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017605 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017607 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017609 /* confdefs.h. */
17610_ACEOF
17611cat confdefs.h >>conftest.$ac_ext
17612cat >>conftest.$ac_ext <<_ACEOF
17613/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017614
John Criswella0137d32003-10-13 16:22:01 +000017615#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017616#include <stdlib.h>
17617
John Criswella0137d32003-10-13 16:22:01 +000017618int
17619main ()
17620{
17621
Reid Spencer2706f8c2004-09-19 23:53:36 +000017622volatile double A, B;
17623char Buffer[100];
17624A = 1;
17625A /= 10.0;
17626sprintf(Buffer, "%a", A);
17627B = atof(Buffer);
17628if (A != B)
17629 return (1);
17630if (A != 0x1.999999999999ap-4)
17631 return (1);
17632return (0);
John Criswella0137d32003-10-13 16:22:01 +000017633 ;
17634 return 0;
17635}
17636_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017637rm -f conftest$ac_exeext
17638if { (ac_try="$ac_link"
17639case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17642esac
17643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644 (eval "$ac_link") 2>&5
17645 ac_status=$?
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17648 { (case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17651esac
17652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_try") 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017657 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017658else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017659 echo "$as_me: program exited with status $ac_status" >&5
17660echo "$as_me: failed program was:" >&5
17661sed 's/^/| /' conftest.$ac_ext >&5
17662
17663( exit $ac_status )
17664llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017666rm -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 +000017667fi
Reid Spencera773bd52006-08-04 18:18:08 +000017668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017669
Reid Spencer2706f8c2004-09-19 23:53:36 +000017670 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017671ac_cpp='$CPP $CPPFLAGS'
17672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17674ac_compiler_gnu=$ac_cv_c_compiler_gnu
17675
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017677{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17678echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017679 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017681cat >>confdefs.h <<\_ACEOF
17682#define HAVE_PRINTF_A 1
17683_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017684
Reid Spencer2706f8c2004-09-19 23:53:36 +000017685 fi
John Criswella0137d32003-10-13 16:22:01 +000017686
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017688{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17689echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17690if test "${ac_cv_func_rand48+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017692else
Reid Spencera773bd52006-08-04 18:18:08 +000017693 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017694ac_cpp='$CXXCPP $CPPFLAGS'
17695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017699 cat >conftest.$ac_ext <<_ACEOF
17700/* confdefs.h. */
17701_ACEOF
17702cat confdefs.h >>conftest.$ac_ext
17703cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017704/* end confdefs.h. */
17705#include <stdlib.h>
17706int
17707main ()
17708{
17709srand48(0);lrand48();drand48();
17710 ;
17711 return 0;
17712}
17713_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017714rm -f conftest.$ac_objext
17715if { (ac_try="$ac_compile"
17716case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719esac
17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_compile") 2>conftest.er1
17722 ac_status=$?
17723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
17728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17729 { (case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17732esac
17733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_try") 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; } &&
17738 { ac_try='test -s conftest.$ac_objext'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742esac
17743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017748 ac_cv_func_rand48=yes
17749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017750 echo "$as_me: failed program was:" >&5
17751sed 's/^/| /' conftest.$ac_ext >&5
17752
17753 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017755
Reid Spencera773bd52006-08-04 18:18:08 +000017756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017757 ac_ext=c
17758ac_cpp='$CPP $CPPFLAGS'
17759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17761ac_compiler_gnu=$ac_cv_c_compiler_gnu
17762
17763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017764{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17765echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017766
17767if test "$ac_cv_func_rand48" = "yes" ; then
17768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017769cat >>confdefs.h <<\_ACEOF
17770#define HAVE_RAND48 1
17771_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017772
17773fi
John Criswell0021c312004-02-13 21:57:29 +000017774
17775
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017776{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17777echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17778if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17780else
17781 cat >conftest.$ac_ext <<_ACEOF
17782/* confdefs.h. */
17783_ACEOF
17784cat confdefs.h >>conftest.$ac_ext
17785cat >>conftest.$ac_ext <<_ACEOF
17786/* end confdefs.h. */
17787$ac_includes_default
17788int
17789main ()
17790{
17791#ifndef strerror_s
17792 char *p = (char *) strerror_s;
17793 return !p;
17794#endif
17795
17796 ;
17797 return 0;
17798}
17799_ACEOF
17800rm -f conftest.$ac_objext
17801if { (ac_try="$ac_compile"
17802case "(($ac_try" in
17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804 *) ac_try_echo=$ac_try;;
17805esac
17806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_compile") 2>conftest.er1
17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818esac
17819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; } &&
17824 { ac_try='test -s conftest.$ac_objext'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17828esac
17829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_cv_have_decl_strerror_s=yes
17835else
17836 echo "$as_me: failed program was:" >&5
17837sed 's/^/| /' conftest.$ac_ext >&5
17838
17839 ac_cv_have_decl_strerror_s=no
17840fi
17841
17842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17843fi
17844{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17845echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17846if test $ac_cv_have_decl_strerror_s = yes; then
17847
17848cat >>confdefs.h <<_ACEOF
17849#define HAVE_DECL_STRERROR_S 1
17850_ACEOF
17851
17852
17853else
17854 cat >>confdefs.h <<_ACEOF
17855#define HAVE_DECL_STRERROR_S 0
17856_ACEOF
17857
17858
17859fi
17860
17861
17862
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017863if test "$llvm_cv_os_type" = "MingW" ; then
17864 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17865echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17866if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17868else
17869 ac_check_lib_save_LIBS=$LIBS
17870LIBS="-lgcc $LIBS"
17871cat >conftest.$ac_ext <<_ACEOF
17872/* confdefs.h. */
17873_ACEOF
17874cat confdefs.h >>conftest.$ac_ext
17875cat >>conftest.$ac_ext <<_ACEOF
17876/* end confdefs.h. */
17877
17878/* Override any GCC internal prototype to avoid an error.
17879 Use char because int might match the return type of a GCC
17880 builtin and then its argument prototype would still apply. */
17881#ifdef __cplusplus
17882extern "C"
17883#endif
17884char _alloca ();
17885int
17886main ()
17887{
17888return _alloca ();
17889 ;
17890 return 0;
17891}
17892_ACEOF
17893rm -f conftest.$ac_objext conftest$ac_exeext
17894if { (ac_try="$ac_link"
17895case "(($ac_try" in
17896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897 *) ac_try_echo=$ac_try;;
17898esac
17899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17900 (eval "$ac_link") 2>conftest.er1
17901 ac_status=$?
17902 grep -v '^ *+' conftest.er1 >conftest.err
17903 rm -f conftest.er1
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17908 { (case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911esac
17912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_try") 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest$ac_exeext'
17918 { (case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17921esac
17922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_try") 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ac_cv_lib_gcc__alloca=yes
17928else
17929 echo "$as_me: failed program was:" >&5
17930sed 's/^/| /' conftest.$ac_ext >&5
17931
17932 ac_cv_lib_gcc__alloca=no
17933fi
17934
17935rm -f core conftest.err conftest.$ac_objext \
17936 conftest$ac_exeext conftest.$ac_ext
17937LIBS=$ac_check_lib_save_LIBS
17938fi
17939{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17940echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17941if test $ac_cv_lib_gcc__alloca = yes; then
17942
17943cat >>confdefs.h <<\_ACEOF
17944#define HAVE__ALLOCA 1
17945_ACEOF
17946
17947fi
17948
17949 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17950echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17951if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17952 echo $ECHO_N "(cached) $ECHO_C" >&6
17953else
17954 ac_check_lib_save_LIBS=$LIBS
17955LIBS="-lgcc $LIBS"
17956cat >conftest.$ac_ext <<_ACEOF
17957/* confdefs.h. */
17958_ACEOF
17959cat confdefs.h >>conftest.$ac_ext
17960cat >>conftest.$ac_ext <<_ACEOF
17961/* end confdefs.h. */
17962
17963/* Override any GCC internal prototype to avoid an error.
17964 Use char because int might match the return type of a GCC
17965 builtin and then its argument prototype would still apply. */
17966#ifdef __cplusplus
17967extern "C"
17968#endif
17969char __alloca ();
17970int
17971main ()
17972{
17973return __alloca ();
17974 ;
17975 return 0;
17976}
17977_ACEOF
17978rm -f conftest.$ac_objext conftest$ac_exeext
17979if { (ac_try="$ac_link"
17980case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17983esac
17984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_link") 2>conftest.er1
17986 ac_status=$?
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
17992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17993 { (case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996esac
17997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_try") 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest$ac_exeext'
18003 { (case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006esac
18007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_try") 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_lib_gcc___alloca=yes
18013else
18014 echo "$as_me: failed program was:" >&5
18015sed 's/^/| /' conftest.$ac_ext >&5
18016
18017 ac_cv_lib_gcc___alloca=no
18018fi
18019
18020rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
18022LIBS=$ac_check_lib_save_LIBS
18023fi
18024{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18025echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18026if test $ac_cv_lib_gcc___alloca = yes; then
18027
18028cat >>confdefs.h <<\_ACEOF
18029#define HAVE___ALLOCA 1
18030_ACEOF
18031
18032fi
18033
18034 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18035echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18036if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18038else
18039 ac_check_lib_save_LIBS=$LIBS
18040LIBS="-lgcc $LIBS"
18041cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h. */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h. */
18047
18048/* Override any GCC internal prototype to avoid an error.
18049 Use char because int might match the return type of a GCC
18050 builtin and then its argument prototype would still apply. */
18051#ifdef __cplusplus
18052extern "C"
18053#endif
18054char __chkstk ();
18055int
18056main ()
18057{
18058return __chkstk ();
18059 ;
18060 return 0;
18061}
18062_ACEOF
18063rm -f conftest.$ac_objext conftest$ac_exeext
18064if { (ac_try="$ac_link"
18065case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18068esac
18069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_link") 2>conftest.er1
18071 ac_status=$?
18072 grep -v '^ *+' conftest.er1 >conftest.err
18073 rm -f conftest.er1
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } &&
18077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18078 { (case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18081esac
18082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_try") 2>&5
18084 ac_status=$?
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; } &&
18087 { ac_try='test -s conftest$ac_exeext'
18088 { (case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091esac
18092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_try") 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 ac_cv_lib_gcc___chkstk=yes
18098else
18099 echo "$as_me: failed program was:" >&5
18100sed 's/^/| /' conftest.$ac_ext >&5
18101
18102 ac_cv_lib_gcc___chkstk=no
18103fi
18104
18105rm -f core conftest.err conftest.$ac_objext \
18106 conftest$ac_exeext conftest.$ac_ext
18107LIBS=$ac_check_lib_save_LIBS
18108fi
18109{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18110echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18111if test $ac_cv_lib_gcc___chkstk = yes; then
18112
18113cat >>confdefs.h <<\_ACEOF
18114#define HAVE___CHKSTK 1
18115_ACEOF
18116
18117fi
18118
18119 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18120echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18121if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18123else
18124 ac_check_lib_save_LIBS=$LIBS
18125LIBS="-lgcc $LIBS"
18126cat >conftest.$ac_ext <<_ACEOF
18127/* confdefs.h. */
18128_ACEOF
18129cat confdefs.h >>conftest.$ac_ext
18130cat >>conftest.$ac_ext <<_ACEOF
18131/* end confdefs.h. */
18132
18133/* Override any GCC internal prototype to avoid an error.
18134 Use char because int might match the return type of a GCC
18135 builtin and then its argument prototype would still apply. */
18136#ifdef __cplusplus
18137extern "C"
18138#endif
18139char ___chkstk ();
18140int
18141main ()
18142{
18143return ___chkstk ();
18144 ;
18145 return 0;
18146}
18147_ACEOF
18148rm -f conftest.$ac_objext conftest$ac_exeext
18149if { (ac_try="$ac_link"
18150case "(($ac_try" in
18151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152 *) ac_try_echo=$ac_try;;
18153esac
18154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18155 (eval "$ac_link") 2>conftest.er1
18156 ac_status=$?
18157 grep -v '^ *+' conftest.er1 >conftest.err
18158 rm -f conftest.er1
18159 cat conftest.err >&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
18162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18163 { (case "(($ac_try" in
18164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 *) ac_try_echo=$ac_try;;
18166esac
18167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168 (eval "$ac_try") 2>&5
18169 ac_status=$?
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; } &&
18172 { ac_try='test -s conftest$ac_exeext'
18173 { (case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18176esac
18177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_try") 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; }; then
18182 ac_cv_lib_gcc____chkstk=yes
18183else
18184 echo "$as_me: failed program was:" >&5
18185sed 's/^/| /' conftest.$ac_ext >&5
18186
18187 ac_cv_lib_gcc____chkstk=no
18188fi
18189
18190rm -f core conftest.err conftest.$ac_objext \
18191 conftest$ac_exeext conftest.$ac_ext
18192LIBS=$ac_check_lib_save_LIBS
18193fi
18194{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18195echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18196if test $ac_cv_lib_gcc____chkstk = yes; then
18197
18198cat >>confdefs.h <<\_ACEOF
18199#define HAVE____CHKSTK 1
18200_ACEOF
18201
18202fi
18203
18204
18205 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18206echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18207if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18209else
18210 ac_check_lib_save_LIBS=$LIBS
18211LIBS="-lgcc $LIBS"
18212cat >conftest.$ac_ext <<_ACEOF
18213/* confdefs.h. */
18214_ACEOF
18215cat confdefs.h >>conftest.$ac_ext
18216cat >>conftest.$ac_ext <<_ACEOF
18217/* end confdefs.h. */
18218
18219/* Override any GCC internal prototype to avoid an error.
18220 Use char because int might match the return type of a GCC
18221 builtin and then its argument prototype would still apply. */
18222#ifdef __cplusplus
18223extern "C"
18224#endif
18225char __ashldi3 ();
18226int
18227main ()
18228{
18229return __ashldi3 ();
18230 ;
18231 return 0;
18232}
18233_ACEOF
18234rm -f conftest.$ac_objext conftest$ac_exeext
18235if { (ac_try="$ac_link"
18236case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18239esac
18240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_link") 2>conftest.er1
18242 ac_status=$?
18243 grep -v '^ *+' conftest.er1 >conftest.err
18244 rm -f conftest.er1
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } &&
18248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18249 { (case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252esac
18253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_try") 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest$ac_exeext'
18259 { (case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262esac
18263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_try") 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 ac_cv_lib_gcc___ashldi3=yes
18269else
18270 echo "$as_me: failed program was:" >&5
18271sed 's/^/| /' conftest.$ac_ext >&5
18272
18273 ac_cv_lib_gcc___ashldi3=no
18274fi
18275
18276rm -f core conftest.err conftest.$ac_objext \
18277 conftest$ac_exeext conftest.$ac_ext
18278LIBS=$ac_check_lib_save_LIBS
18279fi
18280{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18281echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18282if test $ac_cv_lib_gcc___ashldi3 = yes; then
18283
18284cat >>confdefs.h <<\_ACEOF
18285#define HAVE___ASHLDI3 1
18286_ACEOF
18287
18288fi
18289
18290 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18291echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18292if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18294else
18295 ac_check_lib_save_LIBS=$LIBS
18296LIBS="-lgcc $LIBS"
18297cat >conftest.$ac_ext <<_ACEOF
18298/* confdefs.h. */
18299_ACEOF
18300cat confdefs.h >>conftest.$ac_ext
18301cat >>conftest.$ac_ext <<_ACEOF
18302/* end confdefs.h. */
18303
18304/* Override any GCC internal prototype to avoid an error.
18305 Use char because int might match the return type of a GCC
18306 builtin and then its argument prototype would still apply. */
18307#ifdef __cplusplus
18308extern "C"
18309#endif
18310char __ashrdi3 ();
18311int
18312main ()
18313{
18314return __ashrdi3 ();
18315 ;
18316 return 0;
18317}
18318_ACEOF
18319rm -f conftest.$ac_objext conftest$ac_exeext
18320if { (ac_try="$ac_link"
18321case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18324esac
18325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_link") 2>conftest.er1
18327 ac_status=$?
18328 grep -v '^ *+' conftest.er1 >conftest.err
18329 rm -f conftest.er1
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18334 { (case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18337esac
18338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_try") 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest$ac_exeext'
18344 { (case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18347esac
18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_try") 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_cv_lib_gcc___ashrdi3=yes
18354else
18355 echo "$as_me: failed program was:" >&5
18356sed 's/^/| /' conftest.$ac_ext >&5
18357
18358 ac_cv_lib_gcc___ashrdi3=no
18359fi
18360
18361rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18363LIBS=$ac_check_lib_save_LIBS
18364fi
18365{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18366echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18367if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18368
18369cat >>confdefs.h <<\_ACEOF
18370#define HAVE___ASHRDI3 1
18371_ACEOF
18372
18373fi
18374
18375 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18376echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18377if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18379else
18380 ac_check_lib_save_LIBS=$LIBS
18381LIBS="-lgcc $LIBS"
18382cat >conftest.$ac_ext <<_ACEOF
18383/* confdefs.h. */
18384_ACEOF
18385cat confdefs.h >>conftest.$ac_ext
18386cat >>conftest.$ac_ext <<_ACEOF
18387/* end confdefs.h. */
18388
18389/* Override any GCC internal prototype to avoid an error.
18390 Use char because int might match the return type of a GCC
18391 builtin and then its argument prototype would still apply. */
18392#ifdef __cplusplus
18393extern "C"
18394#endif
18395char __divdi3 ();
18396int
18397main ()
18398{
18399return __divdi3 ();
18400 ;
18401 return 0;
18402}
18403_ACEOF
18404rm -f conftest.$ac_objext conftest$ac_exeext
18405if { (ac_try="$ac_link"
18406case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18409esac
18410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_link") 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } &&
18418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18419 { (case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18422esac
18423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_try") 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; } &&
18428 { ac_try='test -s conftest$ac_exeext'
18429 { (case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432esac
18433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_try") 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 ac_cv_lib_gcc___divdi3=yes
18439else
18440 echo "$as_me: failed program was:" >&5
18441sed 's/^/| /' conftest.$ac_ext >&5
18442
18443 ac_cv_lib_gcc___divdi3=no
18444fi
18445
18446rm -f core conftest.err conftest.$ac_objext \
18447 conftest$ac_exeext conftest.$ac_ext
18448LIBS=$ac_check_lib_save_LIBS
18449fi
18450{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18451echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18452if test $ac_cv_lib_gcc___divdi3 = yes; then
18453
18454cat >>confdefs.h <<\_ACEOF
18455#define HAVE___DIVDI3 1
18456_ACEOF
18457
18458fi
18459
18460 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18461echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18462if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18464else
18465 ac_check_lib_save_LIBS=$LIBS
18466LIBS="-lgcc $LIBS"
18467cat >conftest.$ac_ext <<_ACEOF
18468/* confdefs.h. */
18469_ACEOF
18470cat confdefs.h >>conftest.$ac_ext
18471cat >>conftest.$ac_ext <<_ACEOF
18472/* end confdefs.h. */
18473
18474/* Override any GCC internal prototype to avoid an error.
18475 Use char because int might match the return type of a GCC
18476 builtin and then its argument prototype would still apply. */
18477#ifdef __cplusplus
18478extern "C"
18479#endif
18480char __fixdfdi ();
18481int
18482main ()
18483{
18484return __fixdfdi ();
18485 ;
18486 return 0;
18487}
18488_ACEOF
18489rm -f conftest.$ac_objext conftest$ac_exeext
18490if { (ac_try="$ac_link"
18491case "(($ac_try" in
18492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18493 *) ac_try_echo=$ac_try;;
18494esac
18495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18496 (eval "$ac_link") 2>conftest.er1
18497 ac_status=$?
18498 grep -v '^ *+' conftest.er1 >conftest.err
18499 rm -f conftest.er1
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } &&
18503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18504 { (case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18507esac
18508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_try") 2>&5
18510 ac_status=$?
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; } &&
18513 { ac_try='test -s conftest$ac_exeext'
18514 { (case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18517esac
18518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_try") 2>&5
18520 ac_status=$?
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; }; then
18523 ac_cv_lib_gcc___fixdfdi=yes
18524else
18525 echo "$as_me: failed program was:" >&5
18526sed 's/^/| /' conftest.$ac_ext >&5
18527
18528 ac_cv_lib_gcc___fixdfdi=no
18529fi
18530
18531rm -f core conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18533LIBS=$ac_check_lib_save_LIBS
18534fi
18535{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18536echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18537if test $ac_cv_lib_gcc___fixdfdi = yes; then
18538
18539cat >>confdefs.h <<\_ACEOF
18540#define HAVE___FIXDFDI 1
18541_ACEOF
18542
18543fi
18544
18545 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18546echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18547if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18549else
18550 ac_check_lib_save_LIBS=$LIBS
18551LIBS="-lgcc $LIBS"
18552cat >conftest.$ac_ext <<_ACEOF
18553/* confdefs.h. */
18554_ACEOF
18555cat confdefs.h >>conftest.$ac_ext
18556cat >>conftest.$ac_ext <<_ACEOF
18557/* end confdefs.h. */
18558
18559/* Override any GCC internal prototype to avoid an error.
18560 Use char because int might match the return type of a GCC
18561 builtin and then its argument prototype would still apply. */
18562#ifdef __cplusplus
18563extern "C"
18564#endif
18565char __fixsfdi ();
18566int
18567main ()
18568{
18569return __fixsfdi ();
18570 ;
18571 return 0;
18572}
18573_ACEOF
18574rm -f conftest.$ac_objext conftest$ac_exeext
18575if { (ac_try="$ac_link"
18576case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18579esac
18580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581 (eval "$ac_link") 2>conftest.er1
18582 ac_status=$?
18583 grep -v '^ *+' conftest.er1 >conftest.err
18584 rm -f conftest.er1
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
18588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18589 { (case "(($ac_try" in
18590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591 *) ac_try_echo=$ac_try;;
18592esac
18593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18594 (eval "$ac_try") 2>&5
18595 ac_status=$?
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; } &&
18598 { ac_try='test -s conftest$ac_exeext'
18599 { (case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18602esac
18603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_try") 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
18608 ac_cv_lib_gcc___fixsfdi=yes
18609else
18610 echo "$as_me: failed program was:" >&5
18611sed 's/^/| /' conftest.$ac_ext >&5
18612
18613 ac_cv_lib_gcc___fixsfdi=no
18614fi
18615
18616rm -f core conftest.err conftest.$ac_objext \
18617 conftest$ac_exeext conftest.$ac_ext
18618LIBS=$ac_check_lib_save_LIBS
18619fi
18620{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18621echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18622if test $ac_cv_lib_gcc___fixsfdi = yes; then
18623
18624cat >>confdefs.h <<\_ACEOF
18625#define HAVE___FIXSFDI 1
18626_ACEOF
18627
18628fi
18629
18630 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18631echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18632if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18634else
18635 ac_check_lib_save_LIBS=$LIBS
18636LIBS="-lgcc $LIBS"
18637cat >conftest.$ac_ext <<_ACEOF
18638/* confdefs.h. */
18639_ACEOF
18640cat confdefs.h >>conftest.$ac_ext
18641cat >>conftest.$ac_ext <<_ACEOF
18642/* end confdefs.h. */
18643
18644/* Override any GCC internal prototype to avoid an error.
18645 Use char because int might match the return type of a GCC
18646 builtin and then its argument prototype would still apply. */
18647#ifdef __cplusplus
18648extern "C"
18649#endif
18650char __floatdidf ();
18651int
18652main ()
18653{
18654return __floatdidf ();
18655 ;
18656 return 0;
18657}
18658_ACEOF
18659rm -f conftest.$ac_objext conftest$ac_exeext
18660if { (ac_try="$ac_link"
18661case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18664esac
18665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_link") 2>conftest.er1
18667 ac_status=$?
18668 grep -v '^ *+' conftest.er1 >conftest.err
18669 rm -f conftest.er1
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } &&
18673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18674 { (case "(($ac_try" in
18675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18676 *) ac_try_echo=$ac_try;;
18677esac
18678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18679 (eval "$ac_try") 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try='test -s conftest$ac_exeext'
18684 { (case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687esac
18688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_try") 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 ac_cv_lib_gcc___floatdidf=yes
18694else
18695 echo "$as_me: failed program was:" >&5
18696sed 's/^/| /' conftest.$ac_ext >&5
18697
18698 ac_cv_lib_gcc___floatdidf=no
18699fi
18700
18701rm -f core conftest.err conftest.$ac_objext \
18702 conftest$ac_exeext conftest.$ac_ext
18703LIBS=$ac_check_lib_save_LIBS
18704fi
18705{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18706echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18707if test $ac_cv_lib_gcc___floatdidf = yes; then
18708
18709cat >>confdefs.h <<\_ACEOF
18710#define HAVE___FLOATDIDF 1
18711_ACEOF
18712
18713fi
18714
18715 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18716echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18717if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18719else
18720 ac_check_lib_save_LIBS=$LIBS
18721LIBS="-lgcc $LIBS"
18722cat >conftest.$ac_ext <<_ACEOF
18723/* confdefs.h. */
18724_ACEOF
18725cat confdefs.h >>conftest.$ac_ext
18726cat >>conftest.$ac_ext <<_ACEOF
18727/* end confdefs.h. */
18728
18729/* Override any GCC internal prototype to avoid an error.
18730 Use char because int might match the return type of a GCC
18731 builtin and then its argument prototype would still apply. */
18732#ifdef __cplusplus
18733extern "C"
18734#endif
18735char __lshrdi3 ();
18736int
18737main ()
18738{
18739return __lshrdi3 ();
18740 ;
18741 return 0;
18742}
18743_ACEOF
18744rm -f conftest.$ac_objext conftest$ac_exeext
18745if { (ac_try="$ac_link"
18746case "(($ac_try" in
18747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748 *) ac_try_echo=$ac_try;;
18749esac
18750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18751 (eval "$ac_link") 2>conftest.er1
18752 ac_status=$?
18753 grep -v '^ *+' conftest.er1 >conftest.err
18754 rm -f conftest.er1
18755 cat conftest.err >&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
18758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18759 { (case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18762esac
18763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_try") 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } &&
18768 { ac_try='test -s conftest$ac_exeext'
18769 { (case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18772esac
18773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_try") 2>&5
18775 ac_status=$?
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; }; then
18778 ac_cv_lib_gcc___lshrdi3=yes
18779else
18780 echo "$as_me: failed program was:" >&5
18781sed 's/^/| /' conftest.$ac_ext >&5
18782
18783 ac_cv_lib_gcc___lshrdi3=no
18784fi
18785
18786rm -f core conftest.err conftest.$ac_objext \
18787 conftest$ac_exeext conftest.$ac_ext
18788LIBS=$ac_check_lib_save_LIBS
18789fi
18790{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18791echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18792if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18793
18794cat >>confdefs.h <<\_ACEOF
18795#define HAVE___LSHRDI3 1
18796_ACEOF
18797
18798fi
18799
18800 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18801echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18802if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804else
18805 ac_check_lib_save_LIBS=$LIBS
18806LIBS="-lgcc $LIBS"
18807cat >conftest.$ac_ext <<_ACEOF
18808/* confdefs.h. */
18809_ACEOF
18810cat confdefs.h >>conftest.$ac_ext
18811cat >>conftest.$ac_ext <<_ACEOF
18812/* end confdefs.h. */
18813
18814/* Override any GCC internal prototype to avoid an error.
18815 Use char because int might match the return type of a GCC
18816 builtin and then its argument prototype would still apply. */
18817#ifdef __cplusplus
18818extern "C"
18819#endif
18820char __moddi3 ();
18821int
18822main ()
18823{
18824return __moddi3 ();
18825 ;
18826 return 0;
18827}
18828_ACEOF
18829rm -f conftest.$ac_objext conftest$ac_exeext
18830if { (ac_try="$ac_link"
18831case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18834esac
18835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_link") 2>conftest.er1
18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
18843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18844 { (case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18847esac
18848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_try") 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; } &&
18853 { ac_try='test -s conftest$ac_exeext'
18854 { (case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18857esac
18858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_try") 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18863 ac_cv_lib_gcc___moddi3=yes
18864else
18865 echo "$as_me: failed program was:" >&5
18866sed 's/^/| /' conftest.$ac_ext >&5
18867
18868 ac_cv_lib_gcc___moddi3=no
18869fi
18870
18871rm -f core conftest.err conftest.$ac_objext \
18872 conftest$ac_exeext conftest.$ac_ext
18873LIBS=$ac_check_lib_save_LIBS
18874fi
18875{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18876echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18877if test $ac_cv_lib_gcc___moddi3 = yes; then
18878
18879cat >>confdefs.h <<\_ACEOF
18880#define HAVE___MODDI3 1
18881_ACEOF
18882
18883fi
18884
18885 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18886echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18887if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18889else
18890 ac_check_lib_save_LIBS=$LIBS
18891LIBS="-lgcc $LIBS"
18892cat >conftest.$ac_ext <<_ACEOF
18893/* confdefs.h. */
18894_ACEOF
18895cat confdefs.h >>conftest.$ac_ext
18896cat >>conftest.$ac_ext <<_ACEOF
18897/* end confdefs.h. */
18898
18899/* Override any GCC internal prototype to avoid an error.
18900 Use char because int might match the return type of a GCC
18901 builtin and then its argument prototype would still apply. */
18902#ifdef __cplusplus
18903extern "C"
18904#endif
18905char __udivdi3 ();
18906int
18907main ()
18908{
18909return __udivdi3 ();
18910 ;
18911 return 0;
18912}
18913_ACEOF
18914rm -f conftest.$ac_objext conftest$ac_exeext
18915if { (ac_try="$ac_link"
18916case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919esac
18920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_link") 2>conftest.er1
18922 ac_status=$?
18923 grep -v '^ *+' conftest.er1 >conftest.err
18924 rm -f conftest.er1
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } &&
18928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18929 { (case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18932esac
18933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_try") 2>&5
18935 ac_status=$?
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest$ac_exeext'
18939 { (case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18942esac
18943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_try") 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; }; then
18948 ac_cv_lib_gcc___udivdi3=yes
18949else
18950 echo "$as_me: failed program was:" >&5
18951sed 's/^/| /' conftest.$ac_ext >&5
18952
18953 ac_cv_lib_gcc___udivdi3=no
18954fi
18955
18956rm -f core conftest.err conftest.$ac_objext \
18957 conftest$ac_exeext conftest.$ac_ext
18958LIBS=$ac_check_lib_save_LIBS
18959fi
18960{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18961echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18962if test $ac_cv_lib_gcc___udivdi3 = yes; then
18963
18964cat >>confdefs.h <<\_ACEOF
18965#define HAVE___UDIVDI3 1
18966_ACEOF
18967
18968fi
18969
18970 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18971echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18972if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18974else
18975 ac_check_lib_save_LIBS=$LIBS
18976LIBS="-lgcc $LIBS"
18977cat >conftest.$ac_ext <<_ACEOF
18978/* confdefs.h. */
18979_ACEOF
18980cat confdefs.h >>conftest.$ac_ext
18981cat >>conftest.$ac_ext <<_ACEOF
18982/* end confdefs.h. */
18983
18984/* Override any GCC internal prototype to avoid an error.
18985 Use char because int might match the return type of a GCC
18986 builtin and then its argument prototype would still apply. */
18987#ifdef __cplusplus
18988extern "C"
18989#endif
18990char __umoddi3 ();
18991int
18992main ()
18993{
18994return __umoddi3 ();
18995 ;
18996 return 0;
18997}
18998_ACEOF
18999rm -f conftest.$ac_objext conftest$ac_exeext
19000if { (ac_try="$ac_link"
19001case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19004esac
19005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_link") 2>conftest.er1
19007 ac_status=$?
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
19013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19014 { (case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19017esac
19018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_try") 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; } &&
19023 { ac_try='test -s conftest$ac_exeext'
19024 { (case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19027esac
19028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_try") 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; }; then
19033 ac_cv_lib_gcc___umoddi3=yes
19034else
19035 echo "$as_me: failed program was:" >&5
19036sed 's/^/| /' conftest.$ac_ext >&5
19037
19038 ac_cv_lib_gcc___umoddi3=no
19039fi
19040
19041rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043LIBS=$ac_check_lib_save_LIBS
19044fi
19045{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19046echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19047if test $ac_cv_lib_gcc___umoddi3 = yes; then
19048
19049cat >>confdefs.h <<\_ACEOF
19050#define HAVE___UMODDI3 1
19051_ACEOF
19052
19053fi
19054
19055
19056 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19057echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19058if test "${ac_cv_lib_gcc___main+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19060else
19061 ac_check_lib_save_LIBS=$LIBS
19062LIBS="-lgcc $LIBS"
19063cat >conftest.$ac_ext <<_ACEOF
19064/* confdefs.h. */
19065_ACEOF
19066cat confdefs.h >>conftest.$ac_ext
19067cat >>conftest.$ac_ext <<_ACEOF
19068/* end confdefs.h. */
19069
19070/* Override any GCC internal prototype to avoid an error.
19071 Use char because int might match the return type of a GCC
19072 builtin and then its argument prototype would still apply. */
19073#ifdef __cplusplus
19074extern "C"
19075#endif
19076char __main ();
19077int
19078main ()
19079{
19080return __main ();
19081 ;
19082 return 0;
19083}
19084_ACEOF
19085rm -f conftest.$ac_objext conftest$ac_exeext
19086if { (ac_try="$ac_link"
19087case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19090esac
19091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_link") 2>conftest.er1
19093 ac_status=$?
19094 grep -v '^ *+' conftest.er1 >conftest.err
19095 rm -f conftest.er1
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest$ac_exeext'
19110 { (case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_try") 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_cv_lib_gcc___main=yes
19120else
19121 echo "$as_me: failed program was:" >&5
19122sed 's/^/| /' conftest.$ac_ext >&5
19123
19124 ac_cv_lib_gcc___main=no
19125fi
19126
19127rm -f core conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19129LIBS=$ac_check_lib_save_LIBS
19130fi
19131{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19132echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19133if test $ac_cv_lib_gcc___main = yes; then
19134
19135cat >>confdefs.h <<\_ACEOF
19136#define HAVE___MAIN 1
19137_ACEOF
19138
19139fi
19140
19141 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19142echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19143if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145else
19146 ac_check_lib_save_LIBS=$LIBS
19147LIBS="-lgcc $LIBS"
19148cat >conftest.$ac_ext <<_ACEOF
19149/* confdefs.h. */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h. */
19154
19155/* Override any GCC internal prototype to avoid an error.
19156 Use char because int might match the return type of a GCC
19157 builtin and then its argument prototype would still apply. */
19158#ifdef __cplusplus
19159extern "C"
19160#endif
19161char __cmpdi2 ();
19162int
19163main ()
19164{
19165return __cmpdi2 ();
19166 ;
19167 return 0;
19168}
19169_ACEOF
19170rm -f conftest.$ac_objext conftest$ac_exeext
19171if { (ac_try="$ac_link"
19172case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19175esac
19176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_link") 2>conftest.er1
19178 ac_status=$?
19179 grep -v '^ *+' conftest.er1 >conftest.err
19180 rm -f conftest.er1
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19185 { (case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19188esac
19189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_try") 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; } &&
19194 { ac_try='test -s conftest$ac_exeext'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_cv_lib_gcc___cmpdi2=yes
19205else
19206 echo "$as_me: failed program was:" >&5
19207sed 's/^/| /' conftest.$ac_ext >&5
19208
19209 ac_cv_lib_gcc___cmpdi2=no
19210fi
19211
19212rm -f core conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
19214LIBS=$ac_check_lib_save_LIBS
19215fi
19216{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19217echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19218if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19219
19220cat >>confdefs.h <<\_ACEOF
19221#define HAVE___CMPDI2 1
19222_ACEOF
19223
19224fi
19225
19226fi
19227
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019228if test "$llvm_cv_os_type" = "MingW" ; then
19229 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19230echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19231 cat >conftest.$ac_ext <<_ACEOF
19232#include <windows.h>
19233#include <imagehlp.h>
19234extern void foo(PENUMLOADED_MODULES_CALLBACK);
19235extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19236_ACEOF
19237rm -f conftest.$ac_objext
19238if { (ac_try="$ac_compile"
19239case "(($ac_try" in
19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19242esac
19243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244 (eval "$ac_compile") 2>conftest.er1
19245 ac_status=$?
19246 grep -v '^ *+' conftest.er1 >conftest.err
19247 rm -f conftest.er1
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
19251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19252 { (case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19255esac
19256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_try") 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try='test -s conftest.$ac_objext'
19262 { (case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19265esac
19266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_try") 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19271
19272 { echo "$as_me:$LINENO: result: yes" >&5
19273echo "${ECHO_T}yes" >&6; }
19274 llvm_cv_win32_elmcb_pcstr="PCSTR"
19275
19276else
19277 echo "$as_me: failed program was:" >&5
19278sed 's/^/| /' conftest.$ac_ext >&5
19279
19280
19281 { echo "$as_me:$LINENO: result: no" >&5
19282echo "${ECHO_T}no" >&6; }
19283 llvm_cv_win32_elmcb_pcstr="PSTR"
19284
19285fi
19286
19287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288
19289cat >>confdefs.h <<_ACEOF
19290#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19291_ACEOF
19292
19293fi
19294
Torok Edwin871384f2010-01-26 08:50:50 +000019295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019296{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19297echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19298if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019300else
Reid Spencera773bd52006-08-04 18:18:08 +000019301 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019302ac_cpp='$CXXCPP $CPPFLAGS'
19303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019307 cat >conftest.$ac_ext <<_ACEOF
19308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019312/* end confdefs.h. */
19313#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019314int
19315main ()
19316{
19317float f; isnan(f);
19318 ;
19319 return 0;
19320}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019321_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019322rm -f conftest.$ac_objext
19323if { (ac_try="$ac_compile"
19324case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19327esac
19328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_compile") 2>conftest.er1
19330 ac_status=$?
19331 grep -v '^ *+' conftest.er1 >conftest.err
19332 rm -f conftest.er1
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } &&
19336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19337 { (case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19340esac
19341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342 (eval "$ac_try") 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; } &&
19346 { ac_try='test -s conftest.$ac_objext'
19347 { (case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350esac
19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_try") 2>&5
19353 ac_status=$?
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019356 ac_cv_func_isnan_in_math_h=yes
19357else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019358 echo "$as_me: failed program was:" >&5
19359sed 's/^/| /' conftest.$ac_ext >&5
19360
19361 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019363
Reid Spencera773bd52006-08-04 18:18:08 +000019364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019365 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019366ac_cpp='$CPP $CPPFLAGS'
19367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19369ac_compiler_gnu=$ac_cv_c_compiler_gnu
19370
19371fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019372{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19373echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019374
19375
19376if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019378cat >>confdefs.h <<\_ACEOF
19379#define HAVE_ISNAN_IN_MATH_H 1
19380_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019381
Reid Spencerabec8f92004-10-27 23:03:44 +000019382fi
19383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019384{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19385echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19386if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019388else
Reid Spencera773bd52006-08-04 18:18:08 +000019389 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019390ac_cpp='$CXXCPP $CPPFLAGS'
19391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019395 cat >conftest.$ac_ext <<_ACEOF
19396/* confdefs.h. */
19397_ACEOF
19398cat confdefs.h >>conftest.$ac_ext
19399cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019400/* end confdefs.h. */
19401#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019402int
19403main ()
19404{
19405float f; isnan(f);
19406 ;
19407 return 0;
19408}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019409_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019410rm -f conftest.$ac_objext
19411if { (ac_try="$ac_compile"
19412case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19415esac
19416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417 (eval "$ac_compile") 2>conftest.er1
19418 ac_status=$?
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19425 { (case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428esac
19429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_try") 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest.$ac_objext'
19435 { (case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19438esac
19439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_try") 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019444 ac_cv_func_isnan_in_cmath=yes
19445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019446 echo "$as_me: failed program was:" >&5
19447sed 's/^/| /' conftest.$ac_ext >&5
19448
19449 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019450fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019451
Reid Spencera773bd52006-08-04 18:18:08 +000019452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019453 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019454ac_cpp='$CPP $CPPFLAGS'
19455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457ac_compiler_gnu=$ac_cv_c_compiler_gnu
19458
19459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019460{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19461echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019462
19463if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019465cat >>confdefs.h <<\_ACEOF
19466#define HAVE_ISNAN_IN_CMATH 1
19467_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019468
Reid Spencerabec8f92004-10-27 23:03:44 +000019469fi
19470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019471{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19472echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19473if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019475else
Reid Spencera773bd52006-08-04 18:18:08 +000019476 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019477ac_cpp='$CXXCPP $CPPFLAGS'
19478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019482 cat >conftest.$ac_ext <<_ACEOF
19483/* confdefs.h. */
19484_ACEOF
19485cat confdefs.h >>conftest.$ac_ext
19486cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019487/* end confdefs.h. */
19488#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019489int
19490main ()
19491{
19492float f; std::isnan(f);
19493 ;
19494 return 0;
19495}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019496_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019497rm -f conftest.$ac_objext
19498if { (ac_try="$ac_compile"
19499case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19502esac
19503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_compile") 2>conftest.er1
19505 ac_status=$?
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19512 { (case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515esac
19516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; } &&
19521 { ac_try='test -s conftest.$ac_objext'
19522 { (case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19525esac
19526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_try") 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019531 ac_cv_func_std_isnan_in_cmath=yes
19532else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019533 echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019538
Reid Spencera773bd52006-08-04 18:18:08 +000019539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019540 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019541ac_cpp='$CPP $CPPFLAGS'
19542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544ac_compiler_gnu=$ac_cv_c_compiler_gnu
19545
19546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019547{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19548echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019549
19550if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019552cat >>confdefs.h <<\_ACEOF
19553#define HAVE_STD_ISNAN_IN_CMATH 1
19554_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019555
Reid Spencerabec8f92004-10-27 23:03:44 +000019556fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019557
19558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019559{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19560echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19561if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19562 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019563else
Reid Spencera773bd52006-08-04 18:18:08 +000019564 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019565ac_cpp='$CXXCPP $CPPFLAGS'
19566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570 cat >conftest.$ac_ext <<_ACEOF
19571/* confdefs.h. */
19572_ACEOF
19573cat confdefs.h >>conftest.$ac_ext
19574cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019575/* end confdefs.h. */
19576#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019577int
19578main ()
19579{
19580float f; isinf(f);
19581 ;
19582 return 0;
19583}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019584_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019585rm -f conftest.$ac_objext
19586if { (ac_try="$ac_compile"
19587case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19590esac
19591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_compile") 2>conftest.er1
19593 ac_status=$?
19594 grep -v '^ *+' conftest.er1 >conftest.err
19595 rm -f conftest.er1
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19600 { (case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19603esac
19604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_try") 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest.$ac_objext'
19610 { (case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613esac
19614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_try") 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019619 ac_cv_func_isinf_in_math_h=yes
19620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019621 echo "$as_me: failed program was:" >&5
19622sed 's/^/| /' conftest.$ac_ext >&5
19623
19624 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019626
Reid Spencera773bd52006-08-04 18:18:08 +000019627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019628 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019629ac_cpp='$CPP $CPPFLAGS'
19630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632ac_compiler_gnu=$ac_cv_c_compiler_gnu
19633
19634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019635{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19636echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019637
19638if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019640cat >>confdefs.h <<\_ACEOF
19641#define HAVE_ISINF_IN_MATH_H 1
19642_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019643
Reid Spencerabec8f92004-10-27 23:03:44 +000019644fi
19645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019646{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19647echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19648if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019650else
Reid Spencera773bd52006-08-04 18:18:08 +000019651 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019652ac_cpp='$CXXCPP $CPPFLAGS'
19653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019657 cat >conftest.$ac_ext <<_ACEOF
19658/* confdefs.h. */
19659_ACEOF
19660cat confdefs.h >>conftest.$ac_ext
19661cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019662/* end confdefs.h. */
19663#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019664int
19665main ()
19666{
19667float f; isinf(f);
19668 ;
19669 return 0;
19670}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019671_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019672rm -f conftest.$ac_objext
19673if { (ac_try="$ac_compile"
19674case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19677esac
19678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_compile") 2>conftest.er1
19680 ac_status=$?
19681 grep -v '^ *+' conftest.er1 >conftest.err
19682 rm -f conftest.er1
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } &&
19686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19687 { (case "(($ac_try" in
19688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 *) ac_try_echo=$ac_try;;
19690esac
19691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19692 (eval "$ac_try") 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; } &&
19696 { ac_try='test -s conftest.$ac_objext'
19697 { (case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19700esac
19701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_try") 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019706 ac_cv_func_isinf_in_cmath=yes
19707else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019708 echo "$as_me: failed program was:" >&5
19709sed 's/^/| /' conftest.$ac_ext >&5
19710
19711 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019712fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019713
Reid Spencera773bd52006-08-04 18:18:08 +000019714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019715 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019716ac_cpp='$CPP $CPPFLAGS'
19717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19719ac_compiler_gnu=$ac_cv_c_compiler_gnu
19720
19721fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019722{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19723echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019724
19725if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019727cat >>confdefs.h <<\_ACEOF
19728#define HAVE_ISINF_IN_CMATH 1
19729_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019730
Reid Spencerabec8f92004-10-27 23:03:44 +000019731fi
19732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019733{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19734echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19735if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019737else
Reid Spencera773bd52006-08-04 18:18:08 +000019738 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019739ac_cpp='$CXXCPP $CPPFLAGS'
19740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019744 cat >conftest.$ac_ext <<_ACEOF
19745/* confdefs.h. */
19746_ACEOF
19747cat confdefs.h >>conftest.$ac_ext
19748cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019749/* end confdefs.h. */
19750#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019751int
19752main ()
19753{
19754float f; std::isinf(f)}
19755 ;
19756 return 0;
19757}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019758_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019759rm -f conftest.$ac_objext
19760if { (ac_try="$ac_compile"
19761case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19764esac
19765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_compile") 2>conftest.er1
19767 ac_status=$?
19768 grep -v '^ *+' conftest.er1 >conftest.err
19769 rm -f conftest.er1
19770 cat conftest.err >&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
19773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19774 { (case "(($ac_try" in
19775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776 *) ac_try_echo=$ac_try;;
19777esac
19778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779 (eval "$ac_try") 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; } &&
19783 { ac_try='test -s conftest.$ac_objext'
19784 { (case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19787esac
19788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_try") 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019793 ac_cv_func_std_isinf_in_cmath=yes
19794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019795 echo "$as_me: failed program was:" >&5
19796sed 's/^/| /' conftest.$ac_ext >&5
19797
19798 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019799fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019800
Reid Spencera773bd52006-08-04 18:18:08 +000019801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019802 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019803ac_cpp='$CPP $CPPFLAGS'
19804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19806ac_compiler_gnu=$ac_cv_c_compiler_gnu
19807
19808fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019809{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19810echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019811
19812if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019814cat >>confdefs.h <<\_ACEOF
19815#define HAVE_STD_ISINF_IN_CMATH 1
19816_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019817
Reid Spencerabec8f92004-10-27 23:03:44 +000019818fi
19819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019820{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19821echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19822if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019824else
Reid Spencera773bd52006-08-04 18:18:08 +000019825 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019826ac_cpp='$CXXCPP $CPPFLAGS'
19827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019831 cat >conftest.$ac_ext <<_ACEOF
19832/* confdefs.h. */
19833_ACEOF
19834cat confdefs.h >>conftest.$ac_ext
19835cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019836/* end confdefs.h. */
19837#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019838int
19839main ()
19840{
19841float f; finite(f);
19842 ;
19843 return 0;
19844}
Brian Gaeked59a6472004-07-21 03:33:58 +000019845_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019846rm -f conftest.$ac_objext
19847if { (ac_try="$ac_compile"
19848case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19851esac
19852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_compile") 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19861 { (case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19864esac
19865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_try") 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; } &&
19870 { ac_try='test -s conftest.$ac_objext'
19871 { (case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874esac
19875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_try") 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019880 ac_cv_func_finite_in_ieeefp_h=yes
19881else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019882 echo "$as_me: failed program was:" >&5
19883sed 's/^/| /' conftest.$ac_ext >&5
19884
19885 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019886fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019887
Reid Spencera773bd52006-08-04 18:18:08 +000019888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019889 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019890ac_cpp='$CPP $CPPFLAGS'
19891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19893ac_compiler_gnu=$ac_cv_c_compiler_gnu
19894
19895fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019896{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19897echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019898
Brian Gaeke6802b552004-10-28 05:06:45 +000019899if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019901cat >>confdefs.h <<\_ACEOF
19902#define HAVE_FINITE_IN_IEEEFP_H 1
19903_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019904
Reid Spencerabec8f92004-10-27 23:03:44 +000019905fi
19906
19907
19908
Reid Spencer30fe5262007-01-20 07:48:49 +000019909if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019910
19911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019912for ac_header in stdlib.h unistd.h
19913do
19914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19920fi
19921ac_res=`eval echo '${'$as_ac_Header'}'`
19922 { echo "$as_me:$LINENO: result: $ac_res" >&5
19923echo "${ECHO_T}$ac_res" >&6; }
19924else
19925 # Is the header compilable?
19926{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19928cat >conftest.$ac_ext <<_ACEOF
19929/* confdefs.h. */
19930_ACEOF
19931cat confdefs.h >>conftest.$ac_ext
19932cat >>conftest.$ac_ext <<_ACEOF
19933/* end confdefs.h. */
19934$ac_includes_default
19935#include <$ac_header>
19936_ACEOF
19937rm -f conftest.$ac_objext
19938if { (ac_try="$ac_compile"
19939case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942esac
19943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_compile") 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19952 { (case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19955esac
19956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_try") 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest.$ac_objext'
19962 { (case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965esac
19966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_try") 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_header_compiler=yes
19972else
19973 echo "$as_me: failed program was:" >&5
19974sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019976 ac_header_compiler=no
19977fi
19978
19979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19981echo "${ECHO_T}$ac_header_compiler" >&6; }
19982
19983# Is the header present?
19984{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19986cat >conftest.$ac_ext <<_ACEOF
19987/* confdefs.h. */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h. */
19992#include <$ac_header>
19993_ACEOF
19994if { (ac_try="$ac_cpp conftest.$ac_ext"
19995case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19998esac
19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20001 ac_status=$?
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } >/dev/null; then
20007 if test -s conftest.err; then
20008 ac_cpp_err=$ac_c_preproc_warn_flag
20009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20010 else
20011 ac_cpp_err=
20012 fi
20013else
20014 ac_cpp_err=yes
20015fi
20016if test -z "$ac_cpp_err"; then
20017 ac_header_preproc=yes
20018else
20019 echo "$as_me: failed program was:" >&5
20020sed 's/^/| /' conftest.$ac_ext >&5
20021
20022 ac_header_preproc=no
20023fi
20024
20025rm -f conftest.err conftest.$ac_ext
20026{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20027echo "${ECHO_T}$ac_header_preproc" >&6; }
20028
20029# So? What about this header?
20030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20031 yes:no: )
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20036 ac_header_preproc=yes
20037 ;;
20038 no:yes:* )
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20051 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020052## ------------------------------------ ##
20053## Report this to http://llvm.org/bugs/ ##
20054## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020055_ASBOX
20056 ) | sed "s/^/$as_me: WARNING: /" >&2
20057 ;;
20058esac
20059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20063else
20064 eval "$as_ac_Header=\$ac_header_preproc"
20065fi
20066ac_res=`eval echo '${'$as_ac_Header'}'`
20067 { echo "$as_me:$LINENO: result: $ac_res" >&5
20068echo "${ECHO_T}$ac_res" >&6; }
20069
20070fi
20071if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020072 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020074_ACEOF
20075
20076fi
20077
20078done
20079
20080
20081for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020082do
20083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20084{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20086if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20088else
20089 cat >conftest.$ac_ext <<_ACEOF
20090/* confdefs.h. */
20091_ACEOF
20092cat confdefs.h >>conftest.$ac_ext
20093cat >>conftest.$ac_ext <<_ACEOF
20094/* end confdefs.h. */
20095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20097#define $ac_func innocuous_$ac_func
20098
20099/* System header to define __stub macros and hopefully few prototypes,
20100 which can conflict with char $ac_func (); below.
20101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20102 <limits.h> exists even on freestanding compilers. */
20103
20104#ifdef __STDC__
20105# include <limits.h>
20106#else
20107# include <assert.h>
20108#endif
20109
20110#undef $ac_func
20111
20112/* Override any GCC internal prototype to avoid an error.
20113 Use char because int might match the return type of a GCC
20114 builtin and then its argument prototype would still apply. */
20115#ifdef __cplusplus
20116extern "C"
20117#endif
20118char $ac_func ();
20119/* The GNU C library defines this for functions which it implements
20120 to always fail with ENOSYS. Some functions are actually named
20121 something starting with __ and the normal name is an alias. */
20122#if defined __stub_$ac_func || defined __stub___$ac_func
20123choke me
20124#endif
20125
20126int
20127main ()
20128{
20129return $ac_func ();
20130 ;
20131 return 0;
20132}
20133_ACEOF
20134rm -f conftest.$ac_objext conftest$ac_exeext
20135if { (ac_try="$ac_link"
20136case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20139esac
20140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_link") 2>conftest.er1
20142 ac_status=$?
20143 grep -v '^ *+' conftest.er1 >conftest.err
20144 rm -f conftest.er1
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } &&
20148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20149 { (case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20152esac
20153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_try") 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; } &&
20158 { ac_try='test -s conftest$ac_exeext'
20159 { (case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162esac
20163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_try") 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; }; then
20168 eval "$as_ac_var=yes"
20169else
20170 echo "$as_me: failed program was:" >&5
20171sed 's/^/| /' conftest.$ac_ext >&5
20172
20173 eval "$as_ac_var=no"
20174fi
20175
20176rm -f core conftest.err conftest.$ac_objext \
20177 conftest$ac_exeext conftest.$ac_ext
20178fi
20179ac_res=`eval echo '${'$as_ac_var'}'`
20180 { echo "$as_me:$LINENO: result: $ac_res" >&5
20181echo "${ECHO_T}$ac_res" >&6; }
20182if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020183 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020185_ACEOF
20186
20187fi
20188done
20189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020190{ echo "$as_me:$LINENO: checking for working mmap" >&5
20191echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20192if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020195 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020196 ac_cv_func_mmap_fixed_mapped=no
20197else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020198 cat >conftest.$ac_ext <<_ACEOF
20199/* confdefs.h. */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020203/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020204$ac_includes_default
20205/* malloc might have been renamed as rpl_malloc. */
20206#undef malloc
20207
20208/* Thanks to Mike Haertel and Jim Avera for this test.
20209 Here is a matrix of mmap possibilities:
20210 mmap private not fixed
20211 mmap private fixed at somewhere currently unmapped
20212 mmap private fixed at somewhere already mapped
20213 mmap shared not fixed
20214 mmap shared fixed at somewhere currently unmapped
20215 mmap shared fixed at somewhere already mapped
20216 For private mappings, we should verify that changes cannot be read()
20217 back from the file, nor mmap's back from the file at a different
20218 address. (There have been systems where private was not correctly
20219 implemented like the infamous i386 svr4.0, and systems where the
20220 VM page cache was not coherent with the file system buffer cache
20221 like early versions of FreeBSD and possibly contemporary NetBSD.)
20222 For shared mappings, we should conversely verify that changes get
20223 propagated back to all the places they're supposed to be.
20224
20225 Grep wants private fixed already mapped.
20226 The main things grep needs to know about mmap are:
20227 * does it exist and is it safe to write into the mmap'd area
20228 * how to use it (BSD variants) */
20229
20230#include <fcntl.h>
20231#include <sys/mman.h>
20232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020233#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020234char *malloc ();
20235#endif
20236
20237/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020238#if !HAVE_GETPAGESIZE
20239/* Assume that all systems that can run configure have sys/param.h. */
20240# if !HAVE_SYS_PARAM_H
20241# define HAVE_SYS_PARAM_H 1
20242# endif
20243
John Criswell7a73b802003-06-30 21:59:07 +000020244# ifdef _SC_PAGESIZE
20245# define getpagesize() sysconf(_SC_PAGESIZE)
20246# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020247# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020248# include <sys/param.h>
20249# ifdef EXEC_PAGESIZE
20250# define getpagesize() EXEC_PAGESIZE
20251# else /* no EXEC_PAGESIZE */
20252# ifdef NBPG
20253# define getpagesize() NBPG * CLSIZE
20254# ifndef CLSIZE
20255# define CLSIZE 1
20256# endif /* no CLSIZE */
20257# else /* no NBPG */
20258# ifdef NBPC
20259# define getpagesize() NBPC
20260# else /* no NBPC */
20261# ifdef PAGESIZE
20262# define getpagesize() PAGESIZE
20263# endif /* PAGESIZE */
20264# endif /* no NBPC */
20265# endif /* no NBPG */
20266# endif /* no EXEC_PAGESIZE */
20267# else /* no HAVE_SYS_PARAM_H */
20268# define getpagesize() 8192 /* punt totally */
20269# endif /* no HAVE_SYS_PARAM_H */
20270# endif /* no _SC_PAGESIZE */
20271
20272#endif /* no HAVE_GETPAGESIZE */
20273
20274int
20275main ()
20276{
20277 char *data, *data2, *data3;
20278 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020279 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020280
20281 pagesize = getpagesize ();
20282
20283 /* First, make a file with some known garbage in it. */
20284 data = (char *) malloc (pagesize);
20285 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020286 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020287 for (i = 0; i < pagesize; ++i)
20288 *(data + i) = rand ();
20289 umask (0);
20290 fd = creat ("conftest.mmap", 0600);
20291 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020292 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020293 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020294 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020295 close (fd);
20296
20297 /* Next, try to mmap the file at a fixed address which already has
20298 something else allocated at it. If we can, also make sure that
20299 we see the same garbage. */
20300 fd = open ("conftest.mmap", O_RDWR);
20301 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020302 return 1;
20303 data2 = (char *) malloc (2 * pagesize);
20304 if (!data2)
20305 return 1;
20306 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020307 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020308 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020309 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020310 for (i = 0; i < pagesize; ++i)
20311 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020312 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020313
20314 /* Finally, make sure that changes to the mapped area do not
20315 percolate back to the file as seen by read(). (This is a bug on
20316 some variants of i386 svr4.0.) */
20317 for (i = 0; i < pagesize; ++i)
20318 *(data2 + i) = *(data2 + i) + 1;
20319 data3 = (char *) malloc (pagesize);
20320 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020321 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020322 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020323 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020324 for (i = 0; i < pagesize; ++i)
20325 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020326 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020327 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020328 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020329}
20330_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020331rm -f conftest$ac_exeext
20332if { (ac_try="$ac_link"
20333case "(($ac_try" in
20334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335 *) ac_try_echo=$ac_try;;
20336esac
20337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338 (eval "$ac_link") 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20342 { (case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20345esac
20346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347 (eval "$ac_try") 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020351 ac_cv_func_mmap_fixed_mapped=yes
20352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020353 echo "$as_me: program exited with status $ac_status" >&5
20354echo "$as_me: failed program was:" >&5
20355sed 's/^/| /' conftest.$ac_ext >&5
20356
20357( exit $ac_status )
20358ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360rm -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 +000020361fi
Reid Spencera773bd52006-08-04 18:18:08 +000020362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020363
John Criswell7a73b802003-06-30 21:59:07 +000020364fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020365{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20366echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020367if test $ac_cv_func_mmap_fixed_mapped = yes; then
20368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020369cat >>confdefs.h <<\_ACEOF
20370#define HAVE_MMAP 1
20371_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020372
20373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020374rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020376 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20377echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20378if test "${ac_cv_func_mmap_file+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020380else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020381 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020382ac_cpp='$CPP $CPPFLAGS'
20383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20385ac_compiler_gnu=$ac_cv_c_compiler_gnu
20386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020387 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020388 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020389else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020390 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020392 /* confdefs.h. */
20393_ACEOF
20394cat confdefs.h >>conftest.$ac_ext
20395cat >>conftest.$ac_ext <<_ACEOF
20396/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020397
John Criswell7a73b802003-06-30 21:59:07 +000020398#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020399#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020400#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020401
20402int
20403main ()
20404{
John Criswell7a73b802003-06-30 21:59:07 +000020405
20406 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020407 fd = creat ("foo",0777);
20408 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20409 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020410 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020411 ;
20412 return 0;
20413}
John Criswell7a73b802003-06-30 21:59:07 +000020414_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020415rm -f conftest$ac_exeext
20416if { (ac_try="$ac_link"
20417case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420esac
20421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_link") 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20426 { (case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429esac
20430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_try") 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020435 ac_cv_func_mmap_file=yes
20436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020437 echo "$as_me: program exited with status $ac_status" >&5
20438echo "$as_me: failed program was:" >&5
20439sed 's/^/| /' conftest.$ac_ext >&5
20440
20441( exit $ac_status )
20442ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020443fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020444rm -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 +000020445fi
Reid Spencera773bd52006-08-04 18:18:08 +000020446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020447
John Criswell7a73b802003-06-30 21:59:07 +000020448 ac_ext=c
20449ac_cpp='$CPP $CPPFLAGS'
20450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453
20454
20455fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020456{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20457echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020458if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020460cat >>confdefs.h <<\_ACEOF
20461#define HAVE_MMAP_FILE
20462_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020463
20464 MMAP_FILE=yes
20465
20466fi
20467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020468 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20469echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20470if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020472else
Reid Spencer582a23c2004-12-29 07:07:57 +000020473 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020474 ac_cv_need_dev_zero_for_mmap=yes
20475 else
20476 ac_cv_need_dev_zero_for_mmap=no
20477 fi
20478
20479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020480{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20481echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020482if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020484cat >>confdefs.h <<\_ACEOF
20485#define NEED_DEV_ZERO_FOR_MMAP 1
20486_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020487
20488fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020489
Reid Spencer30fe5262007-01-20 07:48:49 +000020490 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20491 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020492 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20493echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020494 fi
20495 if test "$ac_cv_func_mmap_file" = "no"
20496 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020497 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20498echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020499 fi
John Criswellb13092b2003-07-22 21:00:24 +000020500fi
John Criswell7a73b802003-06-30 21:59:07 +000020501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020502{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20503echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020504ac_ext=cpp
20505ac_cpp='$CXXCPP $CPPFLAGS'
20506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020510cat >conftest.$ac_ext <<_ACEOF
20511/* confdefs.h. */
20512_ACEOF
20513cat confdefs.h >>conftest.$ac_ext
20514cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020515/* end confdefs.h. */
20516int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020517 volatile unsigned long val = 1;
20518 __sync_synchronize();
20519 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020520 __sync_add_and_fetch(&val, 1);
20521 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020522 return 0;
20523 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020524
20525_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020526rm -f conftest.$ac_objext conftest$ac_exeext
20527if { (ac_try="$ac_link"
20528case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20531esac
20532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_link") 2>conftest.er1
20534 ac_status=$?
20535 grep -v '^ *+' conftest.er1 >conftest.err
20536 rm -f conftest.er1
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } &&
20540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20541 { (case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544esac
20545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_try") 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest$ac_exeext'
20551 { (case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20554esac
20555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_try") 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020560 ac_ext=c
20561ac_cpp='$CPP $CPPFLAGS'
20562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20564ac_compiler_gnu=$ac_cv_c_compiler_gnu
20565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020566 { echo "$as_me:$LINENO: result: yes" >&5
20567echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020569cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020570#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020572
Owen Andersond4b272b2009-05-18 23:58:51 +000020573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574 echo "$as_me: failed program was:" >&5
20575sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020577 { echo "$as_me:$LINENO: result: no" >&5
20578echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020580cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020581#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020582_ACEOF
20583
20584 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20585echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020586fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020587
Owen Andersond4b272b2009-05-18 23:58:51 +000020588rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020589 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020590
John Criswell7a73b802003-06-30 21:59:07 +000020591
Nick Lewycky4372e692009-09-29 06:18:23 +000020592if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020593 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20594echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20595if test "${llvm_cv_linux_mixed+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020597else
20598 ac_ext=c
20599ac_cpp='$CPP $CPPFLAGS'
20600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602ac_compiler_gnu=$ac_cv_c_compiler_gnu
20603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020604 cat >conftest.$ac_ext <<_ACEOF
20605/* confdefs.h. */
20606_ACEOF
20607cat confdefs.h >>conftest.$ac_ext
20608cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020609/* end confdefs.h. */
20610#ifndef __x86_64__
20611 error: Not x86-64 even if uname says so!
20612 #endif
20613
20614int
20615main ()
20616{
20617
20618 ;
20619 return 0;
20620}
20621_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020622rm -f conftest.$ac_objext
20623if { (ac_try="$ac_compile"
20624case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20627esac
20628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_compile") 2>conftest.er1
20630 ac_status=$?
20631 grep -v '^ *+' conftest.er1 >conftest.err
20632 rm -f conftest.er1
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
20636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20637 { (case "(($ac_try" in
20638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639 *) ac_try_echo=$ac_try;;
20640esac
20641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642 (eval "$ac_try") 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try='test -s conftest.$ac_objext'
20647 { (case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20650esac
20651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_try") 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020656 llvm_cv_linux_mixed=no
20657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020658 echo "$as_me: failed program was:" >&5
20659sed 's/^/| /' conftest.$ac_ext >&5
20660
20661 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020663
Nick Lewycky4372e692009-09-29 06:18:23 +000020664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665 ac_ext=c
20666ac_cpp='$CPP $CPPFLAGS'
20667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20669ac_compiler_gnu=$ac_cv_c_compiler_gnu
20670
20671
20672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020673{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20674echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020675
20676 if test "$llvm_cv_linux_mixed" = "yes"; then
20677 llvm_cv_target_arch="x86"
20678 ARCH="x86"
20679 fi
20680fi
20681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020682
Reid Spencer9372f152007-07-30 20:13:24 +000020683for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020684do
20685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20686{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20688if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690else
20691 cat >conftest.$ac_ext <<_ACEOF
20692/* confdefs.h. */
20693_ACEOF
20694cat confdefs.h >>conftest.$ac_ext
20695cat >>conftest.$ac_ext <<_ACEOF
20696/* end confdefs.h. */
20697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20699#define $ac_func innocuous_$ac_func
20700
20701/* System header to define __stub macros and hopefully few prototypes,
20702 which can conflict with char $ac_func (); below.
20703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20704 <limits.h> exists even on freestanding compilers. */
20705
20706#ifdef __STDC__
20707# include <limits.h>
20708#else
20709# include <assert.h>
20710#endif
20711
20712#undef $ac_func
20713
20714/* Override any GCC internal prototype to avoid an error.
20715 Use char because int might match the return type of a GCC
20716 builtin and then its argument prototype would still apply. */
20717#ifdef __cplusplus
20718extern "C"
20719#endif
20720char $ac_func ();
20721/* The GNU C library defines this for functions which it implements
20722 to always fail with ENOSYS. Some functions are actually named
20723 something starting with __ and the normal name is an alias. */
20724#if defined __stub_$ac_func || defined __stub___$ac_func
20725choke me
20726#endif
20727
20728int
20729main ()
20730{
20731return $ac_func ();
20732 ;
20733 return 0;
20734}
20735_ACEOF
20736rm -f conftest.$ac_objext conftest$ac_exeext
20737if { (ac_try="$ac_link"
20738case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20741esac
20742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_link") 2>conftest.er1
20744 ac_status=$?
20745 grep -v '^ *+' conftest.er1 >conftest.err
20746 rm -f conftest.er1
20747 cat conftest.err >&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } &&
20750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20751 { (case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20754esac
20755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756 (eval "$ac_try") 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; } &&
20760 { ac_try='test -s conftest$ac_exeext'
20761 { (case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20764esac
20765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_try") 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
20770 eval "$as_ac_var=yes"
20771else
20772 echo "$as_me: failed program was:" >&5
20773sed 's/^/| /' conftest.$ac_ext >&5
20774
20775 eval "$as_ac_var=no"
20776fi
20777
20778rm -f core conftest.err conftest.$ac_objext \
20779 conftest$ac_exeext conftest.$ac_ext
20780fi
20781ac_res=`eval echo '${'$as_ac_var'}'`
20782 { echo "$as_me:$LINENO: result: $ac_res" >&5
20783echo "${ECHO_T}$ac_res" >&6; }
20784if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020785 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020787_ACEOF
20788
20789fi
20790done
20791
20792
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020793SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020794
20795
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020796SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20797
20798
Jeff Cohen28783c32007-01-12 18:22:38 +000020799if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020800 prefix="/usr/local"
20801fi
Reid Spencere9de0912004-08-20 09:03:57 +000020802eval LLVM_PREFIX="${prefix}";
20803eval LLVM_BINDIR="${prefix}/bin";
20804eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020805eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020806eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020807eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020808eval LLVM_INCLUDEDIR="${prefix}/include";
20809eval LLVM_INFODIR="${prefix}/info";
20810eval LLVM_MANDIR="${prefix}/man";
20811LLVM_CONFIGTIME=`date`
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020823
Reid Spencere9de0912004-08-20 09:03:57 +000020824cat >>confdefs.h <<_ACEOF
20825#define LLVM_PREFIX "$LLVM_PREFIX"
20826_ACEOF
20827
20828
20829cat >>confdefs.h <<_ACEOF
20830#define LLVM_BINDIR "$LLVM_BINDIR"
20831_ACEOF
20832
20833
20834cat >>confdefs.h <<_ACEOF
20835#define LLVM_LIBDIR "$LLVM_LIBDIR"
20836_ACEOF
20837
20838
20839cat >>confdefs.h <<_ACEOF
20840#define LLVM_DATADIR "$LLVM_DATADIR"
20841_ACEOF
20842
20843
20844cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020845#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020846_ACEOF
20847
20848
20849cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020850#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020851_ACEOF
20852
20853
20854cat >>confdefs.h <<_ACEOF
20855#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20856_ACEOF
20857
20858
20859cat >>confdefs.h <<_ACEOF
20860#define LLVM_INFODIR "$LLVM_INFODIR"
20861_ACEOF
20862
20863
20864cat >>confdefs.h <<_ACEOF
20865#define LLVM_MANDIR "$LLVM_MANDIR"
20866_ACEOF
20867
20868
20869cat >>confdefs.h <<_ACEOF
20870#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20871_ACEOF
20872
20873
Eric Christopher790e11c2007-12-01 00:34:39 +000020874cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020875#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020876_ACEOF
20877
20878
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020879if test "$BINDINGS_TO_BUILD" = auto ; then
20880 BINDINGS_TO_BUILD=""
20881 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20882 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20883 fi
20884fi
20885BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20886
20887
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020888ALL_BINDINGS=ocaml
20889
20890
Gordon Henriksenf0915682007-10-02 16:42:22 +000020891binding_prereqs_failed=0
20892for a_binding in $BINDINGS_TO_BUILD ; do
20893 case "$a_binding" in
20894 ocaml)
20895 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020896 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20897echo "$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 +000020898 binding_prereqs_failed=1
20899 fi
20900 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020901 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20902echo "$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 +000020903 binding_prereqs_failed=1
20904 fi
20905 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020906 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20907echo "$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 +000020908 fi
20909 if test "x$with_ocaml_libdir" != xauto ; then
20910 OCAML_LIBDIR=$with_ocaml_libdir
20911
20912 else
20913 ocaml_stdlib="`"$OCAMLC" -where`"
20914 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20915 then
20916 # ocaml stdlib is beneath our prefix; use stdlib
20917 OCAML_LIBDIR=$ocaml_stdlib
20918
20919 else
20920 # ocaml stdlib is outside our prefix; use libdir/ocaml
20921 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20922
20923 fi
20924 fi
20925 ;;
20926 esac
20927done
20928if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020929 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20930echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20931 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020932fi
20933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020934{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20935echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20936if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20937 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020938else
20939 ac_ext=cpp
20940ac_cpp='$CXXCPP $CPPFLAGS'
20941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20944
20945 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000020946 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020947 cat >conftest.$ac_ext <<_ACEOF
20948/* confdefs.h. */
20949_ACEOF
20950cat confdefs.h >>conftest.$ac_ext
20951cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020952/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000020953template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020954int
20955main ()
20956{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000020957X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020958 ;
20959 return 0;
20960}
20961_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020962rm -f conftest.$ac_objext
20963if { (ac_try="$ac_compile"
20964case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20967esac
20968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_compile") 2>conftest.er1
20970 ac_status=$?
20971 grep -v '^ *+' conftest.er1 >conftest.err
20972 rm -f conftest.er1
20973 cat conftest.err >&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } &&
20976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20977 { (case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980esac
20981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_try") 2>&5
20983 ac_status=$?
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; } &&
20986 { ac_try='test -s conftest.$ac_objext'
20987 { (case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20990esac
20991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_try") 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020996 llvm_cv_cxx_visibility_inlines_hidden=yes
20997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020998 echo "$as_me: failed program was:" >&5
20999sed 's/^/| /' conftest.$ac_ext >&5
21000
21001 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021003
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005 CXXFLAGS="$oldcxxflags"
21006 ac_ext=c
21007ac_cpp='$CPP $CPPFLAGS'
21008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010ac_compiler_gnu=$ac_cv_c_compiler_gnu
21011
21012
21013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021014{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21015echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021016if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21017 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21018
21019else
21020 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21021
21022fi
21023
Gordon Henriksenf0915682007-10-02 16:42:22 +000021024
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021025if test "$llvm_cv_link_use_r" = "yes" ; then
21026 RPATH="-Wl,-R"
21027else
21028 RPATH="-Wl,-rpath"
21029fi
21030
21031
21032if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21033 RDYNAMIC="-Wl,-export-dynamic"
21034else
21035 RDYNAMIC=""
21036fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021037
21038
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021039
Eric Christophera1cba682010-08-08 02:44:25 +000021040ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021041
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021042
21043
21044
21045
21046
Douglas Gregor1555a232009-06-16 20:12:29 +000021047ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21048
21049ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21050
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021051ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21052
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021053ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21054
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021055ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021056
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021057
Reid Spencera773bd52006-08-04 18:18:08 +000021058ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021059
Eric Christopher360fa9a2011-10-26 00:42:12 +000021060
Reid Spencerea949cf2006-08-16 00:45:38 +000021061ac_config_files="$ac_config_files llvm.spec"
21062
21063
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021064ac_config_files="$ac_config_files docs/doxygen.cfg"
21065
Eric Christopher63c09512012-02-02 00:16:55 +000021066
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021067if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021068 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021069fi
Eric Christopher63c09512012-02-02 00:16:55 +000021070if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021071 configh="include/clang/Config/config.h"
21072 doxy="docs/doxygen.cfg"
21073 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021074
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021075 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021076
21077fi
21078
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021079ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021080
Eric Christopher360fa9a2011-10-26 00:42:12 +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="
Eric Christopherf33ab862011-12-21 00:52:44 +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="\\
Eric Christopherf33ab862011-12-21 00:52:44 +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" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021697 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21698 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021699 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021700 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21701 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21702 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21703 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21704 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021705 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021706 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21707 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021708 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021709 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21710 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21711 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021712 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21713 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021715 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21716echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21717 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021718 esac
21719done
21720
Reid Spencera773bd52006-08-04 18:18:08 +000021721
John Criswell7a73b802003-06-30 21:59:07 +000021722# If the user did not use the arguments to specify the items to instantiate,
21723# then the envvar interface is used. Set only those that are not.
21724# We use the long form for the default assignment because of an extremely
21725# bizarre bug on SunOS 4.1.3.
21726if $ac_need_defaults; then
21727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021730fi
21731
John Criswell0c38eaf2003-09-10 15:17:25 +000021732# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021733# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021734# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021735# Hook for its removal unless debugging.
21736# Note that there is a small window in which the directory will not be cleaned:
21737# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021738$debug ||
21739{
Reid Spencera773bd52006-08-04 18:18:08 +000021740 tmp=
21741 trap 'exit_status=$?
21742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21743' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021744 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021745}
John Criswell7a73b802003-06-30 21:59:07 +000021746# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021747
John Criswell7a73b802003-06-30 21:59:07 +000021748{
Reid Spencera773bd52006-08-04 18:18:08 +000021749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021750 test -n "$tmp" && test -d "$tmp"
21751} ||
21752{
Reid Spencera773bd52006-08-04 18:18:08 +000021753 tmp=./conf$$-$RANDOM
21754 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021755} ||
21756{
21757 echo "$me: cannot create a temporary directory in ." >&2
21758 { (exit 1); exit 1; }
21759}
John Criswell7a73b802003-06-30 21:59:07 +000021760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021761#
21762# Set up the sed scripts for CONFIG_FILES section.
21763#
21764
21765# No need to generate the scripts if there are no CONFIG_FILES.
21766# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021767if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021768
21769_ACEOF
21770
Reid Spencera773bd52006-08-04 18:18:08 +000021771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772
Reid Spencera773bd52006-08-04 18:18:08 +000021773ac_delim='%!_!# '
21774for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021775 cat >conf$$subs.sed <<_ACEOF
21776SHELL!$SHELL$ac_delim
21777PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21778PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21779PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21780PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21781PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21782PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21783exec_prefix!$exec_prefix$ac_delim
21784prefix!$prefix$ac_delim
21785program_transform_name!$program_transform_name$ac_delim
21786bindir!$bindir$ac_delim
21787sbindir!$sbindir$ac_delim
21788libexecdir!$libexecdir$ac_delim
21789datarootdir!$datarootdir$ac_delim
21790datadir!$datadir$ac_delim
21791sysconfdir!$sysconfdir$ac_delim
21792sharedstatedir!$sharedstatedir$ac_delim
21793localstatedir!$localstatedir$ac_delim
21794includedir!$includedir$ac_delim
21795oldincludedir!$oldincludedir$ac_delim
21796docdir!$docdir$ac_delim
21797infodir!$infodir$ac_delim
21798htmldir!$htmldir$ac_delim
21799dvidir!$dvidir$ac_delim
21800pdfdir!$pdfdir$ac_delim
21801psdir!$psdir$ac_delim
21802libdir!$libdir$ac_delim
21803localedir!$localedir$ac_delim
21804mandir!$mandir$ac_delim
21805DEFS!$DEFS$ac_delim
21806ECHO_C!$ECHO_C$ac_delim
21807ECHO_N!$ECHO_N$ac_delim
21808ECHO_T!$ECHO_T$ac_delim
21809LIBS!$LIBS$ac_delim
21810build_alias!$build_alias$ac_delim
21811host_alias!$host_alias$ac_delim
21812target_alias!$target_alias$ac_delim
21813LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021814CC!$CC$ac_delim
21815CFLAGS!$CFLAGS$ac_delim
21816LDFLAGS!$LDFLAGS$ac_delim
21817CPPFLAGS!$CPPFLAGS$ac_delim
21818ac_ct_CC!$ac_ct_CC$ac_delim
21819EXEEXT!$EXEEXT$ac_delim
21820OBJEXT!$OBJEXT$ac_delim
21821CXX!$CXX$ac_delim
21822CXXFLAGS!$CXXFLAGS$ac_delim
21823ac_ct_CXX!$ac_ct_CXX$ac_delim
21824CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021826ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21827LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021828build!$build$ac_delim
21829build_cpu!$build_cpu$ac_delim
21830build_vendor!$build_vendor$ac_delim
21831build_os!$build_os$ac_delim
21832host!$host$ac_delim
21833host_cpu!$host_cpu$ac_delim
21834host_vendor!$host_vendor$ac_delim
21835host_os!$host_os$ac_delim
21836target!$target$ac_delim
21837target_cpu!$target_cpu$ac_delim
21838target_vendor!$target_vendor$ac_delim
21839target_os!$target_os$ac_delim
21840OS!$OS$ac_delim
21841HOST_OS!$HOST_OS$ac_delim
21842TARGET_OS!$TARGET_OS$ac_delim
21843LINKALL!$LINKALL$ac_delim
21844NOLINKALL!$NOLINKALL$ac_delim
21845LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21846LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21847ARCH!$ARCH$ac_delim
21848ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021849GREP!$GREP$ac_delim
21850EGREP!$EGREP$ac_delim
21851LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21852BUILD_CC!$BUILD_CC$ac_delim
21853BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21854BUILD_CXX!$BUILD_CXX$ac_delim
21855CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021856ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021857ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21858ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21859DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21860ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21861EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21862DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21863DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21864JIT!$JIT$ac_delim
21865TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021866ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021867ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021868LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021869ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021871ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021872ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021873_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021876 break
21877 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21879echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21880 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021881 else
21882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021883 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021884done
21885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021886ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21887if test -n "$ac_eof"; then
21888 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21889 ac_eof=`expr $ac_eof + 1`
21890fi
21891
21892cat >>$CONFIG_STATUS <<_ACEOF
21893cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21894/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021895_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021896sed '
21897s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21898s/^/s,@/; s/!/@,|#_!!_#|/
21899:n
21900t n
21901s/'"$ac_delim"'$/,g/; t
21902s/$/\\/; p
21903N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21904' >>$CONFIG_STATUS <conf$$subs.sed
21905rm -f conf$$subs.sed
21906cat >>$CONFIG_STATUS <<_ACEOF
21907CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021908_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021909
21910
21911ac_delim='%!_!# '
21912for ac_last_try in false false false false false :; do
21913 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000021914ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021915TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21916LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21917LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021918LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021919LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021920ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021921OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021922EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021923EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021924CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021925BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021926INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021927NM!$NM$ac_delim
21928ifGNUmake!$ifGNUmake$ac_delim
21929LN_S!$LN_S$ac_delim
21930CMP!$CMP$ac_delim
21931CP!$CP$ac_delim
21932DATE!$DATE$ac_delim
21933FIND!$FIND$ac_delim
21934MKDIR!$MKDIR$ac_delim
21935MV!$MV$ac_delim
21936RANLIB!$RANLIB$ac_delim
21937AR!$AR$ac_delim
21938RM!$RM$ac_delim
21939SED!$SED$ac_delim
21940TAR!$TAR$ac_delim
21941BINPWD!$BINPWD$ac_delim
21942GRAPHVIZ!$GRAPHVIZ$ac_delim
21943DOT!$DOT$ac_delim
21944FDP!$FDP$ac_delim
21945NEATO!$NEATO$ac_delim
21946TWOPI!$TWOPI$ac_delim
21947CIRCO!$CIRCO$ac_delim
21948GV!$GV$ac_delim
21949DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021950XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021951PERL!$PERL$ac_delim
21952HAVE_PERL!$HAVE_PERL$ac_delim
21953INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21954INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21955INSTALL_DATA!$INSTALL_DATA$ac_delim
21956BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021957CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958DOXYGEN!$DOXYGEN$ac_delim
21959GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021960GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021961POD2HTML!$POD2HTML$ac_delim
21962POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021963PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021964RUNTEST!$RUNTEST$ac_delim
21965TCLSH!$TCLSH$ac_delim
21966ZIP!$ZIP$ac_delim
21967OCAMLC!$OCAMLC$ac_delim
21968OCAMLOPT!$OCAMLOPT$ac_delim
21969OCAMLDEP!$OCAMLDEP$ac_delim
21970OCAMLDOC!$OCAMLDOC$ac_delim
21971GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021972HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021973INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21974INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21975CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21976CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21977LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021978NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21979NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021980COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021981USE_UDIS86!$USE_UDIS86$ac_delim
21982USE_OPROFILE!$USE_OPROFILE$ac_delim
21983HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21984HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21985MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021986SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021987SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21989LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21990LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21991LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21992LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21993LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21994LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21995LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21996LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21997LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21998BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21999ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022000OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22001ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22002RPATH!$RPATH$ac_delim
22003RDYNAMIC!$RDYNAMIC$ac_delim
22004LIBOBJS!$LIBOBJS$ac_delim
22005LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022006_ACEOF
22007
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022008 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022009 break
22010 elif $ac_last_try; then
22011 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22012echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22013 { (exit 1); exit 1; }; }
22014 else
22015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22016 fi
22017done
22018
22019ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22020if test -n "$ac_eof"; then
22021 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22022 ac_eof=`expr $ac_eof + 1`
22023fi
22024
22025cat >>$CONFIG_STATUS <<_ACEOF
22026cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022027/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22028_ACEOF
22029sed '
22030s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22031s/^/s,@/; s/!/@,|#_!!_#|/
22032:n
22033t n
22034s/'"$ac_delim"'$/,g/; t
22035s/$/\\/; p
22036N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22037' >>$CONFIG_STATUS <conf$$subs.sed
22038rm -f conf$$subs.sed
22039cat >>$CONFIG_STATUS <<_ACEOF
22040:end
22041s/|#_!!_#|//g
22042CEOF$ac_eof
22043_ACEOF
22044
22045
Reid Spencera773bd52006-08-04 18:18:08 +000022046# VPATH may cause trouble with some makes, so we remove $(srcdir),
22047# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22048# trailing colons and then remove the whole line if VPATH becomes empty
22049# (actually we leave an empty line to preserve line numbers).
22050if test "x$srcdir" = x.; then
22051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22052s/:*\$(srcdir):*/:/
22053s/:*\${srcdir}:*/:/
22054s/:*@srcdir@:*/:/
22055s/^\([^=]*=[ ]*\):*/\1/
22056s/:*$//
22057s/^[^=]*=[ ]*$//
22058}'
22059fi
22060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022061cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022062fi # test -n "$CONFIG_FILES"
22063
Reid Spencera773bd52006-08-04 18:18:08 +000022064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022065for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022066do
22067 case $ac_tag in
22068 :[FHLC]) ac_mode=$ac_tag; continue;;
22069 esac
22070 case $ac_mode$ac_tag in
22071 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022072 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22073echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22074 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022075 :[FH]-) ac_tag=-:-;;
22076 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22077 esac
22078 ac_save_IFS=$IFS
22079 IFS=:
22080 set x $ac_tag
22081 IFS=$ac_save_IFS
22082 shift
22083 ac_file=$1
22084 shift
22085
22086 case $ac_mode in
22087 :L) ac_source=$1;;
22088 :[FH])
22089 ac_file_inputs=
22090 for ac_f
22091 do
22092 case $ac_f in
22093 -) ac_f="$tmp/stdin";;
22094 *) # Look for the file first in the build tree, then in the source tree
22095 # (if the path is not absolute). The absolute path cannot be DOS-style,
22096 # because $ac_f cannot contain `:'.
22097 test -f "$ac_f" ||
22098 case $ac_f in
22099 [\\/$]*) false;;
22100 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22101 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022102 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22103echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22104 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022105 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022106 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022107 done
22108
22109 # Let's still pretend it is `configure' which instantiates (i.e., don't
22110 # use $as_me), people would be surprised to read:
22111 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022112 configure_input="Generated from "`IFS=:
22113 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022114 if test x"$ac_file" != x-; then
22115 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022116 { echo "$as_me:$LINENO: creating $ac_file" >&5
22117echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022118 fi
22119
22120 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022121 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022122 esac
22123 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022124 esac
22125
Reid Spencera773bd52006-08-04 18:18:08 +000022126 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022127$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022128 X"$ac_file" : 'X\(//\)[^/]' \| \
22129 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022130 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022131echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22133 s//\1/
22134 q
22135 }
22136 /^X\(\/\/\)[^/].*/{
22137 s//\1/
22138 q
22139 }
22140 /^X\(\/\/\)$/{
22141 s//\1/
22142 q
22143 }
22144 /^X\(\/\).*/{
22145 s//\1/
22146 q
22147 }
22148 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149 { as_dir="$ac_dir"
22150 case $as_dir in #(
22151 -*) as_dir=./$as_dir;;
22152 esac
22153 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22154 as_dirs=
22155 while :; do
22156 case $as_dir in #(
22157 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22158 *) as_qdir=$as_dir;;
22159 esac
22160 as_dirs="'$as_qdir' $as_dirs"
22161 as_dir=`$as_dirname -- "$as_dir" ||
22162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22163 X"$as_dir" : 'X\(//\)[^/]' \| \
22164 X"$as_dir" : 'X\(//\)$' \| \
22165 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22166echo X"$as_dir" |
22167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22168 s//\1/
22169 q
22170 }
22171 /^X\(\/\/\)[^/].*/{
22172 s//\1/
22173 q
22174 }
22175 /^X\(\/\/\)$/{
22176 s//\1/
22177 q
22178 }
22179 /^X\(\/\).*/{
22180 s//\1/
22181 q
22182 }
22183 s/.*/./; q'`
22184 test -d "$as_dir" && break
22185 done
22186 test -z "$as_dirs" || eval "mkdir $as_dirs"
22187 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22188echo "$as_me: error: cannot create directory $as_dir" >&2;}
22189 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022190 ac_builddir=.
22191
Reid Spencera773bd52006-08-04 18:18:08 +000022192case "$ac_dir" in
22193.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22194*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022195 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022196 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022197 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022198 case $ac_top_builddir_sub in
22199 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22200 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22201 esac ;;
22202esac
22203ac_abs_top_builddir=$ac_pwd
22204ac_abs_builddir=$ac_pwd$ac_dir_suffix
22205# for backward compatibility:
22206ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022207
22208case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022209 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022210 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022211 ac_top_srcdir=$ac_top_builddir_sub
22212 ac_abs_top_srcdir=$ac_pwd ;;
22213 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022214 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022215 ac_top_srcdir=$srcdir
22216 ac_abs_top_srcdir=$srcdir ;;
22217 *) # Relative name.
22218 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22219 ac_top_srcdir=$ac_top_build_prefix$srcdir
22220 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022221esac
Reid Spencera773bd52006-08-04 18:18:08 +000022222ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022223
John Criswell7a73b802003-06-30 21:59:07 +000022224
Reid Spencera773bd52006-08-04 18:18:08 +000022225 case $ac_mode in
22226 :F)
22227 #
22228 # CONFIG_FILE
22229 #
John Criswell7a73b802003-06-30 21:59:07 +000022230
22231 case $INSTALL in
22232 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022233 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022234 esac
John Criswell7a73b802003-06-30 21:59:07 +000022235_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022237cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022238# If the template does not know about datarootdir, expand it.
22239# FIXME: This hack should be removed a few years after 2.60.
22240ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022241
22242case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022243 p
22244 q
22245}
22246/@datadir@/p
22247/@docdir@/p
22248/@infodir@/p
22249/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022250/@mandir@/p
22251' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022252*datarootdir*) ac_datarootdir_seen=yes;;
22253*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022254 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22255echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022256_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022257cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022258 ac_datarootdir_hack='
22259 s&@datadir@&$datadir&g
22260 s&@docdir@&$docdir&g
22261 s&@infodir@&$infodir&g
22262 s&@localedir@&$localedir&g
22263 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022264 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022265esac
22266_ACEOF
22267
22268# Neutralize VPATH when `$srcdir' = `.'.
22269# Shell code in configure.ac might set extrasub.
22270# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022271cat >>$CONFIG_STATUS <<_ACEOF
22272 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022273$extrasub
22274_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022275cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022276:t
22277/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022278s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022279s&@top_builddir@&$ac_top_builddir_sub&;t t
22280s&@srcdir@&$ac_srcdir&;t t
22281s&@abs_srcdir@&$ac_abs_srcdir&;t t
22282s&@top_srcdir@&$ac_top_srcdir&;t t
22283s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22284s&@builddir@&$ac_builddir&;t t
22285s&@abs_builddir@&$ac_abs_builddir&;t t
22286s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22287s&@INSTALL@&$ac_INSTALL&;t t
22288$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022289" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022290
Reid Spencera773bd52006-08-04 18:18:08 +000022291test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22292 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22293 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022294 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022295which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022296echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022297which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022298
Reid Spencera773bd52006-08-04 18:18:08 +000022299 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022300 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022301 -) cat "$tmp/out"; rm -f "$tmp/out";;
22302 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22303 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022304 ;;
22305 :H)
22306 #
22307 # CONFIG_HEADER
22308 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022309_ACEOF
22310
22311# Transform confdefs.h into a sed script `conftest.defines', that
22312# substitutes the proper values into config.h.in to produce config.h.
22313rm -f conftest.defines conftest.tail
22314# First, append a space to every undef/define line, to ease matching.
22315echo 's/$/ /' >conftest.defines
22316# Then, protect against being on the right side of a sed subst, or in
22317# an unquoted here document, in config.status. If some macros were
22318# called several times there might be several #defines for the same
22319# symbol, which is useless. But do not sort them, since the last
22320# AC_DEFINE must be honored.
22321ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22322# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22323# NAME is the cpp macro being defined, VALUE is the value it is being given.
22324# PARAMS is the parameter list in the macro definition--in most cases, it's
22325# just an empty string.
22326ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22327ac_dB='\\)[ (].*,\\1define\\2'
22328ac_dC=' '
22329ac_dD=' ,'
22330
22331uniq confdefs.h |
22332 sed -n '
22333 t rset
22334 :rset
22335 s/^[ ]*#[ ]*define[ ][ ]*//
22336 t ok
22337 d
22338 :ok
22339 s/[\\&,]/\\&/g
22340 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22341 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22342 ' >>conftest.defines
22343
22344# Remove the space that was appended to ease matching.
22345# Then replace #undef with comments. This is necessary, for
22346# example, in the case of _POSIX_SOURCE, which is predefined and required
22347# on some systems where configure will not decide to define it.
22348# (The regexp can be short, since the line contains either #define or #undef.)
22349echo 's/ $//
22350s,^[ #]*u.*,/* & */,' >>conftest.defines
22351
22352# Break up conftest.defines:
22353ac_max_sed_lines=50
22354
22355# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22356# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22357# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22358# et cetera.
22359ac_in='$ac_file_inputs'
22360ac_out='"$tmp/out1"'
22361ac_nxt='"$tmp/out2"'
22362
22363while :
22364do
22365 # Write a here document:
22366 cat >>$CONFIG_STATUS <<_ACEOF
22367 # First, check the format of the line:
22368 cat >"\$tmp/defines.sed" <<\\CEOF
22369/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22370/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22371b
22372:def
22373_ACEOF
22374 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22375 echo 'CEOF
22376 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22377 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22378 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22379 grep . conftest.tail >/dev/null || break
22380 rm -f conftest.defines
22381 mv conftest.tail conftest.defines
22382done
22383rm -f conftest.defines conftest.tail
22384
22385echo "ac_result=$ac_in" >>$CONFIG_STATUS
22386cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022387 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022388 echo "/* $configure_input */" >"$tmp/config.h"
22389 cat "$ac_result" >>"$tmp/config.h"
22390 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22391 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22392echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022393 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022394 rm -f $ac_file
22395 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022396 fi
22397 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022398 echo "/* $configure_input */"
22399 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022400 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022401 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022402 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022404 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22405echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022406 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022407 esac
John Criswell7a73b802003-06-30 21:59:07 +000022408
Reid Spencera773bd52006-08-04 18:18:08 +000022409
22410 case $ac_file$ac_mode in
22411 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022412 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022413 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022414 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022415 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022416 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022417 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022418 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022419 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022420 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022421 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022422 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022423 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022424 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022425 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022426 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022427 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022429 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022430 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022431 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022432 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022433 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022434 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022435 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022436 ${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 +000022437
22438 esac
22439done # for ac_tag
22440
John Criswell7a73b802003-06-30 21:59:07 +000022441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022442{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022443_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022444chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022445ac_clean_files=$ac_clean_files_save
22446
22447
22448# configure is writing to config.log, and then calls config.status.
22449# config.status does its own redirection, appending to config.log.
22450# Unfortunately, on DOS this fails, as config.log is still kept open
22451# by configure, so config.status won't be able to write to it; its
22452# output is simply discarded. So we exec the FD to /dev/null,
22453# effectively closing config.log, so it can be properly (re)opened and
22454# appended to by config.status. When coming back to configure, we
22455# need to make the FD available again.
22456if test "$no_create" != yes; then
22457 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022458 ac_config_status_args=
22459 test "$silent" = yes &&
22460 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022461 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022463 exec 5>>config.log
22464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22465 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022466 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022467fi
22468
John Criswell12399a12003-09-30 15:55:44 +000022469#
22470# CONFIG_SUBDIRS section.
22471#
22472if test "$no_recursion" != yes; then
22473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022474 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022475 ac_sub_configure_args=
22476 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022477 eval "set x $ac_configure_args"
22478 shift
22479 for ac_arg
22480 do
John Criswell12399a12003-09-30 15:55:44 +000022481 if test -n "$ac_prev"; then
22482 ac_prev=
22483 continue
22484 fi
22485 case $ac_arg in
22486 -cache-file | --cache-file | --cache-fil | --cache-fi \
22487 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22488 ac_prev=cache_file ;;
22489 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22490 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22491 | --c=*)
22492 ;;
22493 --config-cache | -C)
22494 ;;
22495 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22496 ac_prev=srcdir ;;
22497 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22498 ;;
22499 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22500 ac_prev=prefix ;;
22501 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22502 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022503 *)
22504 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022505 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022506 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022507 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022508 esac
22509 done
22510
22511 # Always prepend --prefix to ensure using the same prefix
22512 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022513 ac_arg="--prefix=$prefix"
22514 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022515 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022516 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022517 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022518
22519 ac_popdir=`pwd`
22520 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22521
22522 # Do not complain, so a configure script can configure whichever
22523 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022524 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022525
Reid Spencera773bd52006-08-04 18:18:08 +000022526 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022527 echo "$as_me:$LINENO: $ac_msg" >&5
22528 echo "$ac_msg" >&6
22529 { as_dir="$ac_dir"
22530 case $as_dir in #(
22531 -*) as_dir=./$as_dir;;
22532 esac
22533 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22534 as_dirs=
22535 while :; do
22536 case $as_dir in #(
22537 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22538 *) as_qdir=$as_dir;;
22539 esac
22540 as_dirs="'$as_qdir' $as_dirs"
22541 as_dir=`$as_dirname -- "$as_dir" ||
22542$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22543 X"$as_dir" : 'X\(//\)[^/]' \| \
22544 X"$as_dir" : 'X\(//\)$' \| \
22545 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22546echo X"$as_dir" |
22547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22548 s//\1/
22549 q
22550 }
22551 /^X\(\/\/\)[^/].*/{
22552 s//\1/
22553 q
22554 }
22555 /^X\(\/\/\)$/{
22556 s//\1/
22557 q
22558 }
22559 /^X\(\/\).*/{
22560 s//\1/
22561 q
22562 }
22563 s/.*/./; q'`
22564 test -d "$as_dir" && break
22565 done
22566 test -z "$as_dirs" || eval "mkdir $as_dirs"
22567 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22568echo "$as_me: error: cannot create directory $as_dir" >&2;}
22569 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022570 ac_builddir=.
22571
Reid Spencera773bd52006-08-04 18:18:08 +000022572case "$ac_dir" in
22573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22574*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022575 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022576 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022577 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022578 case $ac_top_builddir_sub in
22579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22581 esac ;;
22582esac
22583ac_abs_top_builddir=$ac_pwd
22584ac_abs_builddir=$ac_pwd$ac_dir_suffix
22585# for backward compatibility:
22586ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022587
22588case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022589 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022590 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022591 ac_top_srcdir=$ac_top_builddir_sub
22592 ac_abs_top_srcdir=$ac_pwd ;;
22593 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022594 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022595 ac_top_srcdir=$srcdir
22596 ac_abs_top_srcdir=$srcdir ;;
22597 *) # Relative name.
22598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22599 ac_top_srcdir=$ac_top_build_prefix$srcdir
22600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022601esac
Reid Spencera773bd52006-08-04 18:18:08 +000022602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022603
22604
Reid Spencera773bd52006-08-04 18:18:08 +000022605 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022606
22607 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022608 if test -f "$ac_srcdir/configure.gnu"; then
22609 ac_sub_configure=$ac_srcdir/configure.gnu
22610 elif test -f "$ac_srcdir/configure"; then
22611 ac_sub_configure=$ac_srcdir/configure
22612 elif test -f "$ac_srcdir/configure.in"; then
22613 # This should be Cygnus configure.
22614 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022615 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022616 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22617echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022618 ac_sub_configure=
22619 fi
22620
22621 # The recursion is here.
22622 if test -n "$ac_sub_configure"; then
22623 # Make the cache file name correct relative to the subdirectory.
22624 case $cache_file in
22625 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022626 *) # Relative name.
22627 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022628 esac
22629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022630 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22631echo "$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 +000022632 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022633 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22634 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022635 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22636echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22637 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022638 fi
22639
Reid Spencera773bd52006-08-04 18:18:08 +000022640 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022641 done
22642fi
22643