blob: d0c3beb7eb4af9316202eacbad91b84cb67c2743 [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
768USE_UDIS86
769USE_OPROFILE
770HAVE_PTHREAD
771HUGE_VAL_SANITY
772MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000774SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000793ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000801CXX
802CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000803CCC
804CPP'
John Criswell0157f502010-03-19 21:31:39 +0000805ac_subdirs_all='projects/llvm-gcc
806projects/test-suite
807projects/llvm-test
808projects/poolalloc
809projects/llvm-poolalloc
810projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000812projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-java
815projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000816projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000817projects/llvm-kernel
818tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000845# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000854includedir='${prefix}/include'
855oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000865
866ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000867ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000872 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000873 ac_prev=
874 continue
875 fi
876
Reid Spencera773bd52006-08-04 18:18:08 +0000877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
John Criswell7a73b802003-06-30 21:59:07 +0000881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
Reid Spencera773bd52006-08-04 18:18:08 +0000884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000909 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000911 datadir=$ac_optarg ;;
912
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
John Criswell7a73b802003-06-30 21:59:07 +0000920 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000922 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000938
939 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000941 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
Reid Spencera773bd52006-08-04 18:18:08 +0000973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
John Criswell7a73b802003-06-30 21:59:07 +0000979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
Reid Spencera773bd52006-08-04 18:18:08 +00001003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
John Criswell7a73b802003-06-30 21:59:07 +00001008 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001009 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
Reid Spencera773bd52006-08-04 18:18:08 +00001077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
John Criswell7a73b802003-06-30 21:59:07 +00001087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001138 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001144
1145 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001147 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001183 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001201fi
1202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001203# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001208do
Reid Spencera773bd52006-08-04 18:18:08 +00001209 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001210 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001213 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
Reid Spencera773bd52006-08-04 18:18:08 +00001242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250
1251
John Criswell7a73b802003-06-30 21:59:07 +00001252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001255 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001256 ac_confdir=`$as_dirname -- "$0" ||
1257$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001280 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=..
1282 fi
1283else
1284 ac_srcdir_defaulted=no
1285fi
Reid Spencera773bd52006-08-04 18:18:08 +00001286if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001290fi
Reid Spencera773bd52006-08-04 18:18:08 +00001291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
John Criswell7a73b802003-06-30 21:59:07 +00001312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001320\`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
John Criswell7a73b802003-06-30 21:59:07 +00001340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001368 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385 case $ac_init_help in
Eric Christopherf33ab862011-12-21 00:52:44 +00001386 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001387 esac
1388 cat <<\_ACEOF
1389
1390Optional Features:
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001393 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001394 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001407 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001408 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001409 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001410 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001411 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001412 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001413 --enable-shared Build a shared library and link tools against it
1414 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001416 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001417 --enable-timestamps Enable embedding timestamp information in build
1418 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001421 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422 xcore, msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001423 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1424 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001425 --enable-bindings Build specific language bindings:
1426 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001427 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001428 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001429
1430Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001433 --with-optimize-option Select the compiler options to use for optimized
1434 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001435 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001436 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001439 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001440 --with-clang-resource-dir
1441 Relative directory from the Clang binary for
1442 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001443 --with-c-include-dirs Colon separated list of directories clang will
1444 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001445 --with-cxx-include-root Directory with the libstdc++ headers.
1446 --with-cxx-include-arch Architecture of the libstdc++ headers.
1447 --with-cxx-include-32bit-dir
1448 32 bit multilib dir.
1449 --with-cxx-include-64bit-dir
1450 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001451 --with-binutils-include Specify path to binutils/include/ containing
1452 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001453 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001454 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001455 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001456 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001457 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001462 CC C compiler command
1463 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001467 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001470 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
Eric Christopherf33ab862011-12-21 00:52:44 +00001475Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001477ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001484 ac_builddir=.
1485
Reid Spencera773bd52006-08-04 18:18:08 +00001486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001503 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001508 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001515esac
Reid Spencera773bd52006-08-04 18:18:08 +00001516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001517
Reid Spencera773bd52006-08-04 18:18:08 +00001518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001526 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001530 done
1531fi
1532
Reid Spencera773bd52006-08-04 18:18:08 +00001533test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001534if $ac_init_version; then
1535 cat <<\_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001536LLVM configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001544Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546 exit
John Criswell7a73b802003-06-30 21:59:07 +00001547fi
Reid Spencera773bd52006-08-04 18:18:08 +00001548cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Eric Christopherf33ab862011-12-21 00:52:44 +00001552It was created by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001554
1555 $ $0 $@
1556
1557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001558exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Reid Spencera773bd52006-08-04 18:18:08 +00001591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001608# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001610ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_configure_args0=
1612ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_must_keep_next=false
1614for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001615do
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001623 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ;;
1647 esac
1648 done
John Criswell7a73b802003-06-30 21:59:07 +00001649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$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 +00001652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001662
John Criswell7a73b802003-06-30 21:59:07 +00001663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac ;;
1683 esac
1684 done
John Criswell7a73b802003-06-30 21:59:07 +00001685 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001688 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001692 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac |
1696 sort
1697)
John Criswell7a73b802003-06-30 21:59:07 +00001698 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
Reid Spencera773bd52006-08-04 18:18:08 +00001708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001711 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1724 do
Reid Spencera773bd52006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732 fi
1733
John Criswell7a73b802003-06-30 21:59:07 +00001734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001741 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001747 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001750 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001751' 0
John Criswell7a73b802003-06-30 21:59:07 +00001752for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001758rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001799do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001817 esac
1818 fi
1819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001828for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
Reid Spencera773bd52006-08-04 18:18:08 +00001897
John Criswell7a73b802003-06-30 21:59:07 +00001898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001906LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001907
1908
1909
1910
1911
1912
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001915for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1928 fi
John Criswell7a73b802003-06-30 21:59:07 +00001929done
1930if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001934fi
Reid Spencera773bd52006-08-04 18:18:08 +00001935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943
John Criswell7a73b802003-06-30 21:59:07 +00001944
John Criswell392aaa32003-07-22 19:18:09 +00001945
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 fi
John Criswell93e1c722003-09-15 17:04:06 +00001952fi
1953
Nick Lewycky83fc4472009-09-29 05:48:51 +00001954ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001955ac_cpp='$CPP $CPPFLAGS'
1956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001959if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001960 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001961 do
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001968else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001971else
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 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 +00001979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001981 break 2
1982 fi
1983done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001984done
Reid Spencera773bd52006-08-04 18:18:08 +00001985IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001986
1987fi
1988fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001989CC=$ac_cv_prog_CC
1990if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991 { echo "$as_me:$LINENO: result: $CC" >&5
1992echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001994 { echo "$as_me:$LINENO: result: no" >&5
1995echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001996fi
1997
Reid Spencera773bd52006-08-04 18:18:08 +00001998
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001999 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002000 done
2001fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002002if test -z "$CC"; then
2003 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002004 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002005do
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002012else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 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 +00002023 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002025 break 2
2026 fi
2027done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002028done
Reid Spencera773bd52006-08-04 18:18:08 +00002029IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002030
2031fi
2032fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002037else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002038 { echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002040fi
2041
Reid Spencera773bd52006-08-04 18:18:08 +00002042
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002043 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002044done
John Criswell7a73b802003-06-30 21:59:07 +00002045
Reid Spencera773bd52006-08-04 18:18:08 +00002046 if test "x$ac_ct_CC" = x; then
2047 CC=""
2048 else
2049 case $cross_compiling:$ac_tool_warned in
2050yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002051{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052whose name does not start with the host triplet. If you think this
2053configuration is useful to you, please write to autoconf@gnu.org." >&5
2054echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055whose name does not start with the host triplet. If you think this
2056configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002057ac_tool_warned=yes ;;
2058esac
2059 CC=$ac_ct_CC
2060 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061fi
2062
John Criswell7a73b802003-06-30 21:59:07 +00002063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002064test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: no acceptable C compiler found in \$PATH
2067See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069
John Criswell7a73b802003-06-30 21:59:07 +00002070# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071echo "$as_me:$LINENO: checking for C compiler version" >&5
2072ac_compiler=`set X $ac_compile; echo $2`
2073{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002074case "(($ac_try" in
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2077esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002080 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083{ (ac_try="$ac_compiler -v >&5"
2084case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087esac
2088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler -v >&5") 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093{ (ac_try="$ac_compiler -V >&5"
2094case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097esac
2098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -V >&5") 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002104cat >conftest.$ac_ext <<_ACEOF
2105/* confdefs.h. */
2106_ACEOF
2107cat confdefs.h >>conftest.$ac_ext
2108cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002110
John Criswell7a73b802003-06-30 21:59:07 +00002111int
2112main ()
2113{
2114
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002121# Try to create an executable without -o first, disregard a.out.
2122# It will help us diagnose broken compilers, and finding out an intuition
2123# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002124{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2127#
2128# List of possible output files, starting from the most likely.
2129# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130# only as a last resort. b.out is created by i960 compilers.
2131ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2132#
2133# The IRIX 6 linker writes into existing files which may not be
2134# executable, retaining their permissions. Remove them first so a
2135# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002136ac_rmfiles=
2137for ac_file in $ac_files
2138do
2139 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2142 esac
2143done
2144rm -f $ac_rmfiles
2145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002147case "(($ac_try" in
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2150esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002152 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002153 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158# in a Makefile. We should not override ac_cv_exeext if it was cached,
2159# so that the user can short-circuit this test for compilers unknown to
2160# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002161for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002162do
2163 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002164 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002166 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002167 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002168 # We found the default executable, but exeext='' is most
2169 # certainly right.
2170 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002171 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002173 then :; else
2174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2175 fi
2176 # We set ac_cv_exeext here because the later test for it is not
2177 # safe: cross compilers may not add the suffix if given an `-o'
2178 # argument, so we may need to know it at that point already.
2179 # Even if this section looks crufty: it has the advantage of
2180 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002181 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002182 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002183 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002184 esac
2185done
Reid Spencera773bd52006-08-04 18:18:08 +00002186test "$ac_cv_exeext" = no && ac_cv_exeext=
2187
John Criswell7a73b802003-06-30 21:59:07 +00002188else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002190sed 's/^/| /' conftest.$ac_ext >&5
2191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002192{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193See \`config.log' for more details." >&5
2194echo "$as_me: error: C compiler cannot create executables
2195See \`config.log' for more details." >&2;}
2196 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002197fi
John Criswell7a73b802003-06-30 21:59:07 +00002198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002199ac_exeext=$ac_cv_exeext
2200{ echo "$as_me:$LINENO: result: $ac_file" >&5
2201echo "${ECHO_T}$ac_file" >&6; }
2202
2203# Check that the compiler produces executables we can run. If not, either
2204# the compiler is broken, or we cross compile.
2205{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208# If not cross compiling, check that we can run a simple program.
2209if test "$cross_compiling" != yes; then
2210 if { ac_try='./$ac_file'
2211 { (case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2214esac
2215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216 (eval "$ac_try") 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 cross_compiling=no
2221 else
2222 if test "$cross_compiling" = maybe; then
2223 cross_compiling=yes
2224 else
2225 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&5
2228echo "$as_me: error: cannot run C compiled programs.
2229If you meant to cross compile, use \`--host'.
2230See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2232 fi
2233 fi
2234fi
2235{ echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
2237
2238rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002239ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002240# Check that the compiler produces executables we can run. If not, either
2241# the compiler is broken, or we cross compile.
2242{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245echo "${ECHO_T}$cross_compiling" >&6; }
2246
2247{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002250case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2253esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002255 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002256 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2261# work properly (i.e., refer to `conftest.exe'), while it won't with
2262# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002263for ac_file in conftest.exe conftest conftest.*; do
2264 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002265 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002268 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002269 * ) break;;
2270 esac
2271done
2272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274See \`config.log' for more details." >&5
2275echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002279
2280rm -f conftest$ac_cv_exeext
2281{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002283
2284rm -f conftest.$ac_ext
2285EXEEXT=$ac_cv_exeext
2286ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002287{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002292 cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h. */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002298
John Criswell7a73b802003-06-30 21:59:07 +00002299int
2300main ()
2301{
2302
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002308if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002309case "(($ac_try" in
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2312esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002314 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002315 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002318 for ac_file in conftest.o conftest.obj conftest.*; do
2319 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002320 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323 break;;
2324 esac
2325done
2326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002328sed 's/^/| /' conftest.$ac_ext >&5
2329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002330{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336
John Criswell7a73b802003-06-30 21:59:07 +00002337rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002341OBJEXT=$ac_cv_objext
2342ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348 cat >conftest.$ac_ext <<_ACEOF
2349/* confdefs.h. */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002354
John Criswell7a73b802003-06-30 21:59:07 +00002355int
2356main ()
2357{
2358#ifndef __GNUC__
2359 choke me
2360#endif
2361
2362 ;
2363 return 0;
2364}
2365_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002366rm -f conftest.$ac_objext
2367if { (ac_try="$ac_compile"
2368case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371esac
2372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>conftest.er1
2374 ac_status=$?
2375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2384esac
2385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_try") 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394esac
2395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002400 ac_compiler_gnu=yes
2401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002402 echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407
Reid Spencera773bd52006-08-04 18:18:08 +00002408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002410
2411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415ac_test_CFLAGS=${CFLAGS+set}
2416ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002421else
Reid Spencera773bd52006-08-04 18:18:08 +00002422 ac_save_c_werror_flag=$ac_c_werror_flag
2423 ac_c_werror_flag=yes
2424 ac_cv_prog_cc_g=no
2425 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002432
John Criswell7a73b802003-06-30 21:59:07 +00002433int
2434main ()
2435{
2436
2437 ;
2438 return 0;
2439}
2440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002441rm -f conftest.$ac_objext
2442if { (ac_try="$ac_compile"
2443case "(($ac_try" in
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2446esac
2447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compile") 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456 { (case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
2460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_try") 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469esac
2470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002477 echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 CFLAGS=""
2481 cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h. */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002486/* end confdefs.h. */
2487
2488int
2489main ()
2490{
2491
2492 ;
2493 return 0;
2494}
2495_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002496rm -f conftest.$ac_objext
2497if { (ac_try="$ac_compile"
2498case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2501esac
2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511 { (case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514esac
2515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_try") 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2530 :
Torok Edwin871384f2010-01-26 08:50:50 +00002531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002532 echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002536 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002537 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002542/* end confdefs.h. */
2543
2544int
2545main ()
2546{
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552rm -f conftest.$ac_objext
2553if { (ac_try="$ac_compile"
2554case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557esac
2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2560 ac_status=$?
2561 grep -v '^ *+' conftest.er1 >conftest.err
2562 rm -f conftest.er1
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570esac
2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580esac
2581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002586 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002587else
2588 echo "$as_me: failed program was:" >&5
2589sed 's/^/| /' conftest.$ac_ext >&5
2590
2591
John Criswell7a73b802003-06-30 21:59:07 +00002592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593
Reid Spencera773bd52006-08-04 18:18:08 +00002594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002596
Reid Spencera773bd52006-08-04 18:18:08 +00002597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
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
2601 ac_c_werror_flag=$ac_save_c_werror_flag
2602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2609 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002610 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002612 fi
2613else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614 if test "$GCC" = yes; then
2615 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002616 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002618 fi
2619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622if test "${ac_cv_prog_cc_c89+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624else
Reid Spencera773bd52006-08-04 18:18:08 +00002625 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002627cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632/* end confdefs.h. */
2633#include <stdarg.h>
2634#include <stdio.h>
2635#include <sys/types.h>
2636#include <sys/stat.h>
2637/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638struct buf { int x; };
2639FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640static char *e (p, i)
2641 char **p;
2642 int i;
2643{
2644 return p[i];
2645}
2646static char *f (char * (*g) (char **, int), char **p, ...)
2647{
2648 char *s;
2649 va_list v;
2650 va_start (v,p);
2651 s = g (p, va_arg (v,int));
2652 va_end (v);
2653 return s;
2654}
2655
2656/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2657 function prototypes and stuff, but not '\xHH' hex character constants.
2658 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002659 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2661 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002662 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2664
Reid Spencera773bd52006-08-04 18:18:08 +00002665/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666 inside strings and character constants. */
2667#define FOO(x) 'x'
2668int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2669
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670int test (int i, double x);
2671struct s1 {int (*f) (int a);};
2672struct s2 {int (*f) (double a);};
2673int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674int argc;
2675char **argv;
2676int
2677main ()
2678{
2679return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2680 ;
2681 return 0;
2682}
2683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002684for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686do
2687 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002688 rm -f conftest.$ac_objext
2689if { (ac_try="$ac_compile"
2690case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693esac
2694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_try") 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002722 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002723else
2724 echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002729
Reid Spencera773bd52006-08-04 18:18:08 +00002730rm -f core conftest.err conftest.$ac_objext
2731 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732done
Reid Spencera773bd52006-08-04 18:18:08 +00002733rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002734CC=$ac_save_CC
2735
2736fi
Reid Spencera773bd52006-08-04 18:18:08 +00002737# AC_CACHE_VAL
2738case "x$ac_cv_prog_cc_c89" in
2739 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740 { echo "$as_me:$LINENO: result: none needed" >&5
2741echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002742 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743 { echo "$as_me:$LINENO: result: unsupported" >&5
2744echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002746 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749esac
2750
John Criswell0c38eaf2003-09-10 15:17:25 +00002751
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752ac_ext=c
2753ac_cpp='$CPP $CPPFLAGS'
2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757
Eric Christopherffee5722011-09-16 20:36:25 +00002758ac_ext=cpp
2759ac_cpp='$CXXCPP $CPPFLAGS'
2760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763if test -z "$CXX"; then
2764 if test -n "$CCC"; then
2765 CXX=$CCC
2766 else
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in clang++ llvm-g++ g++
2769 do
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774if test "${ac_cv_prog_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 if test -n "$CXX"; then
2778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797CXX=$ac_cv_prog_CXX
2798if test -n "$CXX"; then
2799 { echo "$as_me:$LINENO: result: $CXX" >&5
2800echo "${ECHO_T}$CXX" >&6; }
2801else
2802 { echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6; }
2804fi
2805
2806
2807 test -n "$CXX" && break
2808 done
2809fi
2810if test -z "$CXX"; then
2811 ac_ct_CXX=$CXX
2812 for ac_prog in clang++ llvm-g++ g++
2813do
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815set dummy $ac_prog; ac_word=$2
2816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820else
2821 if test -n "$ac_ct_CXX"; then
2822 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CXX="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835done
2836done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842if test -n "$ac_ct_CXX"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844echo "${ECHO_T}$ac_ct_CXX" >&6; }
2845else
2846 { echo "$as_me:$LINENO: result: no" >&5
2847echo "${ECHO_T}no" >&6; }
2848fi
2849
2850
2851 test -n "$ac_ct_CXX" && break
2852done
2853
2854 if test "x$ac_ct_CXX" = x; then
2855 CXX="g++"
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858yes:)
2859{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860whose name does not start with the host triplet. If you think this
2861configuration is useful to you, please write to autoconf@gnu.org." >&5
2862echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863whose name does not start with the host triplet. If you think this
2864configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865ac_tool_warned=yes ;;
2866esac
2867 CXX=$ac_ct_CXX
2868 fi
2869fi
2870
2871 fi
2872fi
2873# Provide some information about the compiler.
2874echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875ac_compiler=`set X $ac_compile; echo $2`
2876{ (ac_try="$ac_compiler --version >&5"
2877case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
2881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler --version >&5") 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886{ (ac_try="$ac_compiler -v >&5"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -v >&5") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896{ (ac_try="$ac_compiler -V >&5"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -V >&5") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906
2907{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912 cat >conftest.$ac_ext <<_ACEOF
2913/* confdefs.h. */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h. */
2918
2919int
2920main ()
2921{
2922#ifndef __GNUC__
2923 choke me
2924#endif
2925
2926 ;
2927 return 0;
2928}
2929_ACEOF
2930rm -f conftest.$ac_objext
2931if { (ac_try="$ac_compile"
2932case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935esac
2936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958esac
2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 ac_compiler_gnu=yes
2965else
2966 echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 ac_compiler_gnu=no
2970fi
2971
2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2974
2975fi
2976{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978GXX=`test $ac_compiler_gnu = yes && echo yes`
2979ac_test_CXXFLAGS=${CXXFLAGS+set}
2980ac_save_CXXFLAGS=$CXXFLAGS
2981{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983if test "${ac_cv_prog_cxx_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985else
2986 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987 ac_cxx_werror_flag=yes
2988 ac_cv_prog_cxx_g=no
2989 CXXFLAGS="-g"
2990 cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h. */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h. */
2996
2997int
2998main ()
2999{
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
3006if { (ac_try="$ac_compile"
3007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_prog_cxx_g=yes
3040else
3041 echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 CXXFLAGS=""
3045 cat >conftest.$ac_ext <<_ACEOF
3046/* confdefs.h. */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h. */
3051
3052int
3053main ()
3054{
3055
3056 ;
3057 return 0;
3058}
3059_ACEOF
3060rm -f conftest.$ac_objext
3061if { (ac_try="$ac_compile"
3062case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3094 :
3095else
3096 echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3100 CXXFLAGS="-g"
3101 cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107
3108int
3109main ()
3110{
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext
3117if { (ac_try="$ac_compile"
3118case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_prog_cxx_g=yes
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155
3156fi
3157
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160
3161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162fi
3163
3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3166fi
3167{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169if test "$ac_test_CXXFLAGS" = set; then
3170 CXXFLAGS=$ac_save_CXXFLAGS
3171elif test $ac_cv_prog_cxx_g = yes; then
3172 if test "$GXX" = yes; then
3173 CXXFLAGS="-g -O2"
3174 else
3175 CXXFLAGS="-g"
3176 fi
3177else
3178 if test "$GXX" = yes; then
3179 CXXFLAGS="-O2"
3180 else
3181 CXXFLAGS=
3182 fi
3183fi
3184ac_ext=c
3185ac_cpp='$CPP $CPPFLAGS'
3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003189
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003190ac_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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003195{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197# On Suns, sometimes $CPP names a directory.
3198if test -n "$CPP" && test -d "$CPP"; then
3199 CPP=
3200fi
3201if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003204else
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207 do
3208 ac_preproc_ok=false
3209for ac_c_preproc_warn_flag in '' yes
3210do
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217 cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222/* end confdefs.h. */
3223#ifdef __STDC__
3224# include <limits.h>
3225#else
3226# include <assert.h>
3227#endif
3228 Syntax error
3229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230if { (ac_try="$ac_cpp conftest.$ac_ext"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246 else
3247 ac_cpp_err=
3248 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003250 ac_cpp_err=yes
3251fi
3252if test -z "$ac_cpp_err"; then
3253 :
3254else
3255 echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258 # Broken: fails on valid input.
3259continue
3260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003261
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262rm -f conftest.err conftest.$ac_ext
3263
Reid Spencera773bd52006-08-04 18:18:08 +00003264 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003266 cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271/* end confdefs.h. */
3272#include <ac_nonexistent.h>
3273_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003274if { (ac_try="$ac_cpp conftest.$ac_ext"
3275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290 else
3291 ac_cpp_err=
3292 fi
3293else
3294 ac_cpp_err=yes
3295fi
3296if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297 # Broken: success on invalid input.
3298continue
3299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003300 echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303 # Passes both tests.
3304ac_preproc_ok=:
3305break
3306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003307
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308rm -f conftest.err conftest.$ac_ext
3309
3310done
3311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003313if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314 break
3315fi
3316
3317 done
3318 ac_cv_prog_CPP=$CPP
3319
3320fi
3321 CPP=$ac_cv_prog_CPP
3322else
3323 ac_cv_prog_CPP=$CPP
3324fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003325{ echo "$as_me:$LINENO: result: $CPP" >&5
3326echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003327ac_preproc_ok=false
3328for ac_c_preproc_warn_flag in '' yes
3329do
3330 # Use a header file that comes with gcc, so configuring glibc
3331 # with a fresh cross-compiler works.
3332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333 # <limits.h> exists even on freestanding compilers.
3334 # On the NeXT, cc -E runs the code through the compiler's parser,
3335 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003336 cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341/* end confdefs.h. */
3342#ifdef __STDC__
3343# include <limits.h>
3344#else
3345# include <assert.h>
3346#endif
3347 Syntax error
3348_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003349if { (ac_try="$ac_cpp conftest.$ac_ext"
3350case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365 else
3366 ac_cpp_err=
3367 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369 ac_cpp_err=yes
3370fi
3371if test -z "$ac_cpp_err"; then
3372 :
3373else
3374 echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377 # Broken: fails on valid input.
3378continue
3379fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381rm -f conftest.err conftest.$ac_ext
3382
Reid Spencera773bd52006-08-04 18:18:08 +00003383 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003384 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003385 cat >conftest.$ac_ext <<_ACEOF
3386/* confdefs.h. */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390/* end confdefs.h. */
3391#include <ac_nonexistent.h>
3392_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003393if { (ac_try="$ac_cpp conftest.$ac_ext"
3394case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409 else
3410 ac_cpp_err=
3411 fi
3412else
3413 ac_cpp_err=yes
3414fi
3415if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003416 # Broken: success on invalid input.
3417continue
3418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422 # Passes both tests.
3423ac_preproc_ok=:
3424break
3425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427rm -f conftest.err conftest.$ac_ext
3428
3429done
3430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432if $ac_preproc_ok; then
3433 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436See \`config.log' for more details." >&5
3437echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440fi
3441
John Criswell7a73b802003-06-30 21:59:07 +00003442ac_ext=c
3443ac_cpp='$CPP $CPPFLAGS'
3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
John Criswell7a73b802003-06-30 21:59:07 +00003448
Eric Christopherffee5722011-09-16 20:36:25 +00003449
3450
3451if test -d ${srcdir}/projects/llvm-gcc ; then
3452 subdirs="$subdirs projects/llvm-gcc"
3453
3454fi
3455
3456if test -d ${srcdir}/projects/test-suite ; then
3457 subdirs="$subdirs projects/test-suite"
3458
3459fi
3460
3461if test -d ${srcdir}/projects/llvm-test ; then
3462 subdirs="$subdirs projects/llvm-test"
3463
3464fi
3465
3466if test -d ${srcdir}/projects/poolalloc ; then
3467 subdirs="$subdirs projects/poolalloc"
3468
3469fi
3470
3471if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472 subdirs="$subdirs projects/llvm-poolalloc"
3473
3474fi
3475
3476for i in `ls ${srcdir}/projects`
3477do
3478 if test -d ${srcdir}/projects/${i} ; then
3479 case ${i} in
3480 sample) subdirs="$subdirs projects/sample"
3481 ;;
3482 privbracket) subdirs="$subdirs projects/privbracket"
3483 ;;
3484 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3485 ;;
3486 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3487;;
3488 llvm-java) subdirs="$subdirs projects/llvm-java"
3489 ;;
3490 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3491 ;;
3492 safecode) subdirs="$subdirs projects/safecode"
3493 ;;
3494 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3495 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003496 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003497 llvm-gcc) ;;
3498 test-suite) ;;
3499 llvm-test) ;;
3500 poolalloc) ;;
3501 llvm-poolalloc) ;;
3502 *)
3503 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3505 ;;
3506 esac
3507 fi
3508done
3509
3510# Check whether --enable-polly was given.
3511if test "${enable_polly+set}" = set; then
3512 enableval=$enable_polly;
3513else
3514 enableval=default
3515fi
3516
3517case "$enableval" in
3518 yes) ENABLE_POLLY=1
3519 ;;
3520 no) ENABLE_POLLY=0
3521 ;;
3522 default) ENABLE_POLLY=1
3523 ;;
3524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526 { (exit 1); exit 1; }; } ;;
3527esac
3528
3529
3530if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3531 LLVM_HAS_POLLY=1
3532
3533 subdirs="$subdirs tools/polly"
3534
3535fi
3536
3537
3538# Make sure we can run config.sub.
3539$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542 { (exit 1); exit 1; }; }
3543
3544{ echo "$as_me:$LINENO: checking build system type" >&5
3545echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546if test "${ac_cv_build+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 ac_build_alias=$build_alias
3550test "x$ac_build_alias" = x &&
3551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552test "x$ac_build_alias" = x &&
3553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555 { (exit 1); exit 1; }; }
3556ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559 { (exit 1); exit 1; }; }
3560
3561fi
3562{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563echo "${ECHO_T}$ac_cv_build" >&6; }
3564case $ac_cv_build in
3565*-*-*) ;;
3566*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567echo "$as_me: error: invalid value of canonical build" >&2;}
3568 { (exit 1); exit 1; }; };;
3569esac
3570build=$ac_cv_build
3571ac_save_IFS=$IFS; IFS='-'
3572set x $ac_cv_build
3573shift
3574build_cpu=$1
3575build_vendor=$2
3576shift; shift
3577# Remember, the first character of IFS is used to create $*,
3578# except with old shells:
3579build_os=$*
3580IFS=$ac_save_IFS
3581case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3582
3583
3584{ echo "$as_me:$LINENO: checking host system type" >&5
3585echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586if test "${ac_cv_host+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589 if test "x$host_alias" = x; then
3590 ac_cv_host=$ac_cv_build
3591else
3592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595 { (exit 1); exit 1; }; }
3596fi
3597
3598fi
3599{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600echo "${ECHO_T}$ac_cv_host" >&6; }
3601case $ac_cv_host in
3602*-*-*) ;;
3603*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604echo "$as_me: error: invalid value of canonical host" >&2;}
3605 { (exit 1); exit 1; }; };;
3606esac
3607host=$ac_cv_host
3608ac_save_IFS=$IFS; IFS='-'
3609set x $ac_cv_host
3610shift
3611host_cpu=$1
3612host_vendor=$2
3613shift; shift
3614# Remember, the first character of IFS is used to create $*,
3615# except with old shells:
3616host_os=$*
3617IFS=$ac_save_IFS
3618case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619
3620
3621{ echo "$as_me:$LINENO: checking target system type" >&5
3622echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623if test "${ac_cv_target+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626 if test "x$target_alias" = x; then
3627 ac_cv_target=$ac_cv_host
3628else
3629 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632 { (exit 1); exit 1; }; }
3633fi
3634
3635fi
3636{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637echo "${ECHO_T}$ac_cv_target" >&6; }
3638case $ac_cv_target in
3639*-*-*) ;;
3640*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641echo "$as_me: error: invalid value of canonical target" >&2;}
3642 { (exit 1); exit 1; }; };;
3643esac
3644target=$ac_cv_target
3645ac_save_IFS=$IFS; IFS='-'
3646set x $ac_cv_target
3647shift
3648target_cpu=$1
3649target_vendor=$2
3650shift; shift
3651# Remember, the first character of IFS is used to create $*,
3652# except with old shells:
3653target_os=$*
3654IFS=$ac_save_IFS
3655case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3656
3657
3658# The aliases save the names the user supplied, while $host etc.
3659# will get canonicalized.
3660test -n "$target_alias" &&
3661 test "$program_prefix$program_suffix$program_transform_name" = \
3662 NONENONEs,x,x, &&
3663 program_prefix=${target_alias}-
3664
3665{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667if test "${llvm_cv_os_type+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670 case $host in
3671 *-*-aix*)
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="AIX"
3675 llvm_cv_platform_type="Unix" ;;
3676 *-*-irix*)
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="IRIX"
3680 llvm_cv_platform_type="Unix" ;;
3681 *-*-cygwin*)
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Cygwin"
3685 llvm_cv_platform_type="Unix" ;;
3686 *-*-darwin*)
3687 llvm_cv_link_all_option="-Wl,-all_load"
3688 llvm_cv_no_link_all_option="-Wl,-noall_load"
3689 llvm_cv_os_type="Darwin"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-minix*)
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Minix"
3695 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003696 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="FreeBSD"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-openbsd*)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="OpenBSD"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-netbsd*)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="NetBSD"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-dragonfly*)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="DragonFly"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-hpux*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="HP-UX"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-interix*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Interix"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-linux*)
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="Linux"
3730 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003731 *-*-gnu*)
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="GNU"
3735 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003736 *-*-solaris*)
3737 llvm_cv_link_all_option="-Wl,-z,allextract"
3738 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3739 llvm_cv_os_type="SunOS"
3740 llvm_cv_platform_type="Unix" ;;
3741 *-*-auroraux*)
3742 llvm_cv_link_all_option="-Wl,-z,allextract"
3743 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3744 llvm_cv_os_type="AuroraUX"
3745 llvm_cv_platform_type="Unix" ;;
3746 *-*-win32*)
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Win32"
3750 llvm_cv_platform_type="Win32" ;;
3751 *-*-mingw*)
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="MingW"
3755 llvm_cv_platform_type="Win32" ;;
3756 *-*-haiku*)
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Haiku"
3760 llvm_cv_platform_type="Unix" ;;
3761 *-unknown-eabi*)
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Freestanding"
3765 llvm_cv_platform_type="Unix" ;;
3766 *-unknown-elf*)
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Freestanding"
3770 llvm_cv_platform_type="Unix" ;;
3771 *)
3772 llvm_cv_link_all_option=""
3773 llvm_cv_no_link_all_option=""
3774 llvm_cv_os_type="Unknown"
3775 llvm_cv_platform_type="Unknown" ;;
3776esac
3777fi
3778{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3779echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3780
3781{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3782echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3783if test "${llvm_cv_target_os_type+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786 case $target in
3787 *-*-aix*)
3788 llvm_cv_target_os_type="AIX" ;;
3789 *-*-irix*)
3790 llvm_cv_target_os_type="IRIX" ;;
3791 *-*-cygwin*)
3792 llvm_cv_target_os_type="Cygwin" ;;
3793 *-*-darwin*)
3794 llvm_cv_target_os_type="Darwin" ;;
3795 *-*-minix*)
3796 llvm_cv_target_os_type="Minix" ;;
3797 *-*-freebsd*)
3798 llvm_cv_target_os_type="FreeBSD" ;;
3799 *-*-openbsd*)
3800 llvm_cv_target_os_type="OpenBSD" ;;
3801 *-*-netbsd*)
3802 llvm_cv_target_os_type="NetBSD" ;;
3803 *-*-dragonfly*)
3804 llvm_cv_target_os_type="DragonFly" ;;
3805 *-*-hpux*)
3806 llvm_cv_target_os_type="HP-UX" ;;
3807 *-*-interix*)
3808 llvm_cv_target_os_type="Interix" ;;
3809 *-*-linux*)
3810 llvm_cv_target_os_type="Linux" ;;
3811 *-*-solaris*)
3812 llvm_cv_target_os_type="SunOS" ;;
3813 *-*-auroraux*)
3814 llvm_cv_target_os_type="AuroraUX" ;;
3815 *-*-win32*)
3816 llvm_cv_target_os_type="Win32" ;;
3817 *-*-mingw*)
3818 llvm_cv_target_os_type="MingW" ;;
3819 *-*-haiku*)
3820 llvm_cv_target_os_type="Haiku" ;;
3821 *-*-rtems*)
3822 llvm_cv_target_os_type="RTEMS" ;;
3823 *-*-nacl*)
3824 llvm_cv_target_os_type="NativeClient" ;;
3825 *-unknown-eabi*)
3826 llvm_cv_target_os_type="Freestanding" ;;
3827 *)
3828 llvm_cv_target_os_type="Unknown" ;;
3829esac
3830fi
3831{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3832echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3833
3834if test "$llvm_cv_os_type" = "Unknown" ; then
3835 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3836echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3837 { (exit 1); exit 1; }; }
3838fi
3839
3840OS=$llvm_cv_os_type
3841
3842HOST_OS=$llvm_cv_os_type
3843
3844TARGET_OS=$llvm_cv_target_os_type
3845
3846
3847LINKALL=$llvm_cv_link_all_option
3848
3849NOLINKALL=$llvm_cv_no_link_all_option
3850
3851
3852case $llvm_cv_platform_type in
3853 Unix)
3854
3855cat >>confdefs.h <<\_ACEOF
3856#define LLVM_ON_UNIX 1
3857_ACEOF
3858
3859 LLVM_ON_UNIX=1
3860
3861 LLVM_ON_WIN32=0
3862
3863 ;;
3864 Win32)
3865
3866cat >>confdefs.h <<\_ACEOF
3867#define LLVM_ON_WIN32 1
3868_ACEOF
3869
3870 LLVM_ON_UNIX=0
3871
3872 LLVM_ON_WIN32=1
3873
3874 ;;
3875esac
3876
3877{ echo "$as_me:$LINENO: checking target architecture" >&5
3878echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3879if test "${llvm_cv_target_arch+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882 case $target in
3883 i?86-*) llvm_cv_target_arch="x86" ;;
3884 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3885 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3886 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003887 arm*-*) llvm_cv_target_arch="ARM" ;;
3888 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003889 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003890 xcore-*) llvm_cv_target_arch="XCore" ;;
3891 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003892 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003893 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3894 ptx-*) llvm_cv_target_arch="PTX" ;;
3895 *) llvm_cv_target_arch="Unknown" ;;
3896esac
3897fi
3898{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3899echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3900
3901if test "$llvm_cv_target_arch" = "Unknown" ; then
3902 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3903echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3904fi
3905
3906# Determine the LLVM native architecture for the target
3907case "$llvm_cv_target_arch" in
3908 x86) LLVM_NATIVE_ARCH="X86" ;;
3909 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3910 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3911esac
3912
3913ARCH=$llvm_cv_target_arch
3914
3915
3916
3917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003918{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3919echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3920if test "${ac_cv_path_GREP+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923 # Extract the first word of "grep ggrep" to use in msg output
3924if test -z "$GREP"; then
3925set dummy grep ggrep; ac_prog_name=$2
3926if test "${ac_cv_path_GREP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
Reid Spencera773bd52006-08-04 18:18:08 +00003929 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003930# Loop through the user's path and test for each of PROGNAME-LIST
3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003933do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003936 for ac_prog in grep ggrep; do
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3940 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003941 # Check for GNU $ac_path_GREP
3942case `"$ac_path_GREP" --version 2>&1` in
3943*GNU*)
3944 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945*)
3946 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003948 while :
3949 do
3950 cat "conftest.in" "conftest.in" >"conftest.tmp"
3951 mv "conftest.tmp" "conftest.in"
3952 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003954 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003956 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003957 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958 # Best one so far, save it but keep looking for a better one
3959 ac_cv_path_GREP="$ac_path_GREP"
3960 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003961 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003962 # 10*(2^10) chars as input seems more than enough
3963 test $ac_count -gt 10 && break
3964 done
3965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966esac
3967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003968
3969 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003970 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003971done
3972
3973done
Reid Spencera773bd52006-08-04 18:18:08 +00003974IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003975
3976
3977fi
3978
3979GREP="$ac_cv_path_GREP"
3980if test -z "$GREP"; then
3981 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3982echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3983 { (exit 1); exit 1; }; }
3984fi
3985
Reid Spencera773bd52006-08-04 18:18:08 +00003986else
3987 ac_cv_path_GREP=$GREP
3988fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003990
Reid Spencera773bd52006-08-04 18:18:08 +00003991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3993echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003994 GREP="$ac_cv_path_GREP"
3995
3996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003997{ echo "$as_me:$LINENO: checking for egrep" >&5
3998echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3999if test "${ac_cv_path_EGREP+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004001else
4002 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4003 then ac_cv_path_EGREP="$GREP -E"
4004 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004005 # Extract the first word of "egrep" to use in msg output
4006if test -z "$EGREP"; then
4007set dummy egrep; ac_prog_name=$2
4008if test "${ac_cv_path_EGREP+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
Reid Spencera773bd52006-08-04 18:18:08 +00004011 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004012# Loop through the user's path and test for each of PROGNAME-LIST
4013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004014for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004018 for ac_prog in egrep; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4021 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4022 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004023 # Check for GNU $ac_path_EGREP
4024case `"$ac_path_EGREP" --version 2>&1` in
4025*GNU*)
4026 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4027*)
4028 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004029 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004030 while :
4031 do
4032 cat "conftest.in" "conftest.in" >"conftest.tmp"
4033 mv "conftest.tmp" "conftest.in"
4034 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004035 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004036 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004038 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004039 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4040 # Best one so far, save it but keep looking for a better one
4041 ac_cv_path_EGREP="$ac_path_EGREP"
4042 ac_path_EGREP_max=$ac_count
4043 fi
4044 # 10*(2^10) chars as input seems more than enough
4045 test $ac_count -gt 10 && break
4046 done
4047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048esac
4049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004050
4051 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004052 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004053done
4054
4055done
Reid Spencera773bd52006-08-04 18:18:08 +00004056IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004057
4058
4059fi
4060
4061EGREP="$ac_cv_path_EGREP"
4062if test -z "$EGREP"; then
4063 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4064echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4065 { (exit 1); exit 1; }; }
4066fi
4067
Reid Spencera773bd52006-08-04 18:18:08 +00004068else
4069 ac_cv_path_EGREP=$EGREP
4070fi
4071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004072
Reid Spencera773bd52006-08-04 18:18:08 +00004073 fi
4074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004075{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4076echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004077 EGREP="$ac_cv_path_EGREP"
4078
4079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004080{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4081echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4082if test "${ac_cv_header_stdc+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004085 cat >conftest.$ac_ext <<_ACEOF
4086/* confdefs.h. */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004090/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004091#include <stdlib.h>
4092#include <stdarg.h>
4093#include <string.h>
4094#include <float.h>
4095
John Criswell0c38eaf2003-09-10 15:17:25 +00004096int
4097main ()
4098{
4099
4100 ;
4101 return 0;
4102}
John Criswell7a73b802003-06-30 21:59:07 +00004103_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004104rm -f conftest.$ac_objext
4105if { (ac_try="$ac_compile"
4106case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109esac
4110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132esac
4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004138 ac_cv_header_stdc=yes
4139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140 echo "$as_me: failed program was:" >&5
4141sed 's/^/| /' conftest.$ac_ext >&5
4142
4143 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004145
Reid Spencera773bd52006-08-04 18:18:08 +00004146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004147
4148if test $ac_cv_header_stdc = yes; then
4149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150 cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h. */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004155/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004156#include <string.h>
4157
4158_ACEOF
4159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004160 $EGREP "memchr" >/dev/null 2>&1; then
4161 :
John Criswell7a73b802003-06-30 21:59:07 +00004162else
4163 ac_cv_header_stdc=no
4164fi
4165rm -f conftest*
4166
4167fi
4168
4169if test $ac_cv_header_stdc = yes; then
4170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171 cat >conftest.$ac_ext <<_ACEOF
4172/* confdefs.h. */
4173_ACEOF
4174cat confdefs.h >>conftest.$ac_ext
4175cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004177#include <stdlib.h>
4178
4179_ACEOF
4180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004181 $EGREP "free" >/dev/null 2>&1; then
4182 :
John Criswell7a73b802003-06-30 21:59:07 +00004183else
4184 ac_cv_header_stdc=no
4185fi
4186rm -f conftest*
4187
4188fi
4189
4190if test $ac_cv_header_stdc = yes; then
4191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004192 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004193 :
4194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004195 cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h. */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004200/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004201#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004202#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004203#if ((' ' & 0x0FF) == 0x020)
4204# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4205# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4206#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004207# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004208 (('a' <= (c) && (c) <= 'i') \
4209 || ('j' <= (c) && (c) <= 'r') \
4210 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004211# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4212#endif
4213
4214#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4215int
4216main ()
4217{
4218 int i;
4219 for (i = 0; i < 256; i++)
4220 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004221 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004222 return 2;
4223 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004224}
4225_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004226rm -f conftest$ac_exeext
4227if { (ac_try="$ac_link"
4228case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_link") 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
4241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 :
John Criswell7a73b802003-06-30 21:59:07 +00004247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004248 echo "$as_me: program exited with status $ac_status" >&5
4249echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252( exit $ac_status )
4253ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255rm -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 +00004256fi
4257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004258
John Criswell7a73b802003-06-30 21:59:07 +00004259fi
4260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004261{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4262echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004263if test $ac_cv_header_stdc = yes; then
4264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004265cat >>confdefs.h <<\_ACEOF
4266#define STDC_HEADERS 1
4267_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004268
4269fi
4270
Reid Spencera773bd52006-08-04 18:18:08 +00004271# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272
4273
4274
4275
4276
4277
4278
4279
4280
Reid Spencera773bd52006-08-04 18:18:08 +00004281for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4282 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004283do
4284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4285{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289else
4290 cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h. */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
4295/* end confdefs.h. */
4296$ac_includes_default
4297
4298#include <$ac_header>
4299_ACEOF
4300rm -f conftest.$ac_objext
4301if { (ac_try="$ac_compile"
4302case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_compile") 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318esac
4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; } &&
4324 { ac_try='test -s conftest.$ac_objext'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 eval "$as_ac_Header=yes"
4335else
4336 echo "$as_me: failed program was:" >&5
4337sed 's/^/| /' conftest.$ac_ext >&5
4338
4339 eval "$as_ac_Header=no"
4340fi
4341
4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343fi
4344ac_res=`eval echo '${'$as_ac_Header'}'`
4345 { echo "$as_me:$LINENO: result: $ac_res" >&5
4346echo "${ECHO_T}$ac_res" >&6; }
4347if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004348 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004350_ACEOF
4351
4352fi
4353
4354done
4355
4356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004357{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4358echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4359if test "${ac_cv_c_bigendian+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004362 # See if sys/param.h defines the BYTE_ORDER macro.
4363cat >conftest.$ac_ext <<_ACEOF
4364/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004365_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004368/* end confdefs.h. */
4369#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004370#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004371
4372int
4373main ()
4374{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4376 bogus endian macros
4377#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004378
4379 ;
4380 return 0;
4381}
4382_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004383rm -f conftest.$ac_objext
4384if { (ac_try="$ac_compile"
4385case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388esac
4389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_compile") 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
4402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest.$ac_objext'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411esac
4412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004417 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004418cat >conftest.$ac_ext <<_ACEOF
4419/* confdefs.h. */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004423/* end confdefs.h. */
4424#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004425#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004426
4427int
4428main ()
4429{
4430#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004431 not big endian
4432#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004433
4434 ;
4435 return 0;
4436}
4437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004438rm -f conftest.$ac_objext
4439if { (ac_try="$ac_compile"
4440case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443esac
4444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_compile") 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
4452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466esac
4467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_try") 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004472 ac_cv_c_bigendian=yes
4473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004474 echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004477 ac_cv_c_bigendian=no
4478fi
4479
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481else
4482 echo "$as_me: failed program was:" >&5
4483sed 's/^/| /' conftest.$ac_ext >&5
4484
4485 # It does not; compile a test program.
4486if test "$cross_compiling" = yes; then
4487 # try to guess the endianness by grepping values into an object file
4488 ac_cv_c_bigendian=unknown
4489 cat >conftest.$ac_ext <<_ACEOF
4490/* confdefs.h. */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h. */
4495short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4496short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4497void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4498short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4499short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4500void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004501int
4502main ()
4503{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004504 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004505 ;
4506 return 0;
4507}
4508_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004509rm -f conftest.$ac_objext
4510if { (ac_try="$ac_compile"
4511case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514esac
4515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4516 (eval "$ac_compile") 2>conftest.er1
4517 ac_status=$?
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4527esac
4528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try='test -s conftest.$ac_objext'
4534 { (case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537esac
4538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_try") 2>&5
4540 ac_status=$?
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4543 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004544 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545fi
4546if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4547 if test "$ac_cv_c_bigendian" = unknown; then
4548 ac_cv_c_bigendian=no
4549 else
4550 # finding both strings is unlikely to happen, but who knows?
4551 ac_cv_c_bigendian=unknown
4552 fi
4553fi
Reid Spencera773bd52006-08-04 18:18:08 +00004554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004555 echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004558
Torok Edwin871384f2010-01-26 08:50:50 +00004559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004560
Reid Spencera773bd52006-08-04 18:18:08 +00004561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004563 cat >conftest.$ac_ext <<_ACEOF
4564/* confdefs.h. */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004568/* end confdefs.h. */
4569$ac_includes_default
4570int
4571main ()
4572{
4573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574 /* Are we little or big endian? From Harbison&Steele. */
4575 union
4576 {
4577 long int l;
4578 char c[sizeof (long int)];
4579 } u;
4580 u.l = 1;
4581 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004582
4583 ;
4584 return 0;
4585}
4586_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004587rm -f conftest$ac_exeext
4588if { (ac_try="$ac_link"
4589case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4592esac
4593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_link") 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4598 { (case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601esac
4602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_try") 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004607 ac_cv_c_bigendian=no
4608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609 echo "$as_me: program exited with status $ac_status" >&5
4610echo "$as_me: failed program was:" >&5
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
4613( exit $ac_status )
4614ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004616rm -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 +00004617fi
4618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619
Reid Spencera773bd52006-08-04 18:18:08 +00004620fi
4621
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623fi
4624{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4625echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4626case $ac_cv_c_bigendian in
4627 yes)
4628 ENDIAN=big
4629 ;;
4630 no)
4631 ENDIAN=little
4632 ;;
4633 *)
4634 { { echo "$as_me:$LINENO: error: unknown endianness
4635presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4636echo "$as_me: error: unknown endianness
4637presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4638 { (exit 1); exit 1; }; } ;;
4639esac
Reid Spencera773bd52006-08-04 18:18:08 +00004640
4641
4642if test "$cross_compiling" = yes; then
4643 LLVM_CROSS_COMPILING=1
4644
4645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004646{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4647echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4648if test "${ac_cv_build_exeext+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004650else
4651 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4652 ac_cv_build_exeext=.exe
4653else
4654 ac_build_prefix=${build_alias}-
4655
4656 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4657set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004662else
4663 if test -n "$BUILD_CC"; then
4664 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4665else
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 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 +00004673 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004675 break 2
4676 fi
4677done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678done
Reid Spencera773bd52006-08-04 18:18:08 +00004679IFS=$as_save_IFS
4680
4681fi
4682fi
4683BUILD_CC=$ac_cv_prog_BUILD_CC
4684if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004685 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4686echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004687else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688 { echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004690fi
4691
4692
4693 if test -z "$BUILD_CC"; then
4694 # Extract the first word of "gcc", so it can be a program name with args.
4695set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004700else
4701 if test -n "$BUILD_CC"; then
4702 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 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 +00004711 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004713 break 2
4714 fi
4715done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716done
Reid Spencera773bd52006-08-04 18:18:08 +00004717IFS=$as_save_IFS
4718
4719fi
4720fi
4721BUILD_CC=$ac_cv_prog_BUILD_CC
4722if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004723 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4724echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726 { echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004728fi
4729
4730
4731 if test -z "$BUILD_CC"; then
4732 # Extract the first word of "cc", so it can be a program name with args.
4733set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004738else
4739 if test -n "$BUILD_CC"; then
4740 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4741else
4742 ac_prog_rejected=no
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 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 +00004750 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4751 ac_prog_rejected=yes
4752 continue
4753 fi
4754 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004756 break 2
4757 fi
4758done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004759done
Reid Spencera773bd52006-08-04 18:18:08 +00004760IFS=$as_save_IFS
4761
4762if test $ac_prog_rejected = yes; then
4763 # We found a bogon in the path, so make sure we never use it.
4764 set dummy $ac_cv_prog_BUILD_CC
4765 shift
4766 if test $# != 0; then
4767 # We chose a different compiler from the bogus one.
4768 # However, it has the same basename, so the bogon will be chosen
4769 # first if we set BUILD_CC to just the basename; use the full file name.
4770 shift
4771 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4772 fi
4773fi
4774fi
4775fi
4776BUILD_CC=$ac_cv_prog_BUILD_CC
4777if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4779echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004781 { echo "$as_me:$LINENO: result: no" >&5
4782echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004783fi
4784
4785
4786 fi
4787 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4789echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4790 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004791 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4792 rm -f conftest*
4793 echo 'int main () { return 0; }' > conftest.$ac_ext
4794 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004796 (eval $ac_build_link) 2>&5
4797 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004800 for file in conftest.*; do
4801 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004802 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004803 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4804 esac
4805 done
4806 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004807 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4808echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4809 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004810 fi
4811 rm -f conftest*
4812 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4813fi
4814fi
4815
4816BUILD_EXEEXT=""
4817test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004818{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4819echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004820ac_build_exeext=$BUILD_EXEEXT
4821
Jim Grosbach673612e2008-10-02 22:56:44 +00004822 ac_build_prefix=${build_alias}-
4823 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4824set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004829else
4830 if test -n "$BUILD_CXX"; then
4831 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4832else
4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 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 +00004840 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004842 break 2
4843 fi
4844done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004845done
Jim Grosbach673612e2008-10-02 22:56:44 +00004846IFS=$as_save_IFS
4847
4848fi
4849fi
4850BUILD_CXX=$ac_cv_prog_BUILD_CXX
4851if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004852 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4853echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004855 { echo "$as_me:$LINENO: result: no" >&5
4856echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004857fi
4858
4859
4860 if test -z "$BUILD_CXX"; then
4861 # Extract the first word of "g++", so it can be a program name with args.
4862set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004867else
4868 if test -n "$BUILD_CXX"; then
4869 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 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 +00004878 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004880 break 2
4881 fi
4882done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883done
Jim Grosbach673612e2008-10-02 22:56:44 +00004884IFS=$as_save_IFS
4885
4886fi
4887fi
4888BUILD_CXX=$ac_cv_prog_BUILD_CXX
4889if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004890 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4891echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893 { echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004895fi
4896
4897
4898 if test -z "$BUILD_CXX"; then
4899 # Extract the first word of "c++", so it can be a program name with args.
4900set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004905else
4906 if test -n "$BUILD_CXX"; then
4907 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4908else
4909 ac_prog_rejected=no
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 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 +00004917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4918 ac_prog_rejected=yes
4919 continue
4920 fi
4921 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004923 break 2
4924 fi
4925done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004926done
Jim Grosbach673612e2008-10-02 22:56:44 +00004927IFS=$as_save_IFS
4928
4929if test $ac_prog_rejected = yes; then
4930 # We found a bogon in the path, so make sure we never use it.
4931 set dummy $ac_cv_prog_BUILD_CXX
4932 shift
4933 if test $# != 0; then
4934 # We chose a different compiler from the bogus one.
4935 # However, it has the same basename, so the bogon will be chosen
4936 # first if we set BUILD_CXX to just the basename; use the full file name.
4937 shift
4938 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4939 fi
4940fi
4941fi
4942fi
4943BUILD_CXX=$ac_cv_prog_BUILD_CXX
4944if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004945 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4946echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004947else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004948 { echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004950fi
4951
4952
4953 fi
4954 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004955else
4956 LLVM_CROSS_COMPILING=0
4957
4958fi
4959
Dan Gohman56fb5f92010-08-04 16:25:01 +00004960if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004961 cvsbuild="yes"
4962 optimize="no"
4963 CVSBUILD=CVSBUILD=1
4964
4965else
4966 cvsbuild="no"
4967 optimize="yes"
4968fi
4969
4970
Eric Christopherbee515f2011-11-11 22:51:42 +00004971# Check whether --enable-libcpp was given.
4972if test "${enable_libcpp+set}" = set; then
4973 enableval=$enable_libcpp;
4974else
4975 enableval=default
4976fi
4977
4978case "$enableval" in
4979 yes) ENABLE_LIBCPP=1
4980 ;;
4981 no) ENABLE_LIBCPP=0
4982 ;;
4983 default) ENABLE_LIBCPP=0
4984;;
4985 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4986echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4987 { (exit 1); exit 1; }; } ;;
4988esac
4989
Reid Spencera773bd52006-08-04 18:18:08 +00004990# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004991if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004992 enableval=$enable_optimized;
4993else
4994 enableval=$optimize
4995fi
4996
4997if test ${enableval} = "no" ; then
4998 ENABLE_OPTIMIZED=
4999
5000else
5001 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5002
5003fi
5004
David Greene2a5a12c2009-04-17 14:50:39 +00005005# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005006if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005007 enableval=$enable_profiling;
5008else
5009 enableval="no"
5010fi
5011
5012if test ${enableval} = "no" ; then
5013 ENABLE_PROFILING=
5014
5015else
5016 ENABLE_PROFILING=ENABLE_PROFILING=1
5017
5018fi
5019
Reid Spencera773bd52006-08-04 18:18:08 +00005020# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005021if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005022 enableval=$enable_assertions;
5023else
5024 enableval="yes"
5025fi
5026
5027if test ${enableval} = "yes" ; then
5028 DISABLE_ASSERTIONS=
5029
5030else
5031 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5032
5033fi
5034
David Greenea696d242007-06-28 19:36:08 +00005035# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005036if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005037 enableval=$enable_expensive_checks;
5038else
5039 enableval="no"
5040fi
5041
5042if test ${enableval} = "yes" ; then
5043 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5044
5045 EXPENSIVE_CHECKS=yes
5046
5047else
5048 ENABLE_EXPENSIVE_CHECKS=
5049
5050 EXPENSIVE_CHECKS=no
5051
5052fi
5053
Reid Spencer8b2e1412006-11-17 03:32:33 +00005054# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005055if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005056 enableval=$enable_debug_runtime;
5057else
5058 enableval=no
5059fi
5060
5061if test ${enableval} = "no" ; then
5062 DEBUG_RUNTIME=
5063
5064else
5065 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5066
5067fi
5068
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005069# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005070if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005071 enableval=$enable_debug_symbols;
5072else
5073 enableval=no
5074fi
5075
5076if test ${enableval} = "no" ; then
5077 DEBUG_SYMBOLS=
5078
5079else
5080 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5081
5082fi
5083
Reid Spencera773bd52006-08-04 18:18:08 +00005084# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005085if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005086 enableval=$enable_jit;
5087else
5088 enableval=default
5089fi
5090
5091if test ${enableval} = "no"
5092then
5093 JIT=
5094
5095else
5096 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005097 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005098 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005099 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005100 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005101 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005102 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005103 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005104 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005105 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005106 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005107 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005108 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005109 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005110 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005111 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005112 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005113 Hexagon) TARGET_HAS_JIT=0
5114 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005115 MBlaze) TARGET_HAS_JIT=0
5116 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005117 PTX) TARGET_HAS_JIT=0
5118 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005119 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005120 ;;
5121 esac
5122fi
5123
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005124# Check whether --enable-docs was given.
5125if test "${enable_docs+set}" = set; then
5126 enableval=$enable_docs;
5127else
5128 enableval=default
5129fi
5130
5131case "$enableval" in
5132 yes) ENABLE_DOCS=1
5133 ;;
5134 no) ENABLE_DOCS=0
5135 ;;
5136 default) ENABLE_DOCS=1
5137 ;;
5138 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5139echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5140 { (exit 1); exit 1; }; } ;;
5141esac
5142
Reid Spencera773bd52006-08-04 18:18:08 +00005143# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005144if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005145 enableval=$enable_doxygen;
5146else
5147 enableval=default
5148fi
5149
5150case "$enableval" in
5151 yes) ENABLE_DOXYGEN=1
5152 ;;
5153 no) ENABLE_DOXYGEN=0
5154 ;;
5155 default) ENABLE_DOXYGEN=0
5156 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005157 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5158echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5159 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005160esac
5161
5162# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005163if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005164 enableval=$enable_threads;
5165else
Reid Spencer65c5d752006-11-05 17:08:18 +00005166 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005167fi
5168
5169case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005170 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005171 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005172 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005173 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005174 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005175 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5177echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005179esac
5180
Owen Andersona8603702009-05-19 22:18:56 +00005181cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005182#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005183_ACEOF
5184
5185
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005186# Check whether --enable-pthreads was given.
5187if test "${enable_pthreads+set}" = set; then
5188 enableval=$enable_pthreads;
5189else
5190 enableval=default
5191fi
5192
5193case "$enableval" in
5194 yes) ENABLE_PTHREADS=1
5195 ;;
5196 no) ENABLE_PTHREADS=0
5197 ;;
5198 default) ENABLE_PTHREADS=1
5199 ;;
5200 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5201echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5202 { (exit 1); exit 1; }; } ;;
5203esac
5204
Reid Spencer89b0d992006-12-16 22:07:52 +00005205# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005206if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005207 enableval=$enable_pic;
5208else
5209 enableval=default
5210fi
5211
5212case "$enableval" in
5213 yes) ENABLE_PIC=1
5214 ;;
5215 no) ENABLE_PIC=0
5216 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005217 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005218 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005219 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5220echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5221 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005222esac
5223
5224cat >>confdefs.h <<_ACEOF
5225#define ENABLE_PIC $ENABLE_PIC
5226_ACEOF
5227
5228
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005229# Check whether --enable-shared was given.
5230if test "${enable_shared+set}" = set; then
5231 enableval=$enable_shared;
5232else
5233 enableval=default
5234fi
5235
5236case "$enableval" in
5237 yes) ENABLE_SHARED=1
5238 ;;
5239 no) ENABLE_SHARED=0
5240 ;;
5241 default) ENABLE_SHARED=0
5242 ;;
5243 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5244echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5246esac
5247
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005248# Check whether --enable-embed-stdcxx was given.
5249if test "${enable_embed_stdcxx+set}" = set; then
5250 enableval=$enable_embed_stdcxx;
5251else
5252 enableval=default
5253fi
5254
5255case "$enableval" in
5256 yes) ENABLE_EMBED_STDCXX=1
5257 ;;
5258 no) ENABLE_EMBED_STDCXX=0
5259 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005260 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005261 ;;
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5263echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5265esac
5266
Daniel Dunbardd464df2010-05-10 20:11:56 +00005267# Check whether --enable-timestamps was given.
5268if test "${enable_timestamps+set}" = set; then
5269 enableval=$enable_timestamps;
5270else
5271 enableval=default
5272fi
5273
5274case "$enableval" in
5275 yes) ENABLE_TIMESTAMPS=1
5276 ;;
5277 no) ENABLE_TIMESTAMPS=0
5278 ;;
5279 default) ENABLE_TIMESTAMPS=1
5280 ;;
5281 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5282echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5283 { (exit 1); exit 1; }; } ;;
5284esac
5285
5286cat >>confdefs.h <<_ACEOF
5287#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5288_ACEOF
5289
5290
Reid Spencera773bd52006-08-04 18:18:08 +00005291TARGETS_TO_BUILD=""
5292# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005293if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005294 enableval=$enable_targets;
5295else
5296 enableval=all
5297fi
5298
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005299if test "$enableval" = host-only ; then
5300 enableval=host
5301fi
Reid Spencera773bd52006-08-04 18:18:08 +00005302case "$enableval" in
Tony Linthicumb4b54152011-12-12 21:14:40 +00005303 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005304 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5305 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005306 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5308 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5309 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005310 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5311 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005312 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005313 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005314 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5315 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005316 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005317 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005318 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005319 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005320 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005321 host) case "$llvm_cv_target_arch" in
5322 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5323 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5324 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5325 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005326 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5327 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005328 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005329 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005330 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5331 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005332 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005333 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005334 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5335echo "$as_me: error: Can not set target to build" >&2;}
5336 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005337 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005338 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5339echo "$as_me: error: Unrecognized target $a_target" >&2;}
5340 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005341 esac
5342 done
5343 ;;
5344esac
Reid Spencera773bd52006-08-04 18:18:08 +00005345TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5346
5347
Douglas Gregor0711c302009-06-17 00:43:20 +00005348# Determine whether we are building LLVM support for the native architecture.
5349# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5350for a_target in $TARGETS_TO_BUILD; do
5351 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5352
5353cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005354#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5355_ACEOF
5356
5357 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5358 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005359 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005360 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005361 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5362 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5363 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005364
5365cat >>confdefs.h <<_ACEOF
5366#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005367_ACEOF
5368
5369
5370cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005371#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5372_ACEOF
5373
5374
5375cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005376#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005377_ACEOF
5378
5379
5380cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005381#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005382_ACEOF
5383
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005384 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005385
5386cat >>confdefs.h <<_ACEOF
5387#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5388_ACEOF
5389
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005390 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005391 fi
5392done
5393
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005394# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5395# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005396LLVM_ENUM_TARGETS=""
5397LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005398LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005399LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005400for target_to_build in $TARGETS_TO_BUILD; do
5401 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005402 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005403 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5404 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005405 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5406 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5407 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005408 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5409 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5410 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005411done
5412
5413
5414
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005415
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005416
Reid Spencer65c5d752006-11-05 17:08:18 +00005417# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005418if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005419 enableval=$enable_cbe_printf_a;
5420else
5421 enableval=default
5422fi
5423
5424case "$enableval" in
5425 yes) ENABLE_CBE_PRINTF_A=1
5426 ;;
5427 no) ENABLE_CBE_PRINTF_A=0
5428 ;;
5429 default) ENABLE_CBE_PRINTF_A=1
5430 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005431 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5432echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5433 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005434esac
5435
5436cat >>confdefs.h <<_ACEOF
5437#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5438_ACEOF
5439
5440
Reid Spencera773bd52006-08-04 18:18:08 +00005441
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005442# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005443if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005444 withval=$with_optimize_option;
5445else
5446 withval=default
5447fi
5448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005449{ echo "$as_me:$LINENO: checking optimization flags" >&5
5450echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005451case "$withval" in
5452 default)
5453 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005454 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005455 MingW) optimize_option=-O2 ;;
5456 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005457 esac ;;
5458 *) optimize_option="$withval" ;;
5459esac
5460OPTIMIZE_OPTION=$optimize_option
5461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005462{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5463echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005464
5465
Reid Spencera773bd52006-08-04 18:18:08 +00005466# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005467if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005468 withval=$with_extra_options;
5469else
5470 withval=default
5471fi
5472
5473case "$withval" in
5474 default) EXTRA_OPTIONS= ;;
5475 *) EXTRA_OPTIONS=$withval ;;
5476esac
5477EXTRA_OPTIONS=$EXTRA_OPTIONS
5478
5479
Daniel Dunbared344d22011-06-16 22:30:41 +00005480
5481# Check whether --with-extra-ld-options was given.
5482if test "${with_extra_ld_options+set}" = set; then
5483 withval=$with_extra_ld_options;
5484else
5485 withval=default
5486fi
5487
5488case "$withval" in
5489 default) EXTRA_LD_OPTIONS= ;;
5490 *) EXTRA_LD_OPTIONS=$withval ;;
5491esac
5492EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5493
5494
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005495# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005496if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005497 enableval=$enable_bindings;
5498else
5499 enableval=default
5500fi
5501
5502BINDINGS_TO_BUILD=""
5503case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005504 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005505 all ) BINDINGS_TO_BUILD="ocaml" ;;
5506 none | no) BINDINGS_TO_BUILD="" ;;
5507 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5508 case "$a_binding" in
5509 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005510 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5511echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5512 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005513 esac
5514 done
5515 ;;
5516esac
5517
Reid Spencera773bd52006-08-04 18:18:08 +00005518
Gordon Henriksenf0915682007-10-02 16:42:22 +00005519# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005520if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005521 withval=$with_ocaml_libdir;
5522else
5523 withval=auto
5524fi
5525
5526case "$withval" in
5527 auto) with_ocaml_libdir="$withval" ;;
5528 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005529 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5530echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5531 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005532esac
5533
5534
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005535# Check whether --with-clang-srcdir was given.
5536if test "${with_clang_srcdir+set}" = set; then
5537 withval=$with_clang_srcdir;
5538else
5539 withval="-"
5540fi
5541
5542case "$withval" in
5543 -) clang_src_root="" ;;
5544 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5545 *) clang_src_root="$ac_pwd/$withval" ;;
5546esac
5547CLANG_SRC_ROOT=$clang_src_root
5548
5549
5550
Chandler Carruth6b241162010-10-19 08:21:25 +00005551# Check whether --with-clang-resource-dir was given.
5552if test "${with_clang_resource_dir+set}" = set; then
5553 withval=$with_clang_resource_dir;
5554else
5555 withval=""
5556fi
5557
5558
5559cat >>confdefs.h <<_ACEOF
5560#define CLANG_RESOURCE_DIR "$withval"
5561_ACEOF
5562
5563
5564
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005565# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005566if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005567 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005568else
5569 withval=""
5570fi
5571
5572
5573cat >>confdefs.h <<_ACEOF
5574#define C_INCLUDE_DIRS "$withval"
5575_ACEOF
5576
5577
5578
Rafael Espindola420d23c2009-11-16 19:46:55 +00005579# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005580if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005581 withval=$with_cxx_include_root;
5582else
5583 withval=""
5584fi
5585
5586
5587cat >>confdefs.h <<_ACEOF
5588#define CXX_INCLUDE_ROOT "$withval"
5589_ACEOF
5590
5591
5592
5593# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005594if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005595 withval=$with_cxx_include_arch;
5596else
5597 withval=""
5598fi
5599
5600
5601cat >>confdefs.h <<_ACEOF
5602#define CXX_INCLUDE_ARCH "$withval"
5603_ACEOF
5604
5605
5606
5607# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005608if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005609 withval=$with_cxx_include_32bit_dir;
5610else
5611 withval=""
5612fi
5613
5614
5615cat >>confdefs.h <<_ACEOF
5616#define CXX_INCLUDE_32BIT_DIR "$withval"
5617_ACEOF
5618
5619
5620
5621# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005622if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005623 withval=$with_cxx_include_64bit_dir;
5624else
5625 withval=""
5626fi
5627
5628
5629cat >>confdefs.h <<_ACEOF
5630#define CXX_INCLUDE_64BIT_DIR "$withval"
5631_ACEOF
5632
5633
5634
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005635# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005636if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005637 withval=$with_binutils_include;
5638else
5639 withval=default
5640fi
5641
5642case "$withval" in
5643 default) WITH_BINUTILS_INCDIR=default ;;
5644 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005645 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5646echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5647 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005648esac
5649if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5650 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5651
5652 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5653 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005654 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5655echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5656 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005657 fi
5658fi
5659
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005660
5661# Check whether --with-bug-report-url was given.
5662if test "${with_bug_report_url+set}" = set; then
5663 withval=$with_bug_report_url;
5664else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005665 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005666fi
5667
5668
5669cat >>confdefs.h <<_ACEOF
5670#define BUG_REPORT_URL "$withval"
5671_ACEOF
5672
5673
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005674# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005675if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005676 enableval=$enable_libffi; case "$enableval" in
5677 yes) llvm_cv_enable_libffi="yes" ;;
5678 no) llvm_cv_enable_libffi="no" ;;
5679 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005680echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5681 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005682 esac
5683else
5684 llvm_cv_enable_libffi=no
5685fi
5686
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005687
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005688
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005689# Check whether --with-internal-prefix was given.
5690if test "${with_internal_prefix+set}" = set; then
5691 withval=$with_internal_prefix;
5692else
5693 withval=""
5694fi
5695
5696INTERNAL_PREFIX=$withval
5697
5698
5699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005700{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5701echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5702if test "${lt_cv_path_NM+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005704else
5705 if test -n "$NM"; then
5706 # Let the user override the test.
5707 lt_cv_path_NM="$NM"
5708else
5709 lt_nm_to_check="${ac_tool_prefix}nm"
5710 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5711 lt_nm_to_check="$lt_nm_to_check nm"
5712 fi
5713 for lt_tmp_nm in $lt_nm_to_check; do
5714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5715 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5716 IFS="$lt_save_ifs"
5717 test -z "$ac_dir" && ac_dir=.
5718 tmp_nm="$ac_dir/$lt_tmp_nm"
5719 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5720 # Check to see if the nm accepts a BSD-compat flag.
5721 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5722 # nm: unknown option "B" ignored
5723 # Tru64's nm complains that /dev/null is an invalid object file
5724 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5725 */dev/null* | *'Invalid file or object type'*)
5726 lt_cv_path_NM="$tmp_nm -B"
5727 break
5728 ;;
5729 *)
5730 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5731 */dev/null*)
5732 lt_cv_path_NM="$tmp_nm -p"
5733 break
5734 ;;
5735 *)
5736 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5737 continue # so that we can try to find one that supports BSD flags
5738 ;;
5739 esac
5740 ;;
5741 esac
5742 fi
5743 done
5744 IFS="$lt_save_ifs"
5745 done
5746 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5747fi
5748fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005749{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5750echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005751NM="$lt_cv_path_NM"
5752
5753
5754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755{ echo "$as_me:$LINENO: checking for GNU make" >&5
5756echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5757if test "${llvm_cv_gnu_make_command+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005759else
5760 llvm_cv_gnu_make_command=''
5761 for a in "$MAKE" make gmake gnumake ; do
5762 if test -z "$a" ; then continue ; fi ;
5763 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5764 then
5765 llvm_cv_gnu_make_command=$a ;
5766 break;
5767 fi
5768 done
5769fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005770{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5771echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005772 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5773 ifGNUmake='' ;
5774 else
5775 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005776 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5777echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005778 fi
5779
5780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005781{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5782echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005783LN_S=$as_ln_s
5784if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005785 { echo "$as_me:$LINENO: result: yes" >&5
5786echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005787else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005788 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5789echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005790fi
5791
5792# Extract the first word of "cmp", so it can be a program name with args.
5793set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796if test "${ac_cv_path_CMP+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005798else
5799 case $CMP in
5800 [\\/]* | ?:[\\/]*)
5801 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5802 ;;
5803 *)
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 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 +00005811 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005813 break 2
5814 fi
5815done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005816done
Reid Spencera773bd52006-08-04 18:18:08 +00005817IFS=$as_save_IFS
5818
5819 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5820 ;;
5821esac
5822fi
5823CMP=$ac_cv_path_CMP
5824if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005825 { echo "$as_me:$LINENO: result: $CMP" >&5
5826echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005827else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828 { echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005830fi
5831
5832
5833# Extract the first word of "cp", so it can be a program name with args.
5834set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837if test "${ac_cv_path_CP+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005839else
5840 case $CP in
5841 [\\/]* | ?:[\\/]*)
5842 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5843 ;;
5844 *)
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 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 +00005852 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005854 break 2
5855 fi
5856done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005857done
Reid Spencera773bd52006-08-04 18:18:08 +00005858IFS=$as_save_IFS
5859
5860 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5861 ;;
5862esac
5863fi
5864CP=$ac_cv_path_CP
5865if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005866 { echo "$as_me:$LINENO: result: $CP" >&5
5867echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869 { echo "$as_me:$LINENO: result: no" >&5
5870echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005871fi
5872
5873
5874# Extract the first word of "date", so it can be a program name with args.
5875set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878if test "${ac_cv_path_DATE+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005880else
5881 case $DATE in
5882 [\\/]* | ?:[\\/]*)
5883 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5884 ;;
5885 *)
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 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 +00005893 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005895 break 2
5896 fi
5897done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898done
Reid Spencera773bd52006-08-04 18:18:08 +00005899IFS=$as_save_IFS
5900
5901 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5902 ;;
5903esac
5904fi
5905DATE=$ac_cv_path_DATE
5906if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005907 { echo "$as_me:$LINENO: result: $DATE" >&5
5908echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005910 { echo "$as_me:$LINENO: result: no" >&5
5911echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005912fi
5913
5914
5915# Extract the first word of "find", so it can be a program name with args.
5916set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919if test "${ac_cv_path_FIND+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005921else
5922 case $FIND in
5923 [\\/]* | ?:[\\/]*)
5924 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5925 ;;
5926 *)
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 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 +00005934 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005936 break 2
5937 fi
5938done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005939done
Reid Spencera773bd52006-08-04 18:18:08 +00005940IFS=$as_save_IFS
5941
5942 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5943 ;;
5944esac
5945fi
5946FIND=$ac_cv_path_FIND
5947if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005948 { echo "$as_me:$LINENO: result: $FIND" >&5
5949echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005950else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005951 { echo "$as_me:$LINENO: result: no" >&5
5952echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005953fi
5954
5955
5956# Extract the first word of "grep", so it can be a program name with args.
5957set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960if test "${ac_cv_path_GREP+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005962else
5963 case $GREP in
5964 [\\/]* | ?:[\\/]*)
5965 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5966 ;;
5967 *)
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 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 +00005975 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005977 break 2
5978 fi
5979done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005980done
Reid Spencera773bd52006-08-04 18:18:08 +00005981IFS=$as_save_IFS
5982
5983 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5984 ;;
5985esac
5986fi
5987GREP=$ac_cv_path_GREP
5988if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005989 { echo "$as_me:$LINENO: result: $GREP" >&5
5990echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005992 { echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005994fi
5995
5996
5997# Extract the first word of "mkdir", so it can be a program name with args.
5998set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001if test "${ac_cv_path_MKDIR+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006003else
6004 case $MKDIR in
6005 [\\/]* | ?:[\\/]*)
6006 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6007 ;;
6008 *)
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 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 +00006016 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006018 break 2
6019 fi
6020done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021done
Reid Spencera773bd52006-08-04 18:18:08 +00006022IFS=$as_save_IFS
6023
6024 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6025 ;;
6026esac
6027fi
6028MKDIR=$ac_cv_path_MKDIR
6029if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006030 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6031echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006033 { echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006035fi
6036
6037
6038# Extract the first word of "mv", so it can be a program name with args.
6039set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042if test "${ac_cv_path_MV+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006044else
6045 case $MV in
6046 [\\/]* | ?:[\\/]*)
6047 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6048 ;;
6049 *)
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 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 +00006057 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006059 break 2
6060 fi
6061done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062done
Reid Spencera773bd52006-08-04 18:18:08 +00006063IFS=$as_save_IFS
6064
6065 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6066 ;;
6067esac
6068fi
6069MV=$ac_cv_path_MV
6070if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006071 { echo "$as_me:$LINENO: result: $MV" >&5
6072echo "${ECHO_T}$MV" >&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
6079if test -n "$ac_tool_prefix"; then
6080 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6081set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084if test "${ac_cv_prog_RANLIB+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006086else
6087 if test -n "$RANLIB"; then
6088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 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 +00006097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006099 break 2
6100 fi
6101done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006102done
Reid Spencera773bd52006-08-04 18:18:08 +00006103IFS=$as_save_IFS
6104
6105fi
6106fi
6107RANLIB=$ac_cv_prog_RANLIB
6108if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006109 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6110echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006111else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006112 { echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006114fi
6115
6116
6117fi
6118if test -z "$ac_cv_prog_RANLIB"; then
6119 ac_ct_RANLIB=$RANLIB
6120 # Extract the first word of "ranlib", so it can be a program name with args.
6121set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6124if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006126else
6127 if test -n "$ac_ct_RANLIB"; then
6128 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6129else
6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131for as_dir in $PATH
6132do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 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 +00006137 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006139 break 2
6140 fi
6141done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006142done
Reid Spencera773bd52006-08-04 18:18:08 +00006143IFS=$as_save_IFS
6144
6145fi
6146fi
6147ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6148if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6150echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006151else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006152 { echo "$as_me:$LINENO: result: no" >&5
6153echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006154fi
6155
6156 if test "x$ac_ct_RANLIB" = x; then
6157 RANLIB=":"
6158 else
6159 case $cross_compiling:$ac_tool_warned in
6160yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6162whose name does not start with the host triplet. If you think this
6163configuration is useful to you, please write to autoconf@gnu.org." >&5
6164echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6165whose name does not start with the host triplet. If you think this
6166configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006167ac_tool_warned=yes ;;
6168esac
6169 RANLIB=$ac_ct_RANLIB
6170 fi
6171else
6172 RANLIB="$ac_cv_prog_RANLIB"
6173fi
6174
Torok Edwin871384f2010-01-26 08:50:50 +00006175if test -n "$ac_tool_prefix"; then
6176 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6177set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180if test "${ac_cv_prog_AR+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006182else
6183 if test -n "$AR"; then
6184 ac_cv_prog_AR="$AR" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 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 +00006193 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006195 break 2
6196 fi
6197done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198done
Torok Edwin871384f2010-01-26 08:50:50 +00006199IFS=$as_save_IFS
6200
6201fi
6202fi
6203AR=$ac_cv_prog_AR
6204if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205 { echo "$as_me:$LINENO: result: $AR" >&5
6206echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208 { echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006210fi
6211
6212
6213fi
6214if test -z "$ac_cv_prog_AR"; then
6215 ac_ct_AR=$AR
6216 # Extract the first word of "ar", so it can be a program name with args.
6217set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006222else
6223 if test -n "$ac_ct_AR"; then
6224 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 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 +00006233 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006235 break 2
6236 fi
6237done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006238done
Torok Edwin871384f2010-01-26 08:50:50 +00006239IFS=$as_save_IFS
6240
6241fi
6242fi
6243ac_ct_AR=$ac_cv_prog_ac_ct_AR
6244if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006245 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6246echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006248 { echo "$as_me:$LINENO: result: no" >&5
6249echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006250fi
6251
6252 if test "x$ac_ct_AR" = x; then
6253 AR="false"
6254 else
6255 case $cross_compiling:$ac_tool_warned in
6256yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6258whose name does not start with the host triplet. If you think this
6259configuration is useful to you, please write to autoconf@gnu.org." >&5
6260echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6261whose name does not start with the host triplet. If you think this
6262configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006263ac_tool_warned=yes ;;
6264esac
6265 AR=$ac_ct_AR
6266 fi
6267else
6268 AR="$ac_cv_prog_AR"
6269fi
6270
Reid Spencera773bd52006-08-04 18:18:08 +00006271# Extract the first word of "rm", so it can be a program name with args.
6272set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_path_RM+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006277else
6278 case $RM in
6279 [\\/]* | ?:[\\/]*)
6280 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6281 ;;
6282 *)
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 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 +00006290 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006292 break 2
6293 fi
6294done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295done
Reid Spencera773bd52006-08-04 18:18:08 +00006296IFS=$as_save_IFS
6297
6298 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6299 ;;
6300esac
6301fi
6302RM=$ac_cv_path_RM
6303if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006304 { echo "$as_me:$LINENO: result: $RM" >&5
6305echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307 { echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006309fi
6310
6311
6312# Extract the first word of "sed", so it can be a program name with args.
6313set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316if test "${ac_cv_path_SED+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006318else
6319 case $SED in
6320 [\\/]* | ?:[\\/]*)
6321 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6322 ;;
6323 *)
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 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 +00006331 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006333 break 2
6334 fi
6335done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006336done
Reid Spencera773bd52006-08-04 18:18:08 +00006337IFS=$as_save_IFS
6338
6339 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6340 ;;
6341esac
6342fi
6343SED=$ac_cv_path_SED
6344if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006345 { echo "$as_me:$LINENO: result: $SED" >&5
6346echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348 { echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006350fi
6351
6352
6353# Extract the first word of "tar", so it can be a program name with args.
6354set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357if test "${ac_cv_path_TAR+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006359else
6360 case $TAR in
6361 [\\/]* | ?:[\\/]*)
6362 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6363 ;;
6364 *)
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 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 +00006372 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006374 break 2
6375 fi
6376done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006377done
Reid Spencera773bd52006-08-04 18:18:08 +00006378IFS=$as_save_IFS
6379
6380 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6381 ;;
6382esac
6383fi
6384TAR=$ac_cv_path_TAR
6385if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006386 { echo "$as_me:$LINENO: result: $TAR" >&5
6387echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389 { echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006391fi
6392
6393
6394# Extract the first word of "pwd", so it can be a program name with args.
6395set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398if test "${ac_cv_path_BINPWD+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006400else
6401 case $BINPWD in
6402 [\\/]* | ?:[\\/]*)
6403 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6404 ;;
6405 *)
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 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 +00006413 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006415 break 2
6416 fi
6417done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006418done
Reid Spencera773bd52006-08-04 18:18:08 +00006419IFS=$as_save_IFS
6420
6421 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6422 ;;
6423esac
6424fi
6425BINPWD=$ac_cv_path_BINPWD
6426if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6428echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006429else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006430 { echo "$as_me:$LINENO: result: no" >&5
6431echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006432fi
6433
6434
6435
6436# Extract the first word of "Graphviz", so it can be a program name with args.
6437set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006442else
6443 case $GRAPHVIZ in
6444 [\\/]* | ?:[\\/]*)
6445 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6446 ;;
6447 *)
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 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 +00006455 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006457 break 2
6458 fi
6459done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006460done
Reid Spencera773bd52006-08-04 18:18:08 +00006461IFS=$as_save_IFS
6462
6463 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6464 ;;
6465esac
6466fi
6467GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6468if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006469 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6470echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006471else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006472 { echo "$as_me:$LINENO: result: no" >&5
6473echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006474fi
6475
6476
6477if test "$GRAPHVIZ" != "echo Graphviz" ; then
6478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006479cat >>confdefs.h <<\_ACEOF
6480#define HAVE_GRAPHVIZ 1
6481_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006482
Jeff Cohen28783c32007-01-12 18:22:38 +00006483 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006484 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6485 fi
6486
6487cat >>confdefs.h <<_ACEOF
6488#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6489_ACEOF
6490
6491fi
6492# Extract the first word of "dot", so it can be a program name with args.
6493set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6496if test "${ac_cv_path_DOT+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006498else
6499 case $DOT in
6500 [\\/]* | ?:[\\/]*)
6501 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6502 ;;
6503 *)
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 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 +00006511 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006513 break 2
6514 fi
6515done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006516done
Reid Spencera773bd52006-08-04 18:18:08 +00006517IFS=$as_save_IFS
6518
6519 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6520 ;;
6521esac
6522fi
6523DOT=$ac_cv_path_DOT
6524if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006525 { echo "$as_me:$LINENO: result: $DOT" >&5
6526echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006527else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006528 { echo "$as_me:$LINENO: result: no" >&5
6529echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006530fi
6531
6532
6533if test "$DOT" != "echo dot" ; then
6534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006535cat >>confdefs.h <<\_ACEOF
6536#define HAVE_DOT 1
6537_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006538
Jeff Cohen28783c32007-01-12 18:22:38 +00006539 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006540 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6541 fi
6542
6543cat >>confdefs.h <<_ACEOF
6544#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6545_ACEOF
6546
6547fi
David Greenef0b9eff2009-07-09 17:16:26 +00006548# Extract the first word of "fdp", so it can be a program name with args.
6549set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552if test "${ac_cv_path_FDP+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006554else
6555 case $FDP in
6556 [\\/]* | ?:[\\/]*)
6557 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6558 ;;
6559 *)
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 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 +00006567 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006569 break 2
6570 fi
6571done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006572done
David Greenef0b9eff2009-07-09 17:16:26 +00006573IFS=$as_save_IFS
6574
6575 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6576 ;;
6577esac
6578fi
6579FDP=$ac_cv_path_FDP
6580if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006581 { echo "$as_me:$LINENO: result: $FDP" >&5
6582echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006584 { echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006586fi
6587
6588
6589if test "$FDP" != "echo fdp" ; then
6590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006591cat >>confdefs.h <<\_ACEOF
6592#define HAVE_FDP 1
6593_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006594
6595 if test "$llvm_cv_os_type" = "MingW" ; then
6596 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6597 fi
6598
6599cat >>confdefs.h <<_ACEOF
6600#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6601_ACEOF
6602
6603fi
6604# Extract the first word of "neato", so it can be a program name with args.
6605set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608if test "${ac_cv_path_NEATO+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006610else
6611 case $NEATO in
6612 [\\/]* | ?:[\\/]*)
6613 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6614 ;;
6615 *)
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 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 +00006623 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006625 break 2
6626 fi
6627done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006628done
David Greenef0b9eff2009-07-09 17:16:26 +00006629IFS=$as_save_IFS
6630
6631 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6632 ;;
6633esac
6634fi
6635NEATO=$ac_cv_path_NEATO
6636if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006637 { echo "$as_me:$LINENO: result: $NEATO" >&5
6638echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006639else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006640 { echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006642fi
6643
6644
6645if test "$NEATO" != "echo neato" ; then
6646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006647cat >>confdefs.h <<\_ACEOF
6648#define HAVE_NEATO 1
6649_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006650
6651 if test "$llvm_cv_os_type" = "MingW" ; then
6652 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6653 fi
6654
6655cat >>confdefs.h <<_ACEOF
6656#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6657_ACEOF
6658
6659fi
6660# Extract the first word of "twopi", so it can be a program name with args.
6661set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664if test "${ac_cv_path_TWOPI+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006666else
6667 case $TWOPI in
6668 [\\/]* | ?:[\\/]*)
6669 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6670 ;;
6671 *)
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 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 +00006679 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006681 break 2
6682 fi
6683done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684done
David Greenef0b9eff2009-07-09 17:16:26 +00006685IFS=$as_save_IFS
6686
6687 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6688 ;;
6689esac
6690fi
6691TWOPI=$ac_cv_path_TWOPI
6692if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006693 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6694echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006695else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006696 { echo "$as_me:$LINENO: result: no" >&5
6697echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006698fi
6699
6700
6701if test "$TWOPI" != "echo twopi" ; then
6702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703cat >>confdefs.h <<\_ACEOF
6704#define HAVE_TWOPI 1
6705_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006706
6707 if test "$llvm_cv_os_type" = "MingW" ; then
6708 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6709 fi
6710
6711cat >>confdefs.h <<_ACEOF
6712#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6713_ACEOF
6714
6715fi
6716# Extract the first word of "circo", so it can be a program name with args.
6717set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720if test "${ac_cv_path_CIRCO+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006722else
6723 case $CIRCO in
6724 [\\/]* | ?:[\\/]*)
6725 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6726 ;;
6727 *)
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 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 +00006735 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006737 break 2
6738 fi
6739done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740done
David Greenef0b9eff2009-07-09 17:16:26 +00006741IFS=$as_save_IFS
6742
6743 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6744 ;;
6745esac
6746fi
6747CIRCO=$ac_cv_path_CIRCO
6748if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006749 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6750echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752 { echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006754fi
6755
6756
6757if test "$CIRCO" != "echo circo" ; then
6758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759cat >>confdefs.h <<\_ACEOF
6760#define HAVE_CIRCO 1
6761_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006762
6763 if test "$llvm_cv_os_type" = "MingW" ; then
6764 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6765 fi
6766
6767cat >>confdefs.h <<_ACEOF
6768#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6769_ACEOF
6770
6771fi
Reid Spencera773bd52006-08-04 18:18:08 +00006772for ac_prog in gv gsview32
6773do
6774 # Extract the first word of "$ac_prog", so it can be a program name with args.
6775set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778if test "${ac_cv_path_GV+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006780else
6781 case $GV in
6782 [\\/]* | ?:[\\/]*)
6783 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6784 ;;
6785 *)
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 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 +00006793 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006795 break 2
6796 fi
6797done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006798done
Reid Spencera773bd52006-08-04 18:18:08 +00006799IFS=$as_save_IFS
6800
6801 ;;
6802esac
6803fi
6804GV=$ac_cv_path_GV
6805if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006806 { echo "$as_me:$LINENO: result: $GV" >&5
6807echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006809 { echo "$as_me:$LINENO: result: no" >&5
6810echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006811fi
6812
6813
6814 test -n "$GV" && break
6815done
6816test -n "$GV" || GV="echo gv"
6817
6818if test "$GV" != "echo gv" ; then
6819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006820cat >>confdefs.h <<\_ACEOF
6821#define HAVE_GV 1
6822_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006823
Jeff Cohen28783c32007-01-12 18:22:38 +00006824 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006825 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6826 fi
6827
6828cat >>confdefs.h <<_ACEOF
6829#define LLVM_PATH_GV "$GV${EXEEXT}"
6830_ACEOF
6831
6832fi
6833# Extract the first word of "dotty", so it can be a program name with args.
6834set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837if test "${ac_cv_path_DOTTY+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006839else
6840 case $DOTTY in
6841 [\\/]* | ?:[\\/]*)
6842 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6843 ;;
6844 *)
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846for as_dir in $PATH
6847do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 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 +00006852 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006854 break 2
6855 fi
6856done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006857done
Reid Spencera773bd52006-08-04 18:18:08 +00006858IFS=$as_save_IFS
6859
6860 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6861 ;;
6862esac
6863fi
6864DOTTY=$ac_cv_path_DOTTY
6865if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6867echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006869 { echo "$as_me:$LINENO: result: no" >&5
6870echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006871fi
6872
6873
6874if test "$DOTTY" != "echo dotty" ; then
6875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006876cat >>confdefs.h <<\_ACEOF
6877#define HAVE_DOTTY 1
6878_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006879
Jeff Cohen28783c32007-01-12 18:22:38 +00006880 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006881 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6882 fi
6883
6884cat >>confdefs.h <<_ACEOF
6885#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6886_ACEOF
6887
6888fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006889# Extract the first word of "xdot.py", so it can be a program name with args.
6890set dummy xdot.py; ac_word=$2
6891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893if test "${ac_cv_path_XDOT_PY+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895else
6896 case $XDOT_PY in
6897 [\\/]* | ?:[\\/]*)
6898 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6899 ;;
6900 *)
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912done
6913done
6914IFS=$as_save_IFS
6915
6916 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6917 ;;
6918esac
6919fi
6920XDOT_PY=$ac_cv_path_XDOT_PY
6921if test -n "$XDOT_PY"; then
6922 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6923echo "${ECHO_T}$XDOT_PY" >&6; }
6924else
6925 { echo "$as_me:$LINENO: result: no" >&5
6926echo "${ECHO_T}no" >&6; }
6927fi
6928
6929
6930if test "$XDOT_PY" != "echo xdot.py" ; then
6931
6932cat >>confdefs.h <<\_ACEOF
6933#define HAVE_XDOT_PY 1
6934_ACEOF
6935
6936 if test "$llvm_cv_os_type" = "MingW" ; then
6937 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6938 fi
6939
6940cat >>confdefs.h <<_ACEOF
6941#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6942_ACEOF
6943
6944fi
Reid Spencera773bd52006-08-04 18:18:08 +00006945
6946
6947# Extract the first word of "perl", so it can be a program name with args.
6948set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951if test "${ac_cv_path_PERL+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006953else
6954 case $PERL in
6955 [\\/]* | ?:[\\/]*)
6956 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6957 ;;
6958 *)
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 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 +00006966 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006968 break 2
6969 fi
6970done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006971done
Reid Spencera773bd52006-08-04 18:18:08 +00006972IFS=$as_save_IFS
6973
6974 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6975 ;;
6976esac
6977fi
6978PERL=$ac_cv_path_PERL
6979if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006980 { echo "$as_me:$LINENO: result: $PERL" >&5
6981echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006982else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006983 { echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006985fi
6986
6987
6988if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006989 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6990echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006991 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006992 { echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006994 else
6995 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006996 { echo "$as_me:$LINENO: result: not found" >&5
6997echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006998 fi
6999fi
7000
7001
7002if test x"$PERL" = xnone; then
7003 HAVE_PERL=0
7004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007005 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7006echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7007 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007008else
7009 HAVE_PERL=1
7010
7011fi
7012
7013# Find a good install program. We prefer a C program (faster),
7014# so one script is as good as another. But avoid the broken or
7015# incompatible versions:
7016# SysV /etc/install, /usr/sbin/install
7017# SunOS /usr/etc/install
7018# IRIX /sbin/install
7019# AIX /bin/install
7020# AmigaOS /C/install, which installs bootblocks on floppy discs
7021# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7022# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7023# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7024# OS/2's system install, which has a completely different semantic
7025# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7027echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007028if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029if test "${ac_cv_path_install+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007031else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007037 # Account for people who put trailing slashes in PATH elements.
7038case $as_dir/ in
7039 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007042 /usr/ucb/* ) ;;
7043 *)
7044 # OSF1 and SCO ODT 3.0 have their own names for install.
7045 # Don't use installbsd from OSF since it installs stuff as root
7046 # by default.
7047 for ac_prog in ginstall scoinst install; do
7048 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049 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 +00007050 if test $ac_prog = install &&
7051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7052 # AIX install. It has an incompatible calling convention.
7053 :
7054 elif test $ac_prog = install &&
7055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7056 # program-specific install script used by HP pwplus--don't use.
7057 :
7058 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7060 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007061 fi
7062 fi
7063 done
7064 done
7065 ;;
7066esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067done
Reid Spencera773bd52006-08-04 18:18:08 +00007068IFS=$as_save_IFS
7069
7070
7071fi
7072 if test "${ac_cv_path_install+set}" = set; then
7073 INSTALL=$ac_cv_path_install
7074 else
7075 # As a last resort, use the slow shell script. Don't cache a
7076 # value for INSTALL within a source directory, because that will
7077 # break other packages using the cache if that directory is
7078 # removed, or if the value is a relative name.
7079 INSTALL=$ac_install_sh
7080 fi
7081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7083echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007084
7085# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7086# It thinks the first close brace ends the variable substitution.
7087test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7088
7089test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7090
7091test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7092
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007093case "$INSTALL" in
7094 [\\/$]* | ?:[\\/]* ) ;;
7095 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7096esac
Reid Spencera773bd52006-08-04 18:18:08 +00007097
7098# Extract the first word of "bzip2", so it can be a program name with args.
7099set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102if test "${ac_cv_path_BZIP2+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007104else
7105 case $BZIP2 in
7106 [\\/]* | ?:[\\/]*)
7107 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7108 ;;
7109 *)
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 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 +00007117 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007119 break 2
7120 fi
7121done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122done
Reid Spencera773bd52006-08-04 18:18:08 +00007123IFS=$as_save_IFS
7124
Reid Spencera773bd52006-08-04 18:18:08 +00007125 ;;
7126esac
7127fi
7128BZIP2=$ac_cv_path_BZIP2
7129if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7131echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007132else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007133 { echo "$as_me:$LINENO: result: no" >&5
7134echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007135fi
7136
7137
mike-m68cb3192010-05-06 23:45:43 +00007138# Extract the first word of "cat", so it can be a program name with args.
7139set dummy cat; ac_word=$2
7140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142if test "${ac_cv_path_CAT+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144else
7145 case $CAT in
7146 [\\/]* | ?:[\\/]*)
7147 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7148 ;;
7149 *)
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161done
7162done
7163IFS=$as_save_IFS
7164
7165 ;;
7166esac
7167fi
7168CAT=$ac_cv_path_CAT
7169if test -n "$CAT"; then
7170 { echo "$as_me:$LINENO: result: $CAT" >&5
7171echo "${ECHO_T}$CAT" >&6; }
7172else
7173 { echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6; }
7175fi
7176
7177
Reid Spencera773bd52006-08-04 18:18:08 +00007178# Extract the first word of "doxygen", so it can be a program name with args.
7179set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182if test "${ac_cv_path_DOXYGEN+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007184else
7185 case $DOXYGEN in
7186 [\\/]* | ?:[\\/]*)
7187 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7188 ;;
7189 *)
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 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 +00007197 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007199 break 2
7200 fi
7201done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007202done
Reid Spencera773bd52006-08-04 18:18:08 +00007203IFS=$as_save_IFS
7204
Reid Spencera773bd52006-08-04 18:18:08 +00007205 ;;
7206esac
7207fi
7208DOXYGEN=$ac_cv_path_DOXYGEN
7209if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007210 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7211echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007212else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007213 { echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007215fi
7216
7217
Reid Spencera773bd52006-08-04 18:18:08 +00007218# Extract the first word of "groff", so it can be a program name with args.
7219set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7222if test "${ac_cv_path_GROFF+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007224else
7225 case $GROFF in
7226 [\\/]* | ?:[\\/]*)
7227 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7228 ;;
7229 *)
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 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 +00007237 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007239 break 2
7240 fi
7241done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007242done
Reid Spencera773bd52006-08-04 18:18:08 +00007243IFS=$as_save_IFS
7244
Reid Spencera773bd52006-08-04 18:18:08 +00007245 ;;
7246esac
7247fi
7248GROFF=$ac_cv_path_GROFF
7249if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007250 { echo "$as_me:$LINENO: result: $GROFF" >&5
7251echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007252else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007253 { echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007255fi
7256
7257
7258# Extract the first word of "gzip", so it can be a program name with args.
7259set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007262if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007264else
Eric Christopher031d3072010-12-10 01:31:51 +00007265 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007266 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007267 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007268 ;;
7269 *)
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 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 +00007277 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007279 break 2
7280 fi
7281done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282done
Reid Spencera773bd52006-08-04 18:18:08 +00007283IFS=$as_save_IFS
7284
Reid Spencera773bd52006-08-04 18:18:08 +00007285 ;;
7286esac
7287fi
Eric Christopher031d3072010-12-10 01:31:51 +00007288GZIPBIN=$ac_cv_path_GZIPBIN
7289if test -n "$GZIPBIN"; then
7290 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7291echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007292else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293 { echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007295fi
7296
7297
7298# Extract the first word of "pod2html", so it can be a program name with args.
7299set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302if test "${ac_cv_path_POD2HTML+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007304else
7305 case $POD2HTML in
7306 [\\/]* | ?:[\\/]*)
7307 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7308 ;;
7309 *)
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 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 +00007317 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007319 break 2
7320 fi
7321done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007322done
Reid Spencera773bd52006-08-04 18:18:08 +00007323IFS=$as_save_IFS
7324
Reid Spencera773bd52006-08-04 18:18:08 +00007325 ;;
7326esac
7327fi
7328POD2HTML=$ac_cv_path_POD2HTML
7329if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007330 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7331echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007333 { echo "$as_me:$LINENO: result: no" >&5
7334echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007335fi
7336
7337
7338# Extract the first word of "pod2man", so it can be a program name with args.
7339set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342if test "${ac_cv_path_POD2MAN+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007344else
7345 case $POD2MAN in
7346 [\\/]* | ?:[\\/]*)
7347 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7348 ;;
7349 *)
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 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 +00007357 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007359 break 2
7360 fi
7361done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007362done
Reid Spencera773bd52006-08-04 18:18:08 +00007363IFS=$as_save_IFS
7364
Reid Spencera773bd52006-08-04 18:18:08 +00007365 ;;
7366esac
7367fi
7368POD2MAN=$ac_cv_path_POD2MAN
7369if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007370 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7371echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373 { echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007375fi
7376
7377
mike-m68cb3192010-05-06 23:45:43 +00007378# Extract the first word of "pdfroff", so it can be a program name with args.
7379set dummy pdfroff; ac_word=$2
7380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7382if test "${ac_cv_path_PDFROFF+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384else
7385 case $PDFROFF in
7386 [\\/]* | ?:[\\/]*)
7387 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7388 ;;
7389 *)
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401done
7402done
7403IFS=$as_save_IFS
7404
7405 ;;
7406esac
7407fi
7408PDFROFF=$ac_cv_path_PDFROFF
7409if test -n "$PDFROFF"; then
7410 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7411echo "${ECHO_T}$PDFROFF" >&6; }
7412else
7413 { echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6; }
7415fi
7416
7417
Reid Spencera773bd52006-08-04 18:18:08 +00007418# Extract the first word of "runtest", so it can be a program name with args.
7419set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7422if test "${ac_cv_path_RUNTEST+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007424else
7425 case $RUNTEST in
7426 [\\/]* | ?:[\\/]*)
7427 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7428 ;;
7429 *)
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 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 +00007437 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007439 break 2
7440 fi
7441done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442done
Reid Spencera773bd52006-08-04 18:18:08 +00007443IFS=$as_save_IFS
7444
Reid Spencera773bd52006-08-04 18:18:08 +00007445 ;;
7446esac
7447fi
7448RUNTEST=$ac_cv_path_RUNTEST
7449if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007450 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7451echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007453 { echo "$as_me:$LINENO: result: no" >&5
7454echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007455fi
7456
7457
7458
7459no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007460{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7461echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007462
7463# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007465 withval=$with_tclinclude; with_tclinclude=${withval}
7466else
7467 with_tclinclude=''
7468fi
7469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470if test "${ac_cv_path_tclsh+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007472else
7473
7474if test x"${with_tclinclude}" != x ; then
7475 if test -f ${with_tclinclude}/tclsh ; then
7476 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7477 elif test -f ${with_tclinclude}/src/tclsh ; then
7478 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7479 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7481echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7482 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007483 fi
7484fi
Torok Edwin871384f2010-01-26 08:50:50 +00007485fi
7486
Reid Spencera773bd52006-08-04 18:18:08 +00007487
7488if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 { echo "$as_me:$LINENO: result: none" >&5
7490echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007491 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
7492do
7493 # Extract the first word of "$ac_prog", so it can be a program name with args.
7494set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497if test "${ac_cv_path_TCLSH+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007499else
7500 case $TCLSH in
7501 [\\/]* | ?:[\\/]*)
7502 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7503 ;;
7504 *)
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 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 +00007512 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007514 break 2
7515 fi
7516done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007517done
Reid Spencera773bd52006-08-04 18:18:08 +00007518IFS=$as_save_IFS
7519
7520 ;;
7521esac
7522fi
7523TCLSH=$ac_cv_path_TCLSH
7524if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007525 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7526echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007527else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007528 { echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007530fi
7531
7532
7533 test -n "$TCLSH" && break
7534done
7535
7536 if test x"${TCLSH}" = x ; then
7537 ac_cv_path_tclsh='';
7538 else
7539 ac_cv_path_tclsh="${TCLSH}";
7540 fi
7541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007542 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7543echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007544 TCLSH="${ac_cv_path_tclsh}"
7545
7546fi
7547
Reid Spencera773bd52006-08-04 18:18:08 +00007548# Extract the first word of "zip", so it can be a program name with args.
7549set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552if test "${ac_cv_path_ZIP+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007554else
7555 case $ZIP in
7556 [\\/]* | ?:[\\/]*)
7557 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7558 ;;
7559 *)
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007567 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007569 break 2
7570 fi
7571done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572done
Reid Spencera773bd52006-08-04 18:18:08 +00007573IFS=$as_save_IFS
7574
Reid Spencera773bd52006-08-04 18:18:08 +00007575 ;;
7576esac
7577fi
7578ZIP=$ac_cv_path_ZIP
7579if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007580 { echo "$as_me:$LINENO: result: $ZIP" >&5
7581echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007583 { echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007585fi
7586
7587
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007588for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007589do
7590 # Extract the first word of "$ac_prog", so it can be a program name with args.
7591set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7594if test "${ac_cv_path_OCAMLC+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007596else
7597 case $OCAMLC in
7598 [\\/]* | ?:[\\/]*)
7599 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7600 ;;
7601 *)
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603for as_dir in $PATH
7604do
7605 IFS=$as_save_IFS
7606 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 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 +00007609 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007611 break 2
7612 fi
7613done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007614done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007615IFS=$as_save_IFS
7616
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007617 ;;
7618esac
7619fi
7620OCAMLC=$ac_cv_path_OCAMLC
7621if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007622 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7623echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007625 { echo "$as_me:$LINENO: result: no" >&5
7626echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007627fi
7628
7629
Gordon Henriksene7072162008-03-07 18:20:01 +00007630 test -n "$OCAMLC" && break
7631done
7632
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007633for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007634do
7635 # Extract the first word of "$ac_prog", so it can be a program name with args.
7636set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7639if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007641else
7642 case $OCAMLOPT in
7643 [\\/]* | ?:[\\/]*)
7644 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7645 ;;
7646 *)
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 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 +00007654 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007656 break 2
7657 fi
7658done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007659done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007660IFS=$as_save_IFS
7661
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007662 ;;
7663esac
7664fi
7665OCAMLOPT=$ac_cv_path_OCAMLOPT
7666if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007667 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7668echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007670 { echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007672fi
7673
7674
Gordon Henriksene7072162008-03-07 18:20:01 +00007675 test -n "$OCAMLOPT" && break
7676done
7677
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007678for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007679do
7680 # Extract the first word of "$ac_prog", so it can be a program name with args.
7681set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007686else
7687 case $OCAMLDEP in
7688 [\\/]* | ?:[\\/]*)
7689 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7690 ;;
7691 *)
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693for as_dir in $PATH
7694do
7695 IFS=$as_save_IFS
7696 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 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 +00007699 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007701 break 2
7702 fi
7703done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007704done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007705IFS=$as_save_IFS
7706
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007707 ;;
7708esac
7709fi
7710OCAMLDEP=$ac_cv_path_OCAMLDEP
7711if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007712 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7713echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007715 { echo "$as_me:$LINENO: result: no" >&5
7716echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007717fi
7718
7719
Gordon Henriksene7072162008-03-07 18:20:01 +00007720 test -n "$OCAMLDEP" && break
7721done
7722
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007723for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007724do
7725 # Extract the first word of "$ac_prog", so it can be a program name with args.
7726set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007731else
7732 case $OCAMLDOC in
7733 [\\/]* | ?:[\\/]*)
7734 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7735 ;;
7736 *)
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 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 +00007744 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007746 break 2
7747 fi
7748done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007750IFS=$as_save_IFS
7751
7752 ;;
7753esac
7754fi
7755OCAMLDOC=$ac_cv_path_OCAMLDOC
7756if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007757 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7758echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007760 { echo "$as_me:$LINENO: result: no" >&5
7761echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007762fi
7763
7764
7765 test -n "$OCAMLDOC" && break
7766done
7767
Torok Edwincc499a42008-10-22 09:56:27 +00007768for ac_prog in gas as
7769do
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774if test "${ac_cv_path_GAS+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007776else
7777 case $GAS in
7778 [\\/]* | ?:[\\/]*)
7779 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7780 ;;
7781 *)
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 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 +00007789 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007791 break 2
7792 fi
7793done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007794done
Torok Edwincc499a42008-10-22 09:56:27 +00007795IFS=$as_save_IFS
7796
7797 ;;
7798esac
7799fi
7800GAS=$ac_cv_path_GAS
7801if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007802 { echo "$as_me:$LINENO: result: $GAS" >&5
7803echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805 { echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007807fi
7808
7809
7810 test -n "$GAS" && break
7811done
7812
Reid Spencera773bd52006-08-04 18:18:08 +00007813
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007814{ echo "$as_me:$LINENO: checking for linker version" >&5
7815echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7816if test "${llvm_cv_link_version+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819
7820 version_string="$(ld -v 2>&1 | head -1)"
7821
7822 # Check for ld64.
7823 if (echo "$version_string" | grep -q "ld64"); then
7824 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7825 else
7826 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7827 fi
7828
7829fi
7830{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7831echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7832
7833cat >>confdefs.h <<_ACEOF
7834#define HOST_LINK_VERSION "$llvm_cv_link_version"
7835_ACEOF
7836
7837
7838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007839{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7840echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7841if test "${llvm_cv_link_use_r+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007843else
7844 ac_ext=c
7845ac_cpp='$CPP $CPPFLAGS'
7846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7848ac_compiler_gnu=$ac_cv_c_compiler_gnu
7849
7850 oldcflags="$CFLAGS"
7851 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007852 cat >conftest.$ac_ext <<_ACEOF
7853/* confdefs.h. */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007857/* end confdefs.h. */
7858
7859int
7860main ()
7861{
Dan Gohman39ed6782010-04-25 00:12:20 +00007862
Reid Spencera773bd52006-08-04 18:18:08 +00007863 ;
7864 return 0;
7865}
7866_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867rm -f conftest.$ac_objext conftest$ac_exeext
7868if { (ac_try="$ac_link"
7869case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872esac
7873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7882 { (case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885esac
7886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try='test -s conftest$ac_exeext'
7892 { (case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895esac
7896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_try") 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007901 llvm_cv_link_use_r=yes
7902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903 echo "$as_me: failed program was:" >&5
7904sed 's/^/| /' conftest.$ac_ext >&5
7905
7906 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007908
Bill Wendlingebcceee2009-04-18 11:20:33 +00007909rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007910 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007911 CFLAGS="$oldcflags"
7912 ac_ext=c
7913ac_cpp='$CPP $CPPFLAGS'
7914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918
7919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007920{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7921echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007922if test "$llvm_cv_link_use_r" = yes ; then
7923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007924cat >>confdefs.h <<\_ACEOF
7925#define HAVE_LINK_R 1
7926_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007927
7928 fi
7929
7930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007931{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7932echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7933if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007935else
7936 ac_ext=c
7937ac_cpp='$CPP $CPPFLAGS'
7938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
7942 oldcflags="$CFLAGS"
7943 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007944 cat >conftest.$ac_ext <<_ACEOF
7945/* confdefs.h. */
7946_ACEOF
7947cat confdefs.h >>conftest.$ac_ext
7948cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007949/* end confdefs.h. */
7950
7951int
7952main ()
7953{
Dan Gohman39ed6782010-04-25 00:12:20 +00007954
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007955 ;
7956 return 0;
7957}
7958_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007959rm -f conftest.$ac_objext conftest$ac_exeext
7960if { (ac_try="$ac_link"
7961case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_link") 2>conftest.er1
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
7973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7974 { (case "(($ac_try" in
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7977esac
7978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979 (eval "$ac_try") 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; } &&
7983 { ac_try='test -s conftest$ac_exeext'
7984 { (case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7987esac
7988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_try") 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007993 llvm_cv_link_use_export_dynamic=yes
7994else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007995 echo "$as_me: failed program was:" >&5
7996sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008000
Bill Wendlingebcceee2009-04-18 11:20:33 +00008001rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008002 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008003 CFLAGS="$oldcflags"
8004 ac_ext=c
8005ac_cpp='$CPP $CPPFLAGS'
8006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8008ac_compiler_gnu=$ac_cv_c_compiler_gnu
8009
8010
8011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008012{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8013echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008014if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8015
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008016cat >>confdefs.h <<\_ACEOF
8017#define HAVE_LINK_EXPORT_DYNAMIC 1
8018_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008019
8020 fi
8021
8022
Dan Gohmanda612d62010-06-01 14:56:56 +00008023{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8024echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8025if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028 ac_ext=c
8029ac_cpp='$CPP $CPPFLAGS'
8030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034 oldcflags="$CFLAGS"
8035
8036 # The following code is from the autoconf manual,
8037 # "11.13: Limitations of Usual Tools".
8038 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8039 # Use mktemp if possible; otherwise fall back on mkdir,
8040 # with $RANDOM to make collisions less likely.
8041 : ${TMPDIR=/tmp}
8042 {
8043 tmp=`
8044 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8045 ` &&
8046 test -n "$tmp" && test -d "$tmp"
8047 } || {
8048 tmp=$TMPDIR/foo$$-$RANDOM
8049 (umask 077 && mkdir "$tmp")
8050 } || exit $?
8051
Dan Gohmanda612d62010-06-01 14:56:56 +00008052 echo "{" > "$tmp/export.map"
8053 echo " global: main;" >> "$tmp/export.map"
8054 echo " local: *;" >> "$tmp/export.map"
8055 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008056
Dan Gohmanda612d62010-06-01 14:56:56 +00008057 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008058 cat >conftest.$ac_ext <<_ACEOF
8059/* confdefs.h. */
8060_ACEOF
8061cat confdefs.h >>conftest.$ac_ext
8062cat >>conftest.$ac_ext <<_ACEOF
8063/* end confdefs.h. */
8064
8065int
8066main ()
8067{
Dan Gohman39ed6782010-04-25 00:12:20 +00008068
Dan Gohman391569c2010-04-16 22:59:06 +00008069 ;
8070 return 0;
8071}
8072_ACEOF
8073rm -f conftest.$ac_objext conftest$ac_exeext
8074if { (ac_try="$ac_link"
8075case "(($ac_try" in
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8078esac
8079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 (eval "$ac_link") 2>conftest.er1
8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8088 { (case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8091esac
8092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_try") 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; } &&
8097 { ac_try='test -s conftest$ac_exeext'
8098 { (case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101esac
8102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_try") 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008107 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008108else
8109 echo "$as_me: failed program was:" >&5
8110sed 's/^/| /' conftest.$ac_ext >&5
8111
Dan Gohman943005e2010-06-01 16:22:27 +00008112 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008113fi
8114
8115rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008117 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008118 rmdir "$tmp"
8119 CFLAGS="$oldcflags"
8120 ac_ext=c
8121ac_cpp='$CPP $CPPFLAGS'
8122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124ac_compiler_gnu=$ac_cv_c_compiler_gnu
8125
8126
8127fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008128{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8129echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8130if test "$llvm_cv_link_use_version_script" = yes ; then
8131 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008132
8133 fi
8134
8135
Reid Spencera773bd52006-08-04 18:18:08 +00008136
8137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008138{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8139echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8140if test "${ac_cv_c_const+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008142else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008143 cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008148/* end confdefs.h. */
8149
8150int
8151main ()
8152{
8153/* FIXME: Include the comments suggested by Paul. */
8154#ifndef __cplusplus
8155 /* Ultrix mips cc rejects this. */
8156 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008157 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008158 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159 char const *const *ccp;
8160 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008161 /* NEC SVR4.0.2 mips cc rejects this. */
8162 struct point {int x, y;};
8163 static struct point const zero = {0,0};
8164 /* AIX XL C 1.02.0.0 rejects this.
8165 It does not let you subtract one const X* pointer from another in
8166 an arm of an if-expression whose if-part is not a constant
8167 expression */
8168 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008170 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008171 ++ccp;
8172 p = (char**) ccp;
8173 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008174 { /* SCO 3.2v4 cc rejects this. */
8175 char *t;
8176 char const *s = 0 ? (char *) 0 : (char const *) 0;
8177
8178 *t++ = 0;
8179 if (s) return 0;
8180 }
8181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8182 int x[] = {25, 17};
8183 const int *foo = &x[0];
8184 ++foo;
8185 }
8186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8187 typedef const int *iptr;
8188 iptr p = 0;
8189 ++p;
8190 }
8191 { /* AIX XL C 1.02.0.0 rejects this saying
8192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8193 struct s { int j; const int *ap[3]; };
8194 struct s *b; b->j = 5;
8195 }
8196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8197 const int foo = 10;
8198 if (!foo) return 0;
8199 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008200 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008201#endif
8202
8203 ;
8204 return 0;
8205}
8206_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207rm -f conftest.$ac_objext
8208if { (ac_try="$ac_compile"
8209case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212esac
8213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_compile") 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8222 { (case "(($ac_try" in
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8225esac
8226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_try") 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest.$ac_objext'
8232 { (case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235esac
8236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_try") 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008241 ac_cv_c_const=yes
8242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243 echo "$as_me: failed program was:" >&5
8244sed 's/^/| /' conftest.$ac_ext >&5
8245
8246 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008248
Reid Spencera773bd52006-08-04 18:18:08 +00008249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8252echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008253if test $ac_cv_c_const = no; then
8254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008255cat >>confdefs.h <<\_ACEOF
8256#define const
8257_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008258
8259fi
8260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008261
8262
8263
8264
8265
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008266ac_header_dirent=no
8267for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008268 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8269{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8270echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008273else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008274 cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008279/* end confdefs.h. */
8280#include <sys/types.h>
8281#include <$ac_hdr>
8282
8283int
8284main ()
8285{
8286if ((DIR *) 0)
8287return 0;
8288 ;
8289 return 0;
8290}
8291_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008292rm -f conftest.$ac_objext
8293if { (ac_try="$ac_compile"
8294case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297esac
8298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8307 { (case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8310esac
8311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_try") 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; } &&
8316 { ac_try='test -s conftest.$ac_objext'
8317 { (case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320esac
8321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_try") 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008326 eval "$as_ac_Header=yes"
8327else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008328 echo "$as_me: failed program was:" >&5
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
8331 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008333
Reid Spencera773bd52006-08-04 18:18:08 +00008334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336ac_res=`eval echo '${'$as_ac_Header'}'`
8337 { echo "$as_me:$LINENO: result: $ac_res" >&5
8338echo "${ECHO_T}$ac_res" >&6; }
8339if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008340 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008342_ACEOF
8343
8344ac_header_dirent=$ac_hdr; break
8345fi
8346
8347done
8348# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8349if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008350 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8351echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8352if test "${ac_cv_search_opendir+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008354else
8355 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008356cat >conftest.$ac_ext <<_ACEOF
8357/* confdefs.h. */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008361/* end confdefs.h. */
8362
Reid Spencera773bd52006-08-04 18:18:08 +00008363/* Override any GCC internal prototype to avoid an error.
8364 Use char because int might match the return type of a GCC
8365 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008366#ifdef __cplusplus
8367extern "C"
8368#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008369char opendir ();
8370int
8371main ()
8372{
Reid Spencera773bd52006-08-04 18:18:08 +00008373return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008374 ;
8375 return 0;
8376}
8377_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008378for ac_lib in '' dir; do
8379 if test -z "$ac_lib"; then
8380 ac_res="none required"
8381 else
8382 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008384 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008385 rm -f conftest.$ac_objext conftest$ac_exeext
8386if { (ac_try="$ac_link"
8387case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
8391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_link") 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8413esac
8414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008419 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008420else
8421 echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008426
Bill Wendlingebcceee2009-04-18 11:20:33 +00008427rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428 conftest$ac_exeext
8429 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008430 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008431fi
John Criswell7a73b802003-06-30 21:59:07 +00008432done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008433if test "${ac_cv_search_opendir+set}" = set; then
8434 :
Reid Spencera773bd52006-08-04 18:18:08 +00008435else
8436 ac_cv_search_opendir=no
8437fi
8438rm conftest.$ac_ext
8439LIBS=$ac_func_search_save_LIBS
8440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008441{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8442echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008443ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008446
Reid Spencera773bd52006-08-04 18:18:08 +00008447fi
8448
8449else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008450 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8451echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8452if test "${ac_cv_search_opendir+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008454else
8455 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008456cat >conftest.$ac_ext <<_ACEOF
8457/* confdefs.h. */
8458_ACEOF
8459cat confdefs.h >>conftest.$ac_ext
8460cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008461/* end confdefs.h. */
8462
8463/* Override any GCC internal prototype to avoid an error.
8464 Use char because int might match the return type of a GCC
8465 builtin and then its argument prototype would still apply. */
8466#ifdef __cplusplus
8467extern "C"
8468#endif
8469char opendir ();
8470int
8471main ()
8472{
8473return opendir ();
8474 ;
8475 return 0;
8476}
8477_ACEOF
8478for ac_lib in '' x; do
8479 if test -z "$ac_lib"; then
8480 ac_res="none required"
8481 else
8482 ac_res=-l$ac_lib
8483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8484 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008485 rm -f conftest.$ac_objext conftest$ac_exeext
8486if { (ac_try="$ac_link"
8487case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_link") 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8503esac
8504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest$ac_exeext'
8510 { (case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513esac
8514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_try") 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008519 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008520else
8521 echo "$as_me: failed program was:" >&5
8522sed 's/^/| /' conftest.$ac_ext >&5
8523
8524
Reid Spencera773bd52006-08-04 18:18:08 +00008525fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526
Bill Wendlingebcceee2009-04-18 11:20:33 +00008527rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528 conftest$ac_exeext
8529 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008530 break
8531fi
8532done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008533if test "${ac_cv_search_opendir+set}" = set; then
8534 :
Reid Spencera773bd52006-08-04 18:18:08 +00008535else
8536 ac_cv_search_opendir=no
8537fi
8538rm conftest.$ac_ext
8539LIBS=$ac_func_search_save_LIBS
8540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008541{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8542echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008543ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008544if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8546
8547fi
8548
8549fi
John Criswell7a73b802003-06-30 21:59:07 +00008550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008551
John Criswell7a73b802003-06-30 21:59:07 +00008552for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008553do
8554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560fi
8561ac_res=`eval echo '${'$as_ac_Header'}'`
8562 { echo "$as_me:$LINENO: result: $ac_res" >&5
8563echo "${ECHO_T}$ac_res" >&6; }
8564else
8565 # Is the header compilable?
8566{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8567echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8568cat >conftest.$ac_ext <<_ACEOF
8569/* confdefs.h. */
8570_ACEOF
8571cat confdefs.h >>conftest.$ac_ext
8572cat >>conftest.$ac_ext <<_ACEOF
8573/* end confdefs.h. */
8574$ac_includes_default
8575#include <$ac_header>
8576_ACEOF
8577rm -f conftest.$ac_objext
8578if { (ac_try="$ac_compile"
8579case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582esac
8583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8592 { (case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8595esac
8596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_try") 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest.$ac_objext'
8602 { (case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8605esac
8606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_try") 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8611 ac_header_compiler=yes
8612else
8613 echo "$as_me: failed program was:" >&5
8614sed 's/^/| /' conftest.$ac_ext >&5
8615
8616 ac_header_compiler=no
8617fi
8618
8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8621echo "${ECHO_T}$ac_header_compiler" >&6; }
8622
8623# Is the header present?
8624{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8625echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8626cat >conftest.$ac_ext <<_ACEOF
8627/* confdefs.h. */
8628_ACEOF
8629cat confdefs.h >>conftest.$ac_ext
8630cat >>conftest.$ac_ext <<_ACEOF
8631/* end confdefs.h. */
8632#include <$ac_header>
8633_ACEOF
8634if { (ac_try="$ac_cpp conftest.$ac_ext"
8635case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638esac
8639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } >/dev/null; then
8647 if test -s conftest.err; then
8648 ac_cpp_err=$ac_c_preproc_warn_flag
8649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8650 else
8651 ac_cpp_err=
8652 fi
8653else
8654 ac_cpp_err=yes
8655fi
8656if test -z "$ac_cpp_err"; then
8657 ac_header_preproc=yes
8658else
8659 echo "$as_me: failed program was:" >&5
8660sed 's/^/| /' conftest.$ac_ext >&5
8661
8662 ac_header_preproc=no
8663fi
8664
8665rm -f conftest.err conftest.$ac_ext
8666{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8667echo "${ECHO_T}$ac_header_preproc" >&6; }
8668
8669# So? What about this header?
8670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8671 yes:no: )
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8675echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8676 ac_header_preproc=yes
8677 ;;
8678 no:yes:* )
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8680echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8682echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8684echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8686echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8690echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8691 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008692## ------------------------------------ ##
8693## Report this to http://llvm.org/bugs/ ##
8694## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008695_ASBOX
8696 ) | sed "s/^/$as_me: WARNING: /" >&2
8697 ;;
8698esac
8699{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8703else
8704 eval "$as_ac_Header=\$ac_header_preproc"
8705fi
8706ac_res=`eval echo '${'$as_ac_Header'}'`
8707 { echo "$as_me:$LINENO: result: $ac_res" >&5
8708echo "${ECHO_T}$ac_res" >&6; }
8709
8710fi
8711if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008712 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008714_ACEOF
8715
8716fi
8717
8718done
8719
Reid Spencera773bd52006-08-04 18:18:08 +00008720# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008721if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008722 enableval=$enable_ltdl_install;
8723fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008724
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008726
8727
8728if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008729 INSTALL_LTDL_TRUE=
8730 INSTALL_LTDL_FALSE='#'
8731else
8732 INSTALL_LTDL_TRUE='#'
8733 INSTALL_LTDL_FALSE=
8734fi
8735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008736
8737
8738if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008739 CONVENIENCE_LTDL_TRUE=
8740 CONVENIENCE_LTDL_FALSE='#'
8741else
8742 CONVENIENCE_LTDL_TRUE='#'
8743 CONVENIENCE_LTDL_FALSE=
8744fi
8745
8746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008747{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8748echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008749library_names_spec=
8750libname_spec='lib$name'
8751soname_spec=
8752shrext_cmds=".so"
8753postinstall_cmds=
8754postuninstall_cmds=
8755finish_cmds=
8756finish_eval=
8757shlibpath_var=
8758shlibpath_overrides_runpath=unknown
8759version_type=none
8760dynamic_linker="$host_os ld.so"
8761sys_lib_dlsearch_path_spec="/lib /usr/lib"
8762if test "$GCC" = yes; then
8763 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8764 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8765 # if the path contains ";" then we assume it to be the separator
8766 # otherwise default to the standard path separator (i.e. ":") - it is
8767 # assumed that no part of a normal pathname contains ";" but that should
8768 # okay in the real world where ";" in dirpaths is itself problematic.
8769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8770 else
8771 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8772 fi
8773else
8774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8775fi
8776need_lib_prefix=unknown
8777hardcode_into_libs=no
8778
8779# when you set need_version to no, make sure it does not cause -set_version
8780# flags to be left without arguments
8781need_version=unknown
8782
8783case $host_os in
8784aix3*)
8785 version_type=linux
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8787 shlibpath_var=LIBPATH
8788
8789 # AIX 3 has no versioning support, so we append a major version to the name.
8790 soname_spec='${libname}${release}${shared_ext}$major'
8791 ;;
8792
8793aix4* | aix5*)
8794 version_type=linux
8795 need_lib_prefix=no
8796 need_version=no
8797 hardcode_into_libs=yes
8798 if test "$host_cpu" = ia64; then
8799 # AIX 5 supports IA64
8800 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8801 shlibpath_var=LD_LIBRARY_PATH
8802 else
8803 # With GCC up to 2.95.x, collect2 would create an import file
8804 # for dependence libraries. The import file would start with
8805 # the line `#! .'. This would cause the generated library to
8806 # depend on `.', always an invalid library. This was fixed in
8807 # development snapshots of GCC prior to 3.0.
8808 case $host_os in
8809 aix4 | aix4.[01] | aix4.[01].*)
8810 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8811 echo ' yes '
8812 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8813 :
8814 else
8815 can_build_shared=no
8816 fi
8817 ;;
8818 esac
8819 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8820 # soname into executable. Probably we can add versioning support to
8821 # collect2, so additional links can be useful in future.
8822 if test "$aix_use_runtimelinking" = yes; then
8823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8824 # instead of lib<name>.a to let people know that these are not
8825 # typical AIX shared libraries.
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827 else
8828 # We preserve .a as extension for shared libraries through AIX4.2
8829 # and later when we are not doing run time linking.
8830 library_names_spec='${libname}${release}.a $libname.a'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 fi
8833 shlibpath_var=LIBPATH
8834 fi
8835 ;;
8836
8837amigaos*)
8838 library_names_spec='$libname.ixlibrary $libname.a'
8839 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8840 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'
8841 ;;
8842
8843beos*)
8844 library_names_spec='${libname}${shared_ext}'
8845 dynamic_linker="$host_os ld.so"
8846 shlibpath_var=LIBRARY_PATH
8847 ;;
8848
8849bsdi[45]*)
8850 version_type=linux
8851 need_version=no
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8855 shlibpath_var=LD_LIBRARY_PATH
8856 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8857 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8858 # the default ld.so.conf also contains /usr/contrib/lib and
8859 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8860 # libtool to hard-code these into programs
8861 ;;
8862
8863cygwin* | mingw* | pw32*)
8864 version_type=windows
8865 shrext_cmds=".dll"
8866 need_version=no
8867 need_lib_prefix=no
8868
8869 case $GCC,$host_os in
8870 yes,cygwin* | yes,mingw* | yes,pw32*)
8871 library_names_spec='$libname.dll.a'
8872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8873 postinstall_cmds='base_file=`basename \${file}`~
8874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8875 dldir=$destdir/`dirname \$dlpath`~
8876 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008877 $install_prog $dir/$dlname \$dldir/$dlname~
8878 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8880 dlpath=$dir/\$dldll~
8881 $rm \$dlpath'
8882 shlibpath_overrides_runpath=yes
8883
8884 case $host_os in
8885 cygwin*)
8886 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8887 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8889 ;;
8890 mingw*)
8891 # MinGW DLLs use traditional 'lib' prefix
8892 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8893 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8894 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8895 # It is most probably a Windows format PATH printed by
8896 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8897 # path with ; separators, and with drive letters. We can handle the
8898 # drive letters (cygwin fileutils understands them), so leave them,
8899 # especially as we might pass files found there to a mingw objdump,
8900 # which wouldn't understand a cygwinified path. Ahh.
8901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8902 else
8903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8904 fi
8905 ;;
8906 pw32*)
8907 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008908 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 +00008909 ;;
8910 esac
8911 ;;
8912
8913 *)
8914 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8915 ;;
8916 esac
8917 dynamic_linker='Win32 ld.exe'
8918 # FIXME: first we should search . and the directory the executable is in
8919 shlibpath_var=PATH
8920 ;;
8921
8922darwin* | rhapsody*)
8923 dynamic_linker="$host_os dyld"
8924 version_type=darwin
8925 need_lib_prefix=no
8926 need_version=no
8927 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8928 soname_spec='${libname}${release}${major}$shared_ext'
8929 shlibpath_overrides_runpath=yes
8930 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008931 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008932 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8933 if test "$GCC" = yes; then
8934 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"`
8935 else
8936 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8937 fi
8938 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8939 ;;
8940
8941dgux*)
8942 version_type=linux
8943 need_lib_prefix=no
8944 need_version=no
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 ;;
8949
Eric Christopher360fa9a2011-10-26 00:42:12 +00008950freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008951 dynamic_linker=no
8952 ;;
8953
8954kfreebsd*-gnu)
8955 version_type=linux
8956 need_lib_prefix=no
8957 need_version=no
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=no
8962 hardcode_into_libs=yes
8963 dynamic_linker='GNU ld.so'
8964 ;;
8965
Reid Spencera773bd52006-08-04 18:18:08 +00008966freebsd* | dragonfly*)
8967 # DragonFly does not have aout. When/if they implement a new
8968 # versioning mechanism, adjust this.
8969 if test -x /usr/bin/objformat; then
8970 objformat=`/usr/bin/objformat`
8971 else
8972 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008973 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008974 *) objformat=elf ;;
8975 esac
8976 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008977 version_type=freebsd-$objformat
8978 case $version_type in
8979 freebsd-elf*)
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8981 need_version=no
8982 need_lib_prefix=no
8983 ;;
8984 freebsd-*)
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8986 need_version=yes
8987 ;;
8988 esac
8989 shlibpath_var=LD_LIBRARY_PATH
8990 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008991 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008992 shlibpath_overrides_runpath=yes
8993 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008994 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008995 shlibpath_overrides_runpath=yes
8996 hardcode_into_libs=yes
8997 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009000 shlibpath_overrides_runpath=no
9001 hardcode_into_libs=yes
9002 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009003 freebsd*) # from 4.6 on
9004 shlibpath_overrides_runpath=yes
9005 hardcode_into_libs=yes
9006 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009007 esac
9008 ;;
9009
9010gnu*)
9011 version_type=linux
9012 need_lib_prefix=no
9013 need_version=no
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 hardcode_into_libs=yes
9018 ;;
9019
9020hpux9* | hpux10* | hpux11*)
9021 # Give a soname corresponding to the major version so that dld.sl refuses to
9022 # link against other versions.
9023 version_type=sunos
9024 need_lib_prefix=no
9025 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009026 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009027 ia64*)
9028 shrext_cmds='.so'
9029 hardcode_into_libs=yes
9030 dynamic_linker="$host_os dld.so"
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 if test "X$HPUX_IA64_MODE" = X32; then
9036 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9037 else
9038 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9039 fi
9040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9041 ;;
9042 hppa*64*)
9043 shrext_cmds='.sl'
9044 hardcode_into_libs=yes
9045 dynamic_linker="$host_os dld.sl"
9046 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9052 ;;
9053 *)
9054 shrext_cmds='.sl'
9055 dynamic_linker="$host_os dld.sl"
9056 shlibpath_var=SHLIB_PATH
9057 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 ;;
9061 esac
9062 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9063 postinstall_cmds='chmod 555 $lib'
9064 ;;
9065
Reid Spencera773bd52006-08-04 18:18:08 +00009066interix3*)
9067 version_type=linux
9068 need_lib_prefix=no
9069 need_version=no
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=no
9075 hardcode_into_libs=yes
9076 ;;
9077
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009078irix5* | irix6* | nonstopux*)
9079 case $host_os in
9080 nonstopux*) version_type=nonstopux ;;
9081 *)
9082 if test "$lt_cv_prog_gnu_ld" = yes; then
9083 version_type=linux
9084 else
9085 version_type=irix
9086 fi ;;
9087 esac
9088 need_lib_prefix=no
9089 need_version=no
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9092 case $host_os in
9093 irix5* | nonstopux*)
9094 libsuff= shlibsuff=
9095 ;;
9096 *)
9097 case $LD in # libtool.m4 will add one of these switches to LD
9098 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9099 libsuff= shlibsuff= libmagic=32-bit;;
9100 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9101 libsuff=32 shlibsuff=N32 libmagic=N32;;
9102 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9103 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9104 *) libsuff= shlibsuff= libmagic=never-match;;
9105 esac
9106 ;;
9107 esac
9108 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9109 shlibpath_overrides_runpath=no
9110 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9111 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9112 hardcode_into_libs=yes
9113 ;;
9114
9115# No shared lib support for Linux oldld, aout, or coff.
9116linux*oldld* | linux*aout* | linux*coff*)
9117 dynamic_linker=no
9118 ;;
9119
9120# This must be Linux ELF.
9121linux*)
9122 version_type=linux
9123 need_lib_prefix=no
9124 need_version=no
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=no
9130 # This implies no fast_install, which is unacceptable.
9131 # Some rework will be needed to allow for fast_install
9132 # before this can be enabled.
9133 hardcode_into_libs=yes
9134
9135 # Append ld.so.conf contents to the search path
9136 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009137 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 +00009138 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9139 fi
9140
9141 # We used to test for /lib/ld.so.1 and disable shared libraries on
9142 # powerpc, because MkLinux only supported shared libraries with the
9143 # GNU dynamic linker. Since this was broken with cross compilers,
9144 # most powerpc-linux boxes support dynamic linking these days and
9145 # people can always --disable-shared, the test was removed, and we
9146 # assume the GNU/Linux dynamic linker is in use.
9147 dynamic_linker='GNU/Linux ld.so'
9148 ;;
9149
9150knetbsd*-gnu)
9151 version_type=linux
9152 need_lib_prefix=no
9153 need_version=no
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=no
9158 hardcode_into_libs=yes
9159 dynamic_linker='GNU ld.so'
9160 ;;
9161
9162netbsd*)
9163 version_type=sunos
9164 need_lib_prefix=no
9165 need_version=no
9166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9169 dynamic_linker='NetBSD (a.out) ld.so'
9170 else
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 dynamic_linker='NetBSD ld.elf_so'
9174 fi
9175 shlibpath_var=LD_LIBRARY_PATH
9176 shlibpath_overrides_runpath=yes
9177 hardcode_into_libs=yes
9178 ;;
9179
9180newsos6)
9181 version_type=linux
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 shlibpath_overrides_runpath=yes
9185 ;;
9186
9187nto-qnx*)
9188 version_type=linux
9189 need_lib_prefix=no
9190 need_version=no
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 shlibpath_overrides_runpath=yes
9195 ;;
9196
9197openbsd*)
9198 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009199 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009200 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009201 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9202 case $host_os in
9203 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9204 *) need_version=no ;;
9205 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9210 case $host_os in
9211 openbsd2.[89] | openbsd2.[89].*)
9212 shlibpath_overrides_runpath=no
9213 ;;
9214 *)
9215 shlibpath_overrides_runpath=yes
9216 ;;
9217 esac
9218 else
9219 shlibpath_overrides_runpath=yes
9220 fi
9221 ;;
9222
9223os2*)
9224 libname_spec='$name'
9225 shrext_cmds=".dll"
9226 need_lib_prefix=no
9227 library_names_spec='$libname${shared_ext} $libname.a'
9228 dynamic_linker='OS/2 ld.exe'
9229 shlibpath_var=LIBPATH
9230 ;;
9231
9232osf3* | osf4* | osf5*)
9233 version_type=osf
9234 need_lib_prefix=no
9235 need_version=no
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9240 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9241 ;;
9242
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009243solaris*)
9244 version_type=linux
9245 need_lib_prefix=no
9246 need_version=no
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 shlibpath_overrides_runpath=yes
9251 hardcode_into_libs=yes
9252 # ldd complains unless libraries are executable
9253 postinstall_cmds='chmod +x $lib'
9254 ;;
9255
9256sunos4*)
9257 version_type=sunos
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9259 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 shlibpath_overrides_runpath=yes
9262 if test "$with_gnu_ld" = yes; then
9263 need_lib_prefix=no
9264 fi
9265 need_version=yes
9266 ;;
9267
Reid Spencera773bd52006-08-04 18:18:08 +00009268sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009269 version_type=linux
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 case $host_vendor in
9274 sni)
9275 shlibpath_overrides_runpath=no
9276 need_lib_prefix=no
9277 export_dynamic_flag_spec='${wl}-Blargedynsym'
9278 runpath_var=LD_RUN_PATH
9279 ;;
9280 siemens)
9281 need_lib_prefix=no
9282 ;;
9283 motorola)
9284 need_lib_prefix=no
9285 need_version=no
9286 shlibpath_overrides_runpath=no
9287 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9288 ;;
9289 esac
9290 ;;
9291
9292sysv4*MP*)
9293 if test -d /usr/nec ;then
9294 version_type=linux
9295 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9296 soname_spec='$libname${shared_ext}.$major'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 fi
9299 ;;
9300
Reid Spencera773bd52006-08-04 18:18:08 +00009301sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9302 version_type=freebsd-elf
9303 need_lib_prefix=no
9304 need_version=no
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 hardcode_into_libs=yes
9309 if test "$with_gnu_ld" = yes; then
9310 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9311 shlibpath_overrides_runpath=no
9312 else
9313 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9314 shlibpath_overrides_runpath=yes
9315 case $host_os in
9316 sco3.2v5*)
9317 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9318 ;;
9319 esac
9320 fi
9321 sys_lib_dlsearch_path_spec='/usr/lib'
9322 ;;
9323
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009324uts4*)
9325 version_type=linux
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 ;;
9330
9331*)
9332 dynamic_linker=no
9333 ;;
9334esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009335{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9336echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337test "$dynamic_linker" = no && can_build_shared=no
9338
Reid Spencera773bd52006-08-04 18:18:08 +00009339variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9340if test "$GCC" = yes; then
9341 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9342fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343
Reid Spencera773bd52006-08-04 18:18:08 +00009344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009345{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9346echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9347if test "${libltdl_cv_shlibext+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009349else
9350
9351module=yes
9352eval libltdl_cv_shlibext=$shrext_cmds
9353
9354fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009355{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9356echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009357if test -n "$libltdl_cv_shlibext"; then
9358
9359cat >>confdefs.h <<_ACEOF
9360#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9361_ACEOF
9362
9363fi
9364
9365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009366{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9367echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9368if test "${libltdl_cv_shlibpath_var+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009370else
9371 libltdl_cv_shlibpath_var="$shlibpath_var"
9372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009373{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9374echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009375if test -n "$libltdl_cv_shlibpath_var"; then
9376
9377cat >>confdefs.h <<_ACEOF
9378#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9379_ACEOF
9380
9381fi
9382
9383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009384{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9385echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9386if test "${libltdl_cv_sys_search_path+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009388else
9389 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9390fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009391{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9392echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009393if test -n "$libltdl_cv_sys_search_path"; then
9394 sys_search_path=
9395 for dir in $libltdl_cv_sys_search_path; do
9396 if test -z "$sys_search_path"; then
9397 sys_search_path="$dir"
9398 else
9399 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9400 fi
9401 done
9402
9403cat >>confdefs.h <<_ACEOF
9404#define LTDL_SYSSEARCHPATH "$sys_search_path"
9405_ACEOF
9406
9407fi
9408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009409{ echo "$as_me:$LINENO: checking for objdir" >&5
9410echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9411if test "${libltdl_cv_objdir+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009413else
9414 libltdl_cv_objdir="$objdir"
9415 if test -n "$objdir"; then
9416 :
9417 else
9418 rm -f .libs 2>/dev/null
9419 mkdir .libs 2>/dev/null
9420 if test -d .libs; then
9421 libltdl_cv_objdir=.libs
9422 else
9423 # MS-DOS does not allow filenames that begin with a dot.
9424 libltdl_cv_objdir=_libs
9425 fi
9426 rmdir .libs 2>/dev/null
9427 fi
9428
9429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009430{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9431echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009432
9433cat >>confdefs.h <<_ACEOF
9434#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9435_ACEOF
9436
9437
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009438
9439
9440
9441
9442# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009443{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9444echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9445if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009447else
9448
9449# These are sane defaults that work on at least a few old systems.
9450# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9451
9452# Character class describing NM global symbol codes.
9453symcode='[BCDEGRST]'
9454
9455# Regexp to match symbols that can be accessed directly from C.
9456sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9457
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009458# Transform an extracted symbol line into a proper C declaration
9459lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9460
9461# Transform an extracted symbol line into symbol name and symbol address
9462lt_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'"
9463
9464# Define system-specific variables.
9465case $host_os in
9466aix*)
9467 symcode='[BCDT]'
9468 ;;
9469cygwin* | mingw* | pw32*)
9470 symcode='[ABCDGISTW]'
9471 ;;
9472hpux*) # Its linker distinguishes data from code symbols
9473 if test "$host_cpu" = ia64; then
9474 symcode='[ABCDEGRST]'
9475 fi
9476 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9477 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'"
9478 ;;
9479linux*)
9480 if test "$host_cpu" = ia64; then
9481 symcode='[ABCDGIRSTW]'
9482 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9483 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'"
9484 fi
9485 ;;
9486irix* | nonstopux*)
9487 symcode='[BCDEGRST]'
9488 ;;
9489osf*)
9490 symcode='[BCDEGQRST]'
9491 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009492solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009493 symcode='[BDRT]'
9494 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009495sco3.2v5*)
9496 symcode='[DT]'
9497 ;;
9498sysv4.2uw2*)
9499 symcode='[DT]'
9500 ;;
9501sysv5* | sco5v6* | unixware* | OpenUNIX*)
9502 symcode='[ABDT]'
9503 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009504sysv4)
9505 symcode='[DFNSTU]'
9506 ;;
9507esac
9508
9509# Handle CRLF in mingw tool chain
9510opt_cr=
9511case $build_os in
9512mingw*)
9513 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9514 ;;
9515esac
9516
9517# If we're using GNU nm, then use its standard symbol codes.
9518case `$NM -V 2>&1` in
9519*GNU* | *'with BFD'*)
9520 symcode='[ABCDGIRSTW]' ;;
9521esac
9522
9523# Try without a prefix undercore, then with it.
9524for ac_symprfx in "" "_"; do
9525
Reid Spencera773bd52006-08-04 18:18:08 +00009526 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9527 symxfrm="\\1 $ac_symprfx\\2 \\2"
9528
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009529 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009530 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 +00009531
9532 # Check to see that the pipe works correctly.
9533 pipe_works=no
9534
9535 rm -f conftest*
9536 cat > conftest.$ac_ext <<EOF
9537#ifdef __cplusplus
9538extern "C" {
9539#endif
9540char nm_test_var;
9541void nm_test_func(){}
9542#ifdef __cplusplus
9543}
9544#endif
9545int main(){nm_test_var='a';nm_test_func();return(0);}
9546EOF
9547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009549 (eval $ac_compile) 2>&5
9550 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009553 # Now try to grab the symbols.
9554 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009555 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 +00009556 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9557 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009560 # Try sorting and uniquifying the output.
9561 if sort "$nlist" | uniq > "$nlist"T; then
9562 mv -f "$nlist"T "$nlist"
9563 else
9564 rm -f "$nlist"T
9565 fi
9566
9567 # Make sure that we snagged all the symbols we need.
9568 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9569 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9570 cat <<EOF > conftest.$ac_ext
9571#ifdef __cplusplus
9572extern "C" {
9573#endif
9574
9575EOF
9576 # Now generate the symbol file.
9577 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9578
9579 cat <<EOF >> conftest.$ac_ext
9580#if defined (__STDC__) && __STDC__
9581# define lt_ptr_t void *
9582#else
9583# define lt_ptr_t char *
9584# define const
9585#endif
9586
9587/* The mapping between symbol names and symbols. */
9588const struct {
9589 const char *name;
9590 lt_ptr_t address;
9591}
9592lt_preloaded_symbols[] =
9593{
9594EOF
9595 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9596 cat <<\EOF >> conftest.$ac_ext
9597 {0, (lt_ptr_t) 0}
9598};
9599
9600#ifdef __cplusplus
9601}
9602#endif
9603EOF
9604 # Now try linking the two files.
9605 mv conftest.$ac_objext conftstm.$ac_objext
9606 lt_save_LIBS="$LIBS"
9607 lt_save_CFLAGS="$CFLAGS"
9608 LIBS="conftstm.$ac_objext"
9609 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611 (eval $ac_link) 2>&5
9612 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009615 pipe_works=yes
9616 fi
9617 LIBS="$lt_save_LIBS"
9618 CFLAGS="$lt_save_CFLAGS"
9619 else
9620 echo "cannot find nm_test_func in $nlist" >&5
9621 fi
9622 else
9623 echo "cannot find nm_test_var in $nlist" >&5
9624 fi
9625 else
9626 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9627 fi
9628 else
9629 echo "$progname: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9631 fi
9632 rm -f conftest* conftst*
9633
9634 # Do not use the global_symbol_pipe unless it works.
9635 if test "$pipe_works" = yes; then
9636 break
9637 else
9638 lt_cv_sys_global_symbol_pipe=
9639 fi
9640done
9641
9642fi
9643
9644if test -z "$lt_cv_sys_global_symbol_pipe"; then
9645 lt_cv_sys_global_symbol_to_cdecl=
9646fi
9647if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009648 { echo "$as_me:$LINENO: result: failed" >&5
9649echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009650else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009651 { echo "$as_me:$LINENO: result: ok" >&5
9652echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009653fi
9654
9655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009656{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9657echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9658if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009660else
9661 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9662 libltdl_cv_preloaded_symbols=yes
9663 else
9664 libltdl_cv_preloaded_symbols=no
9665 fi
9666
9667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009668{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9669echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009670if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009672cat >>confdefs.h <<\_ACEOF
9673#define HAVE_PRELOADED_SYMBOLS 1
9674_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675
9676fi
9677
9678LIBADD_DL=
9679
9680ac_ext=c
9681ac_cpp='$CPP $CPPFLAGS'
9682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9684ac_compiler_gnu=$ac_cv_c_compiler_gnu
9685
9686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009687{ echo "$as_me:$LINENO: checking for shl_load" >&5
9688echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9689if test "${ac_cv_func_shl_load+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691else
9692 cat >conftest.$ac_ext <<_ACEOF
9693/* confdefs.h. */
9694_ACEOF
9695cat confdefs.h >>conftest.$ac_ext
9696cat >>conftest.$ac_ext <<_ACEOF
9697/* end confdefs.h. */
9698/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9700#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009702/* System header to define __stub macros and hopefully few prototypes,
9703 which can conflict with char shl_load (); below.
9704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9705 <limits.h> exists even on freestanding compilers. */
9706
9707#ifdef __STDC__
9708# include <limits.h>
9709#else
9710# include <assert.h>
9711#endif
9712
9713#undef shl_load
9714
9715/* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
9718#ifdef __cplusplus
9719extern "C"
9720#endif
9721char shl_load ();
9722/* The GNU C library defines this for functions which it implements
9723 to always fail with ENOSYS. Some functions are actually named
9724 something starting with __ and the normal name is an alias. */
9725#if defined __stub_shl_load || defined __stub___shl_load
9726choke me
9727#endif
9728
9729int
9730main ()
9731{
9732return shl_load ();
9733 ;
9734 return 0;
9735}
9736_ACEOF
9737rm -f conftest.$ac_objext conftest$ac_exeext
9738if { (ac_try="$ac_link"
9739case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742esac
9743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
9745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755esac
9756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
9762 { (case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765esac
9766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_try") 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_cv_func_shl_load=yes
9772else
9773 echo "$as_me: failed program was:" >&5
9774sed 's/^/| /' conftest.$ac_ext >&5
9775
9776 ac_cv_func_shl_load=no
9777fi
9778
9779rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781fi
9782{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9783echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9784if test $ac_cv_func_shl_load = yes; then
9785
9786cat >>confdefs.h <<\_ACEOF
9787#define HAVE_SHL_LOAD 1
9788_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009789
9790else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009791 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9792echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9793if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795else
9796 ac_check_lib_save_LIBS=$LIBS
9797LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009798cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h. */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803/* end confdefs.h. */
9804
Reid Spencera773bd52006-08-04 18:18:08 +00009805/* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808#ifdef __cplusplus
9809extern "C"
9810#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009811char shl_load ();
9812int
9813main ()
9814{
Reid Spencera773bd52006-08-04 18:18:08 +00009815return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009816 ;
9817 return 0;
9818}
9819_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009820rm -f conftest.$ac_objext conftest$ac_exeext
9821if { (ac_try="$ac_link"
9822case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9825esac
9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
9828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9835 { (case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838esac
9839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_try") 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest$ac_exeext'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854 ac_cv_lib_dld_shl_load=yes
9855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009856 echo "$as_me: failed program was:" >&5
9857sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009861
Bill Wendlingebcceee2009-04-18 11:20:33 +00009862rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009863 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864LIBS=$ac_check_lib_save_LIBS
9865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009866{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9867echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9868if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009870cat >>confdefs.h <<\_ACEOF
9871#define HAVE_SHL_LOAD 1
9872_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009873
9874 LIBADD_DL="$LIBADD_DL -ldld"
9875else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009876 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9877echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9878if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009880else
9881 ac_check_lib_save_LIBS=$LIBS
9882LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009883cat >conftest.$ac_ext <<_ACEOF
9884/* confdefs.h. */
9885_ACEOF
9886cat confdefs.h >>conftest.$ac_ext
9887cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888/* end confdefs.h. */
9889
Reid Spencera773bd52006-08-04 18:18:08 +00009890/* Override any GCC internal prototype to avoid an error.
9891 Use char because int might match the return type of a GCC
9892 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009893#ifdef __cplusplus
9894extern "C"
9895#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896char dlopen ();
9897int
9898main ()
9899{
Reid Spencera773bd52006-08-04 18:18:08 +00009900return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901 ;
9902 return 0;
9903}
9904_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009905rm -f conftest.$ac_objext conftest$ac_exeext
9906if { (ac_try="$ac_link"
9907case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_link") 2>conftest.er1
9913 ac_status=$?
9914 grep -v '^ *+' conftest.er1 >conftest.err
9915 rm -f conftest.er1
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9920 { (case "(($ac_try" in
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9923esac
9924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_try") 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest$ac_exeext'
9930 { (case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_try") 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009939 ac_cv_lib_dl_dlopen=yes
9940else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009941 echo "$as_me: failed program was:" >&5
9942sed 's/^/| /' conftest.$ac_ext >&5
9943
9944 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009946
Bill Wendlingebcceee2009-04-18 11:20:33 +00009947rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009948 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949LIBS=$ac_check_lib_save_LIBS
9950fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009951{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9952echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9953if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009955cat >>confdefs.h <<\_ACEOF
9956#define HAVE_LIBDL 1
9957_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009958
9959 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009961 cat >conftest.$ac_ext <<_ACEOF
9962/* confdefs.h. */
9963_ACEOF
9964cat confdefs.h >>conftest.$ac_ext
9965cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009966/* end confdefs.h. */
9967#if HAVE_DLFCN_H
9968# include <dlfcn.h>
9969#endif
9970
9971int
9972main ()
9973{
9974dlopen(0, 0);
9975 ;
9976 return 0;
9977}
9978_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009979rm -f conftest.$ac_objext conftest$ac_exeext
9980if { (ac_try="$ac_link"
9981case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9984esac
9985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_link") 2>conftest.er1
9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9994 { (case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997esac
9998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_try") 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007esac
10008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_try") 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010014cat >>confdefs.h <<\_ACEOF
10015#define HAVE_LIBDL 1
10016_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017 libltdl_cv_func_dlopen="yes"
10018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010019 echo "$as_me: failed program was:" >&5
10020sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10023echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10024if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026else
10027 ac_check_lib_save_LIBS=$LIBS
10028LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010029cat >conftest.$ac_ext <<_ACEOF
10030/* confdefs.h. */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010034/* end confdefs.h. */
10035
Reid Spencera773bd52006-08-04 18:18:08 +000010036/* Override any GCC internal prototype to avoid an error.
10037 Use char because int might match the return type of a GCC
10038 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010039#ifdef __cplusplus
10040extern "C"
10041#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042char dlopen ();
10043int
10044main ()
10045{
Reid Spencera773bd52006-08-04 18:18:08 +000010046return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047 ;
10048 return 0;
10049}
10050_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010051rm -f conftest.$ac_objext conftest$ac_exeext
10052if { (ac_try="$ac_link"
10053case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10056esac
10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_link") 2>conftest.er1
10059 ac_status=$?
10060 grep -v '^ *+' conftest.er1 >conftest.err
10061 rm -f conftest.er1
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10066 { (case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10069esac
10070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_try") 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10079esac
10080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_try") 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085 ac_cv_lib_svld_dlopen=yes
10086else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010087 echo "$as_me: failed program was:" >&5
10088sed 's/^/| /' conftest.$ac_ext >&5
10089
10090 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010092
Bill Wendlingebcceee2009-04-18 11:20:33 +000010093rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010094 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095LIBS=$ac_check_lib_save_LIBS
10096fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010097{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10098echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10099if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010101cat >>confdefs.h <<\_ACEOF
10102#define HAVE_LIBDL 1
10103_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010104
10105 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010107 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10108echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10109if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010111else
10112 ac_check_lib_save_LIBS=$LIBS
10113LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010114cat >conftest.$ac_ext <<_ACEOF
10115/* confdefs.h. */
10116_ACEOF
10117cat confdefs.h >>conftest.$ac_ext
10118cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119/* end confdefs.h. */
10120
Reid Spencera773bd52006-08-04 18:18:08 +000010121/* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124#ifdef __cplusplus
10125extern "C"
10126#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127char dld_link ();
10128int
10129main ()
10130{
Reid Spencera773bd52006-08-04 18:18:08 +000010131return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132 ;
10133 return 0;
10134}
10135_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010136rm -f conftest.$ac_objext conftest$ac_exeext
10137if { (ac_try="$ac_link"
10138case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141esac
10142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_link") 2>conftest.er1
10144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10151 { (case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154esac
10155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_try") 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; } &&
10160 { ac_try='test -s conftest$ac_exeext'
10161 { (case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10164esac
10165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_try") 2>&5
10167 ac_status=$?
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010170 ac_cv_lib_dld_dld_link=yes
10171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010172 echo "$as_me: failed program was:" >&5
10173sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010177
Bill Wendlingebcceee2009-04-18 11:20:33 +000010178rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010179 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180LIBS=$ac_check_lib_save_LIBS
10181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010182{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10183echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10184if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010186cat >>confdefs.h <<\_ACEOF
10187#define HAVE_DLD 1
10188_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010189
10190 LIBADD_DL="$LIBADD_DL -ldld"
10191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010192 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10193echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10194if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10196else
10197 cat >conftest.$ac_ext <<_ACEOF
10198/* confdefs.h. */
10199_ACEOF
10200cat confdefs.h >>conftest.$ac_ext
10201cat >>conftest.$ac_ext <<_ACEOF
10202/* end confdefs.h. */
10203/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10205#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010207/* System header to define __stub macros and hopefully few prototypes,
10208 which can conflict with char _dyld_func_lookup (); below.
10209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10210 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010212#ifdef __STDC__
10213# include <limits.h>
10214#else
10215# include <assert.h>
10216#endif
10217
10218#undef _dyld_func_lookup
10219
10220/* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
10223#ifdef __cplusplus
10224extern "C"
10225#endif
10226char _dyld_func_lookup ();
10227/* The GNU C library defines this for functions which it implements
10228 to always fail with ENOSYS. Some functions are actually named
10229 something starting with __ and the normal name is an alias. */
10230#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10231choke me
10232#endif
10233
10234int
10235main ()
10236{
10237return _dyld_func_lookup ();
10238 ;
10239 return 0;
10240}
10241_ACEOF
10242rm -f conftest.$ac_objext conftest$ac_exeext
10243if { (ac_try="$ac_link"
10244case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247esac
10248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_link") 2>conftest.er1
10250 ac_status=$?
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10257 { (case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260esac
10261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_try") 2>&5
10263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; } &&
10266 { ac_try='test -s conftest$ac_exeext'
10267 { (case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270esac
10271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_try") 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 ac_cv_func__dyld_func_lookup=yes
10277else
10278 echo "$as_me: failed program was:" >&5
10279sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010282fi
Reid Spencera773bd52006-08-04 18:18:08 +000010283
Bill Wendlingebcceee2009-04-18 11:20:33 +000010284rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010285 conftest$ac_exeext conftest.$ac_ext
10286fi
10287{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10288echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10289if test $ac_cv_func__dyld_func_lookup = yes; then
10290
10291cat >>confdefs.h <<\_ACEOF
10292#define HAVE_DYLD 1
10293_ACEOF
10294
10295fi
10296
10297
10298fi
10299
10300
10301fi
10302
10303
10304fi
10305
10306rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308
10309fi
10310
10311
10312fi
10313
10314
10315fi
10316
10317
10318if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10319then
10320 lt_save_LIBS="$LIBS"
10321 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010322
10323for ac_func in dlerror
10324do
10325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10326{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330else
10331 cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h. */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
10336/* end confdefs.h. */
10337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10339#define $ac_func innocuous_$ac_func
10340
10341/* System header to define __stub macros and hopefully few prototypes,
10342 which can conflict with char $ac_func (); below.
10343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10344 <limits.h> exists even on freestanding compilers. */
10345
10346#ifdef __STDC__
10347# include <limits.h>
10348#else
10349# include <assert.h>
10350#endif
10351
10352#undef $ac_func
10353
10354/* Override any GCC internal prototype to avoid an error.
10355 Use char because int might match the return type of a GCC
10356 builtin and then its argument prototype would still apply. */
10357#ifdef __cplusplus
10358extern "C"
10359#endif
10360char $ac_func ();
10361/* The GNU C library defines this for functions which it implements
10362 to always fail with ENOSYS. Some functions are actually named
10363 something starting with __ and the normal name is an alias. */
10364#if defined __stub_$ac_func || defined __stub___$ac_func
10365choke me
10366#endif
10367
10368int
10369main ()
10370{
10371return $ac_func ();
10372 ;
10373 return 0;
10374}
10375_ACEOF
10376rm -f conftest.$ac_objext conftest$ac_exeext
10377if { (ac_try="$ac_link"
10378case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381esac
10382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_link") 2>conftest.er1
10384 ac_status=$?
10385 grep -v '^ *+' conftest.er1 >conftest.err
10386 rm -f conftest.er1
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391 { (case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394esac
10395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_try") 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest$ac_exeext'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10404esac
10405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 eval "$as_ac_var=yes"
10411else
10412 echo "$as_me: failed program was:" >&5
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
10415 eval "$as_ac_var=no"
10416fi
10417
10418rm -f core conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10420fi
10421ac_res=`eval echo '${'$as_ac_var'}'`
10422 { echo "$as_me:$LINENO: result: $ac_res" >&5
10423echo "${ECHO_T}$ac_res" >&6; }
10424if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010427_ACEOF
10428
10429fi
10430done
10431
10432 LIBS="$lt_save_LIBS"
10433fi
10434ac_ext=c
10435ac_cpp='$CPP $CPPFLAGS'
10436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10438ac_compiler_gnu=$ac_cv_c_compiler_gnu
10439
10440
10441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010442{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10443echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10444if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010446else
10447 ac_cv_sys_symbol_underscore=no
10448 cat > conftest.$ac_ext <<EOF
10449void nm_test_func(){}
10450int main(){nm_test_func;return 0;}
10451EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453 (eval $ac_compile) 2>&5
10454 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457 # Now try to grab the symbols.
10458 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010459 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 +000010460 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10461 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010464 # See whether the symbols have a leading underscore.
10465 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10466 ac_cv_sys_symbol_underscore=yes
10467 else
10468 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10469 :
10470 else
10471 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10472 fi
10473 fi
10474 else
10475 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10476 fi
10477 else
10478 echo "configure: failed program was:" >&5
10479 cat conftest.c >&5
10480 fi
10481 rm -rf conftest*
10482
10483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010484{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10485echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486
10487
10488if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10489 if test x"$libltdl_cv_func_dlopen" = xyes ||
10490 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010491 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10492echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10493if test "${libltdl_cv_need_uscore+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010495else
10496 libltdl_cv_need_uscore=unknown
10497 save_LIBS="$LIBS"
10498 LIBS="$LIBS $LIBADD_DL"
10499 if test "$cross_compiling" = yes; then :
10500 libltdl_cv_need_uscore=cross
10501else
10502 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10503 lt_status=$lt_dlunknown
10504 cat > conftest.$ac_ext <<EOF
Rafael Espindola97fb69b2011-12-28 17:08:00 +000010505#line 10505 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506#include "confdefs.h"
10507
10508#if HAVE_DLFCN_H
10509#include <dlfcn.h>
10510#endif
10511
10512#include <stdio.h>
10513
10514#ifdef RTLD_GLOBAL
10515# define LT_DLGLOBAL RTLD_GLOBAL
10516#else
10517# ifdef DL_GLOBAL
10518# define LT_DLGLOBAL DL_GLOBAL
10519# else
10520# define LT_DLGLOBAL 0
10521# endif
10522#endif
10523
10524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10525 find out it does not work in some platform. */
10526#ifndef LT_DLLAZY_OR_NOW
10527# ifdef RTLD_LAZY
10528# define LT_DLLAZY_OR_NOW RTLD_LAZY
10529# else
10530# ifdef DL_LAZY
10531# define LT_DLLAZY_OR_NOW DL_LAZY
10532# else
10533# ifdef RTLD_NOW
10534# define LT_DLLAZY_OR_NOW RTLD_NOW
10535# else
10536# ifdef DL_NOW
10537# define LT_DLLAZY_OR_NOW DL_NOW
10538# else
10539# define LT_DLLAZY_OR_NOW 0
10540# endif
10541# endif
10542# endif
10543# endif
10544#endif
10545
10546#ifdef __cplusplus
10547extern "C" void exit (int);
10548#endif
10549
10550void fnord() { int i=42;}
10551int main ()
10552{
10553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10554 int status = $lt_dlunknown;
10555
10556 if (self)
10557 {
10558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10559 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10560 /* dlclose (self); */
10561 }
Reid Spencera773bd52006-08-04 18:18:08 +000010562 else
10563 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564
10565 exit (status);
10566}
10567EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569 (eval $ac_link) 2>&5
10570 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010573 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010574 lt_status=$?
10575 case x$lt_status in
10576 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10577 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010578 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579 esac
10580 else :
10581 # compilation failed
10582
10583 fi
10584fi
10585rm -fr conftest*
10586
10587 LIBS="$save_LIBS"
10588
10589fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010590{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10591echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010592 fi
10593fi
10594
10595if test x"$libltdl_cv_need_uscore" = xyes; then
10596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010597cat >>confdefs.h <<\_ACEOF
10598#define NEED_USCORE 1
10599_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600
10601fi
10602
10603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010604{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10605echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10606if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608else
10609 # PORTME does your system automatically load deplibs for dlopen?
10610 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10611 # For now, we just catch OSes we know something about -- in the
10612 # future, we'll try test this programmatically.
10613 libltdl_cv_sys_dlopen_deplibs=unknown
10614 case "$host_os" in
10615 aix3*|aix4.1.*|aix4.2.*)
10616 # Unknown whether this is true for these versions of AIX, but
10617 # we want this `case' here to explicitly catch those versions.
10618 libltdl_cv_sys_dlopen_deplibs=unknown
10619 ;;
10620 aix[45]*)
10621 libltdl_cv_sys_dlopen_deplibs=yes
10622 ;;
10623 darwin*)
10624 # Assuming the user has installed a libdl from somewhere, this is true
10625 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10626 libltdl_cv_sys_dlopen_deplibs=yes
10627 ;;
10628 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10629 # GNU and its variants, using gnu ld.so (Glibc)
10630 libltdl_cv_sys_dlopen_deplibs=yes
10631 ;;
10632 hpux10*|hpux11*)
10633 libltdl_cv_sys_dlopen_deplibs=yes
10634 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010635 interix*)
10636 libltdl_cv_sys_dlopen_deplibs=yes
10637 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010638 irix[12345]*|irix6.[01]*)
10639 # Catch all versions of IRIX before 6.2, and indicate that we don't
10640 # know how it worked for any of those versions.
10641 libltdl_cv_sys_dlopen_deplibs=unknown
10642 ;;
10643 irix*)
10644 # The case above catches anything before 6.2, and it's known that
10645 # at 6.2 and later dlopen does load deplibs.
10646 libltdl_cv_sys_dlopen_deplibs=yes
10647 ;;
10648 netbsd*)
10649 libltdl_cv_sys_dlopen_deplibs=yes
10650 ;;
10651 openbsd*)
10652 libltdl_cv_sys_dlopen_deplibs=yes
10653 ;;
10654 osf[1234]*)
10655 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10656 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010657 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010658 libltdl_cv_sys_dlopen_deplibs=no
10659 ;;
10660 osf5.0|osf5.0a|osf5.1)
10661 # dlopen *does* load deplibs and with the right loader patch applied
10662 # it even uses RPATH in a shared library to search for shared objects
10663 # that the library depends on, but there's no easy way to know if that
10664 # patch is installed. Since this is the case, all we can really
10665 # say is unknown -- it depends on the patch being installed. If
10666 # it is, this changes to `yes'. Without it, it would be `no'.
10667 libltdl_cv_sys_dlopen_deplibs=unknown
10668 ;;
10669 osf*)
10670 # the two cases above should catch all versions of osf <= 5.1. Read
10671 # the comments above for what we know about them.
10672 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10673 # is used to find them so we can finally say `yes'.
10674 libltdl_cv_sys_dlopen_deplibs=yes
10675 ;;
10676 solaris*)
10677 libltdl_cv_sys_dlopen_deplibs=yes
10678 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10680 libltdl_cv_sys_dlopen_deplibs=yes
10681 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682 esac
10683
10684fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010685{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10686echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010689cat >>confdefs.h <<\_ACEOF
10690#define LTDL_DLOPEN_DEPLIBS 1
10691_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010692
10693fi
10694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010695
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010696for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010697do
10698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704fi
10705ac_res=`eval echo '${'$as_ac_Header'}'`
10706 { echo "$as_me:$LINENO: result: $ac_res" >&5
10707echo "${ECHO_T}$ac_res" >&6; }
10708else
10709 # Is the header compilable?
10710{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10712cat >conftest.$ac_ext <<_ACEOF
10713/* confdefs.h. */
10714_ACEOF
10715cat confdefs.h >>conftest.$ac_ext
10716cat >>conftest.$ac_ext <<_ACEOF
10717/* end confdefs.h. */
10718$ac_includes_default
10719#include <$ac_header>
10720_ACEOF
10721rm -f conftest.$ac_objext
10722if { (ac_try="$ac_compile"
10723case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10726esac
10727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_compile") 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736 { (case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10739esac
10740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_try") 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; } &&
10745 { ac_try='test -s conftest.$ac_objext'
10746 { (case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749esac
10750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_try") 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 ac_header_compiler=yes
10756else
10757 echo "$as_me: failed program was:" >&5
10758sed 's/^/| /' conftest.$ac_ext >&5
10759
10760 ac_header_compiler=no
10761fi
10762
10763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765echo "${ECHO_T}$ac_header_compiler" >&6; }
10766
10767# Is the header present?
10768{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10770cat >conftest.$ac_ext <<_ACEOF
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h. */
10776#include <$ac_header>
10777_ACEOF
10778if { (ac_try="$ac_cpp conftest.$ac_ext"
10779case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782esac
10783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10785 ac_status=$?
10786 grep -v '^ *+' conftest.er1 >conftest.err
10787 rm -f conftest.er1
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } >/dev/null; then
10791 if test -s conftest.err; then
10792 ac_cpp_err=$ac_c_preproc_warn_flag
10793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10794 else
10795 ac_cpp_err=
10796 fi
10797else
10798 ac_cpp_err=yes
10799fi
10800if test -z "$ac_cpp_err"; then
10801 ac_header_preproc=yes
10802else
10803 echo "$as_me: failed program was:" >&5
10804sed 's/^/| /' conftest.$ac_ext >&5
10805
10806 ac_header_preproc=no
10807fi
10808
10809rm -f conftest.err conftest.$ac_ext
10810{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10811echo "${ECHO_T}$ac_header_preproc" >&6; }
10812
10813# So? What about this header?
10814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10815 yes:no: )
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10817echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10819echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10820 ac_header_preproc=yes
10821 ;;
10822 no:yes:* )
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10826echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10828echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10830echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10834echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10835 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010836## ------------------------------------ ##
10837## Report this to http://llvm.org/bugs/ ##
10838## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010839_ASBOX
10840 ) | sed "s/^/$as_me: WARNING: /" >&2
10841 ;;
10842esac
10843{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847else
10848 eval "$as_ac_Header=\$ac_header_preproc"
10849fi
10850ac_res=`eval echo '${'$as_ac_Header'}'`
10851 { echo "$as_me:$LINENO: result: $ac_res" >&5
10852echo "${ECHO_T}$ac_res" >&6; }
10853
10854fi
10855if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010856 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858_ACEOF
10859
10860fi
10861
10862done
10863
10864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010865{ echo "$as_me:$LINENO: checking for error_t" >&5
10866echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10867if test "${ac_cv_type_error_t+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870 cat >conftest.$ac_ext <<_ACEOF
10871/* confdefs.h. */
10872_ACEOF
10873cat confdefs.h >>conftest.$ac_ext
10874cat >>conftest.$ac_ext <<_ACEOF
10875/* end confdefs.h. */
10876#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877# include <argz.h>
10878#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010879
10880typedef error_t ac__type_new_;
10881int
10882main ()
10883{
10884if ((ac__type_new_ *) 0)
10885 return 0;
10886if (sizeof (ac__type_new_))
10887 return 0;
10888 ;
10889 return 0;
10890}
10891_ACEOF
10892rm -f conftest.$ac_objext
10893if { (ac_try="$ac_compile"
10894case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10897esac
10898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_compile") 2>conftest.er1
10900 ac_status=$?
10901 grep -v '^ *+' conftest.er1 >conftest.err
10902 rm -f conftest.er1
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10907 { (case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910esac
10911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_try") 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try='test -s conftest.$ac_objext'
10917 { (case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10920esac
10921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_try") 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; }; then
10926 ac_cv_type_error_t=yes
10927else
10928 echo "$as_me: failed program was:" >&5
10929sed 's/^/| /' conftest.$ac_ext >&5
10930
10931 ac_cv_type_error_t=no
10932fi
10933
10934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935fi
10936{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10937echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10938if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939
10940cat >>confdefs.h <<_ACEOF
10941#define HAVE_ERROR_T 1
10942_ACEOF
10943
10944
10945else
10946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010947cat >>confdefs.h <<\_ACEOF
10948#define error_t int
10949_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010950
10951fi
10952
10953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010954
10955
10956
10957
10958
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010959for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010960do
10961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10962{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10964if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10966else
10967 cat >conftest.$ac_ext <<_ACEOF
10968/* confdefs.h. */
10969_ACEOF
10970cat confdefs.h >>conftest.$ac_ext
10971cat >>conftest.$ac_ext <<_ACEOF
10972/* end confdefs.h. */
10973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10975#define $ac_func innocuous_$ac_func
10976
10977/* System header to define __stub macros and hopefully few prototypes,
10978 which can conflict with char $ac_func (); below.
10979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10980 <limits.h> exists even on freestanding compilers. */
10981
10982#ifdef __STDC__
10983# include <limits.h>
10984#else
10985# include <assert.h>
10986#endif
10987
10988#undef $ac_func
10989
10990/* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10993#ifdef __cplusplus
10994extern "C"
10995#endif
10996char $ac_func ();
10997/* The GNU C library defines this for functions which it implements
10998 to always fail with ENOSYS. Some functions are actually named
10999 something starting with __ and the normal name is an alias. */
11000#if defined __stub_$ac_func || defined __stub___$ac_func
11001choke me
11002#endif
11003
11004int
11005main ()
11006{
11007return $ac_func ();
11008 ;
11009 return 0;
11010}
11011_ACEOF
11012rm -f conftest.$ac_objext conftest$ac_exeext
11013if { (ac_try="$ac_link"
11014case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017esac
11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_link") 2>conftest.er1
11020 ac_status=$?
11021 grep -v '^ *+' conftest.er1 >conftest.err
11022 rm -f conftest.er1
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try='test -s conftest$ac_exeext'
11037 { (case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040esac
11041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_try") 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 eval "$as_ac_var=yes"
11047else
11048 echo "$as_me: failed program was:" >&5
11049sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 eval "$as_ac_var=no"
11052fi
11053
11054rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056fi
11057ac_res=`eval echo '${'$as_ac_var'}'`
11058 { echo "$as_me:$LINENO: result: $ac_res" >&5
11059echo "${ECHO_T}$ac_res" >&6; }
11060if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063_ACEOF
11064
11065fi
11066done
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011087
11088
11089
11090
11091
11092
11093
11094
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011095for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11096 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011097do
11098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104fi
11105ac_res=`eval echo '${'$as_ac_Header'}'`
11106 { echo "$as_me:$LINENO: result: $ac_res" >&5
11107echo "${ECHO_T}$ac_res" >&6; }
11108else
11109 # Is the header compilable?
11110{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11112cat >conftest.$ac_ext <<_ACEOF
11113/* confdefs.h. */
11114_ACEOF
11115cat confdefs.h >>conftest.$ac_ext
11116cat >>conftest.$ac_ext <<_ACEOF
11117/* end confdefs.h. */
11118$ac_includes_default
11119#include <$ac_header>
11120_ACEOF
11121rm -f conftest.$ac_objext
11122if { (ac_try="$ac_compile"
11123case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126esac
11127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
11135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11136 { (case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139esac
11140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_try") 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11149esac
11150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_header_compiler=yes
11156else
11157 echo "$as_me: failed program was:" >&5
11158sed 's/^/| /' conftest.$ac_ext >&5
11159
11160 ac_header_compiler=no
11161fi
11162
11163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11165echo "${ECHO_T}$ac_header_compiler" >&6; }
11166
11167# Is the header present?
11168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11170cat >conftest.$ac_ext <<_ACEOF
11171/* confdefs.h. */
11172_ACEOF
11173cat confdefs.h >>conftest.$ac_ext
11174cat >>conftest.$ac_ext <<_ACEOF
11175/* end confdefs.h. */
11176#include <$ac_header>
11177_ACEOF
11178if { (ac_try="$ac_cpp conftest.$ac_ext"
11179case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11182esac
11183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } >/dev/null; then
11191 if test -s conftest.err; then
11192 ac_cpp_err=$ac_c_preproc_warn_flag
11193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11194 else
11195 ac_cpp_err=
11196 fi
11197else
11198 ac_cpp_err=yes
11199fi
11200if test -z "$ac_cpp_err"; then
11201 ac_header_preproc=yes
11202else
11203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
11206 ac_header_preproc=no
11207fi
11208
11209rm -f conftest.err conftest.$ac_ext
11210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11211echo "${ECHO_T}$ac_header_preproc" >&6; }
11212
11213# So? What about this header?
11214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11215 yes:no: )
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11220 ac_header_preproc=yes
11221 ;;
11222 no:yes:* )
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11235 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011236## ------------------------------------ ##
11237## Report this to http://llvm.org/bugs/ ##
11238## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011239_ASBOX
11240 ) | sed "s/^/$as_me: WARNING: /" >&2
11241 ;;
11242esac
11243{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11247else
11248 eval "$as_ac_Header=\$ac_header_preproc"
11249fi
11250ac_res=`eval echo '${'$as_ac_Header'}'`
11251 { echo "$as_me:$LINENO: result: $ac_res" >&5
11252echo "${ECHO_T}$ac_res" >&6; }
11253
11254fi
11255if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011256 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011258_ACEOF
11259
11260fi
11261
11262done
11263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011264
11265
11266
11267
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011269do
11270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11276fi
11277ac_res=`eval echo '${'$as_ac_Header'}'`
11278 { echo "$as_me:$LINENO: result: $ac_res" >&5
11279echo "${ECHO_T}$ac_res" >&6; }
11280else
11281 # Is the header compilable?
11282{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11283echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11284cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290$ac_includes_default
11291#include <$ac_header>
11292_ACEOF
11293rm -f conftest.$ac_objext
11294if { (ac_try="$ac_compile"
11295case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11298esac
11299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300 (eval "$ac_compile") 2>conftest.er1
11301 ac_status=$?
11302 grep -v '^ *+' conftest.er1 >conftest.err
11303 rm -f conftest.er1
11304 cat conftest.err >&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11308 { (case "(($ac_try" in
11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310 *) ac_try_echo=$ac_try;;
11311esac
11312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313 (eval "$ac_try") 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest.$ac_objext'
11318 { (case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11321esac
11322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_try") 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 ac_header_compiler=yes
11328else
11329 echo "$as_me: failed program was:" >&5
11330sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 ac_header_compiler=no
11333fi
11334
11335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11336{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11337echo "${ECHO_T}$ac_header_compiler" >&6; }
11338
11339# Is the header present?
11340{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11341echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11342cat >conftest.$ac_ext <<_ACEOF
11343/* confdefs.h. */
11344_ACEOF
11345cat confdefs.h >>conftest.$ac_ext
11346cat >>conftest.$ac_ext <<_ACEOF
11347/* end confdefs.h. */
11348#include <$ac_header>
11349_ACEOF
11350if { (ac_try="$ac_cpp conftest.$ac_ext"
11351case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354esac
11355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } >/dev/null; then
11363 if test -s conftest.err; then
11364 ac_cpp_err=$ac_c_preproc_warn_flag
11365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11366 else
11367 ac_cpp_err=
11368 fi
11369else
11370 ac_cpp_err=yes
11371fi
11372if test -z "$ac_cpp_err"; then
11373 ac_header_preproc=yes
11374else
11375 echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 ac_header_preproc=no
11379fi
11380
11381rm -f conftest.err conftest.$ac_ext
11382{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11383echo "${ECHO_T}$ac_header_preproc" >&6; }
11384
11385# So? What about this header?
11386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11387 yes:no: )
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11391echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11392 ac_header_preproc=yes
11393 ;;
11394 no:yes:* )
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11398echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11400echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11402echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11406echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11407 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011408## ------------------------------------ ##
11409## Report this to http://llvm.org/bugs/ ##
11410## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011411_ASBOX
11412 ) | sed "s/^/$as_me: WARNING: /" >&2
11413 ;;
11414esac
11415{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419else
11420 eval "$as_ac_Header=\$ac_header_preproc"
11421fi
11422ac_res=`eval echo '${'$as_ac_Header'}'`
11423 { echo "$as_me:$LINENO: result: $ac_res" >&5
11424echo "${ECHO_T}$ac_res" >&6; }
11425
11426fi
11427if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011428 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011430_ACEOF
11431
11432fi
11433
11434done
11435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011436
11437
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011438for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011439do
11440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446fi
11447ac_res=`eval echo '${'$as_ac_Header'}'`
11448 { echo "$as_me:$LINENO: result: $ac_res" >&5
11449echo "${ECHO_T}$ac_res" >&6; }
11450else
11451 # Is the header compilable?
11452{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11454cat >conftest.$ac_ext <<_ACEOF
11455/* confdefs.h. */
11456_ACEOF
11457cat confdefs.h >>conftest.$ac_ext
11458cat >>conftest.$ac_ext <<_ACEOF
11459/* end confdefs.h. */
11460$ac_includes_default
11461#include <$ac_header>
11462_ACEOF
11463rm -f conftest.$ac_objext
11464if { (ac_try="$ac_compile"
11465case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468esac
11469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_compile") 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
11477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11478 { (case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481esac
11482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_try") 2>&5
11484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; } &&
11487 { ac_try='test -s conftest.$ac_objext'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_header_compiler=yes
11498else
11499 echo "$as_me: failed program was:" >&5
11500sed 's/^/| /' conftest.$ac_ext >&5
11501
11502 ac_header_compiler=no
11503fi
11504
11505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11506{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11507echo "${ECHO_T}$ac_header_compiler" >&6; }
11508
11509# Is the header present?
11510{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11512cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h. */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h. */
11518#include <$ac_header>
11519_ACEOF
11520if { (ac_try="$ac_cpp conftest.$ac_ext"
11521case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11524esac
11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11527 ac_status=$?
11528 grep -v '^ *+' conftest.er1 >conftest.err
11529 rm -f conftest.er1
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } >/dev/null; then
11533 if test -s conftest.err; then
11534 ac_cpp_err=$ac_c_preproc_warn_flag
11535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11536 else
11537 ac_cpp_err=
11538 fi
11539else
11540 ac_cpp_err=yes
11541fi
11542if test -z "$ac_cpp_err"; then
11543 ac_header_preproc=yes
11544else
11545 echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548 ac_header_preproc=no
11549fi
11550
11551rm -f conftest.err conftest.$ac_ext
11552{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11553echo "${ECHO_T}$ac_header_preproc" >&6; }
11554
11555# So? What about this header?
11556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11557 yes:no: )
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11559echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11561echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11562 ac_header_preproc=yes
11563 ;;
11564 no:yes:* )
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11566echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11568echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11570echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11572echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11576echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11577 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011578## ------------------------------------ ##
11579## Report this to http://llvm.org/bugs/ ##
11580## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011581_ASBOX
11582 ) | sed "s/^/$as_me: WARNING: /" >&2
11583 ;;
11584esac
11585{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11589else
11590 eval "$as_ac_Header=\$ac_header_preproc"
11591fi
11592ac_res=`eval echo '${'$as_ac_Header'}'`
11593 { echo "$as_me:$LINENO: result: $ac_res" >&5
11594echo "${ECHO_T}$ac_res" >&6; }
11595
11596fi
11597if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011598 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600_ACEOF
11601 break
11602fi
11603
11604done
11605
11606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011607
11608
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011609for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011610do
11611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616else
11617 cat >conftest.$ac_ext <<_ACEOF
11618/* confdefs.h. */
11619_ACEOF
11620cat confdefs.h >>conftest.$ac_ext
11621cat >>conftest.$ac_ext <<_ACEOF
11622/* end confdefs.h. */
11623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11625#define $ac_func innocuous_$ac_func
11626
11627/* System header to define __stub macros and hopefully few prototypes,
11628 which can conflict with char $ac_func (); below.
11629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11630 <limits.h> exists even on freestanding compilers. */
11631
11632#ifdef __STDC__
11633# include <limits.h>
11634#else
11635# include <assert.h>
11636#endif
11637
11638#undef $ac_func
11639
11640/* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11643#ifdef __cplusplus
11644extern "C"
11645#endif
11646char $ac_func ();
11647/* The GNU C library defines this for functions which it implements
11648 to always fail with ENOSYS. Some functions are actually named
11649 something starting with __ and the normal name is an alias. */
11650#if defined __stub_$ac_func || defined __stub___$ac_func
11651choke me
11652#endif
11653
11654int
11655main ()
11656{
11657return $ac_func ();
11658 ;
11659 return 0;
11660}
11661_ACEOF
11662rm -f conftest.$ac_objext conftest$ac_exeext
11663if { (ac_try="$ac_link"
11664case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11667esac
11668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_link") 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11680esac
11681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; } &&
11686 { ac_try='test -s conftest$ac_exeext'
11687 { (case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690esac
11691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_try") 2>&5
11693 ac_status=$?
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 eval "$as_ac_var=yes"
11697else
11698 echo "$as_me: failed program was:" >&5
11699sed 's/^/| /' conftest.$ac_ext >&5
11700
11701 eval "$as_ac_var=no"
11702fi
11703
11704rm -f core conftest.err conftest.$ac_objext \
11705 conftest$ac_exeext conftest.$ac_ext
11706fi
11707ac_res=`eval echo '${'$as_ac_var'}'`
11708 { echo "$as_me:$LINENO: result: $ac_res" >&5
11709echo "${ECHO_T}$ac_res" >&6; }
11710if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011713_ACEOF
11714 break
11715fi
11716done
11717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011718
11719
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011721do
11722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11723{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11725if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11727else
11728 cat >conftest.$ac_ext <<_ACEOF
11729/* confdefs.h. */
11730_ACEOF
11731cat confdefs.h >>conftest.$ac_ext
11732cat >>conftest.$ac_ext <<_ACEOF
11733/* end confdefs.h. */
11734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11736#define $ac_func innocuous_$ac_func
11737
11738/* System header to define __stub macros and hopefully few prototypes,
11739 which can conflict with char $ac_func (); below.
11740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11741 <limits.h> exists even on freestanding compilers. */
11742
11743#ifdef __STDC__
11744# include <limits.h>
11745#else
11746# include <assert.h>
11747#endif
11748
11749#undef $ac_func
11750
11751/* Override any GCC internal prototype to avoid an error.
11752 Use char because int might match the return type of a GCC
11753 builtin and then its argument prototype would still apply. */
11754#ifdef __cplusplus
11755extern "C"
11756#endif
11757char $ac_func ();
11758/* The GNU C library defines this for functions which it implements
11759 to always fail with ENOSYS. Some functions are actually named
11760 something starting with __ and the normal name is an alias. */
11761#if defined __stub_$ac_func || defined __stub___$ac_func
11762choke me
11763#endif
11764
11765int
11766main ()
11767{
11768return $ac_func ();
11769 ;
11770 return 0;
11771}
11772_ACEOF
11773rm -f conftest.$ac_objext conftest$ac_exeext
11774if { (ac_try="$ac_link"
11775case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11778esac
11779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_link") 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11788 { (case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11791esac
11792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_try") 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try='test -s conftest$ac_exeext'
11798 { (case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11801esac
11802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_try") 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 eval "$as_ac_var=yes"
11808else
11809 echo "$as_me: failed program was:" >&5
11810sed 's/^/| /' conftest.$ac_ext >&5
11811
11812 eval "$as_ac_var=no"
11813fi
11814
11815rm -f core conftest.err conftest.$ac_objext \
11816 conftest$ac_exeext conftest.$ac_ext
11817fi
11818ac_res=`eval echo '${'$as_ac_var'}'`
11819 { echo "$as_me:$LINENO: result: $ac_res" >&5
11820echo "${ECHO_T}$ac_res" >&6; }
11821if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824_ACEOF
11825 break
11826fi
11827done
11828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011829
11830
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011832do
11833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11838else
11839 cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h. */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h. */
11845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11847#define $ac_func innocuous_$ac_func
11848
11849/* System header to define __stub macros and hopefully few prototypes,
11850 which can conflict with char $ac_func (); below.
11851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11852 <limits.h> exists even on freestanding compilers. */
11853
11854#ifdef __STDC__
11855# include <limits.h>
11856#else
11857# include <assert.h>
11858#endif
11859
11860#undef $ac_func
11861
11862/* Override any GCC internal prototype to avoid an error.
11863 Use char because int might match the return type of a GCC
11864 builtin and then its argument prototype would still apply. */
11865#ifdef __cplusplus
11866extern "C"
11867#endif
11868char $ac_func ();
11869/* The GNU C library defines this for functions which it implements
11870 to always fail with ENOSYS. Some functions are actually named
11871 something starting with __ and the normal name is an alias. */
11872#if defined __stub_$ac_func || defined __stub___$ac_func
11873choke me
11874#endif
11875
11876int
11877main ()
11878{
11879return $ac_func ();
11880 ;
11881 return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext conftest$ac_exeext
11885if { (ac_try="$ac_link"
11886case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11889esac
11890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891 (eval "$ac_link") 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902esac
11903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; } &&
11908 { ac_try='test -s conftest$ac_exeext'
11909 { (case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912esac
11913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_try") 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 eval "$as_ac_var=yes"
11919else
11920 echo "$as_me: failed program was:" >&5
11921sed 's/^/| /' conftest.$ac_ext >&5
11922
11923 eval "$as_ac_var=no"
11924fi
11925
11926rm -f core conftest.err conftest.$ac_objext \
11927 conftest$ac_exeext conftest.$ac_ext
11928fi
11929ac_res=`eval echo '${'$as_ac_var'}'`
11930 { echo "$as_me:$LINENO: result: $ac_res" >&5
11931echo "${ECHO_T}$ac_res" >&6; }
11932if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935_ACEOF
11936 break
11937fi
11938done
11939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011940
11941
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011942for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011943do
11944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11945{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11947if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950 cat >conftest.$ac_ext <<_ACEOF
11951/* confdefs.h. */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h. */
11956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11958#define $ac_func innocuous_$ac_func
11959
11960/* System header to define __stub macros and hopefully few prototypes,
11961 which can conflict with char $ac_func (); below.
11962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11963 <limits.h> exists even on freestanding compilers. */
11964
11965#ifdef __STDC__
11966# include <limits.h>
11967#else
11968# include <assert.h>
11969#endif
11970
11971#undef $ac_func
11972
11973/* Override any GCC internal prototype to avoid an error.
11974 Use char because int might match the return type of a GCC
11975 builtin and then its argument prototype would still apply. */
11976#ifdef __cplusplus
11977extern "C"
11978#endif
11979char $ac_func ();
11980/* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983#if defined __stub_$ac_func || defined __stub___$ac_func
11984choke me
11985#endif
11986
11987int
11988main ()
11989{
11990return $ac_func ();
11991 ;
11992 return 0;
11993}
11994_ACEOF
11995rm -f conftest.$ac_objext conftest$ac_exeext
11996if { (ac_try="$ac_link"
11997case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12000esac
12001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_link") 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12010 { (case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013esac
12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_try") 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest$ac_exeext'
12020 { (case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12023esac
12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_try") 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 eval "$as_ac_var=yes"
12030else
12031 echo "$as_me: failed program was:" >&5
12032sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 eval "$as_ac_var=no"
12035fi
12036
12037rm -f core conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039fi
12040ac_res=`eval echo '${'$as_ac_var'}'`
12041 { echo "$as_me:$LINENO: result: $ac_res" >&5
12042echo "${ECHO_T}$ac_res" >&6; }
12043if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012044 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046_ACEOF
12047
12048fi
12049done
12050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012051
12052
12053
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012054for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012055do
12056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12057{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12059if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12061else
12062 cat >conftest.$ac_ext <<_ACEOF
12063/* confdefs.h. */
12064_ACEOF
12065cat confdefs.h >>conftest.$ac_ext
12066cat >>conftest.$ac_ext <<_ACEOF
12067/* end confdefs.h. */
12068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12070#define $ac_func innocuous_$ac_func
12071
12072/* System header to define __stub macros and hopefully few prototypes,
12073 which can conflict with char $ac_func (); below.
12074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075 <limits.h> exists even on freestanding compilers. */
12076
12077#ifdef __STDC__
12078# include <limits.h>
12079#else
12080# include <assert.h>
12081#endif
12082
12083#undef $ac_func
12084
12085/* Override any GCC internal prototype to avoid an error.
12086 Use char because int might match the return type of a GCC
12087 builtin and then its argument prototype would still apply. */
12088#ifdef __cplusplus
12089extern "C"
12090#endif
12091char $ac_func ();
12092/* The GNU C library defines this for functions which it implements
12093 to always fail with ENOSYS. Some functions are actually named
12094 something starting with __ and the normal name is an alias. */
12095#if defined __stub_$ac_func || defined __stub___$ac_func
12096choke me
12097#endif
12098
12099int
12100main ()
12101{
12102return $ac_func ();
12103 ;
12104 return 0;
12105}
12106_ACEOF
12107rm -f conftest.$ac_objext conftest$ac_exeext
12108if { (ac_try="$ac_link"
12109case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112esac
12113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_link") 2>conftest.er1
12115 ac_status=$?
12116 grep -v '^ *+' conftest.er1 >conftest.err
12117 rm -f conftest.er1
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12122 { (case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125esac
12126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_try") 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest$ac_exeext'
12132 { (case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12135esac
12136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_try") 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 eval "$as_ac_var=yes"
12142else
12143 echo "$as_me: failed program was:" >&5
12144sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 eval "$as_ac_var=no"
12147fi
12148
12149rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151fi
12152ac_res=`eval echo '${'$as_ac_var'}'`
12153 { echo "$as_me:$LINENO: result: $ac_res" >&5
12154echo "${ECHO_T}$ac_res" >&6; }
12155if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012156 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012158_ACEOF
12159
12160fi
12161done
12162
12163
Douglas Gregor01746742009-05-11 18:05:52 +000012164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012165{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12166echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012167
Reid Spencer86901802004-12-08 23:07:27 +000012168ICC=no
12169IXX=no
12170case $CC in
12171 icc*|icpc*)
12172 ICC=yes
12173 IXX=yes
12174 ;;
12175 *)
12176 ;;
12177esac
12178
Duraid Madina937c60a2006-02-15 07:57:42 +000012179if test "$GCC" != "yes" && test "$ICC" != "yes"
12180then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012181 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12182echo "$as_me: error: gcc|icc required but not found" >&2;}
12183 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012184fi
12185
12186if test "$GXX" != "yes" && test "$IXX" != "yes"
12187then
Eric Christopher73e36da2010-12-08 02:02:14 +000012188 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12189echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012190 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012191fi
12192
Reid Spencer86901802004-12-08 23:07:27 +000012193if test "$GCC" = "yes"
12194then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012195 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012196#if !defined(__GNUC__) || __GNUC__ < 3
12197#error Unsupported GCC version
12198#endif
12199
12200_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012201rm -f conftest.$ac_objext
12202if { (ac_try="$ac_compile"
12203case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12206esac
12207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_compile") 2>conftest.er1
12209 ac_status=$?
12210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216 { (case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12219esac
12220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_try") 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest.$ac_objext'
12226 { (case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229esac
12230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_try") 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012237 echo "$as_me: failed program was:" >&5
12238sed 's/^/| /' conftest.$ac_ext >&5
12239
12240 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12241echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12242 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012244
Chris Lattner399c7c72008-02-05 19:43:53 +000012245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012246fi
12247
12248if test -z "$llvm_cv_gnu_make_command"
12249then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012250 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12251echo "$as_me: error: GNU Make required but not found" >&2;}
12252 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012253fi
12254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012255{ echo "$as_me:$LINENO: result: ok" >&5
12256echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012258{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12259echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012260NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12261
12262NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012264{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12265echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012266
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012268
12269{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12270echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12271if test "${ac_cv_lib_m_sin+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012273else
12274 ac_check_lib_save_LIBS=$LIBS
12275LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012276cat >conftest.$ac_ext <<_ACEOF
12277/* confdefs.h. */
12278_ACEOF
12279cat confdefs.h >>conftest.$ac_ext
12280cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012281/* end confdefs.h. */
12282
Reid Spencera773bd52006-08-04 18:18:08 +000012283/* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012286#ifdef __cplusplus
12287extern "C"
12288#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012289char sin ();
12290int
12291main ()
12292{
Reid Spencera773bd52006-08-04 18:18:08 +000012293return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012294 ;
12295 return 0;
12296}
12297_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012298rm -f conftest.$ac_objext conftest$ac_exeext
12299if { (ac_try="$ac_link"
12300case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303esac
12304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_link") 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313 { (case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12316esac
12317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_try") 2>&5
12319 ac_status=$?
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; } &&
12322 { ac_try='test -s conftest$ac_exeext'
12323 { (case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12326esac
12327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_try") 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012332 ac_cv_lib_m_sin=yes
12333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012334 echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012339
Bill Wendlingebcceee2009-04-18 11:20:33 +000012340rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012341 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012342LIBS=$ac_check_lib_save_LIBS
12343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012344{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12345echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12346if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012347 cat >>confdefs.h <<_ACEOF
12348#define HAVE_LIBM 1
12349_ACEOF
12350
12351 LIBS="-lm $LIBS"
12352
12353fi
12354
Jeff Cohen28783c32007-01-12 18:22:38 +000012355if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012356
12357{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12358echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12359if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012361else
12362 ac_check_lib_save_LIBS=$LIBS
12363LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012364cat >conftest.$ac_ext <<_ACEOF
12365/* confdefs.h. */
12366_ACEOF
12367cat confdefs.h >>conftest.$ac_ext
12368cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012369/* end confdefs.h. */
12370
Reid Spencer48fdf912006-06-01 19:03:21 +000012371
Reid Spencer484fc8e2006-06-01 16:55:59 +000012372int
12373main ()
12374{
Reid Spencera773bd52006-08-04 18:18:08 +000012375return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012376 ;
12377 return 0;
12378}
12379_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012380rm -f conftest.$ac_objext conftest$ac_exeext
12381if { (ac_try="$ac_link"
12382case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12385esac
12386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387 (eval "$ac_link") 2>conftest.er1
12388 ac_status=$?
12389 grep -v '^ *+' conftest.er1 >conftest.err
12390 rm -f conftest.er1
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12395 { (case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398esac
12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_try") 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; } &&
12404 { ac_try='test -s conftest$ac_exeext'
12405 { (case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12408esac
12409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_try") 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012414 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012416 echo "$as_me: failed program was:" >&5
12417sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012421
Bill Wendlingebcceee2009-04-18 11:20:33 +000012422rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012423 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012424LIBS=$ac_check_lib_save_LIBS
12425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012426{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12427echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12428if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012429 cat >>confdefs.h <<_ACEOF
12430#define HAVE_LIBIMAGEHLP 1
12431_ACEOF
12432
12433 LIBS="-limagehlp $LIBS"
12434
12435fi
12436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012437
12438{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12439echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12440if test "${ac_cv_lib_psapi_main+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012442else
12443 ac_check_lib_save_LIBS=$LIBS
12444LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012445cat >conftest.$ac_ext <<_ACEOF
12446/* confdefs.h. */
12447_ACEOF
12448cat confdefs.h >>conftest.$ac_ext
12449cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012450/* end confdefs.h. */
12451
Reid Spencer48fdf912006-06-01 19:03:21 +000012452
Reid Spencer484fc8e2006-06-01 16:55:59 +000012453int
12454main ()
12455{
Reid Spencera773bd52006-08-04 18:18:08 +000012456return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012457 ;
12458 return 0;
12459}
12460_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012461rm -f conftest.$ac_objext conftest$ac_exeext
12462if { (ac_try="$ac_link"
12463case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466esac
12467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_link") 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12476 { (case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12479esac
12480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481 (eval "$ac_try") 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12489esac
12490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_try") 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012495 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012497 echo "$as_me: failed program was:" >&5
12498sed 's/^/| /' conftest.$ac_ext >&5
12499
12500 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012501fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012502
Bill Wendlingebcceee2009-04-18 11:20:33 +000012503rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012504 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012505LIBS=$ac_check_lib_save_LIBS
12506fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012507{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12508echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12509if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012510 cat >>confdefs.h <<_ACEOF
12511#define HAVE_LIBPSAPI 1
12512_ACEOF
12513
12514 LIBS="-lpsapi $LIBS"
12515
12516fi
12517
12518fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012520{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12521echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12522if test "${ac_cv_search_dlopen+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012524else
12525 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012526cat >conftest.$ac_ext <<_ACEOF
12527/* confdefs.h. */
12528_ACEOF
12529cat confdefs.h >>conftest.$ac_ext
12530cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012531/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012532
Reid Spencera773bd52006-08-04 18:18:08 +000012533/* Override any GCC internal prototype to avoid an error.
12534 Use char because int might match the return type of a GCC
12535 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012536#ifdef __cplusplus
12537extern "C"
12538#endif
John Criswell7a73b802003-06-30 21:59:07 +000012539char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012540int
12541main ()
12542{
Reid Spencera773bd52006-08-04 18:18:08 +000012543return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012544 ;
12545 return 0;
12546}
12547_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012548for ac_lib in '' dl; do
12549 if test -z "$ac_lib"; then
12550 ac_res="none required"
12551 else
12552 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012554 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012555 rm -f conftest.$ac_objext conftest$ac_exeext
12556if { (ac_try="$ac_link"
12557case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560esac
12561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_link") 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573esac
12574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; } &&
12579 { ac_try='test -s conftest$ac_exeext'
12580 { (case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583esac
12584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_try") 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012589 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012590else
12591 echo "$as_me: failed program was:" >&5
12592sed 's/^/| /' conftest.$ac_ext >&5
12593
12594
John Criswell7a73b802003-06-30 21:59:07 +000012595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012596
Bill Wendlingebcceee2009-04-18 11:20:33 +000012597rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012598 conftest$ac_exeext
12599 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012600 break
John Criswell7a73b802003-06-30 21:59:07 +000012601fi
Reid Spencera773bd52006-08-04 18:18:08 +000012602done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012603if test "${ac_cv_search_dlopen+set}" = set; then
12604 :
Reid Spencera773bd52006-08-04 18:18:08 +000012605else
12606 ac_cv_search_dlopen=no
12607fi
12608rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012609LIBS=$ac_func_search_save_LIBS
12610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012611{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12612echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012613ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012614if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012617cat >>confdefs.h <<\_ACEOF
12618#define HAVE_DLOPEN 1
12619_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012620
12621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012622 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12623echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012624fi
12625
12626
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012627if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012628 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12629echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12630if test "${ac_cv_search_ffi_call+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012632else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012633 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012634cat >conftest.$ac_ext <<_ACEOF
12635/* confdefs.h. */
12636_ACEOF
12637cat confdefs.h >>conftest.$ac_ext
12638cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012639/* end confdefs.h. */
12640
12641/* Override any GCC internal prototype to avoid an error.
12642 Use char because int might match the return type of a GCC
12643 builtin and then its argument prototype would still apply. */
12644#ifdef __cplusplus
12645extern "C"
12646#endif
12647char ffi_call ();
12648int
12649main ()
12650{
12651return ffi_call ();
12652 ;
12653 return 0;
12654}
12655_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012656for ac_lib in '' ffi; do
12657 if test -z "$ac_lib"; then
12658 ac_res="none required"
12659 else
12660 ac_res=-l$ac_lib
12661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12662 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012663 rm -f conftest.$ac_objext conftest$ac_exeext
12664if { (ac_try="$ac_link"
12665case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12668esac
12669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_link") 2>conftest.er1
12671 ac_status=$?
12672 grep -v '^ *+' conftest.er1 >conftest.err
12673 rm -f conftest.er1
12674 cat conftest.err >&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } &&
12677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12678 { (case "(($ac_try" in
12679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680 *) ac_try_echo=$ac_try;;
12681esac
12682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683 (eval "$ac_try") 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; } &&
12687 { ac_try='test -s conftest$ac_exeext'
12688 { (case "(($ac_try" in
12689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690 *) ac_try_echo=$ac_try;;
12691esac
12692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693 (eval "$ac_try") 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012697 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012698else
12699 echo "$as_me: failed program was:" >&5
12700sed 's/^/| /' conftest.$ac_ext >&5
12701
12702
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012703fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012704
Bill Wendlingebcceee2009-04-18 11:20:33 +000012705rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012706 conftest$ac_exeext
12707 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012708 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012709fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012710done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012711if test "${ac_cv_search_ffi_call+set}" = set; then
12712 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012713else
12714 ac_cv_search_ffi_call=no
12715fi
12716rm conftest.$ac_ext
12717LIBS=$ac_func_search_save_LIBS
12718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012719{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12720echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012721ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012722if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012725cat >>confdefs.h <<\_ACEOF
12726#define HAVE_FFI_CALL 1
12727_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012728
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012729else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012730 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12731echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12732 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012733fi
12734
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012735fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012737{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12738echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12739if test "${ac_cv_search_mallinfo+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012741else
12742 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012743cat >conftest.$ac_ext <<_ACEOF
12744/* confdefs.h. */
12745_ACEOF
12746cat confdefs.h >>conftest.$ac_ext
12747cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012748/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012749
Reid Spencera773bd52006-08-04 18:18:08 +000012750/* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012753#ifdef __cplusplus
12754extern "C"
12755#endif
John Criswell7a73b802003-06-30 21:59:07 +000012756char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012757int
12758main ()
12759{
Reid Spencera773bd52006-08-04 18:18:08 +000012760return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012761 ;
12762 return 0;
12763}
12764_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012765for ac_lib in '' malloc; do
12766 if test -z "$ac_lib"; then
12767 ac_res="none required"
12768 else
12769 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012771 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012772 rm -f conftest.$ac_objext conftest$ac_exeext
12773if { (ac_try="$ac_link"
12774case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777esac
12778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_link") 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790esac
12791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_try") 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12800esac
12801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_try") 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012806 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012807else
12808 echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811
John Criswell7a73b802003-06-30 21:59:07 +000012812fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012813
Bill Wendlingebcceee2009-04-18 11:20:33 +000012814rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012815 conftest$ac_exeext
12816 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012817 break
John Criswell7a73b802003-06-30 21:59:07 +000012818fi
Reid Spencera773bd52006-08-04 18:18:08 +000012819done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012820if test "${ac_cv_search_mallinfo+set}" = set; then
12821 :
Reid Spencera773bd52006-08-04 18:18:08 +000012822else
12823 ac_cv_search_mallinfo=no
12824fi
12825rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012826LIBS=$ac_func_search_save_LIBS
12827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12829echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012830ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012831if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012834cat >>confdefs.h <<\_ACEOF
12835#define HAVE_MALLINFO 1
12836_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012837
12838fi
12839
12840
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012841if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012842
12843{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12844echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12845if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012847else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012848 ac_check_lib_save_LIBS=$LIBS
12849LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012850cat >conftest.$ac_ext <<_ACEOF
12851/* confdefs.h. */
12852_ACEOF
12853cat confdefs.h >>conftest.$ac_ext
12854cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012855/* end confdefs.h. */
12856
Reid Spencera773bd52006-08-04 18:18:08 +000012857/* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012860#ifdef __cplusplus
12861extern "C"
12862#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012863char pthread_mutex_init ();
12864int
12865main ()
12866{
Reid Spencera773bd52006-08-04 18:18:08 +000012867return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012868 ;
12869 return 0;
12870}
12871_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012872rm -f conftest.$ac_objext conftest$ac_exeext
12873if { (ac_try="$ac_link"
12874case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877esac
12878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_link") 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887 { (case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890esac
12891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_try") 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; } &&
12896 { ac_try='test -s conftest$ac_exeext'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900esac
12901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012906 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012907else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012908 echo "$as_me: failed program was:" >&5
12909sed 's/^/| /' conftest.$ac_ext >&5
12910
12911 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012913
Bill Wendlingebcceee2009-04-18 11:20:33 +000012914rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012915 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012916LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012917fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012918{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12919echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12920if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012921 cat >>confdefs.h <<_ACEOF
12922#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012923_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012924
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012925 LIBS="-lpthread $LIBS"
12926
Reid Spencer22177fe2005-07-12 15:24:20 +000012927fi
12928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012929 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12930echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12931if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012933else
12934 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012935cat >conftest.$ac_ext <<_ACEOF
12936/* confdefs.h. */
12937_ACEOF
12938cat confdefs.h >>conftest.$ac_ext
12939cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012940/* end confdefs.h. */
12941
Reid Spencera773bd52006-08-04 18:18:08 +000012942/* Override any GCC internal prototype to avoid an error.
12943 Use char because int might match the return type of a GCC
12944 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012945#ifdef __cplusplus
12946extern "C"
12947#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012948char pthread_mutex_lock ();
12949int
12950main ()
12951{
Reid Spencera773bd52006-08-04 18:18:08 +000012952return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012953 ;
12954 return 0;
12955}
12956_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012957for ac_lib in '' pthread; do
12958 if test -z "$ac_lib"; then
12959 ac_res="none required"
12960 else
12961 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012963 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012964 rm -f conftest.$ac_objext conftest$ac_exeext
12965if { (ac_try="$ac_link"
12966case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12969esac
12970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_link") 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12979 { (case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12982esac
12983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_try") 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; } &&
12988 { ac_try='test -s conftest$ac_exeext'
12989 { (case "(($ac_try" in
12990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991 *) ac_try_echo=$ac_try;;
12992esac
12993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994 (eval "$ac_try") 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012998 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012999else
13000 echo "$as_me: failed program was:" >&5
13001sed 's/^/| /' conftest.$ac_ext >&5
13002
13003
Brian Gaeke5f268f72003-12-05 19:29:01 +000013004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013005
Bill Wendlingebcceee2009-04-18 11:20:33 +000013006rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013007 conftest$ac_exeext
13008 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013009 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013010fi
Reid Spencera773bd52006-08-04 18:18:08 +000013011done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013012if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13013 :
Reid Spencera773bd52006-08-04 18:18:08 +000013014else
13015 ac_cv_search_pthread_mutex_lock=no
13016fi
13017rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013018LIBS=$ac_func_search_save_LIBS
13019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013020{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13021echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013022ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013023if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013026cat >>confdefs.h <<\_ACEOF
13027#define HAVE_PTHREAD_MUTEX_LOCK 1
13028_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013029
13030fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013032 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13033echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13034if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013036else
13037 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013038cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h. */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013043/* end confdefs.h. */
13044
13045/* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
13048#ifdef __cplusplus
13049extern "C"
13050#endif
13051char pthread_rwlock_init ();
13052int
13053main ()
13054{
13055return pthread_rwlock_init ();
13056 ;
13057 return 0;
13058}
13059_ACEOF
13060for ac_lib in '' pthread; do
13061 if test -z "$ac_lib"; then
13062 ac_res="none required"
13063 else
13064 ac_res=-l$ac_lib
13065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13066 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013067 rm -f conftest.$ac_objext conftest$ac_exeext
13068if { (ac_try="$ac_link"
13069case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072esac
13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_link") 2>conftest.er1
13075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } &&
13081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13082 { (case "(($ac_try" in
13083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13084 *) ac_try_echo=$ac_try;;
13085esac
13086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13087 (eval "$ac_try") 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; } &&
13091 { ac_try='test -s conftest$ac_exeext'
13092 { (case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095esac
13096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_try") 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013101 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013102else
13103 echo "$as_me: failed program was:" >&5
13104sed 's/^/| /' conftest.$ac_ext >&5
13105
13106
Owen Andersonde8aed22009-06-16 18:20:20 +000013107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013108
Owen Andersonde8aed22009-06-16 18:20:20 +000013109rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110 conftest$ac_exeext
13111 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013112 break
13113fi
13114done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013115if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13116 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013117else
13118 ac_cv_search_pthread_rwlock_init=no
13119fi
13120rm conftest.$ac_ext
13121LIBS=$ac_func_search_save_LIBS
13122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013123{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13124echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013125ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013126if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013129cat >>confdefs.h <<\_ACEOF
13130#define HAVE_PTHREAD_RWLOCK_INIT 1
13131_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013132
13133fi
13134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013135 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13136echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13137if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013139else
13140 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013141cat >conftest.$ac_ext <<_ACEOF
13142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013146/* end confdefs.h. */
13147
13148/* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13151#ifdef __cplusplus
13152extern "C"
13153#endif
13154char pthread_getspecific ();
13155int
13156main ()
13157{
13158return pthread_getspecific ();
13159 ;
13160 return 0;
13161}
13162_ACEOF
13163for ac_lib in '' pthread; do
13164 if test -z "$ac_lib"; then
13165 ac_res="none required"
13166 else
13167 ac_res=-l$ac_lib
13168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13169 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013170 rm -f conftest.$ac_objext conftest$ac_exeext
13171if { (ac_try="$ac_link"
13172case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175esac
13176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_link") 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } &&
13184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13188esac
13189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try='test -s conftest$ac_exeext'
13195 { (case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_try") 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013204 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013205else
13206 echo "$as_me: failed program was:" >&5
13207sed 's/^/| /' conftest.$ac_ext >&5
13208
13209
Owen Anderson27fcfe12009-06-25 23:10:26 +000013210fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211
Owen Anderson27fcfe12009-06-25 23:10:26 +000013212rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013213 conftest$ac_exeext
13214 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013215 break
13216fi
13217done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013218if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13219 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013220else
13221 ac_cv_search_pthread_getspecific=no
13222fi
13223rm conftest.$ac_ext
13224LIBS=$ac_func_search_save_LIBS
13225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013226{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13227echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013228ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013229if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013232cat >>confdefs.h <<\_ACEOF
13233#define HAVE_PTHREAD_GETSPECIFIC 1
13234_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013235
13236fi
13237
Reid Spencer0a262ba2005-08-24 10:07:20 +000013238fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013239
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013240
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013241# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013242if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013243 withval=$with_udis86;
13244 USE_UDIS86=1
13245
13246 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013247 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013248 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13249 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013250
13251{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13252echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13253if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013255else
13256 ac_check_lib_save_LIBS=$LIBS
13257LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013258cat >conftest.$ac_ext <<_ACEOF
13259/* confdefs.h. */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013263/* end confdefs.h. */
13264
13265/* Override any GCC internal prototype to avoid an error.
13266 Use char because int might match the return type of a GCC
13267 builtin and then its argument prototype would still apply. */
13268#ifdef __cplusplus
13269extern "C"
13270#endif
13271char ud_init ();
13272int
13273main ()
13274{
13275return ud_init ();
13276 ;
13277 return 0;
13278}
13279_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013280rm -f conftest.$ac_objext conftest$ac_exeext
13281if { (ac_try="$ac_link"
13282case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13285esac
13286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_link") 2>conftest.er1
13288 ac_status=$?
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13295 { (case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13298esac
13299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_try") 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest$ac_exeext'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308esac
13309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_try") 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013314 ac_cv_lib_udis86_ud_init=yes
13315else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013316 echo "$as_me: failed program was:" >&5
13317sed 's/^/| /' conftest.$ac_ext >&5
13318
13319 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013321
Bill Wendlingebcceee2009-04-18 11:20:33 +000013322rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013323 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013324LIBS=$ac_check_lib_save_LIBS
13325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013326{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13327echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13328if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013329 cat >>confdefs.h <<_ACEOF
13330#define HAVE_LIBUDIS86 1
13331_ACEOF
13332
13333 LIBS="-ludis86 $LIBS"
13334
13335else
13336
13337 echo "Error! You need to have libudis86 around."
13338 exit -1
13339
13340fi
13341
13342
13343else
13344 USE_UDIS86=0
13345
13346fi
13347
13348
13349cat >>confdefs.h <<_ACEOF
13350#define USE_UDIS86 $USE_UDIS86
13351_ACEOF
13352
13353
13354
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013355# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013356if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013357 withval=$with_oprofile;
13358 USE_OPROFILE=1
13359
13360 case "$withval" in
13361 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013362 no) llvm_cv_oppath=
13363 USE_OPROFILE=0
13364 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013365 *) llvm_cv_oppath="${withval}/lib/oprofile"
13366 CPPFLAGS="-I${withval}/include";;
13367 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013368 if test -n "$llvm_cv_oppath" ; then
13369 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013370 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13371echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13372if test "${ac_cv_search_bfd_init+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013374else
13375 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013376cat >conftest.$ac_ext <<_ACEOF
13377/* confdefs.h. */
13378_ACEOF
13379cat confdefs.h >>conftest.$ac_ext
13380cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013381/* end confdefs.h. */
13382
13383/* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13386#ifdef __cplusplus
13387extern "C"
13388#endif
13389char bfd_init ();
13390int
13391main ()
13392{
13393return bfd_init ();
13394 ;
13395 return 0;
13396}
13397_ACEOF
13398for ac_lib in '' bfd; do
13399 if test -z "$ac_lib"; then
13400 ac_res="none required"
13401 else
13402 ac_res=-l$ac_lib
13403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13404 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013405 rm -f conftest.$ac_objext conftest$ac_exeext
13406if { (ac_try="$ac_link"
13407case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410esac
13411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_link") 2>conftest.er1
13413 ac_status=$?
13414 grep -v '^ *+' conftest.er1 >conftest.err
13415 rm -f conftest.er1
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423esac
13424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13433esac
13434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_try") 2>&5
13436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013439 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013440else
13441 echo "$as_me: failed program was:" >&5
13442sed 's/^/| /' conftest.$ac_ext >&5
13443
13444
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013446
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013447rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013448 conftest$ac_exeext
13449 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013450 break
13451fi
13452done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013453if test "${ac_cv_search_bfd_init+set}" = set; then
13454 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013455else
13456 ac_cv_search_bfd_init=no
13457fi
13458rm conftest.$ac_ext
13459LIBS=$ac_func_search_save_LIBS
13460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013461{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13462echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013463ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013464if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13466
13467fi
13468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013469 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13470echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13471if test "${ac_cv_search_op_open_agent+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013473else
13474 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013475cat >conftest.$ac_ext <<_ACEOF
13476/* confdefs.h. */
13477_ACEOF
13478cat confdefs.h >>conftest.$ac_ext
13479cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013480/* end confdefs.h. */
13481
13482/* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13485#ifdef __cplusplus
13486extern "C"
13487#endif
13488char op_open_agent ();
13489int
13490main ()
13491{
13492return op_open_agent ();
13493 ;
13494 return 0;
13495}
13496_ACEOF
13497for ac_lib in '' opagent; do
13498 if test -z "$ac_lib"; then
13499 ac_res="none required"
13500 else
13501 ac_res=-l$ac_lib
13502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13503 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013504 rm -f conftest.$ac_objext conftest$ac_exeext
13505if { (ac_try="$ac_link"
13506case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509esac
13510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_link") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13519 { (case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522esac
13523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_try") 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest$ac_exeext'
13529 { (case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13532esac
13533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_try") 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013538 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013539else
13540 echo "$as_me: failed program was:" >&5
13541sed 's/^/| /' conftest.$ac_ext >&5
13542
13543
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013544fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013545
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013546rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013547 conftest$ac_exeext
13548 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013549 break
13550fi
13551done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013552if test "${ac_cv_search_op_open_agent+set}" = set; then
13553 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013554else
13555 ac_cv_search_op_open_agent=no
13556fi
13557rm conftest.$ac_ext
13558LIBS=$ac_func_search_save_LIBS
13559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013560{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13561echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013562ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013563if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13565
13566else
13567
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013568 echo "Error! You need to have libopagent around."
13569 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013570
13571fi
13572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013573 if test "${ac_cv_header_opagent_h+set}" = set; then
13574 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13575echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13576if test "${ac_cv_header_opagent_h+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578fi
13579{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13580echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13581else
13582 # Is the header compilable?
13583{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13584echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13585cat >conftest.$ac_ext <<_ACEOF
13586/* confdefs.h. */
13587_ACEOF
13588cat confdefs.h >>conftest.$ac_ext
13589cat >>conftest.$ac_ext <<_ACEOF
13590/* end confdefs.h. */
13591$ac_includes_default
13592#include <opagent.h>
13593_ACEOF
13594rm -f conftest.$ac_objext
13595if { (ac_try="$ac_compile"
13596case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13599esac
13600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_compile") 2>conftest.er1
13602 ac_status=$?
13603 grep -v '^ *+' conftest.er1 >conftest.err
13604 rm -f conftest.er1
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13609 { (case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612esac
13613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_try") 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13622esac
13623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_try") 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13628 ac_header_compiler=yes
13629else
13630 echo "$as_me: failed program was:" >&5
13631sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013633 ac_header_compiler=no
13634fi
13635
13636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13638echo "${ECHO_T}$ac_header_compiler" >&6; }
13639
13640# Is the header present?
13641{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13642echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13643cat >conftest.$ac_ext <<_ACEOF
13644/* confdefs.h. */
13645_ACEOF
13646cat confdefs.h >>conftest.$ac_ext
13647cat >>conftest.$ac_ext <<_ACEOF
13648/* end confdefs.h. */
13649#include <opagent.h>
13650_ACEOF
13651if { (ac_try="$ac_cpp conftest.$ac_ext"
13652case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13655esac
13656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13658 ac_status=$?
13659 grep -v '^ *+' conftest.er1 >conftest.err
13660 rm -f conftest.er1
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } >/dev/null; then
13664 if test -s conftest.err; then
13665 ac_cpp_err=$ac_c_preproc_warn_flag
13666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13667 else
13668 ac_cpp_err=
13669 fi
13670else
13671 ac_cpp_err=yes
13672fi
13673if test -z "$ac_cpp_err"; then
13674 ac_header_preproc=yes
13675else
13676 echo "$as_me: failed program was:" >&5
13677sed 's/^/| /' conftest.$ac_ext >&5
13678
13679 ac_header_preproc=no
13680fi
13681
13682rm -f conftest.err conftest.$ac_ext
13683{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13684echo "${ECHO_T}$ac_header_preproc" >&6; }
13685
13686# So? What about this header?
13687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13688 yes:no: )
13689 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13690echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13692echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13693 ac_header_preproc=yes
13694 ;;
13695 no:yes:* )
13696 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13697echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13698 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13699echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13700 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13701echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13702 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13703echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13704 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13705echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13706 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13707echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13708 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013709## ------------------------------------ ##
13710## Report this to http://llvm.org/bugs/ ##
13711## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013712_ASBOX
13713 ) | sed "s/^/$as_me: WARNING: /" >&2
13714 ;;
13715esac
13716{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13717echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13718if test "${ac_cv_header_opagent_h+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13720else
13721 ac_cv_header_opagent_h=$ac_header_preproc
13722fi
13723{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13724echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13725
13726fi
13727if test $ac_cv_header_opagent_h = yes; then
13728 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013729else
13730
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013731 echo "Error! You need to have opagent.h around."
13732 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013733
13734fi
13735
13736
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013737 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013738
13739else
13740
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013741 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013742
13743
13744fi
13745
13746
13747cat >>confdefs.h <<_ACEOF
13748#define USE_OPROFILE $USE_OPROFILE
13749_ACEOF
13750
13751
13752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753
13754
13755
13756
13757
Reid Spencer59473af2004-12-25 07:31:29 +000013758ac_header_dirent=no
13759for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013760 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13761{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13762echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013765else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013766 cat >conftest.$ac_ext <<_ACEOF
13767/* confdefs.h. */
13768_ACEOF
13769cat confdefs.h >>conftest.$ac_ext
13770cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013771/* end confdefs.h. */
13772#include <sys/types.h>
13773#include <$ac_hdr>
13774
13775int
13776main ()
13777{
13778if ((DIR *) 0)
13779return 0;
13780 ;
13781 return 0;
13782}
13783_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013784rm -f conftest.$ac_objext
13785if { (ac_try="$ac_compile"
13786case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13789esac
13790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_compile") 2>conftest.er1
13792 ac_status=$?
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802esac
13803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812esac
13813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013818 eval "$as_ac_Header=yes"
13819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013820 echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013824fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013825
Reid Spencera773bd52006-08-04 18:18:08 +000013826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013828ac_res=`eval echo '${'$as_ac_Header'}'`
13829 { echo "$as_me:$LINENO: result: $ac_res" >&5
13830echo "${ECHO_T}$ac_res" >&6; }
13831if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013832 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013833#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013834_ACEOF
13835
13836ac_header_dirent=$ac_hdr; break
13837fi
13838
13839done
13840# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13841if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013842 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13843echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13844if test "${ac_cv_search_opendir+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013846else
13847 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013848cat >conftest.$ac_ext <<_ACEOF
13849/* confdefs.h. */
13850_ACEOF
13851cat confdefs.h >>conftest.$ac_ext
13852cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013853/* end confdefs.h. */
13854
Reid Spencera773bd52006-08-04 18:18:08 +000013855/* Override any GCC internal prototype to avoid an error.
13856 Use char because int might match the return type of a GCC
13857 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013858#ifdef __cplusplus
13859extern "C"
13860#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013861char opendir ();
13862int
13863main ()
13864{
Reid Spencera773bd52006-08-04 18:18:08 +000013865return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013866 ;
13867 return 0;
13868}
13869_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013870for ac_lib in '' dir; do
13871 if test -z "$ac_lib"; then
13872 ac_res="none required"
13873 else
13874 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013876 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013877 rm -f conftest.$ac_objext conftest$ac_exeext
13878if { (ac_try="$ac_link"
13879case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13882esac
13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_link") 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13892 { (case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895esac
13896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_try") 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13905esac
13906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_try") 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013911 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013912else
13913 echo "$as_me: failed program was:" >&5
13914sed 's/^/| /' conftest.$ac_ext >&5
13915
13916
Reid Spencer59473af2004-12-25 07:31:29 +000013917fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013918
Bill Wendlingebcceee2009-04-18 11:20:33 +000013919rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920 conftest$ac_exeext
13921 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013922 break
Reid Spencer59473af2004-12-25 07:31:29 +000013923fi
Reid Spencera773bd52006-08-04 18:18:08 +000013924done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013925if test "${ac_cv_search_opendir+set}" = set; then
13926 :
Reid Spencera773bd52006-08-04 18:18:08 +000013927else
13928 ac_cv_search_opendir=no
13929fi
13930rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013931LIBS=$ac_func_search_save_LIBS
13932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013933{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13934echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013935ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013936if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013938
13939fi
13940
13941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013942 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13943echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13944if test "${ac_cv_search_opendir+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013946else
13947 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013948cat >conftest.$ac_ext <<_ACEOF
13949/* confdefs.h. */
13950_ACEOF
13951cat confdefs.h >>conftest.$ac_ext
13952cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013953/* end confdefs.h. */
13954
Reid Spencera773bd52006-08-04 18:18:08 +000013955/* Override any GCC internal prototype to avoid an error.
13956 Use char because int might match the return type of a GCC
13957 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013958#ifdef __cplusplus
13959extern "C"
13960#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013961char opendir ();
13962int
13963main ()
13964{
Reid Spencera773bd52006-08-04 18:18:08 +000013965return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013966 ;
13967 return 0;
13968}
13969_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013970for ac_lib in '' x; do
13971 if test -z "$ac_lib"; then
13972 ac_res="none required"
13973 else
13974 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013976 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013977 rm -f conftest.$ac_objext conftest$ac_exeext
13978if { (ac_try="$ac_link"
13979case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982esac
13983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_link") 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13992 { (case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13995esac
13996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997 (eval "$ac_try") 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try='test -s conftest$ac_exeext'
14002 { (case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14005esac
14006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_try") 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014011 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012else
14013 echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016
Reid Spencer59473af2004-12-25 07:31:29 +000014017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014018
Bill Wendlingebcceee2009-04-18 11:20:33 +000014019rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020 conftest$ac_exeext
14021 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014022 break
Reid Spencer59473af2004-12-25 07:31:29 +000014023fi
Reid Spencera773bd52006-08-04 18:18:08 +000014024done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014025if test "${ac_cv_search_opendir+set}" = set; then
14026 :
Reid Spencera773bd52006-08-04 18:18:08 +000014027else
14028 ac_cv_search_opendir=no
14029fi
14030rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014031LIBS=$ac_func_search_save_LIBS
14032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014033{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14034echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014035ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014036if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014038
14039fi
14040
14041fi
14042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014043{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14044echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14045if test "${ac_cv_header_mmap_anon+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014047else
14048 ac_ext=c
14049ac_cpp='$CPP $CPPFLAGS'
14050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14052ac_compiler_gnu=$ac_cv_c_compiler_gnu
14053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054 cat >conftest.$ac_ext <<_ACEOF
14055/* confdefs.h. */
14056_ACEOF
14057cat confdefs.h >>conftest.$ac_ext
14058cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014059/* end confdefs.h. */
14060#include <sys/mman.h>
14061#include <unistd.h>
14062#include <fcntl.h>
14063int
14064main ()
14065{
14066mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14067 ;
14068 return 0;
14069}
14070_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071rm -f conftest.$ac_objext
14072if { (ac_try="$ac_compile"
14073case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076esac
14077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_compile") 2>conftest.er1
14079 ac_status=$?
14080 grep -v '^ *+' conftest.er1 >conftest.err
14081 rm -f conftest.er1
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14086 { (case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14089esac
14090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_try") 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; } &&
14095 { ac_try='test -s conftest.$ac_objext'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099esac
14100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014105 ac_cv_header_mmap_anon=yes
14106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014107 echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
14109
14110 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014111fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112
Reid Spencera773bd52006-08-04 18:18:08 +000014113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014114 ac_ext=c
14115ac_cpp='$CPP $CPPFLAGS'
14116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14118ac_compiler_gnu=$ac_cv_c_compiler_gnu
14119
14120
14121fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014122{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14123echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014124if test "$ac_cv_header_mmap_anon" = yes; then
14125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126cat >>confdefs.h <<\_ACEOF
14127#define HAVE_MMAP_ANONYMOUS 1
14128_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014129
14130fi
14131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014132{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14133echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14134if test "${ac_cv_header_stat_broken+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014136else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014137 cat >conftest.$ac_ext <<_ACEOF
14138/* confdefs.h. */
14139_ACEOF
14140cat confdefs.h >>conftest.$ac_ext
14141cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014142/* end confdefs.h. */
14143#include <sys/types.h>
14144#include <sys/stat.h>
14145
Reid Spencera773bd52006-08-04 18:18:08 +000014146#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014147# if S_ISBLK (S_IFDIR)
14148You lose.
14149# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014150#endif
14151
Reid Spencera773bd52006-08-04 18:18:08 +000014152#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014153# if S_ISBLK (S_IFCHR)
14154You lose.
14155# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014156#endif
14157
Reid Spencera773bd52006-08-04 18:18:08 +000014158#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159# if S_ISLNK (S_IFREG)
14160You lose.
14161# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014162#endif
14163
Reid Spencera773bd52006-08-04 18:18:08 +000014164#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165# if S_ISSOCK (S_IFREG)
14166You lose.
14167# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014168#endif
14169
14170_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14172 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014173 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014174else
14175 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014177rm -f conftest*
14178
Reid Spencer59473af2004-12-25 07:31:29 +000014179fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014180{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14181echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014182if test $ac_cv_header_stat_broken = yes; then
14183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014184cat >>confdefs.h <<\_ACEOF
14185#define STAT_MACROS_BROKEN 1
14186_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014187
14188fi
14189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014190{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14191echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14192if test "${ac_cv_header_sys_wait_h+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014195 cat >conftest.$ac_ext <<_ACEOF
14196/* confdefs.h. */
14197_ACEOF
14198cat confdefs.h >>conftest.$ac_ext
14199cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014200/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014201#include <sys/types.h>
14202#include <sys/wait.h>
14203#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014204# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014205#endif
14206#ifndef WIFEXITED
14207# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14208#endif
14209
John Criswell7a73b802003-06-30 21:59:07 +000014210int
14211main ()
14212{
14213 int s;
14214 wait (&s);
14215 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14216 ;
14217 return 0;
14218}
14219_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220rm -f conftest.$ac_objext
14221if { (ac_try="$ac_compile"
14222case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225esac
14226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_compile") 2>conftest.er1
14228 ac_status=$?
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14235 { (case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14238esac
14239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_try") 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest.$ac_objext'
14245 { (case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14248esac
14249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_try") 2>&5
14251 ac_status=$?
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014254 ac_cv_header_sys_wait_h=yes
14255else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014256 echo "$as_me: failed program was:" >&5
14257sed 's/^/| /' conftest.$ac_ext >&5
14258
14259 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014261
Reid Spencera773bd52006-08-04 18:18:08 +000014262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014264{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14265echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014266if test $ac_cv_header_sys_wait_h = yes; then
14267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014268cat >>confdefs.h <<\_ACEOF
14269#define HAVE_SYS_WAIT_H 1
14270_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014271
14272fi
14273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014274{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14275echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14276if test "${ac_cv_header_time+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014278else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014279 cat >conftest.$ac_ext <<_ACEOF
14280/* confdefs.h. */
14281_ACEOF
14282cat confdefs.h >>conftest.$ac_ext
14283cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014284/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014285#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014286#include <sys/time.h>
14287#include <time.h>
14288
14289int
14290main ()
14291{
14292if ((struct tm *) 0)
14293return 0;
14294 ;
14295 return 0;
14296}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014297_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014298rm -f conftest.$ac_objext
14299if { (ac_try="$ac_compile"
14300case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303esac
14304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_compile") 2>conftest.er1
14306 ac_status=$?
14307 grep -v '^ *+' conftest.er1 >conftest.err
14308 rm -f conftest.er1
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14313 { (case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14316esac
14317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_try") 2>&5
14319 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest.$ac_objext'
14323 { (case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14326esac
14327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_try") 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014332 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334 echo "$as_me: failed program was:" >&5
14335sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014339
Reid Spencera773bd52006-08-04 18:18:08 +000014340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014342{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14343echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014344if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346cat >>confdefs.h <<\_ACEOF
14347#define TIME_WITH_SYS_TIME 1
14348_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014349
14350fi
14351
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014353
14354
14355
14356
14357
14358
Reid Spencer59473af2004-12-25 07:31:29 +000014359for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014360do
14361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14367fi
14368ac_res=`eval echo '${'$as_ac_Header'}'`
14369 { echo "$as_me:$LINENO: result: $ac_res" >&5
14370echo "${ECHO_T}$ac_res" >&6; }
14371else
14372 # Is the header compilable?
14373{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14375cat >conftest.$ac_ext <<_ACEOF
14376/* confdefs.h. */
14377_ACEOF
14378cat confdefs.h >>conftest.$ac_ext
14379cat >>conftest.$ac_ext <<_ACEOF
14380/* end confdefs.h. */
14381$ac_includes_default
14382#include <$ac_header>
14383_ACEOF
14384rm -f conftest.$ac_objext
14385if { (ac_try="$ac_compile"
14386case "(($ac_try" in
14387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388 *) ac_try_echo=$ac_try;;
14389esac
14390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391 (eval "$ac_compile") 2>conftest.er1
14392 ac_status=$?
14393 grep -v '^ *+' conftest.er1 >conftest.err
14394 rm -f conftest.er1
14395 cat conftest.err >&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } &&
14398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14399 { (case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14402esac
14403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404 (eval "$ac_try") 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; } &&
14408 { ac_try='test -s conftest.$ac_objext'
14409 { (case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14412esac
14413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_try") 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_header_compiler=yes
14419else
14420 echo "$as_me: failed program was:" >&5
14421sed 's/^/| /' conftest.$ac_ext >&5
14422
14423 ac_header_compiler=no
14424fi
14425
14426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14428echo "${ECHO_T}$ac_header_compiler" >&6; }
14429
14430# Is the header present?
14431{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14432echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14433cat >conftest.$ac_ext <<_ACEOF
14434/* confdefs.h. */
14435_ACEOF
14436cat confdefs.h >>conftest.$ac_ext
14437cat >>conftest.$ac_ext <<_ACEOF
14438/* end confdefs.h. */
14439#include <$ac_header>
14440_ACEOF
14441if { (ac_try="$ac_cpp conftest.$ac_ext"
14442case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445esac
14446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } >/dev/null; then
14454 if test -s conftest.err; then
14455 ac_cpp_err=$ac_c_preproc_warn_flag
14456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14457 else
14458 ac_cpp_err=
14459 fi
14460else
14461 ac_cpp_err=yes
14462fi
14463if test -z "$ac_cpp_err"; then
14464 ac_header_preproc=yes
14465else
14466 echo "$as_me: failed program was:" >&5
14467sed 's/^/| /' conftest.$ac_ext >&5
14468
14469 ac_header_preproc=no
14470fi
14471
14472rm -f conftest.err conftest.$ac_ext
14473{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14474echo "${ECHO_T}$ac_header_preproc" >&6; }
14475
14476# So? What about this header?
14477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14478 yes:no: )
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14480echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14482echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14483 ac_header_preproc=yes
14484 ;;
14485 no:yes:* )
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14487echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14489echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14491echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14493echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14497echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14498 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014499## ------------------------------------ ##
14500## Report this to http://llvm.org/bugs/ ##
14501## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014502_ASBOX
14503 ) | sed "s/^/$as_me: WARNING: /" >&2
14504 ;;
14505esac
14506{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510else
14511 eval "$as_ac_Header=\$ac_header_preproc"
14512fi
14513ac_res=`eval echo '${'$as_ac_Header'}'`
14514 { echo "$as_me:$LINENO: result: $ac_res" >&5
14515echo "${ECHO_T}$ac_res" >&6; }
14516
14517fi
14518if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014519 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014521_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014522
14523fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014524
Reid Spencer59473af2004-12-25 07:31:29 +000014525done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014527
14528
14529
14530
14531
14532
Douglas Gregor071d73d2009-05-18 17:21:34 +000014533for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014534do
14535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541fi
14542ac_res=`eval echo '${'$as_ac_Header'}'`
14543 { echo "$as_me:$LINENO: result: $ac_res" >&5
14544echo "${ECHO_T}$ac_res" >&6; }
14545else
14546 # Is the header compilable?
14547{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14549cat >conftest.$ac_ext <<_ACEOF
14550/* confdefs.h. */
14551_ACEOF
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h. */
14555$ac_includes_default
14556#include <$ac_header>
14557_ACEOF
14558rm -f conftest.$ac_objext
14559if { (ac_try="$ac_compile"
14560case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14563esac
14564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_compile") 2>conftest.er1
14566 ac_status=$?
14567 grep -v '^ *+' conftest.er1 >conftest.err
14568 rm -f conftest.er1
14569 cat conftest.err >&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14573 { (case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14576esac
14577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_try") 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14586esac
14587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588 (eval "$ac_try") 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 ac_header_compiler=yes
14593else
14594 echo "$as_me: failed program was:" >&5
14595sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 ac_header_compiler=no
14598fi
14599
14600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14602echo "${ECHO_T}$ac_header_compiler" >&6; }
14603
14604# Is the header present?
14605{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14607cat >conftest.$ac_ext <<_ACEOF
14608/* confdefs.h. */
14609_ACEOF
14610cat confdefs.h >>conftest.$ac_ext
14611cat >>conftest.$ac_ext <<_ACEOF
14612/* end confdefs.h. */
14613#include <$ac_header>
14614_ACEOF
14615if { (ac_try="$ac_cpp conftest.$ac_ext"
14616case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14619esac
14620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14622 ac_status=$?
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } >/dev/null; then
14628 if test -s conftest.err; then
14629 ac_cpp_err=$ac_c_preproc_warn_flag
14630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14631 else
14632 ac_cpp_err=
14633 fi
14634else
14635 ac_cpp_err=yes
14636fi
14637if test -z "$ac_cpp_err"; then
14638 ac_header_preproc=yes
14639else
14640 echo "$as_me: failed program was:" >&5
14641sed 's/^/| /' conftest.$ac_ext >&5
14642
14643 ac_header_preproc=no
14644fi
14645
14646rm -f conftest.err conftest.$ac_ext
14647{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14648echo "${ECHO_T}$ac_header_preproc" >&6; }
14649
14650# So? What about this header?
14651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14652 yes:no: )
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14657 ac_header_preproc=yes
14658 ;;
14659 no:yes:* )
14660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14672 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014673## ------------------------------------ ##
14674## Report this to http://llvm.org/bugs/ ##
14675## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014676_ASBOX
14677 ) | sed "s/^/$as_me: WARNING: /" >&2
14678 ;;
14679esac
14680{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684else
14685 eval "$as_ac_Header=\$ac_header_preproc"
14686fi
14687ac_res=`eval echo '${'$as_ac_Header'}'`
14688 { echo "$as_me:$LINENO: result: $ac_res" >&5
14689echo "${ECHO_T}$ac_res" >&6; }
14690
14691fi
14692if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014693 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014695_ACEOF
14696
14697fi
14698
14699done
14700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014701
14702
Douglas Gregor071d73d2009-05-18 17:21:34 +000014703for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014704do
14705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14710 echo $ECHO_N "(cached) $ECHO_C" >&6
14711fi
14712ac_res=`eval echo '${'$as_ac_Header'}'`
14713 { echo "$as_me:$LINENO: result: $ac_res" >&5
14714echo "${ECHO_T}$ac_res" >&6; }
14715else
14716 # Is the header compilable?
14717{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14719cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
14724/* end confdefs.h. */
14725$ac_includes_default
14726#include <$ac_header>
14727_ACEOF
14728rm -f conftest.$ac_objext
14729if { (ac_try="$ac_compile"
14730case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14733esac
14734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_compile") 2>conftest.er1
14736 ac_status=$?
14737 grep -v '^ *+' conftest.er1 >conftest.err
14738 rm -f conftest.er1
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14743 { (case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14746esac
14747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748 (eval "$ac_try") 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; } &&
14752 { ac_try='test -s conftest.$ac_objext'
14753 { (case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14756esac
14757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_try") 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 ac_header_compiler=yes
14763else
14764 echo "$as_me: failed program was:" >&5
14765sed 's/^/| /' conftest.$ac_ext >&5
14766
14767 ac_header_compiler=no
14768fi
14769
14770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14772echo "${ECHO_T}$ac_header_compiler" >&6; }
14773
14774# Is the header present?
14775{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14776echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14777cat >conftest.$ac_ext <<_ACEOF
14778/* confdefs.h. */
14779_ACEOF
14780cat confdefs.h >>conftest.$ac_ext
14781cat >>conftest.$ac_ext <<_ACEOF
14782/* end confdefs.h. */
14783#include <$ac_header>
14784_ACEOF
14785if { (ac_try="$ac_cpp conftest.$ac_ext"
14786case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14789esac
14790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14792 ac_status=$?
14793 grep -v '^ *+' conftest.er1 >conftest.err
14794 rm -f conftest.er1
14795 cat conftest.err >&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } >/dev/null; then
14798 if test -s conftest.err; then
14799 ac_cpp_err=$ac_c_preproc_warn_flag
14800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14801 else
14802 ac_cpp_err=
14803 fi
14804else
14805 ac_cpp_err=yes
14806fi
14807if test -z "$ac_cpp_err"; then
14808 ac_header_preproc=yes
14809else
14810 echo "$as_me: failed program was:" >&5
14811sed 's/^/| /' conftest.$ac_ext >&5
14812
14813 ac_header_preproc=no
14814fi
14815
14816rm -f conftest.err conftest.$ac_ext
14817{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14818echo "${ECHO_T}$ac_header_preproc" >&6; }
14819
14820# So? What about this header?
14821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14822 yes:no: )
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14824echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14826echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14827 ac_header_preproc=yes
14828 ;;
14829 no:yes:* )
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14831echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14833echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14835echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14837echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14839echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14841echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14842 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014843## ------------------------------------ ##
14844## Report this to http://llvm.org/bugs/ ##
14845## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014846_ASBOX
14847 ) | sed "s/^/$as_me: WARNING: /" >&2
14848 ;;
14849esac
14850{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14854else
14855 eval "$as_ac_Header=\$ac_header_preproc"
14856fi
14857ac_res=`eval echo '${'$as_ac_Header'}'`
14858 { echo "$as_me:$LINENO: result: $ac_res" >&5
14859echo "${ECHO_T}$ac_res" >&6; }
14860
14861fi
14862if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014863 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014865_ACEOF
14866
14867fi
14868
14869done
Reid Spencer59473af2004-12-25 07:31:29 +000014870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014871
14872
14873
14874
Daniel Dunbar3e462932011-02-03 02:40:02 +000014875
14876for 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 +000014877do
14878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14884fi
14885ac_res=`eval echo '${'$as_ac_Header'}'`
14886 { echo "$as_me:$LINENO: result: $ac_res" >&5
14887echo "${ECHO_T}$ac_res" >&6; }
14888else
14889 # Is the header compilable?
14890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14892cat >conftest.$ac_ext <<_ACEOF
14893/* confdefs.h. */
14894_ACEOF
14895cat confdefs.h >>conftest.$ac_ext
14896cat >>conftest.$ac_ext <<_ACEOF
14897/* end confdefs.h. */
14898$ac_includes_default
14899#include <$ac_header>
14900_ACEOF
14901rm -f conftest.$ac_objext
14902if { (ac_try="$ac_compile"
14903case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14906esac
14907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_compile") 2>conftest.er1
14909 ac_status=$?
14910 grep -v '^ *+' conftest.er1 >conftest.err
14911 rm -f conftest.er1
14912 cat conftest.err >&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14916 { (case "(($ac_try" in
14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918 *) ac_try_echo=$ac_try;;
14919esac
14920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921 (eval "$ac_try") 2>&5
14922 ac_status=$?
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; } &&
14925 { ac_try='test -s conftest.$ac_objext'
14926 { (case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14929esac
14930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_try") 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_header_compiler=yes
14936else
14937 echo "$as_me: failed program was:" >&5
14938sed 's/^/| /' conftest.$ac_ext >&5
14939
14940 ac_header_compiler=no
14941fi
14942
14943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14945echo "${ECHO_T}$ac_header_compiler" >&6; }
14946
14947# Is the header present?
14948{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14950cat >conftest.$ac_ext <<_ACEOF
14951/* confdefs.h. */
14952_ACEOF
14953cat confdefs.h >>conftest.$ac_ext
14954cat >>conftest.$ac_ext <<_ACEOF
14955/* end confdefs.h. */
14956#include <$ac_header>
14957_ACEOF
14958if { (ac_try="$ac_cpp conftest.$ac_ext"
14959case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14962esac
14963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14965 ac_status=$?
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } >/dev/null; then
14971 if test -s conftest.err; then
14972 ac_cpp_err=$ac_c_preproc_warn_flag
14973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14974 else
14975 ac_cpp_err=
14976 fi
14977else
14978 ac_cpp_err=yes
14979fi
14980if test -z "$ac_cpp_err"; then
14981 ac_header_preproc=yes
14982else
14983 echo "$as_me: failed program was:" >&5
14984sed 's/^/| /' conftest.$ac_ext >&5
14985
14986 ac_header_preproc=no
14987fi
14988
14989rm -f conftest.err conftest.$ac_ext
14990{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14991echo "${ECHO_T}$ac_header_preproc" >&6; }
14992
14993# So? What about this header?
14994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14995 yes:no: )
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15000 ac_header_preproc=yes
15001 ;;
15002 no:yes:* )
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15015 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015016## ------------------------------------ ##
15017## Report this to http://llvm.org/bugs/ ##
15018## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015019_ASBOX
15020 ) | sed "s/^/$as_me: WARNING: /" >&2
15021 ;;
15022esac
15023{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15027else
15028 eval "$as_ac_Header=\$ac_header_preproc"
15029fi
15030ac_res=`eval echo '${'$as_ac_Header'}'`
15031 { echo "$as_me:$LINENO: result: $ac_res" >&5
15032echo "${ECHO_T}$ac_res" >&6; }
15033
15034fi
15035if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015036 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015038_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015039
15040fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015041
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015042done
15043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015044
15045
15046
15047
Douglas Gregor01746742009-05-11 18:05:52 +000015048for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015049do
15050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056fi
15057ac_res=`eval echo '${'$as_ac_Header'}'`
15058 { echo "$as_me:$LINENO: result: $ac_res" >&5
15059echo "${ECHO_T}$ac_res" >&6; }
15060else
15061 # Is the header compilable?
15062{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15064cat >conftest.$ac_ext <<_ACEOF
15065/* confdefs.h. */
15066_ACEOF
15067cat confdefs.h >>conftest.$ac_ext
15068cat >>conftest.$ac_ext <<_ACEOF
15069/* end confdefs.h. */
15070$ac_includes_default
15071#include <$ac_header>
15072_ACEOF
15073rm -f conftest.$ac_objext
15074if { (ac_try="$ac_compile"
15075case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15078esac
15079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_compile") 2>conftest.er1
15081 ac_status=$?
15082 grep -v '^ *+' conftest.er1 >conftest.err
15083 rm -f conftest.er1
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
15087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15088 { (case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091esac
15092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_try") 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest.$ac_objext'
15098 { (case "(($ac_try" in
15099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100 *) ac_try_echo=$ac_try;;
15101esac
15102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15103 (eval "$ac_try") 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15107 ac_header_compiler=yes
15108else
15109 echo "$as_me: failed program was:" >&5
15110sed 's/^/| /' conftest.$ac_ext >&5
15111
15112 ac_header_compiler=no
15113fi
15114
15115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15117echo "${ECHO_T}$ac_header_compiler" >&6; }
15118
15119# Is the header present?
15120{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15122cat >conftest.$ac_ext <<_ACEOF
15123/* confdefs.h. */
15124_ACEOF
15125cat confdefs.h >>conftest.$ac_ext
15126cat >>conftest.$ac_ext <<_ACEOF
15127/* end confdefs.h. */
15128#include <$ac_header>
15129_ACEOF
15130if { (ac_try="$ac_cpp conftest.$ac_ext"
15131case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134esac
15135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } >/dev/null; then
15143 if test -s conftest.err; then
15144 ac_cpp_err=$ac_c_preproc_warn_flag
15145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15146 else
15147 ac_cpp_err=
15148 fi
15149else
15150 ac_cpp_err=yes
15151fi
15152if test -z "$ac_cpp_err"; then
15153 ac_header_preproc=yes
15154else
15155 echo "$as_me: failed program was:" >&5
15156sed 's/^/| /' conftest.$ac_ext >&5
15157
15158 ac_header_preproc=no
15159fi
15160
15161rm -f conftest.err conftest.$ac_ext
15162{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15163echo "${ECHO_T}$ac_header_preproc" >&6; }
15164
15165# So? What about this header?
15166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15167 yes:no: )
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15169echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15171echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15172 ac_header_preproc=yes
15173 ;;
15174 no:yes:* )
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15176echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15178echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15180echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15182echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15186echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15187 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015188## ------------------------------------ ##
15189## Report this to http://llvm.org/bugs/ ##
15190## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015191_ASBOX
15192 ) | sed "s/^/$as_me: WARNING: /" >&2
15193 ;;
15194esac
15195{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199else
15200 eval "$as_ac_Header=\$ac_header_preproc"
15201fi
15202ac_res=`eval echo '${'$as_ac_Header'}'`
15203 { echo "$as_me:$LINENO: result: $ac_res" >&5
15204echo "${ECHO_T}$ac_res" >&6; }
15205
15206fi
15207if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015208 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015210_ACEOF
15211
15212fi
15213
15214done
15215
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015216
15217for ac_header in valgrind/valgrind.h
15218do
15219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225fi
15226ac_res=`eval echo '${'$as_ac_Header'}'`
15227 { echo "$as_me:$LINENO: result: $ac_res" >&5
15228echo "${ECHO_T}$ac_res" >&6; }
15229else
15230 # Is the header compilable?
15231{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15233cat >conftest.$ac_ext <<_ACEOF
15234/* confdefs.h. */
15235_ACEOF
15236cat confdefs.h >>conftest.$ac_ext
15237cat >>conftest.$ac_ext <<_ACEOF
15238/* end confdefs.h. */
15239$ac_includes_default
15240#include <$ac_header>
15241_ACEOF
15242rm -f conftest.$ac_objext
15243if { (ac_try="$ac_compile"
15244case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15247esac
15248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_compile") 2>conftest.er1
15250 ac_status=$?
15251 grep -v '^ *+' conftest.er1 >conftest.err
15252 rm -f conftest.er1
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15257 { (case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15260esac
15261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_try") 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; } &&
15266 { ac_try='test -s conftest.$ac_objext'
15267 { (case "(($ac_try" in
15268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269 *) ac_try_echo=$ac_try;;
15270esac
15271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272 (eval "$ac_try") 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15276 ac_header_compiler=yes
15277else
15278 echo "$as_me: failed program was:" >&5
15279sed 's/^/| /' conftest.$ac_ext >&5
15280
15281 ac_header_compiler=no
15282fi
15283
15284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15286echo "${ECHO_T}$ac_header_compiler" >&6; }
15287
15288# Is the header present?
15289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15291cat >conftest.$ac_ext <<_ACEOF
15292/* confdefs.h. */
15293_ACEOF
15294cat confdefs.h >>conftest.$ac_ext
15295cat >>conftest.$ac_ext <<_ACEOF
15296/* end confdefs.h. */
15297#include <$ac_header>
15298_ACEOF
15299if { (ac_try="$ac_cpp conftest.$ac_ext"
15300case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15303esac
15304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15306 ac_status=$?
15307 grep -v '^ *+' conftest.er1 >conftest.err
15308 rm -f conftest.er1
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } >/dev/null; then
15312 if test -s conftest.err; then
15313 ac_cpp_err=$ac_c_preproc_warn_flag
15314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15315 else
15316 ac_cpp_err=
15317 fi
15318else
15319 ac_cpp_err=yes
15320fi
15321if test -z "$ac_cpp_err"; then
15322 ac_header_preproc=yes
15323else
15324 echo "$as_me: failed program was:" >&5
15325sed 's/^/| /' conftest.$ac_ext >&5
15326
15327 ac_header_preproc=no
15328fi
15329
15330rm -f conftest.err conftest.$ac_ext
15331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15332echo "${ECHO_T}$ac_header_preproc" >&6; }
15333
15334# So? What about this header?
15335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15336 yes:no: )
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15341 ac_header_preproc=yes
15342 ;;
15343 no:yes:* )
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15356 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015357## ------------------------------------ ##
15358## Report this to http://llvm.org/bugs/ ##
15359## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015360_ASBOX
15361 ) | sed "s/^/$as_me: WARNING: /" >&2
15362 ;;
15363esac
15364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368else
15369 eval "$as_ac_Header=\$ac_header_preproc"
15370fi
15371ac_res=`eval echo '${'$as_ac_Header'}'`
15372 { echo "$as_me:$LINENO: result: $ac_res" >&5
15373echo "${ECHO_T}$ac_res" >&6; }
15374
15375fi
15376if test `eval echo '${'$as_ac_Header'}'` = yes; then
15377 cat >>confdefs.h <<_ACEOF
15378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379_ACEOF
15380
15381fi
15382
15383done
15384
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015385
15386for ac_header in fenv.h
15387do
15388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394fi
15395ac_res=`eval echo '${'$as_ac_Header'}'`
15396 { echo "$as_me:$LINENO: result: $ac_res" >&5
15397echo "${ECHO_T}$ac_res" >&6; }
15398else
15399 # Is the header compilable?
15400{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15402cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */
15404_ACEOF
15405cat confdefs.h >>conftest.$ac_ext
15406cat >>conftest.$ac_ext <<_ACEOF
15407/* end confdefs.h. */
15408$ac_includes_default
15409#include <$ac_header>
15410_ACEOF
15411rm -f conftest.$ac_objext
15412if { (ac_try="$ac_compile"
15413case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15416esac
15417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_compile") 2>conftest.er1
15419 ac_status=$?
15420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15426 { (case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429esac
15430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_try") 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; } &&
15435 { ac_try='test -s conftest.$ac_objext'
15436 { (case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15439esac
15440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_try") 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_header_compiler=yes
15446else
15447 echo "$as_me: failed program was:" >&5
15448sed 's/^/| /' conftest.$ac_ext >&5
15449
15450 ac_header_compiler=no
15451fi
15452
15453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15455echo "${ECHO_T}$ac_header_compiler" >&6; }
15456
15457# Is the header present?
15458{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15460cat >conftest.$ac_ext <<_ACEOF
15461/* confdefs.h. */
15462_ACEOF
15463cat confdefs.h >>conftest.$ac_ext
15464cat >>conftest.$ac_ext <<_ACEOF
15465/* end confdefs.h. */
15466#include <$ac_header>
15467_ACEOF
15468if { (ac_try="$ac_cpp conftest.$ac_ext"
15469case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15472esac
15473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15475 ac_status=$?
15476 grep -v '^ *+' conftest.er1 >conftest.err
15477 rm -f conftest.er1
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } >/dev/null; then
15481 if test -s conftest.err; then
15482 ac_cpp_err=$ac_c_preproc_warn_flag
15483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15484 else
15485 ac_cpp_err=
15486 fi
15487else
15488 ac_cpp_err=yes
15489fi
15490if test -z "$ac_cpp_err"; then
15491 ac_header_preproc=yes
15492else
15493 echo "$as_me: failed program was:" >&5
15494sed 's/^/| /' conftest.$ac_ext >&5
15495
15496 ac_header_preproc=no
15497fi
15498
15499rm -f conftest.err conftest.$ac_ext
15500{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15501echo "${ECHO_T}$ac_header_preproc" >&6; }
15502
15503# So? What about this header?
15504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15505 yes:no: )
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15510 ac_header_preproc=yes
15511 ;;
15512 no:yes:* )
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15525 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015526## ------------------------------------ ##
15527## Report this to http://llvm.org/bugs/ ##
15528## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015529_ASBOX
15530 ) | sed "s/^/$as_me: WARNING: /" >&2
15531 ;;
15532esac
15533{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15537else
15538 eval "$as_ac_Header=\$ac_header_preproc"
15539fi
15540ac_res=`eval echo '${'$as_ac_Header'}'`
15541 { echo "$as_me:$LINENO: result: $ac_res" >&5
15542echo "${ECHO_T}$ac_res" >&6; }
15543
15544fi
15545if test `eval echo '${'$as_ac_Header'}'` = yes; then
15546 cat >>confdefs.h <<_ACEOF
15547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15548_ACEOF
15549
15550fi
15551
15552done
15553
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015554if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015555
15556for ac_header in pthread.h
15557do
15558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15564fi
15565ac_res=`eval echo '${'$as_ac_Header'}'`
15566 { echo "$as_me:$LINENO: result: $ac_res" >&5
15567echo "${ECHO_T}$ac_res" >&6; }
15568else
15569 # Is the header compilable?
15570{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15571echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15572cat >conftest.$ac_ext <<_ACEOF
15573/* confdefs.h. */
15574_ACEOF
15575cat confdefs.h >>conftest.$ac_ext
15576cat >>conftest.$ac_ext <<_ACEOF
15577/* end confdefs.h. */
15578$ac_includes_default
15579#include <$ac_header>
15580_ACEOF
15581rm -f conftest.$ac_objext
15582if { (ac_try="$ac_compile"
15583case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15586esac
15587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_compile") 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15596 { (case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15599esac
15600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_try") 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest.$ac_objext'
15606 { (case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15609esac
15610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_try") 2>&5
15612 ac_status=$?
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_header_compiler=yes
15616else
15617 echo "$as_me: failed program was:" >&5
15618sed 's/^/| /' conftest.$ac_ext >&5
15619
15620 ac_header_compiler=no
15621fi
15622
15623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15625echo "${ECHO_T}$ac_header_compiler" >&6; }
15626
15627# Is the header present?
15628{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15630cat >conftest.$ac_ext <<_ACEOF
15631/* confdefs.h. */
15632_ACEOF
15633cat confdefs.h >>conftest.$ac_ext
15634cat >>conftest.$ac_ext <<_ACEOF
15635/* end confdefs.h. */
15636#include <$ac_header>
15637_ACEOF
15638if { (ac_try="$ac_cpp conftest.$ac_ext"
15639case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15642esac
15643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } >/dev/null; then
15651 if test -s conftest.err; then
15652 ac_cpp_err=$ac_c_preproc_warn_flag
15653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15654 else
15655 ac_cpp_err=
15656 fi
15657else
15658 ac_cpp_err=yes
15659fi
15660if test -z "$ac_cpp_err"; then
15661 ac_header_preproc=yes
15662else
15663 echo "$as_me: failed program was:" >&5
15664sed 's/^/| /' conftest.$ac_ext >&5
15665
15666 ac_header_preproc=no
15667fi
15668
15669rm -f conftest.err conftest.$ac_ext
15670{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15671echo "${ECHO_T}$ac_header_preproc" >&6; }
15672
15673# So? What about this header?
15674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15675 yes:no: )
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15677echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15679echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15680 ac_header_preproc=yes
15681 ;;
15682 no:yes:* )
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15686echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15688echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15690echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15694echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15695 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015696## ------------------------------------ ##
15697## Report this to http://llvm.org/bugs/ ##
15698## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015699_ASBOX
15700 ) | sed "s/^/$as_me: WARNING: /" >&2
15701 ;;
15702esac
15703{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15707else
15708 eval "$as_ac_Header=\$ac_header_preproc"
15709fi
15710ac_res=`eval echo '${'$as_ac_Header'}'`
15711 { echo "$as_me:$LINENO: result: $ac_res" >&5
15712echo "${ECHO_T}$ac_res" >&6; }
15713
15714fi
15715if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015716 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015718_ACEOF
15719 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015720
15721else
15722 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015723
15724fi
15725
Reid Spencerbe3e4192007-08-17 05:45:26 +000015726done
Reid Spencer1000b732006-12-01 00:37:14 +000015727
15728else
15729 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015730
15731fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015732
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015733if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015734
15735
15736for ac_header in ffi.h ffi/ffi.h
15737do
15738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744fi
15745ac_res=`eval echo '${'$as_ac_Header'}'`
15746 { echo "$as_me:$LINENO: result: $ac_res" >&5
15747echo "${ECHO_T}$ac_res" >&6; }
15748else
15749 # Is the header compilable?
15750{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15752cat >conftest.$ac_ext <<_ACEOF
15753/* confdefs.h. */
15754_ACEOF
15755cat confdefs.h >>conftest.$ac_ext
15756cat >>conftest.$ac_ext <<_ACEOF
15757/* end confdefs.h. */
15758$ac_includes_default
15759#include <$ac_header>
15760_ACEOF
15761rm -f conftest.$ac_objext
15762if { (ac_try="$ac_compile"
15763case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15766esac
15767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_compile") 2>conftest.er1
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } &&
15775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15776 { (case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779esac
15780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_try") 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest.$ac_objext'
15786 { (case "(($ac_try" in
15787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788 *) ac_try_echo=$ac_try;;
15789esac
15790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791 (eval "$ac_try") 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_header_compiler=yes
15796else
15797 echo "$as_me: failed program was:" >&5
15798sed 's/^/| /' conftest.$ac_ext >&5
15799
15800 ac_header_compiler=no
15801fi
15802
15803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15805echo "${ECHO_T}$ac_header_compiler" >&6; }
15806
15807# Is the header present?
15808{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15810cat >conftest.$ac_ext <<_ACEOF
15811/* confdefs.h. */
15812_ACEOF
15813cat confdefs.h >>conftest.$ac_ext
15814cat >>conftest.$ac_ext <<_ACEOF
15815/* end confdefs.h. */
15816#include <$ac_header>
15817_ACEOF
15818if { (ac_try="$ac_cpp conftest.$ac_ext"
15819case "(($ac_try" in
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15822esac
15823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15825 ac_status=$?
15826 grep -v '^ *+' conftest.er1 >conftest.err
15827 rm -f conftest.er1
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } >/dev/null; then
15831 if test -s conftest.err; then
15832 ac_cpp_err=$ac_c_preproc_warn_flag
15833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15834 else
15835 ac_cpp_err=
15836 fi
15837else
15838 ac_cpp_err=yes
15839fi
15840if test -z "$ac_cpp_err"; then
15841 ac_header_preproc=yes
15842else
15843 echo "$as_me: failed program was:" >&5
15844sed 's/^/| /' conftest.$ac_ext >&5
15845
15846 ac_header_preproc=no
15847fi
15848
15849rm -f conftest.err conftest.$ac_ext
15850{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15851echo "${ECHO_T}$ac_header_preproc" >&6; }
15852
15853# So? What about this header?
15854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15855 yes:no: )
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15860 ac_header_preproc=yes
15861 ;;
15862 no:yes:* )
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15866echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15870echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15875 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015876## ------------------------------------ ##
15877## Report this to http://llvm.org/bugs/ ##
15878## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015879_ASBOX
15880 ) | sed "s/^/$as_me: WARNING: /" >&2
15881 ;;
15882esac
15883{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15887else
15888 eval "$as_ac_Header=\$ac_header_preproc"
15889fi
15890ac_res=`eval echo '${'$as_ac_Header'}'`
15891 { echo "$as_me:$LINENO: result: $ac_res" >&5
15892echo "${ECHO_T}$ac_res" >&6; }
15893
15894fi
15895if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015896 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015898_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015899
15900fi
15901
15902done
15903
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015904fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015905
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015906
Eric Christopher654dee42010-06-22 21:01:04 +000015907for ac_header in CrashReporterClient.h
15908do
15909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15915fi
15916ac_res=`eval echo '${'$as_ac_Header'}'`
15917 { echo "$as_me:$LINENO: result: $ac_res" >&5
15918echo "${ECHO_T}$ac_res" >&6; }
15919else
15920 # Is the header compilable?
15921{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15923cat >conftest.$ac_ext <<_ACEOF
15924/* confdefs.h. */
15925_ACEOF
15926cat confdefs.h >>conftest.$ac_ext
15927cat >>conftest.$ac_ext <<_ACEOF
15928/* end confdefs.h. */
15929$ac_includes_default
15930#include <$ac_header>
15931_ACEOF
15932rm -f conftest.$ac_objext
15933if { (ac_try="$ac_compile"
15934case "(($ac_try" in
15935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936 *) ac_try_echo=$ac_try;;
15937esac
15938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939 (eval "$ac_compile") 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15947 { (case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15950esac
15951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952 (eval "$ac_try") 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; } &&
15956 { ac_try='test -s conftest.$ac_objext'
15957 { (case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15960esac
15961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15962 (eval "$ac_try") 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 ac_header_compiler=yes
15967else
15968 echo "$as_me: failed program was:" >&5
15969sed 's/^/| /' conftest.$ac_ext >&5
15970
15971 ac_header_compiler=no
15972fi
15973
15974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15976echo "${ECHO_T}$ac_header_compiler" >&6; }
15977
15978# Is the header present?
15979{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15981cat >conftest.$ac_ext <<_ACEOF
15982/* confdefs.h. */
15983_ACEOF
15984cat confdefs.h >>conftest.$ac_ext
15985cat >>conftest.$ac_ext <<_ACEOF
15986/* end confdefs.h. */
15987#include <$ac_header>
15988_ACEOF
15989if { (ac_try="$ac_cpp conftest.$ac_ext"
15990case "(($ac_try" in
15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15993esac
15994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15996 ac_status=$?
15997 grep -v '^ *+' conftest.er1 >conftest.err
15998 rm -f conftest.er1
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } >/dev/null; then
16002 if test -s conftest.err; then
16003 ac_cpp_err=$ac_c_preproc_warn_flag
16004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16005 else
16006 ac_cpp_err=
16007 fi
16008else
16009 ac_cpp_err=yes
16010fi
16011if test -z "$ac_cpp_err"; then
16012 ac_header_preproc=yes
16013else
16014 echo "$as_me: failed program was:" >&5
16015sed 's/^/| /' conftest.$ac_ext >&5
16016
16017 ac_header_preproc=no
16018fi
16019
16020rm -f conftest.err conftest.$ac_ext
16021{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16022echo "${ECHO_T}$ac_header_preproc" >&6; }
16023
16024# So? What about this header?
16025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16026 yes:no: )
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16031 ac_header_preproc=yes
16032 ;;
16033 no:yes:* )
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16046 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016047## ------------------------------------ ##
16048## Report this to http://llvm.org/bugs/ ##
16049## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016050_ASBOX
16051 ) | sed "s/^/$as_me: WARNING: /" >&2
16052 ;;
16053esac
16054{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058else
16059 eval "$as_ac_Header=\$ac_header_preproc"
16060fi
16061ac_res=`eval echo '${'$as_ac_Header'}'`
16062 { echo "$as_me:$LINENO: result: $ac_res" >&5
16063echo "${ECHO_T}$ac_res" >&6; }
16064
16065fi
16066if test `eval echo '${'$as_ac_Header'}'` = yes; then
16067 cat >>confdefs.h <<_ACEOF
16068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16069_ACEOF
16070
16071fi
16072
16073done
16074
16075
Eric Christopher51e57132010-12-07 02:05:42 +000016076{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16077echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016078cat >conftest.$ac_ext <<_ACEOF
16079/* confdefs.h. */
16080_ACEOF
16081cat confdefs.h >>conftest.$ac_ext
16082cat >>conftest.$ac_ext <<_ACEOF
16083/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016084extern const char *__crashreporter_info__;
16085 int main() {
16086 __crashreporter_info__ = "test";
16087 return 0;
16088 }
Eric Christopher481d4022010-12-03 07:45:22 +000016089
Eric Christopher481d4022010-12-03 07:45:22 +000016090_ACEOF
16091rm -f conftest.$ac_objext conftest$ac_exeext
16092if { (ac_try="$ac_link"
16093case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16096esac
16097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_link") 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16106 { (case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16109esac
16110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_try") 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; } &&
16115 { ac_try='test -s conftest$ac_exeext'
16116 { (case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119esac
16120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_try") 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016125 { echo "$as_me:$LINENO: result: yes" >&5
16126echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016127
16128cat >>confdefs.h <<\_ACEOF
16129#define HAVE_CRASHREPORTER_INFO 1
16130_ACEOF
16131
Eric Christopher51e57132010-12-07 02:05:42 +000016132else
16133 echo "$as_me: failed program was:" >&5
16134sed 's/^/| /' conftest.$ac_ext >&5
16135
16136 { echo "$as_me:$LINENO: result: no" >&5
16137echo "${ECHO_T}no" >&6; }
16138
16139cat >>confdefs.h <<\_ACEOF
16140#define HAVE_CRASHREPORTER_INFO 0
16141_ACEOF
16142
Eric Christopher481d4022010-12-03 07:45:22 +000016143fi
Eric Christopher654dee42010-06-22 21:01:04 +000016144
Eric Christopher51e57132010-12-07 02:05:42 +000016145rm -f core conftest.err conftest.$ac_objext \
16146 conftest$ac_exeext conftest.$ac_ext
16147
16148
Reid Spencer8085cff2005-01-16 02:58:39 +000016149
Torok Edwin871384f2010-01-26 08:50:50 +000016150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016151 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16152echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16153if test "${ac_cv_huge_val_sanity+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016155else
16156
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016157 ac_ext=cpp
16158ac_cpp='$CXXCPP $CPPFLAGS'
16159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016162
Eric Christopherc7718502010-03-02 05:06:54 +000016163 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016164 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016165 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016166 ac_cv_huge_val_sanity=yes
16167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016168 cat >conftest.$ac_ext <<_ACEOF
16169/* confdefs.h. */
16170_ACEOF
16171cat confdefs.h >>conftest.$ac_ext
16172cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016173/* end confdefs.h. */
16174#include <math.h>
16175int
16176main ()
16177{
16178double x = HUGE_VAL; return x != x;
16179 ;
16180 return 0;
16181}
16182_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016183rm -f conftest$ac_exeext
16184if { (ac_try="$ac_link"
16185case "(($ac_try" in
16186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187 *) ac_try_echo=$ac_try;;
16188esac
16189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190 (eval "$ac_link") 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16197esac
16198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016203 ac_cv_huge_val_sanity=yes
16204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016205 echo "$as_me: program exited with status $ac_status" >&5
16206echo "$as_me: failed program was:" >&5
16207sed 's/^/| /' conftest.$ac_ext >&5
16208
16209( exit $ac_status )
16210ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016212rm -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 +000016213fi
16214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016215
Eric Christopherc7718502010-03-02 05:06:54 +000016216 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016217 ac_ext=c
16218ac_cpp='$CPP $CPPFLAGS'
16219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16221ac_compiler_gnu=$ac_cv_c_compiler_gnu
16222
16223
16224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016225{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16226echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016227 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16228
16229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016230{ echo "$as_me:$LINENO: checking for pid_t" >&5
16231echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16232if test "${ac_cv_type_pid_t+set}" = set; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16234else
16235 cat >conftest.$ac_ext <<_ACEOF
16236/* confdefs.h. */
16237_ACEOF
16238cat confdefs.h >>conftest.$ac_ext
16239cat >>conftest.$ac_ext <<_ACEOF
16240/* end confdefs.h. */
16241$ac_includes_default
16242typedef pid_t ac__type_new_;
16243int
16244main ()
16245{
16246if ((ac__type_new_ *) 0)
16247 return 0;
16248if (sizeof (ac__type_new_))
16249 return 0;
16250 ;
16251 return 0;
16252}
16253_ACEOF
16254rm -f conftest.$ac_objext
16255if { (ac_try="$ac_compile"
16256case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259esac
16260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_compile") 2>conftest.er1
16262 ac_status=$?
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269 { (case "(($ac_try" in
16270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16272esac
16273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274 (eval "$ac_try") 2>&5
16275 ac_status=$?
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest.$ac_objext'
16279 { (case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16282esac
16283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_try") 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_cv_type_pid_t=yes
16289else
16290 echo "$as_me: failed program was:" >&5
16291sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016293 ac_cv_type_pid_t=no
16294fi
16295
16296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16297fi
16298{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16299echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16300if test $ac_cv_type_pid_t = yes; then
16301 :
John Criswell7a73b802003-06-30 21:59:07 +000016302else
16303
16304cat >>confdefs.h <<_ACEOF
16305#define pid_t int
16306_ACEOF
16307
16308fi
16309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016310{ echo "$as_me:$LINENO: checking for size_t" >&5
16311echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16312if test "${ac_cv_type_size_t+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16314else
16315 cat >conftest.$ac_ext <<_ACEOF
16316/* confdefs.h. */
16317_ACEOF
16318cat confdefs.h >>conftest.$ac_ext
16319cat >>conftest.$ac_ext <<_ACEOF
16320/* end confdefs.h. */
16321$ac_includes_default
16322typedef size_t ac__type_new_;
16323int
16324main ()
16325{
16326if ((ac__type_new_ *) 0)
16327 return 0;
16328if (sizeof (ac__type_new_))
16329 return 0;
16330 ;
16331 return 0;
16332}
16333_ACEOF
16334rm -f conftest.$ac_objext
16335if { (ac_try="$ac_compile"
16336case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339esac
16340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_compile") 2>conftest.er1
16342 ac_status=$?
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16349 { (case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16352esac
16353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_try") 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest.$ac_objext'
16359 { (case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16362esac
16363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_try") 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 ac_cv_type_size_t=yes
16369else
16370 echo "$as_me: failed program was:" >&5
16371sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016373 ac_cv_type_size_t=no
16374fi
16375
16376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377fi
16378{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16379echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16380if test $ac_cv_type_size_t = yes; then
16381 :
John Criswell7a73b802003-06-30 21:59:07 +000016382else
16383
16384cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016385#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016386_ACEOF
16387
16388fi
16389
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016390
16391cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016392#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016393_ACEOF
16394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016395{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16396echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16397if test "${ac_cv_struct_tm+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016399else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016400 cat >conftest.$ac_ext <<_ACEOF
16401/* confdefs.h. */
16402_ACEOF
16403cat confdefs.h >>conftest.$ac_ext
16404cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016405/* end confdefs.h. */
16406#include <sys/types.h>
16407#include <time.h>
16408
16409int
16410main ()
16411{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016412struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016413 ;
16414 return 0;
16415}
16416_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016417rm -f conftest.$ac_objext
16418if { (ac_try="$ac_compile"
16419case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16422esac
16423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_compile") 2>conftest.er1
16425 ac_status=$?
16426 grep -v '^ *+' conftest.er1 >conftest.err
16427 rm -f conftest.er1
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16432 { (case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16435esac
16436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437 (eval "$ac_try") 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; } &&
16441 { ac_try='test -s conftest.$ac_objext'
16442 { (case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445esac
16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_try") 2>&5
16448 ac_status=$?
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016451 ac_cv_struct_tm=time.h
16452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016453 echo "$as_me: failed program was:" >&5
16454sed 's/^/| /' conftest.$ac_ext >&5
16455
16456 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016457fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016458
Reid Spencera773bd52006-08-04 18:18:08 +000016459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016461{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16462echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016463if test $ac_cv_struct_tm = sys/time.h; then
16464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016465cat >>confdefs.h <<\_ACEOF
16466#define TM_IN_SYS_TIME 1
16467_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016468
16469fi
16470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016471{ echo "$as_me:$LINENO: checking for int64_t" >&5
16472echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16473if test "${ac_cv_type_int64_t+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475else
16476 cat >conftest.$ac_ext <<_ACEOF
16477/* confdefs.h. */
16478_ACEOF
16479cat confdefs.h >>conftest.$ac_ext
16480cat >>conftest.$ac_ext <<_ACEOF
16481/* end confdefs.h. */
16482$ac_includes_default
16483typedef int64_t ac__type_new_;
16484int
16485main ()
16486{
16487if ((ac__type_new_ *) 0)
16488 return 0;
16489if (sizeof (ac__type_new_))
16490 return 0;
16491 ;
16492 return 0;
16493}
16494_ACEOF
16495rm -f conftest.$ac_objext
16496if { (ac_try="$ac_compile"
16497case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16500esac
16501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_compile") 2>conftest.er1
16503 ac_status=$?
16504 grep -v '^ *+' conftest.er1 >conftest.err
16505 rm -f conftest.er1
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16510 { (case "(($ac_try" in
16511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512 *) ac_try_echo=$ac_try;;
16513esac
16514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515 (eval "$ac_try") 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; } &&
16519 { ac_try='test -s conftest.$ac_objext'
16520 { (case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16523esac
16524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_try") 2>&5
16526 ac_status=$?
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; }; then
16529 ac_cv_type_int64_t=yes
16530else
16531 echo "$as_me: failed program was:" >&5
16532sed 's/^/| /' conftest.$ac_ext >&5
16533
16534 ac_cv_type_int64_t=no
16535fi
16536
16537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16538fi
16539{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16540echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16541if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016542
16543cat >>confdefs.h <<_ACEOF
16544#define HAVE_INT64_T 1
16545_ACEOF
16546
16547
16548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016549 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16550echo "$as_me: error: Type int64_t required but not found" >&2;}
16551 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016552fi
16553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016554{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16555echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16556if test "${ac_cv_type_uint64_t+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16558else
16559 cat >conftest.$ac_ext <<_ACEOF
16560/* confdefs.h. */
16561_ACEOF
16562cat confdefs.h >>conftest.$ac_ext
16563cat >>conftest.$ac_ext <<_ACEOF
16564/* end confdefs.h. */
16565$ac_includes_default
16566typedef uint64_t ac__type_new_;
16567int
16568main ()
16569{
16570if ((ac__type_new_ *) 0)
16571 return 0;
16572if (sizeof (ac__type_new_))
16573 return 0;
16574 ;
16575 return 0;
16576}
16577_ACEOF
16578rm -f conftest.$ac_objext
16579if { (ac_try="$ac_compile"
16580case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16583esac
16584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_compile") 2>conftest.er1
16586 ac_status=$?
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596esac
16597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
16603 { (case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16606esac
16607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_try") 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_type_uint64_t=yes
16613else
16614 echo "$as_me: failed program was:" >&5
16615sed 's/^/| /' conftest.$ac_ext >&5
16616
16617 ac_cv_type_uint64_t=no
16618fi
16619
16620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621fi
16622{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16623echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16624if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016625
16626cat >>confdefs.h <<_ACEOF
16627#define HAVE_UINT64_T 1
16628_ACEOF
16629
16630
16631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016632 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16633echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16634if test "${ac_cv_type_u_int64_t+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16636else
16637 cat >conftest.$ac_ext <<_ACEOF
16638/* confdefs.h. */
16639_ACEOF
16640cat confdefs.h >>conftest.$ac_ext
16641cat >>conftest.$ac_ext <<_ACEOF
16642/* end confdefs.h. */
16643$ac_includes_default
16644typedef u_int64_t ac__type_new_;
16645int
16646main ()
16647{
16648if ((ac__type_new_ *) 0)
16649 return 0;
16650if (sizeof (ac__type_new_))
16651 return 0;
16652 ;
16653 return 0;
16654}
16655_ACEOF
16656rm -f conftest.$ac_objext
16657if { (ac_try="$ac_compile"
16658case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661esac
16662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_compile") 2>conftest.er1
16664 ac_status=$?
16665 grep -v '^ *+' conftest.er1 >conftest.err
16666 rm -f conftest.er1
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16671 { (case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16674esac
16675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676 (eval "$ac_try") 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; } &&
16680 { ac_try='test -s conftest.$ac_objext'
16681 { (case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684esac
16685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_try") 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16690 ac_cv_type_u_int64_t=yes
16691else
16692 echo "$as_me: failed program was:" >&5
16693sed 's/^/| /' conftest.$ac_ext >&5
16694
16695 ac_cv_type_u_int64_t=no
16696fi
16697
16698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699fi
16700{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16701echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16702if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016703
16704cat >>confdefs.h <<_ACEOF
16705#define HAVE_U_INT64_T 1
16706_ACEOF
16707
16708
Misha Brukmanceca9042004-09-02 23:02:30 +000016709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016710 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16711echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16712 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016713fi
16714
John Criswell679ff312004-09-02 18:44:44 +000016715fi
16716
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016717
16718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016719
16720
16721
16722
16723
16724
16725
Reid Spencerdf3be822006-01-23 08:15:53 +000016726for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016727do
16728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16729{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16731if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16733else
16734 cat >conftest.$ac_ext <<_ACEOF
16735/* confdefs.h. */
16736_ACEOF
16737cat confdefs.h >>conftest.$ac_ext
16738cat >>conftest.$ac_ext <<_ACEOF
16739/* end confdefs.h. */
16740/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16742#define $ac_func innocuous_$ac_func
16743
16744/* System header to define __stub macros and hopefully few prototypes,
16745 which can conflict with char $ac_func (); below.
16746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16747 <limits.h> exists even on freestanding compilers. */
16748
16749#ifdef __STDC__
16750# include <limits.h>
16751#else
16752# include <assert.h>
16753#endif
16754
16755#undef $ac_func
16756
16757/* Override any GCC internal prototype to avoid an error.
16758 Use char because int might match the return type of a GCC
16759 builtin and then its argument prototype would still apply. */
16760#ifdef __cplusplus
16761extern "C"
16762#endif
16763char $ac_func ();
16764/* The GNU C library defines this for functions which it implements
16765 to always fail with ENOSYS. Some functions are actually named
16766 something starting with __ and the normal name is an alias. */
16767#if defined __stub_$ac_func || defined __stub___$ac_func
16768choke me
16769#endif
16770
16771int
16772main ()
16773{
16774return $ac_func ();
16775 ;
16776 return 0;
16777}
16778_ACEOF
16779rm -f conftest.$ac_objext conftest$ac_exeext
16780if { (ac_try="$ac_link"
16781case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16784esac
16785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_link") 2>conftest.er1
16787 ac_status=$?
16788 grep -v '^ *+' conftest.er1 >conftest.err
16789 rm -f conftest.er1
16790 cat conftest.err >&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } &&
16793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16794 { (case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16797esac
16798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_try") 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest$ac_exeext'
16804 { (case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16807esac
16808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_try") 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 eval "$as_ac_var=yes"
16814else
16815 echo "$as_me: failed program was:" >&5
16816sed 's/^/| /' conftest.$ac_ext >&5
16817
16818 eval "$as_ac_var=no"
16819fi
16820
16821rm -f core conftest.err conftest.$ac_objext \
16822 conftest$ac_exeext conftest.$ac_ext
16823fi
16824ac_res=`eval echo '${'$as_ac_var'}'`
16825 { echo "$as_me:$LINENO: result: $ac_res" >&5
16826echo "${ECHO_T}$ac_res" >&6; }
16827if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016828 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016830_ACEOF
16831
16832fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016833done
John Criswell7a73b802003-06-30 21:59:07 +000016834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016835
16836
16837
16838
Reid Spencer96cf5872007-07-13 10:05:30 +000016839for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016840do
16841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16842{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16844if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16846else
16847 cat >conftest.$ac_ext <<_ACEOF
16848/* confdefs.h. */
16849_ACEOF
16850cat confdefs.h >>conftest.$ac_ext
16851cat >>conftest.$ac_ext <<_ACEOF
16852/* end confdefs.h. */
16853/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16855#define $ac_func innocuous_$ac_func
16856
16857/* System header to define __stub macros and hopefully few prototypes,
16858 which can conflict with char $ac_func (); below.
16859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16860 <limits.h> exists even on freestanding compilers. */
16861
16862#ifdef __STDC__
16863# include <limits.h>
16864#else
16865# include <assert.h>
16866#endif
16867
16868#undef $ac_func
16869
16870/* Override any GCC internal prototype to avoid an error.
16871 Use char because int might match the return type of a GCC
16872 builtin and then its argument prototype would still apply. */
16873#ifdef __cplusplus
16874extern "C"
16875#endif
16876char $ac_func ();
16877/* The GNU C library defines this for functions which it implements
16878 to always fail with ENOSYS. Some functions are actually named
16879 something starting with __ and the normal name is an alias. */
16880#if defined __stub_$ac_func || defined __stub___$ac_func
16881choke me
16882#endif
16883
16884int
16885main ()
16886{
16887return $ac_func ();
16888 ;
16889 return 0;
16890}
16891_ACEOF
16892rm -f conftest.$ac_objext conftest$ac_exeext
16893if { (ac_try="$ac_link"
16894case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_link") 2>conftest.er1
16900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16910esac
16911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest$ac_exeext'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920esac
16921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 eval "$as_ac_var=yes"
16927else
16928 echo "$as_me: failed program was:" >&5
16929sed 's/^/| /' conftest.$ac_ext >&5
16930
16931 eval "$as_ac_var=no"
16932fi
16933
16934rm -f core conftest.err conftest.$ac_objext \
16935 conftest$ac_exeext conftest.$ac_ext
16936fi
16937ac_res=`eval echo '${'$as_ac_var'}'`
16938 { echo "$as_me:$LINENO: result: $ac_res" >&5
16939echo "${ECHO_T}$ac_res" >&6; }
16940if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016941 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016942#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016943_ACEOF
16944
16945fi
16946done
16947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016948
16949
16950
16951
16952
Reid Spencerb90645c2007-02-16 19:17:20 +000016953for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016954do
16955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16956{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16958if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16960else
16961 cat >conftest.$ac_ext <<_ACEOF
16962/* confdefs.h. */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h. */
16967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16969#define $ac_func innocuous_$ac_func
16970
16971/* System header to define __stub macros and hopefully few prototypes,
16972 which can conflict with char $ac_func (); below.
16973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16974 <limits.h> exists even on freestanding compilers. */
16975
16976#ifdef __STDC__
16977# include <limits.h>
16978#else
16979# include <assert.h>
16980#endif
16981
16982#undef $ac_func
16983
16984/* Override any GCC internal prototype to avoid an error.
16985 Use char because int might match the return type of a GCC
16986 builtin and then its argument prototype would still apply. */
16987#ifdef __cplusplus
16988extern "C"
16989#endif
16990char $ac_func ();
16991/* The GNU C library defines this for functions which it implements
16992 to always fail with ENOSYS. Some functions are actually named
16993 something starting with __ and the normal name is an alias. */
16994#if defined __stub_$ac_func || defined __stub___$ac_func
16995choke me
16996#endif
16997
16998int
16999main ()
17000{
17001return $ac_func ();
17002 ;
17003 return 0;
17004}
17005_ACEOF
17006rm -f conftest.$ac_objext conftest$ac_exeext
17007if { (ac_try="$ac_link"
17008case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17011esac
17012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_link") 2>conftest.er1
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021 { (case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17024esac
17025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_try") 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest$ac_exeext'
17031 { (case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17034esac
17035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_try") 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 eval "$as_ac_var=yes"
17041else
17042 echo "$as_me: failed program was:" >&5
17043sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 eval "$as_ac_var=no"
17046fi
17047
17048rm -f core conftest.err conftest.$ac_objext \
17049 conftest$ac_exeext conftest.$ac_ext
17050fi
17051ac_res=`eval echo '${'$as_ac_var'}'`
17052 { echo "$as_me:$LINENO: result: $ac_res" >&5
17053echo "${ECHO_T}$ac_res" >&6; }
17054if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017055 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017057_ACEOF
17058
17059fi
17060done
17061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017062
17063
17064
Reid Spencerb90645c2007-02-16 19:17:20 +000017065for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017066do
17067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17068{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17070if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17072else
17073 cat >conftest.$ac_ext <<_ACEOF
17074/* confdefs.h. */
17075_ACEOF
17076cat confdefs.h >>conftest.$ac_ext
17077cat >>conftest.$ac_ext <<_ACEOF
17078/* end confdefs.h. */
17079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17081#define $ac_func innocuous_$ac_func
17082
17083/* System header to define __stub macros and hopefully few prototypes,
17084 which can conflict with char $ac_func (); below.
17085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086 <limits.h> exists even on freestanding compilers. */
17087
17088#ifdef __STDC__
17089# include <limits.h>
17090#else
17091# include <assert.h>
17092#endif
17093
17094#undef $ac_func
17095
17096/* Override any GCC internal prototype to avoid an error.
17097 Use char because int might match the return type of a GCC
17098 builtin and then its argument prototype would still apply. */
17099#ifdef __cplusplus
17100extern "C"
17101#endif
17102char $ac_func ();
17103/* The GNU C library defines this for functions which it implements
17104 to always fail with ENOSYS. Some functions are actually named
17105 something starting with __ and the normal name is an alias. */
17106#if defined __stub_$ac_func || defined __stub___$ac_func
17107choke me
17108#endif
17109
17110int
17111main ()
17112{
17113return $ac_func ();
17114 ;
17115 return 0;
17116}
17117_ACEOF
17118rm -f conftest.$ac_objext conftest$ac_exeext
17119if { (ac_try="$ac_link"
17120case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17123esac
17124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_link") 2>conftest.er1
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } &&
17132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17133 { (case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17136esac
17137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138 (eval "$ac_try") 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; } &&
17142 { ac_try='test -s conftest$ac_exeext'
17143 { (case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17146esac
17147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_try") 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 eval "$as_ac_var=yes"
17153else
17154 echo "$as_me: failed program was:" >&5
17155sed 's/^/| /' conftest.$ac_ext >&5
17156
17157 eval "$as_ac_var=no"
17158fi
17159
17160rm -f core conftest.err conftest.$ac_objext \
17161 conftest$ac_exeext conftest.$ac_ext
17162fi
17163ac_res=`eval echo '${'$as_ac_var'}'`
17164 { echo "$as_me:$LINENO: result: $ac_res" >&5
17165echo "${ECHO_T}$ac_res" >&6; }
17166if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017167 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017169_ACEOF
17170
17171fi
17172done
17173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017174
17175
17176
17177
17178
Eric Christophere4291822010-04-16 05:14:21 +000017179
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017180
17181for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017182do
17183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17184{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17186if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17187 echo $ECHO_N "(cached) $ECHO_C" >&6
17188else
17189 cat >conftest.$ac_ext <<_ACEOF
17190/* confdefs.h. */
17191_ACEOF
17192cat confdefs.h >>conftest.$ac_ext
17193cat >>conftest.$ac_ext <<_ACEOF
17194/* end confdefs.h. */
17195/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17197#define $ac_func innocuous_$ac_func
17198
17199/* System header to define __stub macros and hopefully few prototypes,
17200 which can conflict with char $ac_func (); below.
17201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17202 <limits.h> exists even on freestanding compilers. */
17203
17204#ifdef __STDC__
17205# include <limits.h>
17206#else
17207# include <assert.h>
17208#endif
17209
17210#undef $ac_func
17211
17212/* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17215#ifdef __cplusplus
17216extern "C"
17217#endif
17218char $ac_func ();
17219/* The GNU C library defines this for functions which it implements
17220 to always fail with ENOSYS. Some functions are actually named
17221 something starting with __ and the normal name is an alias. */
17222#if defined __stub_$ac_func || defined __stub___$ac_func
17223choke me
17224#endif
17225
17226int
17227main ()
17228{
17229return $ac_func ();
17230 ;
17231 return 0;
17232}
17233_ACEOF
17234rm -f conftest.$ac_objext conftest$ac_exeext
17235if { (ac_try="$ac_link"
17236case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17239esac
17240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_link") 2>conftest.er1
17242 ac_status=$?
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
17248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252esac
17253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest$ac_exeext'
17259 { (case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17262esac
17263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_try") 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 eval "$as_ac_var=yes"
17269else
17270 echo "$as_me: failed program was:" >&5
17271sed 's/^/| /' conftest.$ac_ext >&5
17272
17273 eval "$as_ac_var=no"
17274fi
17275
17276rm -f core conftest.err conftest.$ac_objext \
17277 conftest$ac_exeext conftest.$ac_ext
17278fi
17279ac_res=`eval echo '${'$as_ac_var'}'`
17280 { echo "$as_me:$LINENO: result: $ac_res" >&5
17281echo "${ECHO_T}$ac_res" >&6; }
17282if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017283 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017284#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017285_ACEOF
17286
17287fi
17288done
Reid Spencerdf3be822006-01-23 08:15:53 +000017289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017290
17291
17292
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017293for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017294do
17295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17296{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17298if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17300else
17301 cat >conftest.$ac_ext <<_ACEOF
17302/* confdefs.h. */
17303_ACEOF
17304cat confdefs.h >>conftest.$ac_ext
17305cat >>conftest.$ac_ext <<_ACEOF
17306/* end confdefs.h. */
17307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17309#define $ac_func innocuous_$ac_func
17310
17311/* System header to define __stub macros and hopefully few prototypes,
17312 which can conflict with char $ac_func (); below.
17313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314 <limits.h> exists even on freestanding compilers. */
17315
17316#ifdef __STDC__
17317# include <limits.h>
17318#else
17319# include <assert.h>
17320#endif
17321
17322#undef $ac_func
17323
17324/* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
17327#ifdef __cplusplus
17328extern "C"
17329#endif
17330char $ac_func ();
17331/* The GNU C library defines this for functions which it implements
17332 to always fail with ENOSYS. Some functions are actually named
17333 something starting with __ and the normal name is an alias. */
17334#if defined __stub_$ac_func || defined __stub___$ac_func
17335choke me
17336#endif
17337
17338int
17339main ()
17340{
17341return $ac_func ();
17342 ;
17343 return 0;
17344}
17345_ACEOF
17346rm -f conftest.$ac_objext conftest$ac_exeext
17347if { (ac_try="$ac_link"
17348case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17351esac
17352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_link") 2>conftest.er1
17354 ac_status=$?
17355 grep -v '^ *+' conftest.er1 >conftest.err
17356 rm -f conftest.er1
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } &&
17360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17361 { (case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17364esac
17365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_try") 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest$ac_exeext'
17371 { (case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17374esac
17375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_try") 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 eval "$as_ac_var=yes"
17381else
17382 echo "$as_me: failed program was:" >&5
17383sed 's/^/| /' conftest.$ac_ext >&5
17384
17385 eval "$as_ac_var=no"
17386fi
17387
17388rm -f core conftest.err conftest.$ac_objext \
17389 conftest$ac_exeext conftest.$ac_ext
17390fi
17391ac_res=`eval echo '${'$as_ac_var'}'`
17392 { echo "$as_me:$LINENO: result: $ac_res" >&5
17393echo "${ECHO_T}$ac_res" >&6; }
17394if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017395 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017397_ACEOF
17398
17399fi
17400done
17401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017402
17403
17404
17405
Chris Lattner511f11d2005-11-14 07:25:50 +000017406for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017407do
17408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17409{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17411if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17413else
17414 cat >conftest.$ac_ext <<_ACEOF
17415/* confdefs.h. */
17416_ACEOF
17417cat confdefs.h >>conftest.$ac_ext
17418cat >>conftest.$ac_ext <<_ACEOF
17419/* end confdefs.h. */
17420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17422#define $ac_func innocuous_$ac_func
17423
17424/* System header to define __stub macros and hopefully few prototypes,
17425 which can conflict with char $ac_func (); below.
17426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17427 <limits.h> exists even on freestanding compilers. */
17428
17429#ifdef __STDC__
17430# include <limits.h>
17431#else
17432# include <assert.h>
17433#endif
17434
17435#undef $ac_func
17436
17437/* Override any GCC internal prototype to avoid an error.
17438 Use char because int might match the return type of a GCC
17439 builtin and then its argument prototype would still apply. */
17440#ifdef __cplusplus
17441extern "C"
17442#endif
17443char $ac_func ();
17444/* The GNU C library defines this for functions which it implements
17445 to always fail with ENOSYS. Some functions are actually named
17446 something starting with __ and the normal name is an alias. */
17447#if defined __stub_$ac_func || defined __stub___$ac_func
17448choke me
17449#endif
17450
17451int
17452main ()
17453{
17454return $ac_func ();
17455 ;
17456 return 0;
17457}
17458_ACEOF
17459rm -f conftest.$ac_objext conftest$ac_exeext
17460if { (ac_try="$ac_link"
17461case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17464esac
17465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_link") 2>conftest.er1
17467 ac_status=$?
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
17473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17474 { (case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477esac
17478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_try") 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest$ac_exeext'
17484 { (case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487esac
17488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_try") 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 eval "$as_ac_var=yes"
17494else
17495 echo "$as_me: failed program was:" >&5
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
17498 eval "$as_ac_var=no"
17499fi
17500
17501rm -f core conftest.err conftest.$ac_objext \
17502 conftest$ac_exeext conftest.$ac_ext
17503fi
17504ac_res=`eval echo '${'$as_ac_var'}'`
17505 { echo "$as_me:$LINENO: result: $ac_res" >&5
17506echo "${ECHO_T}$ac_res" >&6; }
17507if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017508 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017510_ACEOF
17511
17512fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017513done
John Criswell7a73b802003-06-30 21:59:07 +000017514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017515
17516
17517
17518
Daniel Dunbar3e462932011-02-03 02:40:02 +000017519
17520for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017521do
17522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17523{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17525if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17527else
17528 cat >conftest.$ac_ext <<_ACEOF
17529/* confdefs.h. */
17530_ACEOF
17531cat confdefs.h >>conftest.$ac_ext
17532cat >>conftest.$ac_ext <<_ACEOF
17533/* end confdefs.h. */
17534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17536#define $ac_func innocuous_$ac_func
17537
17538/* System header to define __stub macros and hopefully few prototypes,
17539 which can conflict with char $ac_func (); below.
17540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17541 <limits.h> exists even on freestanding compilers. */
17542
17543#ifdef __STDC__
17544# include <limits.h>
17545#else
17546# include <assert.h>
17547#endif
17548
17549#undef $ac_func
17550
17551/* Override any GCC internal prototype to avoid an error.
17552 Use char because int might match the return type of a GCC
17553 builtin and then its argument prototype would still apply. */
17554#ifdef __cplusplus
17555extern "C"
17556#endif
17557char $ac_func ();
17558/* The GNU C library defines this for functions which it implements
17559 to always fail with ENOSYS. Some functions are actually named
17560 something starting with __ and the normal name is an alias. */
17561#if defined __stub_$ac_func || defined __stub___$ac_func
17562choke me
17563#endif
17564
17565int
17566main ()
17567{
17568return $ac_func ();
17569 ;
17570 return 0;
17571}
17572_ACEOF
17573rm -f conftest.$ac_objext conftest$ac_exeext
17574if { (ac_try="$ac_link"
17575case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17578esac
17579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_link") 2>conftest.er1
17581 ac_status=$?
17582 grep -v '^ *+' conftest.er1 >conftest.err
17583 rm -f conftest.er1
17584 cat conftest.err >&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591esac
17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; } &&
17597 { ac_try='test -s conftest$ac_exeext'
17598 { (case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17601esac
17602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_try") 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 eval "$as_ac_var=yes"
17608else
17609 echo "$as_me: failed program was:" >&5
17610sed 's/^/| /' conftest.$ac_ext >&5
17611
17612 eval "$as_ac_var=no"
17613fi
17614
17615rm -f core conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17617fi
17618ac_res=`eval echo '${'$as_ac_var'}'`
17619 { echo "$as_me:$LINENO: result: $ac_res" >&5
17620echo "${ECHO_T}$ac_res" >&6; }
17621if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017622 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017623#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017624_ACEOF
17625
17626fi
17627done
17628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017629{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17630echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17631if test "${llvm_cv_c_printf_a+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017633else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017634 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017635ac_cpp='$CPP $CPPFLAGS'
17636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638ac_compiler_gnu=$ac_cv_c_compiler_gnu
17639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017640 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017641 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017643 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017645 /* confdefs.h. */
17646_ACEOF
17647cat confdefs.h >>conftest.$ac_ext
17648cat >>conftest.$ac_ext <<_ACEOF
17649/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017650
John Criswella0137d32003-10-13 16:22:01 +000017651#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017652#include <stdlib.h>
17653
John Criswella0137d32003-10-13 16:22:01 +000017654int
17655main ()
17656{
17657
Reid Spencer2706f8c2004-09-19 23:53:36 +000017658volatile double A, B;
17659char Buffer[100];
17660A = 1;
17661A /= 10.0;
17662sprintf(Buffer, "%a", A);
17663B = atof(Buffer);
17664if (A != B)
17665 return (1);
17666if (A != 0x1.999999999999ap-4)
17667 return (1);
17668return (0);
John Criswella0137d32003-10-13 16:22:01 +000017669 ;
17670 return 0;
17671}
17672_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017673rm -f conftest$ac_exeext
17674if { (ac_try="$ac_link"
17675case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17678esac
17679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_link") 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17684 { (case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17687esac
17688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_try") 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017693 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017695 echo "$as_me: program exited with status $ac_status" >&5
17696echo "$as_me: failed program was:" >&5
17697sed 's/^/| /' conftest.$ac_ext >&5
17698
17699( exit $ac_status )
17700llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017702rm -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 +000017703fi
Reid Spencera773bd52006-08-04 18:18:08 +000017704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017705
Reid Spencer2706f8c2004-09-19 23:53:36 +000017706 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017707ac_cpp='$CPP $CPPFLAGS'
17708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17710ac_compiler_gnu=$ac_cv_c_compiler_gnu
17711
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017712fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017713{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17714echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017715 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017717cat >>confdefs.h <<\_ACEOF
17718#define HAVE_PRINTF_A 1
17719_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017720
Reid Spencer2706f8c2004-09-19 23:53:36 +000017721 fi
John Criswella0137d32003-10-13 16:22:01 +000017722
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017724{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17725echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17726if test "${ac_cv_func_rand48+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017728else
Reid Spencera773bd52006-08-04 18:18:08 +000017729 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017730ac_cpp='$CXXCPP $CPPFLAGS'
17731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017735 cat >conftest.$ac_ext <<_ACEOF
17736/* confdefs.h. */
17737_ACEOF
17738cat confdefs.h >>conftest.$ac_ext
17739cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017740/* end confdefs.h. */
17741#include <stdlib.h>
17742int
17743main ()
17744{
17745srand48(0);lrand48();drand48();
17746 ;
17747 return 0;
17748}
17749_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017750rm -f conftest.$ac_objext
17751if { (ac_try="$ac_compile"
17752case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17755esac
17756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_compile") 2>conftest.er1
17758 ac_status=$?
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
17764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17765 { (case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17768esac
17769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_try") 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest.$ac_objext'
17775 { (case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17778esac
17779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_try") 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017784 ac_cv_func_rand48=yes
17785else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017786 echo "$as_me: failed program was:" >&5
17787sed 's/^/| /' conftest.$ac_ext >&5
17788
17789 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017790fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017791
Reid Spencera773bd52006-08-04 18:18:08 +000017792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017793 ac_ext=c
17794ac_cpp='$CPP $CPPFLAGS'
17795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17797ac_compiler_gnu=$ac_cv_c_compiler_gnu
17798
17799fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017800{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17801echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017802
17803if test "$ac_cv_func_rand48" = "yes" ; then
17804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017805cat >>confdefs.h <<\_ACEOF
17806#define HAVE_RAND48 1
17807_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017808
17809fi
John Criswell0021c312004-02-13 21:57:29 +000017810
17811
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017812{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17813echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17814if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816else
17817 cat >conftest.$ac_ext <<_ACEOF
17818/* confdefs.h. */
17819_ACEOF
17820cat confdefs.h >>conftest.$ac_ext
17821cat >>conftest.$ac_ext <<_ACEOF
17822/* end confdefs.h. */
17823$ac_includes_default
17824int
17825main ()
17826{
17827#ifndef strerror_s
17828 char *p = (char *) strerror_s;
17829 return !p;
17830#endif
17831
17832 ;
17833 return 0;
17834}
17835_ACEOF
17836rm -f conftest.$ac_objext
17837if { (ac_try="$ac_compile"
17838case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841esac
17842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_compile") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851 { (case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17854esac
17855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_try") 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest.$ac_objext'
17861 { (case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864esac
17865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_try") 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 ac_cv_have_decl_strerror_s=yes
17871else
17872 echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875 ac_cv_have_decl_strerror_s=no
17876fi
17877
17878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879fi
17880{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17881echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17882if test $ac_cv_have_decl_strerror_s = yes; then
17883
17884cat >>confdefs.h <<_ACEOF
17885#define HAVE_DECL_STRERROR_S 1
17886_ACEOF
17887
17888
17889else
17890 cat >>confdefs.h <<_ACEOF
17891#define HAVE_DECL_STRERROR_S 0
17892_ACEOF
17893
17894
17895fi
17896
17897
17898
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017899if test "$llvm_cv_os_type" = "MingW" ; then
17900 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17901echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17902if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17904else
17905 ac_check_lib_save_LIBS=$LIBS
17906LIBS="-lgcc $LIBS"
17907cat >conftest.$ac_ext <<_ACEOF
17908/* confdefs.h. */
17909_ACEOF
17910cat confdefs.h >>conftest.$ac_ext
17911cat >>conftest.$ac_ext <<_ACEOF
17912/* end confdefs.h. */
17913
17914/* Override any GCC internal prototype to avoid an error.
17915 Use char because int might match the return type of a GCC
17916 builtin and then its argument prototype would still apply. */
17917#ifdef __cplusplus
17918extern "C"
17919#endif
17920char _alloca ();
17921int
17922main ()
17923{
17924return _alloca ();
17925 ;
17926 return 0;
17927}
17928_ACEOF
17929rm -f conftest.$ac_objext conftest$ac_exeext
17930if { (ac_try="$ac_link"
17931case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17934esac
17935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_link") 2>conftest.er1
17937 ac_status=$?
17938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
17943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17944 { (case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17947esac
17948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_try") 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest$ac_exeext'
17954 { (case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17957esac
17958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_try") 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_cv_lib_gcc__alloca=yes
17964else
17965 echo "$as_me: failed program was:" >&5
17966sed 's/^/| /' conftest.$ac_ext >&5
17967
17968 ac_cv_lib_gcc__alloca=no
17969fi
17970
17971rm -f core conftest.err conftest.$ac_objext \
17972 conftest$ac_exeext conftest.$ac_ext
17973LIBS=$ac_check_lib_save_LIBS
17974fi
17975{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17976echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17977if test $ac_cv_lib_gcc__alloca = yes; then
17978
17979cat >>confdefs.h <<\_ACEOF
17980#define HAVE__ALLOCA 1
17981_ACEOF
17982
17983fi
17984
17985 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17986echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17987if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17989else
17990 ac_check_lib_save_LIBS=$LIBS
17991LIBS="-lgcc $LIBS"
17992cat >conftest.$ac_ext <<_ACEOF
17993/* confdefs.h. */
17994_ACEOF
17995cat confdefs.h >>conftest.$ac_ext
17996cat >>conftest.$ac_ext <<_ACEOF
17997/* end confdefs.h. */
17998
17999/* Override any GCC internal prototype to avoid an error.
18000 Use char because int might match the return type of a GCC
18001 builtin and then its argument prototype would still apply. */
18002#ifdef __cplusplus
18003extern "C"
18004#endif
18005char __alloca ();
18006int
18007main ()
18008{
18009return __alloca ();
18010 ;
18011 return 0;
18012}
18013_ACEOF
18014rm -f conftest.$ac_objext conftest$ac_exeext
18015if { (ac_try="$ac_link"
18016case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18019esac
18020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_link") 2>conftest.er1
18022 ac_status=$?
18023 grep -v '^ *+' conftest.er1 >conftest.err
18024 rm -f conftest.er1
18025 cat conftest.err >&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } &&
18028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18029 { (case "(($ac_try" in
18030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031 *) ac_try_echo=$ac_try;;
18032esac
18033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034 (eval "$ac_try") 2>&5
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; } &&
18038 { ac_try='test -s conftest$ac_exeext'
18039 { (case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18042esac
18043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_try") 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048 ac_cv_lib_gcc___alloca=yes
18049else
18050 echo "$as_me: failed program was:" >&5
18051sed 's/^/| /' conftest.$ac_ext >&5
18052
18053 ac_cv_lib_gcc___alloca=no
18054fi
18055
18056rm -f core conftest.err conftest.$ac_objext \
18057 conftest$ac_exeext conftest.$ac_ext
18058LIBS=$ac_check_lib_save_LIBS
18059fi
18060{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18061echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18062if test $ac_cv_lib_gcc___alloca = yes; then
18063
18064cat >>confdefs.h <<\_ACEOF
18065#define HAVE___ALLOCA 1
18066_ACEOF
18067
18068fi
18069
18070 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18071echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18072if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18074else
18075 ac_check_lib_save_LIBS=$LIBS
18076LIBS="-lgcc $LIBS"
18077cat >conftest.$ac_ext <<_ACEOF
18078/* confdefs.h. */
18079_ACEOF
18080cat confdefs.h >>conftest.$ac_ext
18081cat >>conftest.$ac_ext <<_ACEOF
18082/* end confdefs.h. */
18083
18084/* Override any GCC internal prototype to avoid an error.
18085 Use char because int might match the return type of a GCC
18086 builtin and then its argument prototype would still apply. */
18087#ifdef __cplusplus
18088extern "C"
18089#endif
18090char __chkstk ();
18091int
18092main ()
18093{
18094return __chkstk ();
18095 ;
18096 return 0;
18097}
18098_ACEOF
18099rm -f conftest.$ac_objext conftest$ac_exeext
18100if { (ac_try="$ac_link"
18101case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_link") 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117esac
18118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest$ac_exeext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127esac
18128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_lib_gcc___chkstk=yes
18134else
18135 echo "$as_me: failed program was:" >&5
18136sed 's/^/| /' conftest.$ac_ext >&5
18137
18138 ac_cv_lib_gcc___chkstk=no
18139fi
18140
18141rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18143LIBS=$ac_check_lib_save_LIBS
18144fi
18145{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18146echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18147if test $ac_cv_lib_gcc___chkstk = yes; then
18148
18149cat >>confdefs.h <<\_ACEOF
18150#define HAVE___CHKSTK 1
18151_ACEOF
18152
18153fi
18154
18155 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18156echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18157if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18159else
18160 ac_check_lib_save_LIBS=$LIBS
18161LIBS="-lgcc $LIBS"
18162cat >conftest.$ac_ext <<_ACEOF
18163/* confdefs.h. */
18164_ACEOF
18165cat confdefs.h >>conftest.$ac_ext
18166cat >>conftest.$ac_ext <<_ACEOF
18167/* end confdefs.h. */
18168
18169/* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18172#ifdef __cplusplus
18173extern "C"
18174#endif
18175char ___chkstk ();
18176int
18177main ()
18178{
18179return ___chkstk ();
18180 ;
18181 return 0;
18182}
18183_ACEOF
18184rm -f conftest.$ac_objext conftest$ac_exeext
18185if { (ac_try="$ac_link"
18186case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18189esac
18190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_link") 2>conftest.er1
18192 ac_status=$?
18193 grep -v '^ *+' conftest.er1 >conftest.err
18194 rm -f conftest.er1
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18199 { (case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18202esac
18203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_try") 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; } &&
18208 { ac_try='test -s conftest$ac_exeext'
18209 { (case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18212esac
18213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_try") 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_cv_lib_gcc____chkstk=yes
18219else
18220 echo "$as_me: failed program was:" >&5
18221sed 's/^/| /' conftest.$ac_ext >&5
18222
18223 ac_cv_lib_gcc____chkstk=no
18224fi
18225
18226rm -f core conftest.err conftest.$ac_objext \
18227 conftest$ac_exeext conftest.$ac_ext
18228LIBS=$ac_check_lib_save_LIBS
18229fi
18230{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18231echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18232if test $ac_cv_lib_gcc____chkstk = yes; then
18233
18234cat >>confdefs.h <<\_ACEOF
18235#define HAVE____CHKSTK 1
18236_ACEOF
18237
18238fi
18239
18240
18241 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18242echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18243if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18245else
18246 ac_check_lib_save_LIBS=$LIBS
18247LIBS="-lgcc $LIBS"
18248cat >conftest.$ac_ext <<_ACEOF
18249/* confdefs.h. */
18250_ACEOF
18251cat confdefs.h >>conftest.$ac_ext
18252cat >>conftest.$ac_ext <<_ACEOF
18253/* end confdefs.h. */
18254
18255/* Override any GCC internal prototype to avoid an error.
18256 Use char because int might match the return type of a GCC
18257 builtin and then its argument prototype would still apply. */
18258#ifdef __cplusplus
18259extern "C"
18260#endif
18261char __ashldi3 ();
18262int
18263main ()
18264{
18265return __ashldi3 ();
18266 ;
18267 return 0;
18268}
18269_ACEOF
18270rm -f conftest.$ac_objext conftest$ac_exeext
18271if { (ac_try="$ac_link"
18272case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18275esac
18276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_link") 2>conftest.er1
18278 ac_status=$?
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18288esac
18289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest$ac_exeext'
18295 { (case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18298esac
18299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_try") 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 ac_cv_lib_gcc___ashldi3=yes
18305else
18306 echo "$as_me: failed program was:" >&5
18307sed 's/^/| /' conftest.$ac_ext >&5
18308
18309 ac_cv_lib_gcc___ashldi3=no
18310fi
18311
18312rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18314LIBS=$ac_check_lib_save_LIBS
18315fi
18316{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18317echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18318if test $ac_cv_lib_gcc___ashldi3 = yes; then
18319
18320cat >>confdefs.h <<\_ACEOF
18321#define HAVE___ASHLDI3 1
18322_ACEOF
18323
18324fi
18325
18326 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18327echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18328if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18330else
18331 ac_check_lib_save_LIBS=$LIBS
18332LIBS="-lgcc $LIBS"
18333cat >conftest.$ac_ext <<_ACEOF
18334/* confdefs.h. */
18335_ACEOF
18336cat confdefs.h >>conftest.$ac_ext
18337cat >>conftest.$ac_ext <<_ACEOF
18338/* end confdefs.h. */
18339
18340/* Override any GCC internal prototype to avoid an error.
18341 Use char because int might match the return type of a GCC
18342 builtin and then its argument prototype would still apply. */
18343#ifdef __cplusplus
18344extern "C"
18345#endif
18346char __ashrdi3 ();
18347int
18348main ()
18349{
18350return __ashrdi3 ();
18351 ;
18352 return 0;
18353}
18354_ACEOF
18355rm -f conftest.$ac_objext conftest$ac_exeext
18356if { (ac_try="$ac_link"
18357case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18360esac
18361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_link") 2>conftest.er1
18363 ac_status=$?
18364 grep -v '^ *+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
18369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18370 { (case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18373esac
18374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_try") 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; } &&
18379 { ac_try='test -s conftest$ac_exeext'
18380 { (case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18383esac
18384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385 (eval "$ac_try") 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
18389 ac_cv_lib_gcc___ashrdi3=yes
18390else
18391 echo "$as_me: failed program was:" >&5
18392sed 's/^/| /' conftest.$ac_ext >&5
18393
18394 ac_cv_lib_gcc___ashrdi3=no
18395fi
18396
18397rm -f core conftest.err conftest.$ac_objext \
18398 conftest$ac_exeext conftest.$ac_ext
18399LIBS=$ac_check_lib_save_LIBS
18400fi
18401{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18402echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18403if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18404
18405cat >>confdefs.h <<\_ACEOF
18406#define HAVE___ASHRDI3 1
18407_ACEOF
18408
18409fi
18410
18411 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18412echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18413if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18415else
18416 ac_check_lib_save_LIBS=$LIBS
18417LIBS="-lgcc $LIBS"
18418cat >conftest.$ac_ext <<_ACEOF
18419/* confdefs.h. */
18420_ACEOF
18421cat confdefs.h >>conftest.$ac_ext
18422cat >>conftest.$ac_ext <<_ACEOF
18423/* end confdefs.h. */
18424
18425/* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18428#ifdef __cplusplus
18429extern "C"
18430#endif
18431char __divdi3 ();
18432int
18433main ()
18434{
18435return __divdi3 ();
18436 ;
18437 return 0;
18438}
18439_ACEOF
18440rm -f conftest.$ac_objext conftest$ac_exeext
18441if { (ac_try="$ac_link"
18442case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458esac
18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468esac
18469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 ac_cv_lib_gcc___divdi3=yes
18475else
18476 echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479 ac_cv_lib_gcc___divdi3=no
18480fi
18481
18482rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18484LIBS=$ac_check_lib_save_LIBS
18485fi
18486{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18487echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18488if test $ac_cv_lib_gcc___divdi3 = yes; then
18489
18490cat >>confdefs.h <<\_ACEOF
18491#define HAVE___DIVDI3 1
18492_ACEOF
18493
18494fi
18495
18496 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18497echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18498if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18500else
18501 ac_check_lib_save_LIBS=$LIBS
18502LIBS="-lgcc $LIBS"
18503cat >conftest.$ac_ext <<_ACEOF
18504/* confdefs.h. */
18505_ACEOF
18506cat confdefs.h >>conftest.$ac_ext
18507cat >>conftest.$ac_ext <<_ACEOF
18508/* end confdefs.h. */
18509
18510/* Override any GCC internal prototype to avoid an error.
18511 Use char because int might match the return type of a GCC
18512 builtin and then its argument prototype would still apply. */
18513#ifdef __cplusplus
18514extern "C"
18515#endif
18516char __fixdfdi ();
18517int
18518main ()
18519{
18520return __fixdfdi ();
18521 ;
18522 return 0;
18523}
18524_ACEOF
18525rm -f conftest.$ac_objext conftest$ac_exeext
18526if { (ac_try="$ac_link"
18527case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18530esac
18531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_link") 2>conftest.er1
18533 ac_status=$?
18534 grep -v '^ *+' conftest.er1 >conftest.err
18535 rm -f conftest.er1
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18540 { (case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18543esac
18544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_try") 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest$ac_exeext'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553esac
18554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 ac_cv_lib_gcc___fixdfdi=yes
18560else
18561 echo "$as_me: failed program was:" >&5
18562sed 's/^/| /' conftest.$ac_ext >&5
18563
18564 ac_cv_lib_gcc___fixdfdi=no
18565fi
18566
18567rm -f core conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
18569LIBS=$ac_check_lib_save_LIBS
18570fi
18571{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18572echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18573if test $ac_cv_lib_gcc___fixdfdi = yes; then
18574
18575cat >>confdefs.h <<\_ACEOF
18576#define HAVE___FIXDFDI 1
18577_ACEOF
18578
18579fi
18580
18581 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18582echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18583if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18585else
18586 ac_check_lib_save_LIBS=$LIBS
18587LIBS="-lgcc $LIBS"
18588cat >conftest.$ac_ext <<_ACEOF
18589/* confdefs.h. */
18590_ACEOF
18591cat confdefs.h >>conftest.$ac_ext
18592cat >>conftest.$ac_ext <<_ACEOF
18593/* end confdefs.h. */
18594
18595/* Override any GCC internal prototype to avoid an error.
18596 Use char because int might match the return type of a GCC
18597 builtin and then its argument prototype would still apply. */
18598#ifdef __cplusplus
18599extern "C"
18600#endif
18601char __fixsfdi ();
18602int
18603main ()
18604{
18605return __fixsfdi ();
18606 ;
18607 return 0;
18608}
18609_ACEOF
18610rm -f conftest.$ac_objext conftest$ac_exeext
18611if { (ac_try="$ac_link"
18612case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615esac
18616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
18624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628esac
18629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest$ac_exeext'
18635 { (case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18638esac
18639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_try") 2>&5
18641 ac_status=$?
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18644 ac_cv_lib_gcc___fixsfdi=yes
18645else
18646 echo "$as_me: failed program was:" >&5
18647sed 's/^/| /' conftest.$ac_ext >&5
18648
18649 ac_cv_lib_gcc___fixsfdi=no
18650fi
18651
18652rm -f core conftest.err conftest.$ac_objext \
18653 conftest$ac_exeext conftest.$ac_ext
18654LIBS=$ac_check_lib_save_LIBS
18655fi
18656{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18657echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18658if test $ac_cv_lib_gcc___fixsfdi = yes; then
18659
18660cat >>confdefs.h <<\_ACEOF
18661#define HAVE___FIXSFDI 1
18662_ACEOF
18663
18664fi
18665
18666 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18667echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18668if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18670else
18671 ac_check_lib_save_LIBS=$LIBS
18672LIBS="-lgcc $LIBS"
18673cat >conftest.$ac_ext <<_ACEOF
18674/* confdefs.h. */
18675_ACEOF
18676cat confdefs.h >>conftest.$ac_ext
18677cat >>conftest.$ac_ext <<_ACEOF
18678/* end confdefs.h. */
18679
18680/* Override any GCC internal prototype to avoid an error.
18681 Use char because int might match the return type of a GCC
18682 builtin and then its argument prototype would still apply. */
18683#ifdef __cplusplus
18684extern "C"
18685#endif
18686char __floatdidf ();
18687int
18688main ()
18689{
18690return __floatdidf ();
18691 ;
18692 return 0;
18693}
18694_ACEOF
18695rm -f conftest.$ac_objext conftest$ac_exeext
18696if { (ac_try="$ac_link"
18697case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18700esac
18701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_link") 2>conftest.er1
18703 ac_status=$?
18704 grep -v '^ *+' conftest.er1 >conftest.err
18705 rm -f conftest.er1
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18710 { (case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18713esac
18714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_try") 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest$ac_exeext'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723esac
18724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_cv_lib_gcc___floatdidf=yes
18730else
18731 echo "$as_me: failed program was:" >&5
18732sed 's/^/| /' conftest.$ac_ext >&5
18733
18734 ac_cv_lib_gcc___floatdidf=no
18735fi
18736
18737rm -f core conftest.err conftest.$ac_objext \
18738 conftest$ac_exeext conftest.$ac_ext
18739LIBS=$ac_check_lib_save_LIBS
18740fi
18741{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18742echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18743if test $ac_cv_lib_gcc___floatdidf = yes; then
18744
18745cat >>confdefs.h <<\_ACEOF
18746#define HAVE___FLOATDIDF 1
18747_ACEOF
18748
18749fi
18750
18751 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18752echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18753if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18755else
18756 ac_check_lib_save_LIBS=$LIBS
18757LIBS="-lgcc $LIBS"
18758cat >conftest.$ac_ext <<_ACEOF
18759/* confdefs.h. */
18760_ACEOF
18761cat confdefs.h >>conftest.$ac_ext
18762cat >>conftest.$ac_ext <<_ACEOF
18763/* end confdefs.h. */
18764
18765/* Override any GCC internal prototype to avoid an error.
18766 Use char because int might match the return type of a GCC
18767 builtin and then its argument prototype would still apply. */
18768#ifdef __cplusplus
18769extern "C"
18770#endif
18771char __lshrdi3 ();
18772int
18773main ()
18774{
18775return __lshrdi3 ();
18776 ;
18777 return 0;
18778}
18779_ACEOF
18780rm -f conftest.$ac_objext conftest$ac_exeext
18781if { (ac_try="$ac_link"
18782case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785esac
18786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_link") 2>conftest.er1
18788 ac_status=$?
18789 grep -v '^ *+' conftest.er1 >conftest.err
18790 rm -f conftest.er1
18791 cat conftest.err >&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } &&
18794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18795 { (case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18798esac
18799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_try") 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest$ac_exeext'
18805 { (case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18808esac
18809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_try") 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_cv_lib_gcc___lshrdi3=yes
18815else
18816 echo "$as_me: failed program was:" >&5
18817sed 's/^/| /' conftest.$ac_ext >&5
18818
18819 ac_cv_lib_gcc___lshrdi3=no
18820fi
18821
18822rm -f core conftest.err conftest.$ac_objext \
18823 conftest$ac_exeext conftest.$ac_ext
18824LIBS=$ac_check_lib_save_LIBS
18825fi
18826{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18827echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18828if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18829
18830cat >>confdefs.h <<\_ACEOF
18831#define HAVE___LSHRDI3 1
18832_ACEOF
18833
18834fi
18835
18836 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18837echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18838if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18840else
18841 ac_check_lib_save_LIBS=$LIBS
18842LIBS="-lgcc $LIBS"
18843cat >conftest.$ac_ext <<_ACEOF
18844/* confdefs.h. */
18845_ACEOF
18846cat confdefs.h >>conftest.$ac_ext
18847cat >>conftest.$ac_ext <<_ACEOF
18848/* end confdefs.h. */
18849
18850/* Override any GCC internal prototype to avoid an error.
18851 Use char because int might match the return type of a GCC
18852 builtin and then its argument prototype would still apply. */
18853#ifdef __cplusplus
18854extern "C"
18855#endif
18856char __moddi3 ();
18857int
18858main ()
18859{
18860return __moddi3 ();
18861 ;
18862 return 0;
18863}
18864_ACEOF
18865rm -f conftest.$ac_objext conftest$ac_exeext
18866if { (ac_try="$ac_link"
18867case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18870esac
18871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_link") 2>conftest.er1
18873 ac_status=$?
18874 grep -v '^ *+' conftest.er1 >conftest.err
18875 rm -f conftest.er1
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
18879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18880 { (case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18883esac
18884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_try") 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; } &&
18889 { ac_try='test -s conftest$ac_exeext'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18893esac
18894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_cv_lib_gcc___moddi3=yes
18900else
18901 echo "$as_me: failed program was:" >&5
18902sed 's/^/| /' conftest.$ac_ext >&5
18903
18904 ac_cv_lib_gcc___moddi3=no
18905fi
18906
18907rm -f core conftest.err conftest.$ac_objext \
18908 conftest$ac_exeext conftest.$ac_ext
18909LIBS=$ac_check_lib_save_LIBS
18910fi
18911{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18912echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18913if test $ac_cv_lib_gcc___moddi3 = yes; then
18914
18915cat >>confdefs.h <<\_ACEOF
18916#define HAVE___MODDI3 1
18917_ACEOF
18918
18919fi
18920
18921 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18922echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18923if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18925else
18926 ac_check_lib_save_LIBS=$LIBS
18927LIBS="-lgcc $LIBS"
18928cat >conftest.$ac_ext <<_ACEOF
18929/* confdefs.h. */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h. */
18934
18935/* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18938#ifdef __cplusplus
18939extern "C"
18940#endif
18941char __udivdi3 ();
18942int
18943main ()
18944{
18945return __udivdi3 ();
18946 ;
18947 return 0;
18948}
18949_ACEOF
18950rm -f conftest.$ac_objext conftest$ac_exeext
18951if { (ac_try="$ac_link"
18952case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955esac
18956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_link") 2>conftest.er1
18958 ac_status=$?
18959 grep -v '^ *+' conftest.er1 >conftest.err
18960 rm -f conftest.er1
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
18964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18965 { (case "(($ac_try" in
18966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967 *) ac_try_echo=$ac_try;;
18968esac
18969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970 (eval "$ac_try") 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; } &&
18974 { ac_try='test -s conftest$ac_exeext'
18975 { (case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18978esac
18979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_try") 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 ac_cv_lib_gcc___udivdi3=yes
18985else
18986 echo "$as_me: failed program was:" >&5
18987sed 's/^/| /' conftest.$ac_ext >&5
18988
18989 ac_cv_lib_gcc___udivdi3=no
18990fi
18991
18992rm -f core conftest.err conftest.$ac_objext \
18993 conftest$ac_exeext conftest.$ac_ext
18994LIBS=$ac_check_lib_save_LIBS
18995fi
18996{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18997echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18998if test $ac_cv_lib_gcc___udivdi3 = yes; then
18999
19000cat >>confdefs.h <<\_ACEOF
19001#define HAVE___UDIVDI3 1
19002_ACEOF
19003
19004fi
19005
19006 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19007echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19008if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19010else
19011 ac_check_lib_save_LIBS=$LIBS
19012LIBS="-lgcc $LIBS"
19013cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019
19020/* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19023#ifdef __cplusplus
19024extern "C"
19025#endif
19026char __umoddi3 ();
19027int
19028main ()
19029{
19030return __umoddi3 ();
19031 ;
19032 return 0;
19033}
19034_ACEOF
19035rm -f conftest.$ac_objext conftest$ac_exeext
19036if { (ac_try="$ac_link"
19037case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040esac
19041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19043 ac_status=$?
19044 grep -v '^ *+' conftest.er1 >conftest.err
19045 rm -f conftest.er1
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } &&
19049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19050 { (case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19053esac
19054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_try") 2>&5
19056 ac_status=$?
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try='test -s conftest$ac_exeext'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063esac
19064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19069 ac_cv_lib_gcc___umoddi3=yes
19070else
19071 echo "$as_me: failed program was:" >&5
19072sed 's/^/| /' conftest.$ac_ext >&5
19073
19074 ac_cv_lib_gcc___umoddi3=no
19075fi
19076
19077rm -f core conftest.err conftest.$ac_objext \
19078 conftest$ac_exeext conftest.$ac_ext
19079LIBS=$ac_check_lib_save_LIBS
19080fi
19081{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19082echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19083if test $ac_cv_lib_gcc___umoddi3 = yes; then
19084
19085cat >>confdefs.h <<\_ACEOF
19086#define HAVE___UMODDI3 1
19087_ACEOF
19088
19089fi
19090
19091
19092 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19093echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19094if test "${ac_cv_lib_gcc___main+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19096else
19097 ac_check_lib_save_LIBS=$LIBS
19098LIBS="-lgcc $LIBS"
19099cat >conftest.$ac_ext <<_ACEOF
19100/* confdefs.h. */
19101_ACEOF
19102cat confdefs.h >>conftest.$ac_ext
19103cat >>conftest.$ac_ext <<_ACEOF
19104/* end confdefs.h. */
19105
19106/* Override any GCC internal prototype to avoid an error.
19107 Use char because int might match the return type of a GCC
19108 builtin and then its argument prototype would still apply. */
19109#ifdef __cplusplus
19110extern "C"
19111#endif
19112char __main ();
19113int
19114main ()
19115{
19116return __main ();
19117 ;
19118 return 0;
19119}
19120_ACEOF
19121rm -f conftest.$ac_objext conftest$ac_exeext
19122if { (ac_try="$ac_link"
19123case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126esac
19127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_link") 2>conftest.er1
19129 ac_status=$?
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19136 { (case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19139esac
19140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_try") 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; } &&
19145 { ac_try='test -s conftest$ac_exeext'
19146 { (case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19149esac
19150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151 (eval "$ac_try") 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 ac_cv_lib_gcc___main=yes
19156else
19157 echo "$as_me: failed program was:" >&5
19158sed 's/^/| /' conftest.$ac_ext >&5
19159
19160 ac_cv_lib_gcc___main=no
19161fi
19162
19163rm -f core conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext conftest.$ac_ext
19165LIBS=$ac_check_lib_save_LIBS
19166fi
19167{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19168echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19169if test $ac_cv_lib_gcc___main = yes; then
19170
19171cat >>confdefs.h <<\_ACEOF
19172#define HAVE___MAIN 1
19173_ACEOF
19174
19175fi
19176
19177 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19178echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19179if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19181else
19182 ac_check_lib_save_LIBS=$LIBS
19183LIBS="-lgcc $LIBS"
19184cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190
19191/* Override any GCC internal prototype to avoid an error.
19192 Use char because int might match the return type of a GCC
19193 builtin and then its argument prototype would still apply. */
19194#ifdef __cplusplus
19195extern "C"
19196#endif
19197char __cmpdi2 ();
19198int
19199main ()
19200{
19201return __cmpdi2 ();
19202 ;
19203 return 0;
19204}
19205_ACEOF
19206rm -f conftest.$ac_objext conftest$ac_exeext
19207if { (ac_try="$ac_link"
19208case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19211esac
19212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_link") 2>conftest.er1
19214 ac_status=$?
19215 grep -v '^ *+' conftest.er1 >conftest.err
19216 rm -f conftest.er1
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } &&
19220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19221 { (case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19224esac
19225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_try") 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; } &&
19230 { ac_try='test -s conftest$ac_exeext'
19231 { (case "(($ac_try" in
19232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233 *) ac_try_echo=$ac_try;;
19234esac
19235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236 (eval "$ac_try") 2>&5
19237 ac_status=$?
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; }; then
19240 ac_cv_lib_gcc___cmpdi2=yes
19241else
19242 echo "$as_me: failed program was:" >&5
19243sed 's/^/| /' conftest.$ac_ext >&5
19244
19245 ac_cv_lib_gcc___cmpdi2=no
19246fi
19247
19248rm -f core conftest.err conftest.$ac_objext \
19249 conftest$ac_exeext conftest.$ac_ext
19250LIBS=$ac_check_lib_save_LIBS
19251fi
19252{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19253echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19254if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19255
19256cat >>confdefs.h <<\_ACEOF
19257#define HAVE___CMPDI2 1
19258_ACEOF
19259
19260fi
19261
19262fi
19263
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019264if test "$llvm_cv_os_type" = "MingW" ; then
19265 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19266echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19267 cat >conftest.$ac_ext <<_ACEOF
19268#include <windows.h>
19269#include <imagehlp.h>
19270extern void foo(PENUMLOADED_MODULES_CALLBACK);
19271extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19272_ACEOF
19273rm -f conftest.$ac_objext
19274if { (ac_try="$ac_compile"
19275case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278esac
19279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_compile") 2>conftest.er1
19281 ac_status=$?
19282 grep -v '^ *+' conftest.er1 >conftest.err
19283 rm -f conftest.er1
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } &&
19287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19288 { (case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19291esac
19292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_try") 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; } &&
19297 { ac_try='test -s conftest.$ac_objext'
19298 { (case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19301esac
19302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_try") 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; }; then
19307
19308 { echo "$as_me:$LINENO: result: yes" >&5
19309echo "${ECHO_T}yes" >&6; }
19310 llvm_cv_win32_elmcb_pcstr="PCSTR"
19311
19312else
19313 echo "$as_me: failed program was:" >&5
19314sed 's/^/| /' conftest.$ac_ext >&5
19315
19316
19317 { echo "$as_me:$LINENO: result: no" >&5
19318echo "${ECHO_T}no" >&6; }
19319 llvm_cv_win32_elmcb_pcstr="PSTR"
19320
19321fi
19322
19323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19324
19325cat >>confdefs.h <<_ACEOF
19326#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19327_ACEOF
19328
19329fi
19330
Torok Edwin871384f2010-01-26 08:50:50 +000019331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019332{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19333echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19334if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019336else
Reid Spencera773bd52006-08-04 18:18:08 +000019337 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019338ac_cpp='$CXXCPP $CPPFLAGS'
19339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019343 cat >conftest.$ac_ext <<_ACEOF
19344/* confdefs.h. */
19345_ACEOF
19346cat confdefs.h >>conftest.$ac_ext
19347cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019348/* end confdefs.h. */
19349#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019350int
19351main ()
19352{
19353float f; isnan(f);
19354 ;
19355 return 0;
19356}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019357_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019358rm -f conftest.$ac_objext
19359if { (ac_try="$ac_compile"
19360case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19363esac
19364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_compile") 2>conftest.er1
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19373 { (case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19376esac
19377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_try") 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
19383 { (case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19386esac
19387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388 (eval "$ac_try") 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019392 ac_cv_func_isnan_in_math_h=yes
19393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019394 echo "$as_me: failed program was:" >&5
19395sed 's/^/| /' conftest.$ac_ext >&5
19396
19397 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019399
Reid Spencera773bd52006-08-04 18:18:08 +000019400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019401 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019402ac_cpp='$CPP $CPPFLAGS'
19403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405ac_compiler_gnu=$ac_cv_c_compiler_gnu
19406
19407fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019408{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19409echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019410
19411
19412if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019413
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019414cat >>confdefs.h <<\_ACEOF
19415#define HAVE_ISNAN_IN_MATH_H 1
19416_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019417
Reid Spencerabec8f92004-10-27 23:03:44 +000019418fi
19419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019420{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19421echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19422if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019424else
Reid Spencera773bd52006-08-04 18:18:08 +000019425 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019426ac_cpp='$CXXCPP $CPPFLAGS'
19427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019431 cat >conftest.$ac_ext <<_ACEOF
19432/* confdefs.h. */
19433_ACEOF
19434cat confdefs.h >>conftest.$ac_ext
19435cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019436/* end confdefs.h. */
19437#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019438int
19439main ()
19440{
19441float f; isnan(f);
19442 ;
19443 return 0;
19444}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019446rm -f conftest.$ac_objext
19447if { (ac_try="$ac_compile"
19448case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19451esac
19452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_compile") 2>conftest.er1
19454 ac_status=$?
19455 grep -v '^ *+' conftest.er1 >conftest.err
19456 rm -f conftest.er1
19457 cat conftest.err >&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } &&
19460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19461 { (case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19464esac
19465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_try") 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19474esac
19475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_try") 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019480 ac_cv_func_isnan_in_cmath=yes
19481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019482 echo "$as_me: failed program was:" >&5
19483sed 's/^/| /' conftest.$ac_ext >&5
19484
19485 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019486fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019487
Reid Spencera773bd52006-08-04 18:18:08 +000019488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019489 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019490ac_cpp='$CPP $CPPFLAGS'
19491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19493ac_compiler_gnu=$ac_cv_c_compiler_gnu
19494
19495fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019496{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19497echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019498
19499if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019501cat >>confdefs.h <<\_ACEOF
19502#define HAVE_ISNAN_IN_CMATH 1
19503_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019504
Reid Spencerabec8f92004-10-27 23:03:44 +000019505fi
19506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019507{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19508echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19509if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019511else
Reid Spencera773bd52006-08-04 18:18:08 +000019512 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019513ac_cpp='$CXXCPP $CPPFLAGS'
19514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019518 cat >conftest.$ac_ext <<_ACEOF
19519/* confdefs.h. */
19520_ACEOF
19521cat confdefs.h >>conftest.$ac_ext
19522cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019523/* end confdefs.h. */
19524#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019525int
19526main ()
19527{
19528float f; std::isnan(f);
19529 ;
19530 return 0;
19531}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019532_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019533rm -f conftest.$ac_objext
19534if { (ac_try="$ac_compile"
19535case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538esac
19539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_compile") 2>conftest.er1
19541 ac_status=$?
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551esac
19552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest.$ac_objext'
19558 { (case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19561esac
19562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_try") 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019567 ac_cv_func_std_isnan_in_cmath=yes
19568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019569 echo "$as_me: failed program was:" >&5
19570sed 's/^/| /' conftest.$ac_ext >&5
19571
19572 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019574
Reid Spencera773bd52006-08-04 18:18:08 +000019575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019576 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019577ac_cpp='$CPP $CPPFLAGS'
19578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580ac_compiler_gnu=$ac_cv_c_compiler_gnu
19581
19582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019583{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19584echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019585
19586if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019588cat >>confdefs.h <<\_ACEOF
19589#define HAVE_STD_ISNAN_IN_CMATH 1
19590_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019591
Reid Spencerabec8f92004-10-27 23:03:44 +000019592fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019593
19594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019595{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19596echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19597if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019599else
Reid Spencera773bd52006-08-04 18:18:08 +000019600 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019601ac_cpp='$CXXCPP $CPPFLAGS'
19602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019606 cat >conftest.$ac_ext <<_ACEOF
19607/* confdefs.h. */
19608_ACEOF
19609cat confdefs.h >>conftest.$ac_ext
19610cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019611/* end confdefs.h. */
19612#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019613int
19614main ()
19615{
19616float f; isinf(f);
19617 ;
19618 return 0;
19619}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019620_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019621rm -f conftest.$ac_objext
19622if { (ac_try="$ac_compile"
19623case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626esac
19627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_compile") 2>conftest.er1
19629 ac_status=$?
19630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
19635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19636 { (case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639esac
19640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_try") 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19649esac
19650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651 (eval "$ac_try") 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019655 ac_cv_func_isinf_in_math_h=yes
19656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019657 echo "$as_me: failed program was:" >&5
19658sed 's/^/| /' conftest.$ac_ext >&5
19659
19660 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019662
Reid Spencera773bd52006-08-04 18:18:08 +000019663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019664 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019665ac_cpp='$CPP $CPPFLAGS'
19666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19668ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669
19670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019671{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19672echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019673
19674if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019676cat >>confdefs.h <<\_ACEOF
19677#define HAVE_ISINF_IN_MATH_H 1
19678_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019679
Reid Spencerabec8f92004-10-27 23:03:44 +000019680fi
19681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019682{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19683echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19684if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019686else
Reid Spencera773bd52006-08-04 18:18:08 +000019687 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019688ac_cpp='$CXXCPP $CPPFLAGS'
19689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019693 cat >conftest.$ac_ext <<_ACEOF
19694/* confdefs.h. */
19695_ACEOF
19696cat confdefs.h >>conftest.$ac_ext
19697cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019698/* end confdefs.h. */
19699#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019700int
19701main ()
19702{
19703float f; isinf(f);
19704 ;
19705 return 0;
19706}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019707_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019708rm -f conftest.$ac_objext
19709if { (ac_try="$ac_compile"
19710case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713esac
19714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_compile") 2>conftest.er1
19716 ac_status=$?
19717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19723 { (case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19726esac
19727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_try") 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736esac
19737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_try") 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019742 ac_cv_func_isinf_in_cmath=yes
19743else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019744 echo "$as_me: failed program was:" >&5
19745sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019748fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019749
Reid Spencera773bd52006-08-04 18:18:08 +000019750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019751 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019752ac_cpp='$CPP $CPPFLAGS'
19753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755ac_compiler_gnu=$ac_cv_c_compiler_gnu
19756
19757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019758{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19759echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019760
19761if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019763cat >>confdefs.h <<\_ACEOF
19764#define HAVE_ISINF_IN_CMATH 1
19765_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019766
Reid Spencerabec8f92004-10-27 23:03:44 +000019767fi
19768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019769{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19770echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19771if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019773else
Reid Spencera773bd52006-08-04 18:18:08 +000019774 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019775ac_cpp='$CXXCPP $CPPFLAGS'
19776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019780 cat >conftest.$ac_ext <<_ACEOF
19781/* confdefs.h. */
19782_ACEOF
19783cat confdefs.h >>conftest.$ac_ext
19784cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019785/* end confdefs.h. */
19786#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019787int
19788main ()
19789{
19790float f; std::isinf(f)}
19791 ;
19792 return 0;
19793}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019794_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019795rm -f conftest.$ac_objext
19796if { (ac_try="$ac_compile"
19797case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800esac
19801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_compile") 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_try") 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019829 ac_cv_func_std_isinf_in_cmath=yes
19830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019831 echo "$as_me: failed program was:" >&5
19832sed 's/^/| /' conftest.$ac_ext >&5
19833
19834 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019835fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019836
Reid Spencera773bd52006-08-04 18:18:08 +000019837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019838 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019839ac_cpp='$CPP $CPPFLAGS'
19840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842ac_compiler_gnu=$ac_cv_c_compiler_gnu
19843
19844fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019845{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19846echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019847
19848if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019850cat >>confdefs.h <<\_ACEOF
19851#define HAVE_STD_ISINF_IN_CMATH 1
19852_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019853
Reid Spencerabec8f92004-10-27 23:03:44 +000019854fi
19855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019856{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19857echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19858if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019860else
Reid Spencera773bd52006-08-04 18:18:08 +000019861 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019862ac_cpp='$CXXCPP $CPPFLAGS'
19863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019867 cat >conftest.$ac_ext <<_ACEOF
19868/* confdefs.h. */
19869_ACEOF
19870cat confdefs.h >>conftest.$ac_ext
19871cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019872/* end confdefs.h. */
19873#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019874int
19875main ()
19876{
19877float f; finite(f);
19878 ;
19879 return 0;
19880}
Brian Gaeked59a6472004-07-21 03:33:58 +000019881_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019882rm -f conftest.$ac_objext
19883if { (ac_try="$ac_compile"
19884case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887esac
19888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_compile") 2>conftest.er1
19890 ac_status=$?
19891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19900esac
19901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; } &&
19906 { ac_try='test -s conftest.$ac_objext'
19907 { (case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19910esac
19911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_try") 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019916 ac_cv_func_finite_in_ieeefp_h=yes
19917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019918 echo "$as_me: failed program was:" >&5
19919sed 's/^/| /' conftest.$ac_ext >&5
19920
19921 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019922fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019923
Reid Spencera773bd52006-08-04 18:18:08 +000019924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019925 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019926ac_cpp='$CPP $CPPFLAGS'
19927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930
19931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019932{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19933echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019934
Brian Gaeke6802b552004-10-28 05:06:45 +000019935if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019936
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019937cat >>confdefs.h <<\_ACEOF
19938#define HAVE_FINITE_IN_IEEEFP_H 1
19939_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019940
Reid Spencerabec8f92004-10-27 23:03:44 +000019941fi
19942
19943
19944
Reid Spencer30fe5262007-01-20 07:48:49 +000019945if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019946
19947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019948for ac_header in stdlib.h unistd.h
19949do
19950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19956fi
19957ac_res=`eval echo '${'$as_ac_Header'}'`
19958 { echo "$as_me:$LINENO: result: $ac_res" >&5
19959echo "${ECHO_T}$ac_res" >&6; }
19960else
19961 # Is the header compilable?
19962{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19963echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19964cat >conftest.$ac_ext <<_ACEOF
19965/* confdefs.h. */
19966_ACEOF
19967cat confdefs.h >>conftest.$ac_ext
19968cat >>conftest.$ac_ext <<_ACEOF
19969/* end confdefs.h. */
19970$ac_includes_default
19971#include <$ac_header>
19972_ACEOF
19973rm -f conftest.$ac_objext
19974if { (ac_try="$ac_compile"
19975case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19978esac
19979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_compile") 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19988 { (case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19991esac
19992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_try") 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; } &&
19997 { ac_try='test -s conftest.$ac_objext'
19998 { (case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20001esac
20002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_try") 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 ac_header_compiler=yes
20008else
20009 echo "$as_me: failed program was:" >&5
20010sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020012 ac_header_compiler=no
20013fi
20014
20015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20016{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20017echo "${ECHO_T}$ac_header_compiler" >&6; }
20018
20019# Is the header present?
20020{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20021echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20022cat >conftest.$ac_ext <<_ACEOF
20023/* confdefs.h. */
20024_ACEOF
20025cat confdefs.h >>conftest.$ac_ext
20026cat >>conftest.$ac_ext <<_ACEOF
20027/* end confdefs.h. */
20028#include <$ac_header>
20029_ACEOF
20030if { (ac_try="$ac_cpp conftest.$ac_ext"
20031case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20034esac
20035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20037 ac_status=$?
20038 grep -v '^ *+' conftest.er1 >conftest.err
20039 rm -f conftest.er1
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } >/dev/null; then
20043 if test -s conftest.err; then
20044 ac_cpp_err=$ac_c_preproc_warn_flag
20045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20046 else
20047 ac_cpp_err=
20048 fi
20049else
20050 ac_cpp_err=yes
20051fi
20052if test -z "$ac_cpp_err"; then
20053 ac_header_preproc=yes
20054else
20055 echo "$as_me: failed program was:" >&5
20056sed 's/^/| /' conftest.$ac_ext >&5
20057
20058 ac_header_preproc=no
20059fi
20060
20061rm -f conftest.err conftest.$ac_ext
20062{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20063echo "${ECHO_T}$ac_header_preproc" >&6; }
20064
20065# So? What about this header?
20066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20067 yes:no: )
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20069echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20071echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20072 ac_header_preproc=yes
20073 ;;
20074 no:yes:* )
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20076echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20078echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20080echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20082echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20084echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20086echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20087 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020088## ------------------------------------ ##
20089## Report this to http://llvm.org/bugs/ ##
20090## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020091_ASBOX
20092 ) | sed "s/^/$as_me: WARNING: /" >&2
20093 ;;
20094esac
20095{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099else
20100 eval "$as_ac_Header=\$ac_header_preproc"
20101fi
20102ac_res=`eval echo '${'$as_ac_Header'}'`
20103 { echo "$as_me:$LINENO: result: $ac_res" >&5
20104echo "${ECHO_T}$ac_res" >&6; }
20105
20106fi
20107if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020108 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020110_ACEOF
20111
20112fi
20113
20114done
20115
20116
20117for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020118do
20119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20120{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20122if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20124else
20125 cat >conftest.$ac_ext <<_ACEOF
20126/* confdefs.h. */
20127_ACEOF
20128cat confdefs.h >>conftest.$ac_ext
20129cat >>conftest.$ac_ext <<_ACEOF
20130/* end confdefs.h. */
20131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20133#define $ac_func innocuous_$ac_func
20134
20135/* System header to define __stub macros and hopefully few prototypes,
20136 which can conflict with char $ac_func (); below.
20137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20138 <limits.h> exists even on freestanding compilers. */
20139
20140#ifdef __STDC__
20141# include <limits.h>
20142#else
20143# include <assert.h>
20144#endif
20145
20146#undef $ac_func
20147
20148/* Override any GCC internal prototype to avoid an error.
20149 Use char because int might match the return type of a GCC
20150 builtin and then its argument prototype would still apply. */
20151#ifdef __cplusplus
20152extern "C"
20153#endif
20154char $ac_func ();
20155/* The GNU C library defines this for functions which it implements
20156 to always fail with ENOSYS. Some functions are actually named
20157 something starting with __ and the normal name is an alias. */
20158#if defined __stub_$ac_func || defined __stub___$ac_func
20159choke me
20160#endif
20161
20162int
20163main ()
20164{
20165return $ac_func ();
20166 ;
20167 return 0;
20168}
20169_ACEOF
20170rm -f conftest.$ac_objext conftest$ac_exeext
20171if { (ac_try="$ac_link"
20172case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20175esac
20176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_link") 2>conftest.er1
20178 ac_status=$?
20179 grep -v '^ *+' conftest.er1 >conftest.err
20180 rm -f conftest.er1
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } &&
20184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20185 { (case "(($ac_try" in
20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187 *) ac_try_echo=$ac_try;;
20188esac
20189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190 (eval "$ac_try") 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; } &&
20194 { ac_try='test -s conftest$ac_exeext'
20195 { (case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20198esac
20199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_try") 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204 eval "$as_ac_var=yes"
20205else
20206 echo "$as_me: failed program was:" >&5
20207sed 's/^/| /' conftest.$ac_ext >&5
20208
20209 eval "$as_ac_var=no"
20210fi
20211
20212rm -f core conftest.err conftest.$ac_objext \
20213 conftest$ac_exeext conftest.$ac_ext
20214fi
20215ac_res=`eval echo '${'$as_ac_var'}'`
20216 { echo "$as_me:$LINENO: result: $ac_res" >&5
20217echo "${ECHO_T}$ac_res" >&6; }
20218if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020219 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020221_ACEOF
20222
20223fi
20224done
20225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020226{ echo "$as_me:$LINENO: checking for working mmap" >&5
20227echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20228if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020230else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020231 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020232 ac_cv_func_mmap_fixed_mapped=no
20233else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020234 cat >conftest.$ac_ext <<_ACEOF
20235/* confdefs.h. */
20236_ACEOF
20237cat confdefs.h >>conftest.$ac_ext
20238cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020239/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020240$ac_includes_default
20241/* malloc might have been renamed as rpl_malloc. */
20242#undef malloc
20243
20244/* Thanks to Mike Haertel and Jim Avera for this test.
20245 Here is a matrix of mmap possibilities:
20246 mmap private not fixed
20247 mmap private fixed at somewhere currently unmapped
20248 mmap private fixed at somewhere already mapped
20249 mmap shared not fixed
20250 mmap shared fixed at somewhere currently unmapped
20251 mmap shared fixed at somewhere already mapped
20252 For private mappings, we should verify that changes cannot be read()
20253 back from the file, nor mmap's back from the file at a different
20254 address. (There have been systems where private was not correctly
20255 implemented like the infamous i386 svr4.0, and systems where the
20256 VM page cache was not coherent with the file system buffer cache
20257 like early versions of FreeBSD and possibly contemporary NetBSD.)
20258 For shared mappings, we should conversely verify that changes get
20259 propagated back to all the places they're supposed to be.
20260
20261 Grep wants private fixed already mapped.
20262 The main things grep needs to know about mmap are:
20263 * does it exist and is it safe to write into the mmap'd area
20264 * how to use it (BSD variants) */
20265
20266#include <fcntl.h>
20267#include <sys/mman.h>
20268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020269#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020270char *malloc ();
20271#endif
20272
20273/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020274#if !HAVE_GETPAGESIZE
20275/* Assume that all systems that can run configure have sys/param.h. */
20276# if !HAVE_SYS_PARAM_H
20277# define HAVE_SYS_PARAM_H 1
20278# endif
20279
John Criswell7a73b802003-06-30 21:59:07 +000020280# ifdef _SC_PAGESIZE
20281# define getpagesize() sysconf(_SC_PAGESIZE)
20282# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020283# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020284# include <sys/param.h>
20285# ifdef EXEC_PAGESIZE
20286# define getpagesize() EXEC_PAGESIZE
20287# else /* no EXEC_PAGESIZE */
20288# ifdef NBPG
20289# define getpagesize() NBPG * CLSIZE
20290# ifndef CLSIZE
20291# define CLSIZE 1
20292# endif /* no CLSIZE */
20293# else /* no NBPG */
20294# ifdef NBPC
20295# define getpagesize() NBPC
20296# else /* no NBPC */
20297# ifdef PAGESIZE
20298# define getpagesize() PAGESIZE
20299# endif /* PAGESIZE */
20300# endif /* no NBPC */
20301# endif /* no NBPG */
20302# endif /* no EXEC_PAGESIZE */
20303# else /* no HAVE_SYS_PARAM_H */
20304# define getpagesize() 8192 /* punt totally */
20305# endif /* no HAVE_SYS_PARAM_H */
20306# endif /* no _SC_PAGESIZE */
20307
20308#endif /* no HAVE_GETPAGESIZE */
20309
20310int
20311main ()
20312{
20313 char *data, *data2, *data3;
20314 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020315 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020316
20317 pagesize = getpagesize ();
20318
20319 /* First, make a file with some known garbage in it. */
20320 data = (char *) malloc (pagesize);
20321 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020322 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020323 for (i = 0; i < pagesize; ++i)
20324 *(data + i) = rand ();
20325 umask (0);
20326 fd = creat ("conftest.mmap", 0600);
20327 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020328 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020329 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020330 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020331 close (fd);
20332
20333 /* Next, try to mmap the file at a fixed address which already has
20334 something else allocated at it. If we can, also make sure that
20335 we see the same garbage. */
20336 fd = open ("conftest.mmap", O_RDWR);
20337 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020338 return 1;
20339 data2 = (char *) malloc (2 * pagesize);
20340 if (!data2)
20341 return 1;
20342 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020343 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020344 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020345 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020346 for (i = 0; i < pagesize; ++i)
20347 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020348 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020349
20350 /* Finally, make sure that changes to the mapped area do not
20351 percolate back to the file as seen by read(). (This is a bug on
20352 some variants of i386 svr4.0.) */
20353 for (i = 0; i < pagesize; ++i)
20354 *(data2 + i) = *(data2 + i) + 1;
20355 data3 = (char *) malloc (pagesize);
20356 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020357 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020358 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020359 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020360 for (i = 0; i < pagesize; ++i)
20361 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020363 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020364 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020365}
20366_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020367rm -f conftest$ac_exeext
20368if { (ac_try="$ac_link"
20369case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20372esac
20373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_link") 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20378 { (case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381esac
20382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_try") 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020387 ac_cv_func_mmap_fixed_mapped=yes
20388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020389 echo "$as_me: program exited with status $ac_status" >&5
20390echo "$as_me: failed program was:" >&5
20391sed 's/^/| /' conftest.$ac_ext >&5
20392
20393( exit $ac_status )
20394ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020396rm -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 +000020397fi
Reid Spencera773bd52006-08-04 18:18:08 +000020398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020399
John Criswell7a73b802003-06-30 21:59:07 +000020400fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020401{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20402echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020403if test $ac_cv_func_mmap_fixed_mapped = yes; then
20404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020405cat >>confdefs.h <<\_ACEOF
20406#define HAVE_MMAP 1
20407_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020408
20409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020410rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020411
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020412 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20413echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20414if test "${ac_cv_func_mmap_file+set}" = set; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020416else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020417 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020418ac_cpp='$CPP $CPPFLAGS'
20419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20421ac_compiler_gnu=$ac_cv_c_compiler_gnu
20422
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020423 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020424 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020426 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020428 /* confdefs.h. */
20429_ACEOF
20430cat confdefs.h >>conftest.$ac_ext
20431cat >>conftest.$ac_ext <<_ACEOF
20432/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020433
John Criswell7a73b802003-06-30 21:59:07 +000020434#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020435#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020436#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020437
20438int
20439main ()
20440{
John Criswell7a73b802003-06-30 21:59:07 +000020441
20442 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020443 fd = creat ("foo",0777);
20444 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20445 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020446 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020447 ;
20448 return 0;
20449}
John Criswell7a73b802003-06-30 21:59:07 +000020450_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020451rm -f conftest$ac_exeext
20452if { (ac_try="$ac_link"
20453case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20456esac
20457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_link") 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20462 { (case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465esac
20466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_try") 2>&5
20468 ac_status=$?
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020471 ac_cv_func_mmap_file=yes
20472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020473 echo "$as_me: program exited with status $ac_status" >&5
20474echo "$as_me: failed program was:" >&5
20475sed 's/^/| /' conftest.$ac_ext >&5
20476
20477( exit $ac_status )
20478ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020480rm -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 +000020481fi
Reid Spencera773bd52006-08-04 18:18:08 +000020482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020483
John Criswell7a73b802003-06-30 21:59:07 +000020484 ac_ext=c
20485ac_cpp='$CPP $CPPFLAGS'
20486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20488ac_compiler_gnu=$ac_cv_c_compiler_gnu
20489
20490
20491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020492{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20493echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020494if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020496cat >>confdefs.h <<\_ACEOF
20497#define HAVE_MMAP_FILE
20498_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020499
20500 MMAP_FILE=yes
20501
20502fi
20503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020504 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20505echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20506if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020508else
Reid Spencer582a23c2004-12-29 07:07:57 +000020509 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020510 ac_cv_need_dev_zero_for_mmap=yes
20511 else
20512 ac_cv_need_dev_zero_for_mmap=no
20513 fi
20514
20515fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020516{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20517echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020518if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020520cat >>confdefs.h <<\_ACEOF
20521#define NEED_DEV_ZERO_FOR_MMAP 1
20522_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020523
20524fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020525
Reid Spencer30fe5262007-01-20 07:48:49 +000020526 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20527 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020528 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20529echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020530 fi
20531 if test "$ac_cv_func_mmap_file" = "no"
20532 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020533 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20534echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020535 fi
John Criswellb13092b2003-07-22 21:00:24 +000020536fi
John Criswell7a73b802003-06-30 21:59:07 +000020537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020538{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20539echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020540ac_ext=cpp
20541ac_cpp='$CXXCPP $CPPFLAGS'
20542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020546cat >conftest.$ac_ext <<_ACEOF
20547/* confdefs.h. */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020551/* end confdefs.h. */
20552int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020553 volatile unsigned long val = 1;
20554 __sync_synchronize();
20555 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020556 __sync_add_and_fetch(&val, 1);
20557 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020558 return 0;
20559 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020560
20561_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020562rm -f conftest.$ac_objext conftest$ac_exeext
20563if { (ac_try="$ac_link"
20564case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20567esac
20568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_link") 2>conftest.er1
20570 ac_status=$?
20571 grep -v '^ *+' conftest.er1 >conftest.err
20572 rm -f conftest.er1
20573 cat conftest.err >&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); } &&
20576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20577 { (case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20580esac
20581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_try") 2>&5
20583 ac_status=$?
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; } &&
20586 { ac_try='test -s conftest$ac_exeext'
20587 { (case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20590esac
20591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_try") 2>&5
20593 ac_status=$?
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020596 ac_ext=c
20597ac_cpp='$CPP $CPPFLAGS'
20598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20600ac_compiler_gnu=$ac_cv_c_compiler_gnu
20601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020602 { echo "$as_me:$LINENO: result: yes" >&5
20603echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020605cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020606#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020607_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020608
Owen Andersond4b272b2009-05-18 23:58:51 +000020609else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020610 echo "$as_me: failed program was:" >&5
20611sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020613 { echo "$as_me:$LINENO: result: no" >&5
20614echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020617#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020618_ACEOF
20619
20620 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20621echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020623
Owen Andersond4b272b2009-05-18 23:58:51 +000020624rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020625 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020626
John Criswell7a73b802003-06-30 21:59:07 +000020627
Nick Lewycky4372e692009-09-29 06:18:23 +000020628if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020629 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20630echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20631if test "${llvm_cv_linux_mixed+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020633else
20634 ac_ext=c
20635ac_cpp='$CPP $CPPFLAGS'
20636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20638ac_compiler_gnu=$ac_cv_c_compiler_gnu
20639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020640 cat >conftest.$ac_ext <<_ACEOF
20641/* confdefs.h. */
20642_ACEOF
20643cat confdefs.h >>conftest.$ac_ext
20644cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020645/* end confdefs.h. */
20646#ifndef __x86_64__
20647 error: Not x86-64 even if uname says so!
20648 #endif
20649
20650int
20651main ()
20652{
20653
20654 ;
20655 return 0;
20656}
20657_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020658rm -f conftest.$ac_objext
20659if { (ac_try="$ac_compile"
20660case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20663esac
20664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_compile") 2>conftest.er1
20666 ac_status=$?
20667 grep -v '^ *+' conftest.er1 >conftest.err
20668 rm -f conftest.er1
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } &&
20672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20673 { (case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20676esac
20677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_try") 2>&5
20679 ac_status=$?
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; } &&
20682 { ac_try='test -s conftest.$ac_objext'
20683 { (case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20686esac
20687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_try") 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020692 llvm_cv_linux_mixed=no
20693else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020694 echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
20697 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020699
Nick Lewycky4372e692009-09-29 06:18:23 +000020700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701 ac_ext=c
20702ac_cpp='$CPP $CPPFLAGS'
20703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20705ac_compiler_gnu=$ac_cv_c_compiler_gnu
20706
20707
20708fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020709{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20710echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020711
20712 if test "$llvm_cv_linux_mixed" = "yes"; then
20713 llvm_cv_target_arch="x86"
20714 ARCH="x86"
20715 fi
20716fi
20717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020718
Reid Spencer9372f152007-07-30 20:13:24 +000020719for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020720do
20721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20722{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20724if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726else
20727 cat >conftest.$ac_ext <<_ACEOF
20728/* confdefs.h. */
20729_ACEOF
20730cat confdefs.h >>conftest.$ac_ext
20731cat >>conftest.$ac_ext <<_ACEOF
20732/* end confdefs.h. */
20733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20735#define $ac_func innocuous_$ac_func
20736
20737/* System header to define __stub macros and hopefully few prototypes,
20738 which can conflict with char $ac_func (); below.
20739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20740 <limits.h> exists even on freestanding compilers. */
20741
20742#ifdef __STDC__
20743# include <limits.h>
20744#else
20745# include <assert.h>
20746#endif
20747
20748#undef $ac_func
20749
20750/* Override any GCC internal prototype to avoid an error.
20751 Use char because int might match the return type of a GCC
20752 builtin and then its argument prototype would still apply. */
20753#ifdef __cplusplus
20754extern "C"
20755#endif
20756char $ac_func ();
20757/* The GNU C library defines this for functions which it implements
20758 to always fail with ENOSYS. Some functions are actually named
20759 something starting with __ and the normal name is an alias. */
20760#if defined __stub_$ac_func || defined __stub___$ac_func
20761choke me
20762#endif
20763
20764int
20765main ()
20766{
20767return $ac_func ();
20768 ;
20769 return 0;
20770}
20771_ACEOF
20772rm -f conftest.$ac_objext conftest$ac_exeext
20773if { (ac_try="$ac_link"
20774case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20777esac
20778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_link") 2>conftest.er1
20780 ac_status=$?
20781 grep -v '^ *+' conftest.er1 >conftest.err
20782 rm -f conftest.er1
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } &&
20786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20787 { (case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20790esac
20791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_try") 2>&5
20793 ac_status=$?
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; } &&
20796 { ac_try='test -s conftest$ac_exeext'
20797 { (case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20800esac
20801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_try") 2>&5
20803 ac_status=$?
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }; then
20806 eval "$as_ac_var=yes"
20807else
20808 echo "$as_me: failed program was:" >&5
20809sed 's/^/| /' conftest.$ac_ext >&5
20810
20811 eval "$as_ac_var=no"
20812fi
20813
20814rm -f core conftest.err conftest.$ac_objext \
20815 conftest$ac_exeext conftest.$ac_ext
20816fi
20817ac_res=`eval echo '${'$as_ac_var'}'`
20818 { echo "$as_me:$LINENO: result: $ac_res" >&5
20819echo "${ECHO_T}$ac_res" >&6; }
20820if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020821 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020823_ACEOF
20824
20825fi
20826done
20827
20828
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020829SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020830
20831
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020832SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20833
20834
Reid Spencere9de0912004-08-20 09:03:57 +000020835# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020836# information into substitutions that will end up in Makefile.config.in
20837# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020838if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020839 prefix="/usr/local"
20840fi
Reid Spencere9de0912004-08-20 09:03:57 +000020841eval LLVM_PREFIX="${prefix}";
20842eval LLVM_BINDIR="${prefix}/bin";
20843eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020844eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020845eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020846eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020847eval LLVM_INCLUDEDIR="${prefix}/include";
20848eval LLVM_INFODIR="${prefix}/info";
20849eval LLVM_MANDIR="${prefix}/man";
20850LLVM_CONFIGTIME=`date`
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020862# Place the various directores into the config.h file as #defines so that we
20863# can know about the installation paths within LLVM.
20864
Reid Spencere9de0912004-08-20 09:03:57 +000020865cat >>confdefs.h <<_ACEOF
20866#define LLVM_PREFIX "$LLVM_PREFIX"
20867_ACEOF
20868
20869
20870cat >>confdefs.h <<_ACEOF
20871#define LLVM_BINDIR "$LLVM_BINDIR"
20872_ACEOF
20873
20874
20875cat >>confdefs.h <<_ACEOF
20876#define LLVM_LIBDIR "$LLVM_LIBDIR"
20877_ACEOF
20878
20879
20880cat >>confdefs.h <<_ACEOF
20881#define LLVM_DATADIR "$LLVM_DATADIR"
20882_ACEOF
20883
20884
20885cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020886#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020887_ACEOF
20888
20889
20890cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020891#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020892_ACEOF
20893
20894
20895cat >>confdefs.h <<_ACEOF
20896#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20897_ACEOF
20898
20899
20900cat >>confdefs.h <<_ACEOF
20901#define LLVM_INFODIR "$LLVM_INFODIR"
20902_ACEOF
20903
20904
20905cat >>confdefs.h <<_ACEOF
20906#define LLVM_MANDIR "$LLVM_MANDIR"
20907_ACEOF
20908
20909
20910cat >>confdefs.h <<_ACEOF
20911#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20912_ACEOF
20913
20914
Eric Christopher790e11c2007-12-01 00:34:39 +000020915cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020916#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020917_ACEOF
20918
20919
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020920# Determine which bindings to build.
20921if test "$BINDINGS_TO_BUILD" = auto ; then
20922 BINDINGS_TO_BUILD=""
20923 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20924 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20925 fi
20926fi
20927BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20928
20929
20930# This isn't really configurey, but it avoids having to repeat the list in
20931# other files.
20932ALL_BINDINGS=ocaml
20933
20934
Gordon Henriksenf0915682007-10-02 16:42:22 +000020935# Do any work necessary to ensure that bindings have what they need.
20936binding_prereqs_failed=0
20937for a_binding in $BINDINGS_TO_BUILD ; do
20938 case "$a_binding" in
20939 ocaml)
20940 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020941 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20942echo "$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 +000020943 binding_prereqs_failed=1
20944 fi
20945 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020946 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20947echo "$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 +000020948 binding_prereqs_failed=1
20949 fi
20950 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020951 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20952echo "$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 +000020953 fi
20954 if test "x$with_ocaml_libdir" != xauto ; then
20955 OCAML_LIBDIR=$with_ocaml_libdir
20956
20957 else
20958 ocaml_stdlib="`"$OCAMLC" -where`"
20959 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20960 then
20961 # ocaml stdlib is beneath our prefix; use stdlib
20962 OCAML_LIBDIR=$ocaml_stdlib
20963
20964 else
20965 # ocaml stdlib is outside our prefix; use libdir/ocaml
20966 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20967
20968 fi
20969 fi
20970 ;;
20971 esac
20972done
20973if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020974 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20975echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20976 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020977fi
20978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020979{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20980echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20981if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020983else
20984 ac_ext=cpp
20985ac_cpp='$CXXCPP $CPPFLAGS'
20986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20989
20990 oldcxxflags="$CXXFLAGS"
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000020991 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020992 cat >conftest.$ac_ext <<_ACEOF
20993/* confdefs.h. */
20994_ACEOF
20995cat confdefs.h >>conftest.$ac_ext
20996cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020997/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000020998template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020999int
21000main ()
21001{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021002X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021003 ;
21004 return 0;
21005}
21006_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021007rm -f conftest.$ac_objext
21008if { (ac_try="$ac_compile"
21009case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21012esac
21013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_compile") 2>conftest.er1
21015 ac_status=$?
21016 grep -v '^ *+' conftest.er1 >conftest.err
21017 rm -f conftest.er1
21018 cat conftest.err >&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21022 { (case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21025esac
21026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_try") 2>&5
21028 ac_status=$?
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; } &&
21031 { ac_try='test -s conftest.$ac_objext'
21032 { (case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21035esac
21036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037 (eval "$ac_try") 2>&5
21038 ac_status=$?
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021041 llvm_cv_cxx_visibility_inlines_hidden=yes
21042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021043 echo "$as_me: failed program was:" >&5
21044sed 's/^/| /' conftest.$ac_ext >&5
21045
21046 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021047fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021048
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050 CXXFLAGS="$oldcxxflags"
21051 ac_ext=c
21052ac_cpp='$CPP $CPPFLAGS'
21053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21055ac_compiler_gnu=$ac_cv_c_compiler_gnu
21056
21057
21058fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021059{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21060echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021061if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21062 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21063
21064else
21065 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21066
21067fi
21068
Gordon Henriksenf0915682007-10-02 16:42:22 +000021069
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021070if test "$llvm_cv_link_use_r" = "yes" ; then
21071 RPATH="-Wl,-R"
21072else
21073 RPATH="-Wl,-rpath"
21074fi
21075
21076
21077if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21078 RDYNAMIC="-Wl,-export-dynamic"
21079else
21080 RDYNAMIC=""
21081fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021082
21083
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021084
Eric Christophera1cba682010-08-08 02:44:25 +000021085ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021086
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021087
21088
21089
21090
21091
Douglas Gregor1555a232009-06-16 20:12:29 +000021092ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21093
21094ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21095
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021096ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21097
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021098ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21099
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021100ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021101
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021102
Reid Spencera773bd52006-08-04 18:18:08 +000021103ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021104
Eric Christopher360fa9a2011-10-26 00:42:12 +000021105
Reid Spencerea949cf2006-08-16 00:45:38 +000021106ac_config_files="$ac_config_files llvm.spec"
21107
21108
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021109ac_config_files="$ac_config_files docs/doxygen.cfg"
21110
21111if test -f ${srcdir}/tools/clang/README.txt; then
21112 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21113
21114fi
21115
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021116ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021117
Eric Christopher360fa9a2011-10-26 00:42:12 +000021118
Reid Spencera773bd52006-08-04 18:18:08 +000021119ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021120
Reid Spencera773bd52006-08-04 18:18:08 +000021121ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021122
21123
Reid Spencera773bd52006-08-04 18:18:08 +000021124ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021125
21126
Reid Spencera773bd52006-08-04 18:18:08 +000021127ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021128
21129
Reid Spencera773bd52006-08-04 18:18:08 +000021130ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021131
21132
Reid Spencer8b2e1412006-11-17 03:32:33 +000021133ac_config_commands="$ac_config_commands runtime/Makefile"
21134
21135
Reid Spencera773bd52006-08-04 18:18:08 +000021136ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021137
21138
Reid Spencera773bd52006-08-04 18:18:08 +000021139ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021140
21141
Bill Wendlingf24eb392009-01-04 23:12:30 +000021142ac_config_commands="$ac_config_commands unittests/Makefile"
21143
21144
Reid Spencera773bd52006-08-04 18:18:08 +000021145ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021146
21147
Reid Spencera773bd52006-08-04 18:18:08 +000021148ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021149
21150
Reid Spencera773bd52006-08-04 18:18:08 +000021151ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021152
21153
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021154ac_config_commands="$ac_config_commands bindings/Makefile"
21155
21156
21157ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21158
21159
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021160
John Criswell7a73b802003-06-30 21:59:07 +000021161cat >confcache <<\_ACEOF
21162# This file is a shell script that caches the results of configure
21163# tests run on this system so they can be shared between configure
21164# scripts and configure runs, see configure's option --config-cache.
21165# It is not useful on other systems. If it contains results you don't
21166# want to keep, you may remove or edit it.
21167#
21168# config.status only pays attention to the cache file if you give it
21169# the --recheck option to rerun configure.
21170#
John Criswell0c38eaf2003-09-10 15:17:25 +000021171# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021172# loading this file, other *unset* `ac_cv_foo' will be assigned the
21173# following values.
21174
21175_ACEOF
21176
21177# The following way of writing the cache mishandles newlines in values,
21178# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021179# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021180# Ultrix sh set writes to stderr and can't be redirected directly,
21181# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021182(
21183 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21184 eval ac_val=\$$ac_var
21185 case $ac_val in #(
21186 *${as_nl}*)
21187 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021188 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21189echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021190 esac
21191 case $ac_var in #(
21192 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021193 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021194 esac ;;
21195 esac
21196 done
21197
John Criswell7a73b802003-06-30 21:59:07 +000021198 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21200 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021201 # `set' does not quote correctly, so add quotes (double-quote
21202 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021203 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021204 "s/'/'\\\\''/g;
21205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021206 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021207 *)
21208 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021210 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021211 esac |
21212 sort
21213) |
John Criswell7a73b802003-06-30 21:59:07 +000021214 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021215 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021216 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021217 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021218 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21219 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21221 :end' >>confcache
21222if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21223 if test -w "$cache_file"; then
21224 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021225 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21226echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021227 cat confcache >$cache_file
21228 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021229 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21230echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021231 fi
21232fi
21233rm -f confcache
21234
21235test "x$prefix" = xNONE && prefix=$ac_default_prefix
21236# Let make expand exec_prefix.
21237test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21238
John Criswell7a73b802003-06-30 21:59:07 +000021239DEFS=-DHAVE_CONFIG_H
21240
John Criswell0c38eaf2003-09-10 15:17:25 +000021241ac_libobjs=
21242ac_ltlibobjs=
21243for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21244 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021246 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21248 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021249 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21250 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021251done
21252LIBOBJS=$ac_libobjs
21253
21254LTLIBOBJS=$ac_ltlibobjs
21255
21256
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021257if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021258 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21259Usually this means the macro was only invoked conditionally." >&5
21260echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21261Usually this means the macro was only invoked conditionally." >&2;}
21262 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021263fi
21264if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021265 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21266Usually this means the macro was only invoked conditionally." >&5
21267echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21268Usually this means the macro was only invoked conditionally." >&2;}
21269 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021270fi
John Criswell7a73b802003-06-30 21:59:07 +000021271
21272: ${CONFIG_STATUS=./config.status}
21273ac_clean_files_save=$ac_clean_files
21274ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021275{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21276echo "$as_me: creating $CONFIG_STATUS" >&6;}
21277cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021278#! $SHELL
21279# Generated by $as_me.
21280# Run this file to recreate the current configuration.
21281# Compiler output produced by configure, useful for debugging
21282# configure, is in config.log if it exists.
21283
21284debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021285ac_cs_recheck=false
21286ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021287SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021288_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021290cat >>$CONFIG_STATUS <<\_ACEOF
21291## --------------------- ##
21292## M4sh Initialization. ##
21293## --------------------- ##
21294
21295# Be Bourne compatible
21296if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021297 emulate sh
21298 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021299 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021300 # is contrary to our usage. Disable this feature.
21301 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021302 setopt NO_GLOB_SUBST
21303else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021304 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306BIN_SH=xpg4; export BIN_SH # for Tru64
21307DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021308
John Criswell7a73b802003-06-30 21:59:07 +000021309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021310# PATH needs CR
21311# Avoid depending upon Character Ranges.
21312as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21313as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21314as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21315as_cr_digits='0123456789'
21316as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021317
21318# The user is always right.
21319if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021320 echo "#! /bin/sh" >conf$$.sh
21321 echo "exit 0" >>conf$$.sh
21322 chmod +x conf$$.sh
21323 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21324 PATH_SEPARATOR=';'
21325 else
21326 PATH_SEPARATOR=:
21327 fi
21328 rm -f conf$$.sh
21329fi
21330
21331# Support unset when possible.
21332if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21333 as_unset=unset
21334else
21335 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021336fi
John Criswell7a73b802003-06-30 21:59:07 +000021337
Reid Spencera773bd52006-08-04 18:18:08 +000021338
21339# IFS
21340# We need space, tab and new line, in precisely that order. Quoting is
21341# there to prevent editors from complaining about space-tab.
21342# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21343# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021344as_nl='
21345'
Reid Spencera773bd52006-08-04 18:18:08 +000021346IFS=" "" $as_nl"
21347
21348# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021349case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021350 *[\\/]* ) as_myself=$0 ;;
21351 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021352for as_dir in $PATH
21353do
21354 IFS=$as_save_IFS
21355 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021356 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21357done
Reid Spencera773bd52006-08-04 18:18:08 +000021358IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021359
Reid Spencera773bd52006-08-04 18:18:08 +000021360 ;;
21361esac
21362# We did not find ourselves, most probably we were run as `sh COMMAND'
21363# in which case we are not to be found in the path.
21364if test "x$as_myself" = x; then
21365 as_myself=$0
21366fi
21367if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021368 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21369 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021370fi
21371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021372# Work around bugs in pre-3.0 UWIN ksh.
21373for as_var in ENV MAIL MAILPATH
21374do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021375done
21376PS1='$ '
21377PS2='> '
21378PS4='+ '
21379
21380# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021381for as_var in \
21382 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21383 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21384 LC_TELEPHONE LC_TIME
21385do
21386 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21387 eval $as_var=C; export $as_var
21388 else
21389 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021390 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021391done
Torok Edwin871384f2010-01-26 08:50:50 +000021392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021393# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021394if expr a : '\(a\)' >/dev/null 2>&1 &&
21395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21396 as_expr=expr
21397else
21398 as_expr=false
21399fi
21400
21401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21402 as_basename=basename
21403else
21404 as_basename=false
21405fi
21406
21407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021408# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021409as_me=`$as_basename -- "$0" ||
21410$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21411 X"$0" : 'X\(//\)$' \| \
21412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021413echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021414 sed '/^.*\/\([^/][^/]*\)\/*$/{
21415 s//\1/
21416 q
21417 }
21418 /^X\/\(\/\/\)$/{
21419 s//\1/
21420 q
21421 }
21422 /^X\/\(\/\).*/{
21423 s//\1/
21424 q
21425 }
21426 s/.*/./; q'`
21427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021428# CDPATH.
21429$as_unset CDPATH
21430
21431
21432
21433 as_lineno_1=$LINENO
21434 as_lineno_2=$LINENO
21435 test "x$as_lineno_1" != "x$as_lineno_2" &&
21436 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21437
21438 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21439 # uniformly replaced by the line number. The first 'sed' inserts a
21440 # line-number line after each line using $LINENO; the second 'sed'
21441 # does the real work. The second script uses 'N' to pair each
21442 # line-number line with the line containing $LINENO, and appends
21443 # trailing '-' during substitution so that $LINENO is not a special
21444 # case at line end.
21445 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21446 # scripts with optimization help from Paolo Bonzini. Blame Lee
21447 # E. McMahon (1931-1989) for sed's syntax. :-)
21448 sed -n '
21449 p
21450 /[$]LINENO/=
21451 ' <$as_myself |
21452 sed '
21453 s/[$]LINENO.*/&-/
21454 t lineno
21455 b
21456 :lineno
21457 N
21458 :loop
21459 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21460 t loop
21461 s/-\n.*//
21462 ' >$as_me.lineno &&
21463 chmod +x "$as_me.lineno" ||
21464 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21465 { (exit 1); exit 1; }; }
21466
21467 # Don't try to exec as it changes $[0], causing all sort of problems
21468 # (the dirname of $[0] is not the place where we might find the
21469 # original and so on. Autoconf is especially sensitive to this).
21470 . "./$as_me.lineno"
21471 # Exit status is that of the last command.
21472 exit
21473}
21474
21475
21476if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21477 as_dirname=dirname
21478else
21479 as_dirname=false
21480fi
Reid Spencera773bd52006-08-04 18:18:08 +000021481
21482ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021483case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021484-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021486 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021487 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021488 esac;;
21489*)
21490 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021491esac
21492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021493if expr a : '\(a\)' >/dev/null 2>&1 &&
21494 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21495 as_expr=expr
21496else
21497 as_expr=false
21498fi
21499
John Criswell7a73b802003-06-30 21:59:07 +000021500rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021501if test -d conf$$.dir; then
21502 rm -f conf$$.dir/conf$$.file
21503else
21504 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021505 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021506fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021507echo >conf$$.file
21508if ln -s conf$$.file conf$$ 2>/dev/null; then
21509 as_ln_s='ln -s'
21510 # ... but there are two gotchas:
21511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21513 # In both cases, we have to default to `cp -p'.
21514 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021515 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021516elif ln conf$$.file conf$$ 2>/dev/null; then
21517 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021518else
21519 as_ln_s='cp -p'
21520fi
Reid Spencera773bd52006-08-04 18:18:08 +000021521rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21522rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021523
John Criswell0c38eaf2003-09-10 15:17:25 +000021524if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021525 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021526else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021527 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021528 as_mkdir_p=false
21529fi
21530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21532# systems may use methods other than mode bits to determine executability.
21533cat >conf$$.file <<_ASEOF
21534#! /bin/sh
21535exit 0
21536_ASEOF
21537chmod +x conf$$.file
21538if test -x conf$$.file >/dev/null 2>&1; then
21539 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021541 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021543rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021544
21545# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021547
21548# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021550
21551
John Criswell7a73b802003-06-30 21:59:07 +000021552exec 6>&1
21553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021554# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021555# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021556# values after options handling.
21557ac_log="
Eric Christopherf33ab862011-12-21 00:52:44 +000021558This file was extended by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021559generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021560
21561 CONFIG_FILES = $CONFIG_FILES
21562 CONFIG_HEADERS = $CONFIG_HEADERS
21563 CONFIG_LINKS = $CONFIG_LINKS
21564 CONFIG_COMMANDS = $CONFIG_COMMANDS
21565 $ $0 $@
21566
Reid Spencera773bd52006-08-04 18:18:08 +000021567on `(hostname || uname -n) 2>/dev/null | sed 1q`
21568"
21569
John Criswell7a73b802003-06-30 21:59:07 +000021570_ACEOF
21571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021573# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021574config_files="$ac_config_files"
21575config_headers="$ac_config_headers"
21576config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021577
Reid Spencera773bd52006-08-04 18:18:08 +000021578_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021580cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021581ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021582\`$as_me' instantiates files from templates according to the
21583current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021585Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021586
21587 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021588 -V, --version print version number, then exit
21589 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021590 -d, --debug don't remove temporary files
21591 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021592 --file=FILE[:TEMPLATE]
21593 instantiate the configuration file FILE
21594 --header=FILE[:TEMPLATE]
21595 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021596
21597Configuration files:
21598$config_files
21599
21600Configuration headers:
21601$config_headers
21602
John Criswellc764fbc2003-09-06 15:17:13 +000021603Configuration commands:
21604$config_commands
21605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021606Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021607
Reid Spencera773bd52006-08-04 18:18:08 +000021608_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021609cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021610ac_cs_version="\\
Eric Christopherf33ab862011-12-21 00:52:44 +000021611LLVM config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021612configured by $0, generated by GNU Autoconf 2.60,
21613 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021615Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021616This config.status script is free software; the Free Software Foundation
21617gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021618
21619ac_pwd='$ac_pwd'
21620srcdir='$srcdir'
21621INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021622_ACEOF
21623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021624cat >>$CONFIG_STATUS <<\_ACEOF
21625# If no file are specified by the user, then we need to provide default
21626# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021627ac_need_defaults=:
21628while test $# != 0
21629do
21630 case $1 in
21631 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21633 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021634 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021635 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021636 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021637 ac_option=$1
21638 ac_optarg=$2
21639 ac_shift=shift
21640 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021641 esac
21642
John Criswell0c38eaf2003-09-10 15:17:25 +000021643 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021644 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21646 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021648 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021649 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021650 debug=: ;;
21651 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021652 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021653 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021654 ac_need_defaults=false;;
21655 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021656 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021657 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021658 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021659 --he | --h)
21660 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021661 { echo "$as_me: error: ambiguous option: $1
21662Try \`$0 --help' for more information." >&2
21663 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021664 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021665 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021666 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21667 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21668 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021669
21670 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021671 -*) { echo "$as_me: error: unrecognized option: $1
21672Try \`$0 --help' for more information." >&2
21673 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021675 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021676 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021677
21678 esac
21679 shift
21680done
21681
John Criswell0c38eaf2003-09-10 15:17:25 +000021682ac_configure_extra_args=
21683
21684if $ac_cs_silent; then
21685 exec 6>/dev/null
21686 ac_configure_extra_args="$ac_configure_extra_args --silent"
21687fi
21688
21689_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021690cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021691if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021692 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21693 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021694 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021695 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021696fi
21697
John Criswell7a73b802003-06-30 21:59:07 +000021698_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021699cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021700exec 5>>config.log
21701{
21702 echo
21703 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21704## Running $as_me. ##
21705_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021706 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021707} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021708
Reid Spencera773bd52006-08-04 18:18:08 +000021709_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021710cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021711#
Reid Spencera773bd52006-08-04 18:18:08 +000021712# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021713#
Reid Spencerc0682832005-02-24 19:05:19 +000021714llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021715
21716_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021718cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021719
21720# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021721for ac_config_target in $ac_config_targets
21722do
Reid Spencera773bd52006-08-04 18:18:08 +000021723 case $ac_config_target in
21724 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021725 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021726 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21727 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021728 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021729 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021730 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021731 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021732 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021733 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21734 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021735 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021736 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21737 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21738 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21739 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21740 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021741 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021742 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21743 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021744 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021745 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21746 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21747 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021748 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21749 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021751 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21752echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21753 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021754 esac
21755done
21756
Reid Spencera773bd52006-08-04 18:18:08 +000021757
John Criswell7a73b802003-06-30 21:59:07 +000021758# If the user did not use the arguments to specify the items to instantiate,
21759# then the envvar interface is used. Set only those that are not.
21760# We use the long form for the default assignment because of an extremely
21761# bizarre bug on SunOS 4.1.3.
21762if $ac_need_defaults; then
21763 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21764 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021765 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021766fi
21767
John Criswell0c38eaf2003-09-10 15:17:25 +000021768# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021769# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021770# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021771# Hook for its removal unless debugging.
21772# Note that there is a small window in which the directory will not be cleaned:
21773# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021774$debug ||
21775{
Reid Spencera773bd52006-08-04 18:18:08 +000021776 tmp=
21777 trap 'exit_status=$?
21778 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21779' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021780 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021781}
John Criswell7a73b802003-06-30 21:59:07 +000021782# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021783
John Criswell7a73b802003-06-30 21:59:07 +000021784{
Reid Spencera773bd52006-08-04 18:18:08 +000021785 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021786 test -n "$tmp" && test -d "$tmp"
21787} ||
21788{
Reid Spencera773bd52006-08-04 18:18:08 +000021789 tmp=./conf$$-$RANDOM
21790 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021791} ||
21792{
21793 echo "$me: cannot create a temporary directory in ." >&2
21794 { (exit 1); exit 1; }
21795}
John Criswell7a73b802003-06-30 21:59:07 +000021796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021797#
21798# Set up the sed scripts for CONFIG_FILES section.
21799#
21800
21801# No need to generate the scripts if there are no CONFIG_FILES.
21802# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021803if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021804
21805_ACEOF
21806
Reid Spencera773bd52006-08-04 18:18:08 +000021807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021808
Reid Spencera773bd52006-08-04 18:18:08 +000021809ac_delim='%!_!# '
21810for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021811 cat >conf$$subs.sed <<_ACEOF
21812SHELL!$SHELL$ac_delim
21813PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21814PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21815PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21816PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21817PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21818PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21819exec_prefix!$exec_prefix$ac_delim
21820prefix!$prefix$ac_delim
21821program_transform_name!$program_transform_name$ac_delim
21822bindir!$bindir$ac_delim
21823sbindir!$sbindir$ac_delim
21824libexecdir!$libexecdir$ac_delim
21825datarootdir!$datarootdir$ac_delim
21826datadir!$datadir$ac_delim
21827sysconfdir!$sysconfdir$ac_delim
21828sharedstatedir!$sharedstatedir$ac_delim
21829localstatedir!$localstatedir$ac_delim
21830includedir!$includedir$ac_delim
21831oldincludedir!$oldincludedir$ac_delim
21832docdir!$docdir$ac_delim
21833infodir!$infodir$ac_delim
21834htmldir!$htmldir$ac_delim
21835dvidir!$dvidir$ac_delim
21836pdfdir!$pdfdir$ac_delim
21837psdir!$psdir$ac_delim
21838libdir!$libdir$ac_delim
21839localedir!$localedir$ac_delim
21840mandir!$mandir$ac_delim
21841DEFS!$DEFS$ac_delim
21842ECHO_C!$ECHO_C$ac_delim
21843ECHO_N!$ECHO_N$ac_delim
21844ECHO_T!$ECHO_T$ac_delim
21845LIBS!$LIBS$ac_delim
21846build_alias!$build_alias$ac_delim
21847host_alias!$host_alias$ac_delim
21848target_alias!$target_alias$ac_delim
21849LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021850CC!$CC$ac_delim
21851CFLAGS!$CFLAGS$ac_delim
21852LDFLAGS!$LDFLAGS$ac_delim
21853CPPFLAGS!$CPPFLAGS$ac_delim
21854ac_ct_CC!$ac_ct_CC$ac_delim
21855EXEEXT!$EXEEXT$ac_delim
21856OBJEXT!$OBJEXT$ac_delim
21857CXX!$CXX$ac_delim
21858CXXFLAGS!$CXXFLAGS$ac_delim
21859ac_ct_CXX!$ac_ct_CXX$ac_delim
21860CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021861subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021862ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21863LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021864build!$build$ac_delim
21865build_cpu!$build_cpu$ac_delim
21866build_vendor!$build_vendor$ac_delim
21867build_os!$build_os$ac_delim
21868host!$host$ac_delim
21869host_cpu!$host_cpu$ac_delim
21870host_vendor!$host_vendor$ac_delim
21871host_os!$host_os$ac_delim
21872target!$target$ac_delim
21873target_cpu!$target_cpu$ac_delim
21874target_vendor!$target_vendor$ac_delim
21875target_os!$target_os$ac_delim
21876OS!$OS$ac_delim
21877HOST_OS!$HOST_OS$ac_delim
21878TARGET_OS!$TARGET_OS$ac_delim
21879LINKALL!$LINKALL$ac_delim
21880NOLINKALL!$NOLINKALL$ac_delim
21881LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21882LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21883ARCH!$ARCH$ac_delim
21884ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021885GREP!$GREP$ac_delim
21886EGREP!$EGREP$ac_delim
21887LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21888BUILD_CC!$BUILD_CC$ac_delim
21889BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21890BUILD_CXX!$BUILD_CXX$ac_delim
21891CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021892ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21894ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21895DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21896ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21897EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21898DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21899DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21900JIT!$JIT$ac_delim
21901TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021902ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021903ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021904LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021905ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021907ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021908ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021909_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021911 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021912 break
21913 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021914 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21915echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21916 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021917 else
21918 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021919 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021920done
21921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21923if test -n "$ac_eof"; then
21924 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21925 ac_eof=`expr $ac_eof + 1`
21926fi
21927
21928cat >>$CONFIG_STATUS <<_ACEOF
21929cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21930/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021931_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021932sed '
21933s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21934s/^/s,@/; s/!/@,|#_!!_#|/
21935:n
21936t n
21937s/'"$ac_delim"'$/,g/; t
21938s/$/\\/; p
21939N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21940' >>$CONFIG_STATUS <conf$$subs.sed
21941rm -f conf$$subs.sed
21942cat >>$CONFIG_STATUS <<_ACEOF
21943CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021944_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021945
21946
21947ac_delim='%!_!# '
21948for ac_last_try in false false false false false :; do
21949 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000021950ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021951TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21952LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21953LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021954LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021955LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021956ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021957OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021958EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021959EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021960CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021961BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021962INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021963NM!$NM$ac_delim
21964ifGNUmake!$ifGNUmake$ac_delim
21965LN_S!$LN_S$ac_delim
21966CMP!$CMP$ac_delim
21967CP!$CP$ac_delim
21968DATE!$DATE$ac_delim
21969FIND!$FIND$ac_delim
21970MKDIR!$MKDIR$ac_delim
21971MV!$MV$ac_delim
21972RANLIB!$RANLIB$ac_delim
21973AR!$AR$ac_delim
21974RM!$RM$ac_delim
21975SED!$SED$ac_delim
21976TAR!$TAR$ac_delim
21977BINPWD!$BINPWD$ac_delim
21978GRAPHVIZ!$GRAPHVIZ$ac_delim
21979DOT!$DOT$ac_delim
21980FDP!$FDP$ac_delim
21981NEATO!$NEATO$ac_delim
21982TWOPI!$TWOPI$ac_delim
21983CIRCO!$CIRCO$ac_delim
21984GV!$GV$ac_delim
21985DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021986XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021987PERL!$PERL$ac_delim
21988HAVE_PERL!$HAVE_PERL$ac_delim
21989INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21990INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21991INSTALL_DATA!$INSTALL_DATA$ac_delim
21992BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021993CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021994DOXYGEN!$DOXYGEN$ac_delim
21995GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021996GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021997POD2HTML!$POD2HTML$ac_delim
21998POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021999PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022000RUNTEST!$RUNTEST$ac_delim
22001TCLSH!$TCLSH$ac_delim
22002ZIP!$ZIP$ac_delim
22003OCAMLC!$OCAMLC$ac_delim
22004OCAMLOPT!$OCAMLOPT$ac_delim
22005OCAMLDEP!$OCAMLDEP$ac_delim
22006OCAMLDOC!$OCAMLDOC$ac_delim
22007GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022008HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022009INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22010INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22011CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22012CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22013LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022014NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22015NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22016USE_UDIS86!$USE_UDIS86$ac_delim
22017USE_OPROFILE!$USE_OPROFILE$ac_delim
22018HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22019HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22020MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022021SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022022SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022023LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22024LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22025LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22026LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22027LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22028LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22029LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22030LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22031LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22032LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22033BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22034ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022035OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22036ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22037RPATH!$RPATH$ac_delim
22038RDYNAMIC!$RDYNAMIC$ac_delim
22039LIBOBJS!$LIBOBJS$ac_delim
22040LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022041_ACEOF
22042
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022043 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022044 break
22045 elif $ac_last_try; then
22046 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22047echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22048 { (exit 1); exit 1; }; }
22049 else
22050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22051 fi
22052done
22053
22054ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22055if test -n "$ac_eof"; then
22056 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22057 ac_eof=`expr $ac_eof + 1`
22058fi
22059
22060cat >>$CONFIG_STATUS <<_ACEOF
22061cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022062/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22063_ACEOF
22064sed '
22065s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22066s/^/s,@/; s/!/@,|#_!!_#|/
22067:n
22068t n
22069s/'"$ac_delim"'$/,g/; t
22070s/$/\\/; p
22071N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22072' >>$CONFIG_STATUS <conf$$subs.sed
22073rm -f conf$$subs.sed
22074cat >>$CONFIG_STATUS <<_ACEOF
22075:end
22076s/|#_!!_#|//g
22077CEOF$ac_eof
22078_ACEOF
22079
22080
Reid Spencera773bd52006-08-04 18:18:08 +000022081# VPATH may cause trouble with some makes, so we remove $(srcdir),
22082# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22083# trailing colons and then remove the whole line if VPATH becomes empty
22084# (actually we leave an empty line to preserve line numbers).
22085if test "x$srcdir" = x.; then
22086 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22087s/:*\$(srcdir):*/:/
22088s/:*\${srcdir}:*/:/
22089s/:*@srcdir@:*/:/
22090s/^\([^=]*=[ ]*\):*/\1/
22091s/:*$//
22092s/^[^=]*=[ ]*$//
22093}'
22094fi
22095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022096cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022097fi # test -n "$CONFIG_FILES"
22098
Reid Spencera773bd52006-08-04 18:18:08 +000022099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022100for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022101do
22102 case $ac_tag in
22103 :[FHLC]) ac_mode=$ac_tag; continue;;
22104 esac
22105 case $ac_mode$ac_tag in
22106 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022107 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22108echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22109 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022110 :[FH]-) ac_tag=-:-;;
22111 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22112 esac
22113 ac_save_IFS=$IFS
22114 IFS=:
22115 set x $ac_tag
22116 IFS=$ac_save_IFS
22117 shift
22118 ac_file=$1
22119 shift
22120
22121 case $ac_mode in
22122 :L) ac_source=$1;;
22123 :[FH])
22124 ac_file_inputs=
22125 for ac_f
22126 do
22127 case $ac_f in
22128 -) ac_f="$tmp/stdin";;
22129 *) # Look for the file first in the build tree, then in the source tree
22130 # (if the path is not absolute). The absolute path cannot be DOS-style,
22131 # because $ac_f cannot contain `:'.
22132 test -f "$ac_f" ||
22133 case $ac_f in
22134 [\\/$]*) false;;
22135 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22136 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022137 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22138echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22139 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022140 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022141 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022142 done
22143
22144 # Let's still pretend it is `configure' which instantiates (i.e., don't
22145 # use $as_me), people would be surprised to read:
22146 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022147 configure_input="Generated from "`IFS=:
22148 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022149 if test x"$ac_file" != x-; then
22150 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022151 { echo "$as_me:$LINENO: creating $ac_file" >&5
22152echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022153 fi
22154
22155 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022156 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022157 esac
22158 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022159 esac
22160
Reid Spencera773bd52006-08-04 18:18:08 +000022161 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022162$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022163 X"$ac_file" : 'X\(//\)[^/]' \| \
22164 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022165 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022166echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022167 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'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022184 { as_dir="$ac_dir"
22185 case $as_dir in #(
22186 -*) as_dir=./$as_dir;;
22187 esac
22188 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22189 as_dirs=
22190 while :; do
22191 case $as_dir in #(
22192 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22193 *) as_qdir=$as_dir;;
22194 esac
22195 as_dirs="'$as_qdir' $as_dirs"
22196 as_dir=`$as_dirname -- "$as_dir" ||
22197$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22198 X"$as_dir" : 'X\(//\)[^/]' \| \
22199 X"$as_dir" : 'X\(//\)$' \| \
22200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22201echo X"$as_dir" |
22202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22203 s//\1/
22204 q
22205 }
22206 /^X\(\/\/\)[^/].*/{
22207 s//\1/
22208 q
22209 }
22210 /^X\(\/\/\)$/{
22211 s//\1/
22212 q
22213 }
22214 /^X\(\/\).*/{
22215 s//\1/
22216 q
22217 }
22218 s/.*/./; q'`
22219 test -d "$as_dir" && break
22220 done
22221 test -z "$as_dirs" || eval "mkdir $as_dirs"
22222 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22223echo "$as_me: error: cannot create directory $as_dir" >&2;}
22224 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022225 ac_builddir=.
22226
Reid Spencera773bd52006-08-04 18:18:08 +000022227case "$ac_dir" in
22228.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22229*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022230 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022231 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022232 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022233 case $ac_top_builddir_sub in
22234 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22235 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22236 esac ;;
22237esac
22238ac_abs_top_builddir=$ac_pwd
22239ac_abs_builddir=$ac_pwd$ac_dir_suffix
22240# for backward compatibility:
22241ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022242
22243case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022244 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022245 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022246 ac_top_srcdir=$ac_top_builddir_sub
22247 ac_abs_top_srcdir=$ac_pwd ;;
22248 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022249 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022250 ac_top_srcdir=$srcdir
22251 ac_abs_top_srcdir=$srcdir ;;
22252 *) # Relative name.
22253 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22254 ac_top_srcdir=$ac_top_build_prefix$srcdir
22255 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022256esac
Reid Spencera773bd52006-08-04 18:18:08 +000022257ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022258
John Criswell7a73b802003-06-30 21:59:07 +000022259
Reid Spencera773bd52006-08-04 18:18:08 +000022260 case $ac_mode in
22261 :F)
22262 #
22263 # CONFIG_FILE
22264 #
John Criswell7a73b802003-06-30 21:59:07 +000022265
22266 case $INSTALL in
22267 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022268 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022269 esac
John Criswell7a73b802003-06-30 21:59:07 +000022270_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022272cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022273# If the template does not know about datarootdir, expand it.
22274# FIXME: This hack should be removed a few years after 2.60.
22275ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022276
22277case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022278 p
22279 q
22280}
22281/@datadir@/p
22282/@docdir@/p
22283/@infodir@/p
22284/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022285/@mandir@/p
22286' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022287*datarootdir*) ac_datarootdir_seen=yes;;
22288*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022289 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22290echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022291_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022292cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022293 ac_datarootdir_hack='
22294 s&@datadir@&$datadir&g
22295 s&@docdir@&$docdir&g
22296 s&@infodir@&$infodir&g
22297 s&@localedir@&$localedir&g
22298 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022299 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022300esac
22301_ACEOF
22302
22303# Neutralize VPATH when `$srcdir' = `.'.
22304# Shell code in configure.ac might set extrasub.
22305# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022306cat >>$CONFIG_STATUS <<_ACEOF
22307 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022308$extrasub
22309_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022310cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022311:t
22312/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022313s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022314s&@top_builddir@&$ac_top_builddir_sub&;t t
22315s&@srcdir@&$ac_srcdir&;t t
22316s&@abs_srcdir@&$ac_abs_srcdir&;t t
22317s&@top_srcdir@&$ac_top_srcdir&;t t
22318s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22319s&@builddir@&$ac_builddir&;t t
22320s&@abs_builddir@&$ac_abs_builddir&;t t
22321s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22322s&@INSTALL@&$ac_INSTALL&;t t
22323$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022324" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022325
Reid Spencera773bd52006-08-04 18:18:08 +000022326test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22327 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22328 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022329 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022330which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022331echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022332which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022333
Reid Spencera773bd52006-08-04 18:18:08 +000022334 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022335 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022336 -) cat "$tmp/out"; rm -f "$tmp/out";;
22337 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22338 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022339 ;;
22340 :H)
22341 #
22342 # CONFIG_HEADER
22343 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022344_ACEOF
22345
22346# Transform confdefs.h into a sed script `conftest.defines', that
22347# substitutes the proper values into config.h.in to produce config.h.
22348rm -f conftest.defines conftest.tail
22349# First, append a space to every undef/define line, to ease matching.
22350echo 's/$/ /' >conftest.defines
22351# Then, protect against being on the right side of a sed subst, or in
22352# an unquoted here document, in config.status. If some macros were
22353# called several times there might be several #defines for the same
22354# symbol, which is useless. But do not sort them, since the last
22355# AC_DEFINE must be honored.
22356ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22357# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22358# NAME is the cpp macro being defined, VALUE is the value it is being given.
22359# PARAMS is the parameter list in the macro definition--in most cases, it's
22360# just an empty string.
22361ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22362ac_dB='\\)[ (].*,\\1define\\2'
22363ac_dC=' '
22364ac_dD=' ,'
22365
22366uniq confdefs.h |
22367 sed -n '
22368 t rset
22369 :rset
22370 s/^[ ]*#[ ]*define[ ][ ]*//
22371 t ok
22372 d
22373 :ok
22374 s/[\\&,]/\\&/g
22375 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22376 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22377 ' >>conftest.defines
22378
22379# Remove the space that was appended to ease matching.
22380# Then replace #undef with comments. This is necessary, for
22381# example, in the case of _POSIX_SOURCE, which is predefined and required
22382# on some systems where configure will not decide to define it.
22383# (The regexp can be short, since the line contains either #define or #undef.)
22384echo 's/ $//
22385s,^[ #]*u.*,/* & */,' >>conftest.defines
22386
22387# Break up conftest.defines:
22388ac_max_sed_lines=50
22389
22390# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22391# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22392# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22393# et cetera.
22394ac_in='$ac_file_inputs'
22395ac_out='"$tmp/out1"'
22396ac_nxt='"$tmp/out2"'
22397
22398while :
22399do
22400 # Write a here document:
22401 cat >>$CONFIG_STATUS <<_ACEOF
22402 # First, check the format of the line:
22403 cat >"\$tmp/defines.sed" <<\\CEOF
22404/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22405/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22406b
22407:def
22408_ACEOF
22409 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22410 echo 'CEOF
22411 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22412 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22413 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22414 grep . conftest.tail >/dev/null || break
22415 rm -f conftest.defines
22416 mv conftest.tail conftest.defines
22417done
22418rm -f conftest.defines conftest.tail
22419
22420echo "ac_result=$ac_in" >>$CONFIG_STATUS
22421cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022422 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022423 echo "/* $configure_input */" >"$tmp/config.h"
22424 cat "$ac_result" >>"$tmp/config.h"
22425 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22426 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22427echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022428 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022429 rm -f $ac_file
22430 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022431 fi
22432 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022433 echo "/* $configure_input */"
22434 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022435 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022436 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022437 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022439 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22440echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022441 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022442 esac
John Criswell7a73b802003-06-30 21:59:07 +000022443
Reid Spencera773bd52006-08-04 18:18:08 +000022444
22445 case $ac_file$ac_mode in
22446 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022447 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022448 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022449 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022450 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022451 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022452 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022453 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022454 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022455 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022456 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022457 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022458 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022459 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022460 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022461 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022462 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022463 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022464 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022465 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022466 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022467 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022468 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022469 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022470 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022471 ${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 +000022472
22473 esac
22474done # for ac_tag
22475
John Criswell7a73b802003-06-30 21:59:07 +000022476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022477{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022478_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022479chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022480ac_clean_files=$ac_clean_files_save
22481
22482
22483# configure is writing to config.log, and then calls config.status.
22484# config.status does its own redirection, appending to config.log.
22485# Unfortunately, on DOS this fails, as config.log is still kept open
22486# by configure, so config.status won't be able to write to it; its
22487# output is simply discarded. So we exec the FD to /dev/null,
22488# effectively closing config.log, so it can be properly (re)opened and
22489# appended to by config.status. When coming back to configure, we
22490# need to make the FD available again.
22491if test "$no_create" != yes; then
22492 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022493 ac_config_status_args=
22494 test "$silent" = yes &&
22495 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022496 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022498 exec 5>>config.log
22499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22500 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022501 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022502fi
22503
John Criswell12399a12003-09-30 15:55:44 +000022504#
22505# CONFIG_SUBDIRS section.
22506#
22507if test "$no_recursion" != yes; then
22508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022509 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022510 ac_sub_configure_args=
22511 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022512 eval "set x $ac_configure_args"
22513 shift
22514 for ac_arg
22515 do
John Criswell12399a12003-09-30 15:55:44 +000022516 if test -n "$ac_prev"; then
22517 ac_prev=
22518 continue
22519 fi
22520 case $ac_arg in
22521 -cache-file | --cache-file | --cache-fil | --cache-fi \
22522 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22523 ac_prev=cache_file ;;
22524 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22525 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22526 | --c=*)
22527 ;;
22528 --config-cache | -C)
22529 ;;
22530 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22531 ac_prev=srcdir ;;
22532 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22533 ;;
22534 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22535 ac_prev=prefix ;;
22536 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22537 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022538 *)
22539 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022540 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022541 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022542 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022543 esac
22544 done
22545
22546 # Always prepend --prefix to ensure using the same prefix
22547 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022548 ac_arg="--prefix=$prefix"
22549 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022550 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022551 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022552 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022553
22554 ac_popdir=`pwd`
22555 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22556
22557 # Do not complain, so a configure script can configure whichever
22558 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022559 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022560
Reid Spencera773bd52006-08-04 18:18:08 +000022561 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022562 echo "$as_me:$LINENO: $ac_msg" >&5
22563 echo "$ac_msg" >&6
22564 { as_dir="$ac_dir"
22565 case $as_dir in #(
22566 -*) as_dir=./$as_dir;;
22567 esac
22568 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22569 as_dirs=
22570 while :; do
22571 case $as_dir in #(
22572 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22573 *) as_qdir=$as_dir;;
22574 esac
22575 as_dirs="'$as_qdir' $as_dirs"
22576 as_dir=`$as_dirname -- "$as_dir" ||
22577$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22578 X"$as_dir" : 'X\(//\)[^/]' \| \
22579 X"$as_dir" : 'X\(//\)$' \| \
22580 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22581echo X"$as_dir" |
22582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22583 s//\1/
22584 q
22585 }
22586 /^X\(\/\/\)[^/].*/{
22587 s//\1/
22588 q
22589 }
22590 /^X\(\/\/\)$/{
22591 s//\1/
22592 q
22593 }
22594 /^X\(\/\).*/{
22595 s//\1/
22596 q
22597 }
22598 s/.*/./; q'`
22599 test -d "$as_dir" && break
22600 done
22601 test -z "$as_dirs" || eval "mkdir $as_dirs"
22602 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22603echo "$as_me: error: cannot create directory $as_dir" >&2;}
22604 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022605 ac_builddir=.
22606
Reid Spencera773bd52006-08-04 18:18:08 +000022607case "$ac_dir" in
22608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22609*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022610 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022611 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022612 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022613 case $ac_top_builddir_sub in
22614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22616 esac ;;
22617esac
22618ac_abs_top_builddir=$ac_pwd
22619ac_abs_builddir=$ac_pwd$ac_dir_suffix
22620# for backward compatibility:
22621ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022622
22623case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022624 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022625 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022626 ac_top_srcdir=$ac_top_builddir_sub
22627 ac_abs_top_srcdir=$ac_pwd ;;
22628 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022629 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022630 ac_top_srcdir=$srcdir
22631 ac_abs_top_srcdir=$srcdir ;;
22632 *) # Relative name.
22633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22634 ac_top_srcdir=$ac_top_build_prefix$srcdir
22635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022636esac
Reid Spencera773bd52006-08-04 18:18:08 +000022637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022638
22639
Reid Spencera773bd52006-08-04 18:18:08 +000022640 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022641
22642 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022643 if test -f "$ac_srcdir/configure.gnu"; then
22644 ac_sub_configure=$ac_srcdir/configure.gnu
22645 elif test -f "$ac_srcdir/configure"; then
22646 ac_sub_configure=$ac_srcdir/configure
22647 elif test -f "$ac_srcdir/configure.in"; then
22648 # This should be Cygnus configure.
22649 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022650 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022651 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22652echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022653 ac_sub_configure=
22654 fi
22655
22656 # The recursion is here.
22657 if test -n "$ac_sub_configure"; then
22658 # Make the cache file name correct relative to the subdirectory.
22659 case $cache_file in
22660 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022661 *) # Relative name.
22662 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022663 esac
22664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022665 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22666echo "$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 +000022667 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022668 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22669 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022670 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22671echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22672 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022673 fi
22674
Reid Spencera773bd52006-08-04 18:18:08 +000022675 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022676 done
22677fi
22678