blob: 2529338efbfe62b5efa1df71ab1f8b7ed999746e [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
Eric Christopherffee5722011-09-16 20:36:25 +00003906case "$llvm_cv_target_arch" in
3907 x86) LLVM_NATIVE_ARCH="X86" ;;
3908 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3909 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3910esac
3911
3912ARCH=$llvm_cv_target_arch
3913
3914
3915
3916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003917{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3918echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3919if test "${ac_cv_path_GREP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922 # Extract the first word of "grep ggrep" to use in msg output
3923if test -z "$GREP"; then
3924set dummy grep ggrep; ac_prog_name=$2
3925if test "${ac_cv_path_GREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
Reid Spencera773bd52006-08-04 18:18:08 +00003928 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003929# Loop through the user's path and test for each of PROGNAME-LIST
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003931for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003935 for ac_prog in grep ggrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3939 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003940 # Check for GNU $ac_path_GREP
3941case `"$ac_path_GREP" --version 2>&1` in
3942*GNU*)
3943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3944*)
3945 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003946 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003947 while :
3948 do
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003952 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003955 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_GREP="$ac_path_GREP"
3959 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003960 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3963 done
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965esac
3966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003967
3968 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003969 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003970done
3971
3972done
Reid Spencera773bd52006-08-04 18:18:08 +00003973IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003974
3975
3976fi
3977
3978GREP="$ac_cv_path_GREP"
3979if test -z "$GREP"; then
3980 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3981echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3982 { (exit 1); exit 1; }; }
3983fi
3984
Reid Spencera773bd52006-08-04 18:18:08 +00003985else
3986 ac_cv_path_GREP=$GREP
3987fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003989
Reid Spencera773bd52006-08-04 18:18:08 +00003990fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003991{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3992echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003993 GREP="$ac_cv_path_GREP"
3994
3995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003996{ echo "$as_me:$LINENO: checking for egrep" >&5
3997echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3998if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004000else
4001 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002 then ac_cv_path_EGREP="$GREP -E"
4003 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004004 # Extract the first word of "egrep" to use in msg output
4005if test -z "$EGREP"; then
4006set dummy egrep; ac_prog_name=$2
4007if test "${ac_cv_path_EGREP+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
Reid Spencera773bd52006-08-04 18:18:08 +00004010 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004011# Loop through the user's path and test for each of PROGNAME-LIST
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004013for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4014do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004017 for ac_prog in egrep; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4020 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4021 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004022 # Check for GNU $ac_path_EGREP
4023case `"$ac_path_EGREP" --version 2>&1` in
4024*GNU*)
4025 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4026*)
4027 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004029 while :
4030 do
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004034 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004037 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_EGREP="$ac_path_EGREP"
4041 ac_path_EGREP_max=$ac_count
4042 fi
4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4045 done
4046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047esac
4048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004049
4050 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004051 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004052done
4053
4054done
Reid Spencera773bd52006-08-04 18:18:08 +00004055IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004056
4057
4058fi
4059
4060EGREP="$ac_cv_path_EGREP"
4061if test -z "$EGREP"; then
4062 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4063echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4064 { (exit 1); exit 1; }; }
4065fi
4066
Reid Spencera773bd52006-08-04 18:18:08 +00004067else
4068 ac_cv_path_EGREP=$EGREP
4069fi
4070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004071
Reid Spencera773bd52006-08-04 18:18:08 +00004072 fi
4073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004074{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4075echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004076 EGREP="$ac_cv_path_EGREP"
4077
4078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004079{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4081if test "${ac_cv_header_stdc+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084 cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004089/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004090#include <stdlib.h>
4091#include <stdarg.h>
4092#include <string.h>
4093#include <float.h>
4094
John Criswell0c38eaf2003-09-10 15:17:25 +00004095int
4096main ()
4097{
4098
4099 ;
4100 return 0;
4101}
John Criswell7a73b802003-06-30 21:59:07 +00004102_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004103rm -f conftest.$ac_objext
4104if { (ac_try="$ac_compile"
4105case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108esac
4109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4118 { (case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121esac
4122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_try") 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131esac
4132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_try") 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004137 ac_cv_header_stdc=yes
4138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004139 echo "$as_me: failed program was:" >&5
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004144
Reid Spencera773bd52006-08-04 18:18:08 +00004145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004146
4147if test $ac_cv_header_stdc = yes; then
4148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004149 cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004154/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004155#include <string.h>
4156
4157_ACEOF
4158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159 $EGREP "memchr" >/dev/null 2>&1; then
4160 :
John Criswell7a73b802003-06-30 21:59:07 +00004161else
4162 ac_cv_header_stdc=no
4163fi
4164rm -f conftest*
4165
4166fi
4167
4168if test $ac_cv_header_stdc = yes; then
4169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004170 cat >conftest.$ac_ext <<_ACEOF
4171/* confdefs.h. */
4172_ACEOF
4173cat confdefs.h >>conftest.$ac_ext
4174cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004175/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004176#include <stdlib.h>
4177
4178_ACEOF
4179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004180 $EGREP "free" >/dev/null 2>&1; then
4181 :
John Criswell7a73b802003-06-30 21:59:07 +00004182else
4183 ac_cv_header_stdc=no
4184fi
4185rm -f conftest*
4186
4187fi
4188
4189if test $ac_cv_header_stdc = yes; then
4190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004191 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004192 :
4193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194 cat >conftest.$ac_ext <<_ACEOF
4195/* confdefs.h. */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004200#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004201#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004202#if ((' ' & 0x0FF) == 0x020)
4203# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4204# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4205#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004206# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004207 (('a' <= (c) && (c) <= 'i') \
4208 || ('j' <= (c) && (c) <= 'r') \
4209 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004210# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211#endif
4212
4213#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4214int
4215main ()
4216{
4217 int i;
4218 for (i = 0; i < 256; i++)
4219 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004220 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004221 return 2;
4222 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004223}
4224_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004225rm -f conftest$ac_exeext
4226if { (ac_try="$ac_link"
4227case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_link") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 :
John Criswell7a73b802003-06-30 21:59:07 +00004246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004247 echo "$as_me: program exited with status $ac_status" >&5
4248echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
4250
4251( exit $ac_status )
4252ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004254rm -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 +00004255fi
4256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004257
John Criswell7a73b802003-06-30 21:59:07 +00004258fi
4259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004260{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4261echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004262if test $ac_cv_header_stdc = yes; then
4263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004264cat >>confdefs.h <<\_ACEOF
4265#define STDC_HEADERS 1
4266_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004267
4268fi
4269
Reid Spencera773bd52006-08-04 18:18:08 +00004270# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004271
4272
4273
4274
4275
4276
4277
4278
4279
Reid Spencera773bd52006-08-04 18:18:08 +00004280for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4281 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282do
4283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4284{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288else
4289 cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h. */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h. */
4295$ac_includes_default
4296
4297#include <$ac_header>
4298_ACEOF
4299rm -f conftest.$ac_objext
4300if { (ac_try="$ac_compile"
4301case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_compile") 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; } &&
4323 { ac_try='test -s conftest.$ac_objext'
4324 { (case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_try") 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 eval "$as_ac_Header=yes"
4334else
4335 echo "$as_me: failed program was:" >&5
4336sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 eval "$as_ac_Header=no"
4339fi
4340
4341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342fi
4343ac_res=`eval echo '${'$as_ac_Header'}'`
4344 { echo "$as_me:$LINENO: result: $ac_res" >&5
4345echo "${ECHO_T}$ac_res" >&6; }
4346if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004347 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004348#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004349_ACEOF
4350
4351fi
4352
4353done
4354
4355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4357echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4358if test "${ac_cv_c_bigendian+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004361 # See if sys/param.h defines the BYTE_ORDER macro.
4362cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004364_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004367/* end confdefs.h. */
4368#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004369#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004370
4371int
4372main ()
4373{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4375 bogus endian macros
4376#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004377
4378 ;
4379 return 0;
4380}
4381_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004382rm -f conftest.$ac_objext
4383if { (ac_try="$ac_compile"
4384case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387esac
4388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_compile") 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4397 { (case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400esac
4401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_try") 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try='test -s conftest.$ac_objext'
4407 { (case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410esac
4411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_try") 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004416 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417cat >conftest.$ac_ext <<_ACEOF
4418/* confdefs.h. */
4419_ACEOF
4420cat confdefs.h >>conftest.$ac_ext
4421cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004422/* end confdefs.h. */
4423#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004425
4426int
4427main ()
4428{
4429#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004430 not big endian
4431#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004432
4433 ;
4434 return 0;
4435}
4436_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004437rm -f conftest.$ac_objext
4438if { (ac_try="$ac_compile"
4439case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442esac
4443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_compile") 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455esac
4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; } &&
4461 { ac_try='test -s conftest.$ac_objext'
4462 { (case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465esac
4466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_try") 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004471 ac_cv_c_bigendian=yes
4472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004473 echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004476 ac_cv_c_bigendian=no
4477fi
4478
4479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480else
4481 echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 # It does not; compile a test program.
4485if test "$cross_compiling" = yes; then
4486 # try to guess the endianness by grepping values into an object file
4487 ac_cv_c_bigendian=unknown
4488 cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h. */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h. */
4494short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4495short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4496void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4497short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4498short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4499void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004500int
4501main ()
4502{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004503 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004504 ;
4505 return 0;
4506}
4507_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508rm -f conftest.$ac_objext
4509if { (ac_try="$ac_compile"
4510case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
4514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4515 (eval "$ac_compile") 2>conftest.er1
4516 ac_status=$?
4517 grep -v '^ *+' conftest.er1 >conftest.err
4518 rm -f conftest.er1
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4523 { (case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526esac
4527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_try") 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536esac
4537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_try") 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004543 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004544fi
4545if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4546 if test "$ac_cv_c_bigendian" = unknown; then
4547 ac_cv_c_bigendian=no
4548 else
4549 # finding both strings is unlikely to happen, but who knows?
4550 ac_cv_c_bigendian=unknown
4551 fi
4552fi
Reid Spencera773bd52006-08-04 18:18:08 +00004553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554 echo "$as_me: failed program was:" >&5
4555sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004557
Torok Edwin871384f2010-01-26 08:50:50 +00004558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004559
Reid Spencera773bd52006-08-04 18:18:08 +00004560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562 cat >conftest.$ac_ext <<_ACEOF
4563/* confdefs.h. */
4564_ACEOF
4565cat confdefs.h >>conftest.$ac_ext
4566cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004567/* end confdefs.h. */
4568$ac_includes_default
4569int
4570main ()
4571{
4572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573 /* Are we little or big endian? From Harbison&Steele. */
4574 union
4575 {
4576 long int l;
4577 char c[sizeof (long int)];
4578 } u;
4579 u.l = 1;
4580 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004581
4582 ;
4583 return 0;
4584}
4585_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004586rm -f conftest$ac_exeext
4587if { (ac_try="$ac_link"
4588case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_link") 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4597 { (case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600esac
4601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_try") 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004606 ac_cv_c_bigendian=no
4607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608 echo "$as_me: program exited with status $ac_status" >&5
4609echo "$as_me: failed program was:" >&5
4610sed 's/^/| /' conftest.$ac_ext >&5
4611
4612( exit $ac_status )
4613ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004615rm -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 +00004616fi
4617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618
Reid Spencera773bd52006-08-04 18:18:08 +00004619fi
4620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622fi
4623{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4624echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4625case $ac_cv_c_bigendian in
4626 yes)
4627 ENDIAN=big
4628 ;;
4629 no)
4630 ENDIAN=little
4631 ;;
4632 *)
4633 { { echo "$as_me:$LINENO: error: unknown endianness
4634presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4635echo "$as_me: error: unknown endianness
4636presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4637 { (exit 1); exit 1; }; } ;;
4638esac
Reid Spencera773bd52006-08-04 18:18:08 +00004639
4640
4641if test "$cross_compiling" = yes; then
4642 LLVM_CROSS_COMPILING=1
4643
4644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004645{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4646echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4647if test "${ac_cv_build_exeext+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004649else
4650 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4651 ac_cv_build_exeext=.exe
4652else
4653 ac_build_prefix=${build_alias}-
4654
4655 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4656set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004661else
4662 if test -n "$BUILD_CC"; then
4663 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 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 +00004672 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004674 break 2
4675 fi
4676done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677done
Reid Spencera773bd52006-08-04 18:18:08 +00004678IFS=$as_save_IFS
4679
4680fi
4681fi
4682BUILD_CC=$ac_cv_prog_BUILD_CC
4683if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004684 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4685echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004686else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004687 { echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004689fi
4690
4691
4692 if test -z "$BUILD_CC"; then
4693 # Extract the first word of "gcc", so it can be a program name with args.
4694set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004699else
4700 if test -n "$BUILD_CC"; then
4701 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 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 +00004710 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004712 break 2
4713 fi
4714done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715done
Reid Spencera773bd52006-08-04 18:18:08 +00004716IFS=$as_save_IFS
4717
4718fi
4719fi
4720BUILD_CC=$ac_cv_prog_BUILD_CC
4721if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004722 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4723echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004725 { echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004727fi
4728
4729
4730 if test -z "$BUILD_CC"; then
4731 # Extract the first word of "cc", so it can be a program name with args.
4732set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004737else
4738 if test -n "$BUILD_CC"; then
4739 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4740else
4741 ac_prog_rejected=no
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 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 +00004749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4750 ac_prog_rejected=yes
4751 continue
4752 fi
4753 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004755 break 2
4756 fi
4757done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004758done
Reid Spencera773bd52006-08-04 18:18:08 +00004759IFS=$as_save_IFS
4760
4761if test $ac_prog_rejected = yes; then
4762 # We found a bogon in the path, so make sure we never use it.
4763 set dummy $ac_cv_prog_BUILD_CC
4764 shift
4765 if test $# != 0; then
4766 # We chose a different compiler from the bogus one.
4767 # However, it has the same basename, so the bogon will be chosen
4768 # first if we set BUILD_CC to just the basename; use the full file name.
4769 shift
4770 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4771 fi
4772fi
4773fi
4774fi
4775BUILD_CC=$ac_cv_prog_BUILD_CC
4776if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004777 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4778echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004779else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004780 { echo "$as_me:$LINENO: result: no" >&5
4781echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004782fi
4783
4784
4785 fi
4786 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4788echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4789 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004790 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4791 rm -f conftest*
4792 echo 'int main () { return 0; }' > conftest.$ac_ext
4793 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004794 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004795 (eval $ac_build_link) 2>&5
4796 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004799 for file in conftest.*; do
4800 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004801 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004802 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4803 esac
4804 done
4805 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004806 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4807echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4808 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004809 fi
4810 rm -f conftest*
4811 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4812fi
4813fi
4814
4815BUILD_EXEEXT=""
4816test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004817{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4818echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004819ac_build_exeext=$BUILD_EXEEXT
4820
Jim Grosbach673612e2008-10-02 22:56:44 +00004821 ac_build_prefix=${build_alias}-
4822 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4823set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004828else
4829 if test -n "$BUILD_CXX"; then
4830 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4831else
4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH
4834do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 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 +00004839 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004841 break 2
4842 fi
4843done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004844done
Jim Grosbach673612e2008-10-02 22:56:44 +00004845IFS=$as_save_IFS
4846
4847fi
4848fi
4849BUILD_CXX=$ac_cv_prog_BUILD_CXX
4850if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004851 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4852echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854 { echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004856fi
4857
4858
4859 if test -z "$BUILD_CXX"; then
4860 # Extract the first word of "g++", so it can be a program name with args.
4861set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004866else
4867 if test -n "$BUILD_CXX"; then
4868 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 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 +00004877 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004879 break 2
4880 fi
4881done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882done
Jim Grosbach673612e2008-10-02 22:56:44 +00004883IFS=$as_save_IFS
4884
4885fi
4886fi
4887BUILD_CXX=$ac_cv_prog_BUILD_CXX
4888if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004889 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4890echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004891else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004892 { echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004894fi
4895
4896
4897 if test -z "$BUILD_CXX"; then
4898 # Extract the first word of "c++", so it can be a program name with args.
4899set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004904else
4905 if test -n "$BUILD_CXX"; then
4906 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4907else
4908 ac_prog_rejected=no
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 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 +00004916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4917 ac_prog_rejected=yes
4918 continue
4919 fi
4920 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004922 break 2
4923 fi
4924done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004925done
Jim Grosbach673612e2008-10-02 22:56:44 +00004926IFS=$as_save_IFS
4927
4928if test $ac_prog_rejected = yes; then
4929 # We found a bogon in the path, so make sure we never use it.
4930 set dummy $ac_cv_prog_BUILD_CXX
4931 shift
4932 if test $# != 0; then
4933 # We chose a different compiler from the bogus one.
4934 # However, it has the same basename, so the bogon will be chosen
4935 # first if we set BUILD_CXX to just the basename; use the full file name.
4936 shift
4937 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4938 fi
4939fi
4940fi
4941fi
4942BUILD_CXX=$ac_cv_prog_BUILD_CXX
4943if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004944 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4945echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004946else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004947 { echo "$as_me:$LINENO: result: no" >&5
4948echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004949fi
4950
4951
4952 fi
4953 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004954else
4955 LLVM_CROSS_COMPILING=0
4956
4957fi
4958
Dan Gohman56fb5f92010-08-04 16:25:01 +00004959if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004960 cvsbuild="yes"
4961 optimize="no"
4962 CVSBUILD=CVSBUILD=1
4963
4964else
4965 cvsbuild="no"
4966 optimize="yes"
4967fi
4968
4969
Eric Christopherbee515f2011-11-11 22:51:42 +00004970# Check whether --enable-libcpp was given.
4971if test "${enable_libcpp+set}" = set; then
4972 enableval=$enable_libcpp;
4973else
4974 enableval=default
4975fi
4976
4977case "$enableval" in
4978 yes) ENABLE_LIBCPP=1
4979 ;;
4980 no) ENABLE_LIBCPP=0
4981 ;;
4982 default) ENABLE_LIBCPP=0
4983;;
4984 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4985echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4986 { (exit 1); exit 1; }; } ;;
4987esac
4988
Reid Spencera773bd52006-08-04 18:18:08 +00004989# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004990if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004991 enableval=$enable_optimized;
4992else
4993 enableval=$optimize
4994fi
4995
4996if test ${enableval} = "no" ; then
4997 ENABLE_OPTIMIZED=
4998
4999else
5000 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5001
5002fi
5003
David Greene2a5a12c2009-04-17 14:50:39 +00005004# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005005if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005006 enableval=$enable_profiling;
5007else
5008 enableval="no"
5009fi
5010
5011if test ${enableval} = "no" ; then
5012 ENABLE_PROFILING=
5013
5014else
5015 ENABLE_PROFILING=ENABLE_PROFILING=1
5016
5017fi
5018
Reid Spencera773bd52006-08-04 18:18:08 +00005019# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005020if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005021 enableval=$enable_assertions;
5022else
5023 enableval="yes"
5024fi
5025
5026if test ${enableval} = "yes" ; then
5027 DISABLE_ASSERTIONS=
5028
5029else
5030 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5031
5032fi
5033
David Greenea696d242007-06-28 19:36:08 +00005034# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005035if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005036 enableval=$enable_expensive_checks;
5037else
5038 enableval="no"
5039fi
5040
5041if test ${enableval} = "yes" ; then
5042 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043
5044 EXPENSIVE_CHECKS=yes
5045
5046else
5047 ENABLE_EXPENSIVE_CHECKS=
5048
5049 EXPENSIVE_CHECKS=no
5050
5051fi
5052
Reid Spencer8b2e1412006-11-17 03:32:33 +00005053# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005054if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005055 enableval=$enable_debug_runtime;
5056else
5057 enableval=no
5058fi
5059
5060if test ${enableval} = "no" ; then
5061 DEBUG_RUNTIME=
5062
5063else
5064 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5065
5066fi
5067
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005068# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005069if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005070 enableval=$enable_debug_symbols;
5071else
5072 enableval=no
5073fi
5074
5075if test ${enableval} = "no" ; then
5076 DEBUG_SYMBOLS=
5077
5078else
5079 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5080
5081fi
5082
Reid Spencera773bd52006-08-04 18:18:08 +00005083# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005084if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005085 enableval=$enable_jit;
5086else
5087 enableval=default
5088fi
5089
5090if test ${enableval} = "no"
5091then
5092 JIT=
5093
5094else
5095 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005096 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005097 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005098 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005099 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005100 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005101 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005102 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005103 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005104 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005105 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005106 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005107 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005108 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005109 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005110 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005111 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005112 Hexagon) TARGET_HAS_JIT=0
5113 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005114 MBlaze) TARGET_HAS_JIT=0
5115 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005116 PTX) TARGET_HAS_JIT=0
5117 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005118 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005119 ;;
5120 esac
5121fi
5122
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005123# Check whether --enable-docs was given.
5124if test "${enable_docs+set}" = set; then
5125 enableval=$enable_docs;
5126else
5127 enableval=default
5128fi
5129
5130case "$enableval" in
5131 yes) ENABLE_DOCS=1
5132 ;;
5133 no) ENABLE_DOCS=0
5134 ;;
5135 default) ENABLE_DOCS=1
5136 ;;
5137 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5138echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5140esac
5141
Reid Spencera773bd52006-08-04 18:18:08 +00005142# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005143if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005144 enableval=$enable_doxygen;
5145else
5146 enableval=default
5147fi
5148
5149case "$enableval" in
5150 yes) ENABLE_DOXYGEN=1
5151 ;;
5152 no) ENABLE_DOXYGEN=0
5153 ;;
5154 default) ENABLE_DOXYGEN=0
5155 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005156 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5157echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5158 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005159esac
5160
5161# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005162if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005163 enableval=$enable_threads;
5164else
Reid Spencer65c5d752006-11-05 17:08:18 +00005165 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005166fi
5167
5168case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005169 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005170 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005171 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005172 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005173 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005174 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5176echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005178esac
5179
Owen Andersona8603702009-05-19 22:18:56 +00005180cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005181#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005182_ACEOF
5183
5184
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005185# Check whether --enable-pthreads was given.
5186if test "${enable_pthreads+set}" = set; then
5187 enableval=$enable_pthreads;
5188else
5189 enableval=default
5190fi
5191
5192case "$enableval" in
5193 yes) ENABLE_PTHREADS=1
5194 ;;
5195 no) ENABLE_PTHREADS=0
5196 ;;
5197 default) ENABLE_PTHREADS=1
5198 ;;
5199 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5200echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5201 { (exit 1); exit 1; }; } ;;
5202esac
5203
Reid Spencer89b0d992006-12-16 22:07:52 +00005204# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005205if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005206 enableval=$enable_pic;
5207else
5208 enableval=default
5209fi
5210
5211case "$enableval" in
5212 yes) ENABLE_PIC=1
5213 ;;
5214 no) ENABLE_PIC=0
5215 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005216 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005217 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5219echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005221esac
5222
5223cat >>confdefs.h <<_ACEOF
5224#define ENABLE_PIC $ENABLE_PIC
5225_ACEOF
5226
5227
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005228# Check whether --enable-shared was given.
5229if test "${enable_shared+set}" = set; then
5230 enableval=$enable_shared;
5231else
5232 enableval=default
5233fi
5234
5235case "$enableval" in
5236 yes) ENABLE_SHARED=1
5237 ;;
5238 no) ENABLE_SHARED=0
5239 ;;
5240 default) ENABLE_SHARED=0
5241 ;;
5242 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5243echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5244 { (exit 1); exit 1; }; } ;;
5245esac
5246
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005247# Check whether --enable-embed-stdcxx was given.
5248if test "${enable_embed_stdcxx+set}" = set; then
5249 enableval=$enable_embed_stdcxx;
5250else
5251 enableval=default
5252fi
5253
5254case "$enableval" in
5255 yes) ENABLE_EMBED_STDCXX=1
5256 ;;
5257 no) ENABLE_EMBED_STDCXX=0
5258 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005259 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005260 ;;
5261 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5262echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5263 { (exit 1); exit 1; }; } ;;
5264esac
5265
Daniel Dunbardd464df2010-05-10 20:11:56 +00005266# Check whether --enable-timestamps was given.
5267if test "${enable_timestamps+set}" = set; then
5268 enableval=$enable_timestamps;
5269else
5270 enableval=default
5271fi
5272
5273case "$enableval" in
5274 yes) ENABLE_TIMESTAMPS=1
5275 ;;
5276 no) ENABLE_TIMESTAMPS=0
5277 ;;
5278 default) ENABLE_TIMESTAMPS=1
5279 ;;
5280 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5281echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5282 { (exit 1); exit 1; }; } ;;
5283esac
5284
5285cat >>confdefs.h <<_ACEOF
5286#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5287_ACEOF
5288
5289
Reid Spencera773bd52006-08-04 18:18:08 +00005290TARGETS_TO_BUILD=""
5291# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005292if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005293 enableval=$enable_targets;
5294else
5295 enableval=all
5296fi
5297
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005298if test "$enableval" = host-only ; then
5299 enableval=host
5300fi
Reid Spencera773bd52006-08-04 18:18:08 +00005301case "$enableval" in
Tony Linthicumb4b54152011-12-12 21:14:40 +00005302 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005303 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5304 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005305 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5306 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5308 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005309 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5310 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005311 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005312 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005313 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5314 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005315 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005316 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005317 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005318 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005319 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005320 host) case "$llvm_cv_target_arch" in
5321 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5322 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5323 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5324 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005325 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5326 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005327 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005328 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005329 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5330 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005331 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005332 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005333 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5334echo "$as_me: error: Can not set target to build" >&2;}
5335 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005336 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005337 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5338echo "$as_me: error: Unrecognized target $a_target" >&2;}
5339 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005340 esac
5341 done
5342 ;;
5343esac
Reid Spencera773bd52006-08-04 18:18:08 +00005344TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5345
5346
Douglas Gregor0711c302009-06-17 00:43:20 +00005347for a_target in $TARGETS_TO_BUILD; do
5348 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5349
5350cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005351#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5352_ACEOF
5353
5354 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5355 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005356 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005357 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005358 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5359 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5360 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005361
5362cat >>confdefs.h <<_ACEOF
5363#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005364_ACEOF
5365
5366
5367cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005368#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5369_ACEOF
5370
5371
5372cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005373#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005374_ACEOF
5375
5376
5377cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005378#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005379_ACEOF
5380
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005381 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005382
5383cat >>confdefs.h <<_ACEOF
5384#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5385_ACEOF
5386
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005387 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005388 fi
5389done
5390
Douglas Gregor1555a232009-06-16 20:12:29 +00005391LLVM_ENUM_TARGETS=""
5392LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005393LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005394LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005395for target_to_build in $TARGETS_TO_BUILD; do
5396 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005397 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005398 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5399 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005400 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5401 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5402 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005403 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5404 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5405 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005406done
5407
5408
5409
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005410
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005411
Reid Spencer65c5d752006-11-05 17:08:18 +00005412# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005413if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005414 enableval=$enable_cbe_printf_a;
5415else
5416 enableval=default
5417fi
5418
5419case "$enableval" in
5420 yes) ENABLE_CBE_PRINTF_A=1
5421 ;;
5422 no) ENABLE_CBE_PRINTF_A=0
5423 ;;
5424 default) ENABLE_CBE_PRINTF_A=1
5425 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005426 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5427echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5428 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005429esac
5430
5431cat >>confdefs.h <<_ACEOF
5432#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5433_ACEOF
5434
5435
Reid Spencera773bd52006-08-04 18:18:08 +00005436
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005437# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005438if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005439 withval=$with_optimize_option;
5440else
5441 withval=default
5442fi
5443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005444{ echo "$as_me:$LINENO: checking optimization flags" >&5
5445echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005446case "$withval" in
5447 default)
5448 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005449 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005450 MingW) optimize_option=-O2 ;;
5451 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005452 esac ;;
5453 *) optimize_option="$withval" ;;
5454esac
5455OPTIMIZE_OPTION=$optimize_option
5456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005457{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5458echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005459
5460
Reid Spencera773bd52006-08-04 18:18:08 +00005461# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005462if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005463 withval=$with_extra_options;
5464else
5465 withval=default
5466fi
5467
5468case "$withval" in
5469 default) EXTRA_OPTIONS= ;;
5470 *) EXTRA_OPTIONS=$withval ;;
5471esac
5472EXTRA_OPTIONS=$EXTRA_OPTIONS
5473
5474
Daniel Dunbared344d22011-06-16 22:30:41 +00005475
5476# Check whether --with-extra-ld-options was given.
5477if test "${with_extra_ld_options+set}" = set; then
5478 withval=$with_extra_ld_options;
5479else
5480 withval=default
5481fi
5482
5483case "$withval" in
5484 default) EXTRA_LD_OPTIONS= ;;
5485 *) EXTRA_LD_OPTIONS=$withval ;;
5486esac
5487EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5488
5489
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005490# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005491if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005492 enableval=$enable_bindings;
5493else
5494 enableval=default
5495fi
5496
5497BINDINGS_TO_BUILD=""
5498case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005499 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005500 all ) BINDINGS_TO_BUILD="ocaml" ;;
5501 none | no) BINDINGS_TO_BUILD="" ;;
5502 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5503 case "$a_binding" in
5504 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005505 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5506echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5507 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005508 esac
5509 done
5510 ;;
5511esac
5512
Reid Spencera773bd52006-08-04 18:18:08 +00005513
Gordon Henriksenf0915682007-10-02 16:42:22 +00005514# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005515if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005516 withval=$with_ocaml_libdir;
5517else
5518 withval=auto
5519fi
5520
5521case "$withval" in
5522 auto) with_ocaml_libdir="$withval" ;;
5523 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005524 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5525echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5526 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005527esac
5528
5529
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005530# Check whether --with-clang-srcdir was given.
5531if test "${with_clang_srcdir+set}" = set; then
5532 withval=$with_clang_srcdir;
5533else
5534 withval="-"
5535fi
5536
5537case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005538 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005539 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5540 *) clang_src_root="$ac_pwd/$withval" ;;
5541esac
5542CLANG_SRC_ROOT=$clang_src_root
5543
5544
5545
Chandler Carruth6b241162010-10-19 08:21:25 +00005546# Check whether --with-clang-resource-dir was given.
5547if test "${with_clang_resource_dir+set}" = set; then
5548 withval=$with_clang_resource_dir;
5549else
5550 withval=""
5551fi
5552
5553
5554cat >>confdefs.h <<_ACEOF
5555#define CLANG_RESOURCE_DIR "$withval"
5556_ACEOF
5557
5558
5559
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005560# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005561if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005562 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005563else
5564 withval=""
5565fi
5566
5567
5568cat >>confdefs.h <<_ACEOF
5569#define C_INCLUDE_DIRS "$withval"
5570_ACEOF
5571
5572
5573
Rafael Espindola420d23c2009-11-16 19:46:55 +00005574# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005575if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005576 withval=$with_cxx_include_root;
5577else
5578 withval=""
5579fi
5580
5581
5582cat >>confdefs.h <<_ACEOF
5583#define CXX_INCLUDE_ROOT "$withval"
5584_ACEOF
5585
5586
5587
5588# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005589if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005590 withval=$with_cxx_include_arch;
5591else
5592 withval=""
5593fi
5594
5595
5596cat >>confdefs.h <<_ACEOF
5597#define CXX_INCLUDE_ARCH "$withval"
5598_ACEOF
5599
5600
5601
5602# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005603if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005604 withval=$with_cxx_include_32bit_dir;
5605else
5606 withval=""
5607fi
5608
5609
5610cat >>confdefs.h <<_ACEOF
5611#define CXX_INCLUDE_32BIT_DIR "$withval"
5612_ACEOF
5613
5614
5615
5616# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005617if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005618 withval=$with_cxx_include_64bit_dir;
5619else
5620 withval=""
5621fi
5622
5623
5624cat >>confdefs.h <<_ACEOF
5625#define CXX_INCLUDE_64BIT_DIR "$withval"
5626_ACEOF
5627
5628
5629
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005630# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005631if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005632 withval=$with_binutils_include;
5633else
5634 withval=default
5635fi
5636
5637case "$withval" in
5638 default) WITH_BINUTILS_INCDIR=default ;;
5639 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5641echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5642 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005643esac
5644if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5645 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5646
5647 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5648 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005649 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5650echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5651 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005652 fi
5653fi
5654
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005655
5656# Check whether --with-bug-report-url was given.
5657if test "${with_bug_report_url+set}" = set; then
5658 withval=$with_bug_report_url;
5659else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005660 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005661fi
5662
5663
5664cat >>confdefs.h <<_ACEOF
5665#define BUG_REPORT_URL "$withval"
5666_ACEOF
5667
5668
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005669# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005670if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005671 enableval=$enable_libffi; case "$enableval" in
5672 yes) llvm_cv_enable_libffi="yes" ;;
5673 no) llvm_cv_enable_libffi="no" ;;
5674 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005675echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5676 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005677 esac
5678else
5679 llvm_cv_enable_libffi=no
5680fi
5681
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005682
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005683
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005684# Check whether --with-internal-prefix was given.
5685if test "${with_internal_prefix+set}" = set; then
5686 withval=$with_internal_prefix;
5687else
5688 withval=""
5689fi
5690
5691INTERNAL_PREFIX=$withval
5692
5693
5694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005695{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5696echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5697if test "${lt_cv_path_NM+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005699else
5700 if test -n "$NM"; then
5701 # Let the user override the test.
5702 lt_cv_path_NM="$NM"
5703else
5704 lt_nm_to_check="${ac_tool_prefix}nm"
5705 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5706 lt_nm_to_check="$lt_nm_to_check nm"
5707 fi
5708 for lt_tmp_nm in $lt_nm_to_check; do
5709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5710 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5711 IFS="$lt_save_ifs"
5712 test -z "$ac_dir" && ac_dir=.
5713 tmp_nm="$ac_dir/$lt_tmp_nm"
5714 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5715 # Check to see if the nm accepts a BSD-compat flag.
5716 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5717 # nm: unknown option "B" ignored
5718 # Tru64's nm complains that /dev/null is an invalid object file
5719 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5720 */dev/null* | *'Invalid file or object type'*)
5721 lt_cv_path_NM="$tmp_nm -B"
5722 break
5723 ;;
5724 *)
5725 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5726 */dev/null*)
5727 lt_cv_path_NM="$tmp_nm -p"
5728 break
5729 ;;
5730 *)
5731 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5732 continue # so that we can try to find one that supports BSD flags
5733 ;;
5734 esac
5735 ;;
5736 esac
5737 fi
5738 done
5739 IFS="$lt_save_ifs"
5740 done
5741 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5742fi
5743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5745echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005746NM="$lt_cv_path_NM"
5747
5748
5749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005750{ echo "$as_me:$LINENO: checking for GNU make" >&5
5751echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5752if test "${llvm_cv_gnu_make_command+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005754else
5755 llvm_cv_gnu_make_command=''
5756 for a in "$MAKE" make gmake gnumake ; do
5757 if test -z "$a" ; then continue ; fi ;
5758 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5759 then
5760 llvm_cv_gnu_make_command=$a ;
5761 break;
5762 fi
5763 done
5764fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005765{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5766echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005767 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5768 ifGNUmake='' ;
5769 else
5770 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005771 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5772echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005773 fi
5774
5775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005776{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5777echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005778LN_S=$as_ln_s
5779if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005780 { echo "$as_me:$LINENO: result: yes" >&5
5781echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5784echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005785fi
5786
5787# Extract the first word of "cmp", so it can be a program name with args.
5788set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791if test "${ac_cv_path_CMP+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005793else
5794 case $CMP in
5795 [\\/]* | ?:[\\/]*)
5796 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5797 ;;
5798 *)
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 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 +00005806 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005808 break 2
5809 fi
5810done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005811done
Reid Spencera773bd52006-08-04 18:18:08 +00005812IFS=$as_save_IFS
5813
5814 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5815 ;;
5816esac
5817fi
5818CMP=$ac_cv_path_CMP
5819if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005820 { echo "$as_me:$LINENO: result: $CMP" >&5
5821echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005823 { echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005825fi
5826
5827
5828# Extract the first word of "cp", so it can be a program name with args.
5829set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832if test "${ac_cv_path_CP+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005834else
5835 case $CP in
5836 [\\/]* | ?:[\\/]*)
5837 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5838 ;;
5839 *)
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 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 +00005847 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005849 break 2
5850 fi
5851done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852done
Reid Spencera773bd52006-08-04 18:18:08 +00005853IFS=$as_save_IFS
5854
5855 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5856 ;;
5857esac
5858fi
5859CP=$ac_cv_path_CP
5860if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005861 { echo "$as_me:$LINENO: result: $CP" >&5
5862echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005864 { echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005866fi
5867
5868
5869# Extract the first word of "date", so it can be a program name with args.
5870set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873if test "${ac_cv_path_DATE+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005875else
5876 case $DATE in
5877 [\\/]* | ?:[\\/]*)
5878 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5879 ;;
5880 *)
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 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 +00005888 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005890 break 2
5891 fi
5892done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005893done
Reid Spencera773bd52006-08-04 18:18:08 +00005894IFS=$as_save_IFS
5895
5896 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5897 ;;
5898esac
5899fi
5900DATE=$ac_cv_path_DATE
5901if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005902 { echo "$as_me:$LINENO: result: $DATE" >&5
5903echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005905 { echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005907fi
5908
5909
5910# Extract the first word of "find", so it can be a program name with args.
5911set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914if test "${ac_cv_path_FIND+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005916else
5917 case $FIND in
5918 [\\/]* | ?:[\\/]*)
5919 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5920 ;;
5921 *)
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 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 +00005929 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005931 break 2
5932 fi
5933done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005934done
Reid Spencera773bd52006-08-04 18:18:08 +00005935IFS=$as_save_IFS
5936
5937 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5938 ;;
5939esac
5940fi
5941FIND=$ac_cv_path_FIND
5942if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005943 { echo "$as_me:$LINENO: result: $FIND" >&5
5944echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005945else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005946 { echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005948fi
5949
5950
5951# Extract the first word of "grep", so it can be a program name with args.
5952set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955if test "${ac_cv_path_GREP+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005957else
5958 case $GREP in
5959 [\\/]* | ?:[\\/]*)
5960 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5961 ;;
5962 *)
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 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 +00005970 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005972 break 2
5973 fi
5974done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005975done
Reid Spencera773bd52006-08-04 18:18:08 +00005976IFS=$as_save_IFS
5977
5978 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5979 ;;
5980esac
5981fi
5982GREP=$ac_cv_path_GREP
5983if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005984 { echo "$as_me:$LINENO: result: $GREP" >&5
5985echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005986else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005987 { echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005989fi
5990
5991
5992# Extract the first word of "mkdir", so it can be a program name with args.
5993set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5996if test "${ac_cv_path_MKDIR+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005998else
5999 case $MKDIR in
6000 [\\/]* | ?:[\\/]*)
6001 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6002 ;;
6003 *)
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 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 +00006011 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006013 break 2
6014 fi
6015done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006016done
Reid Spencera773bd52006-08-04 18:18:08 +00006017IFS=$as_save_IFS
6018
6019 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6020 ;;
6021esac
6022fi
6023MKDIR=$ac_cv_path_MKDIR
6024if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006025 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6026echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006027else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006028 { echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006030fi
6031
6032
6033# Extract the first word of "mv", so it can be a program name with args.
6034set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037if test "${ac_cv_path_MV+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006039else
6040 case $MV in
6041 [\\/]* | ?:[\\/]*)
6042 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6043 ;;
6044 *)
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 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 +00006052 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006054 break 2
6055 fi
6056done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006057done
Reid Spencera773bd52006-08-04 18:18:08 +00006058IFS=$as_save_IFS
6059
6060 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6061 ;;
6062esac
6063fi
6064MV=$ac_cv_path_MV
6065if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006066 { echo "$as_me:$LINENO: result: $MV" >&5
6067echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006068else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006069 { echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006071fi
6072
6073
6074if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6079if test "${ac_cv_prog_RANLIB+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006081else
6082 if test -n "$RANLIB"; then
6083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6084else
6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 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 +00006092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006094 break 2
6095 fi
6096done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006097done
Reid Spencera773bd52006-08-04 18:18:08 +00006098IFS=$as_save_IFS
6099
6100fi
6101fi
6102RANLIB=$ac_cv_prog_RANLIB
6103if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6105echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006107 { echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006109fi
6110
6111
6112fi
6113if test -z "$ac_cv_prog_RANLIB"; then
6114 ac_ct_RANLIB=$RANLIB
6115 # Extract the first word of "ranlib", so it can be a program name with args.
6116set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6119if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006121else
6122 if test -n "$ac_ct_RANLIB"; then
6123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6124else
6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126for as_dir in $PATH
6127do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 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 +00006132 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006134 break 2
6135 fi
6136done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006137done
Reid Spencera773bd52006-08-04 18:18:08 +00006138IFS=$as_save_IFS
6139
6140fi
6141fi
6142ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6143if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006144 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6145echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006146else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147 { echo "$as_me:$LINENO: result: no" >&5
6148echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006149fi
6150
6151 if test "x$ac_ct_RANLIB" = x; then
6152 RANLIB=":"
6153 else
6154 case $cross_compiling:$ac_tool_warned in
6155yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006156{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6157whose name does not start with the host triplet. If you think this
6158configuration is useful to you, please write to autoconf@gnu.org." >&5
6159echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6160whose name does not start with the host triplet. If you think this
6161configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006162ac_tool_warned=yes ;;
6163esac
6164 RANLIB=$ac_ct_RANLIB
6165 fi
6166else
6167 RANLIB="$ac_cv_prog_RANLIB"
6168fi
6169
Torok Edwin871384f2010-01-26 08:50:50 +00006170if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6172set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175if test "${ac_cv_prog_AR+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006177else
6178 if test -n "$AR"; then
6179 ac_cv_prog_AR="$AR" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 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 +00006188 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006190 break 2
6191 fi
6192done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193done
Torok Edwin871384f2010-01-26 08:50:50 +00006194IFS=$as_save_IFS
6195
6196fi
6197fi
6198AR=$ac_cv_prog_AR
6199if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006200 { echo "$as_me:$LINENO: result: $AR" >&5
6201echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203 { echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006205fi
6206
6207
6208fi
6209if test -z "$ac_cv_prog_AR"; then
6210 ac_ct_AR=$AR
6211 # Extract the first word of "ar", so it can be a program name with args.
6212set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006217else
6218 if test -n "$ac_ct_AR"; then
6219 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 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 +00006228 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006230 break 2
6231 fi
6232done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233done
Torok Edwin871384f2010-01-26 08:50:50 +00006234IFS=$as_save_IFS
6235
6236fi
6237fi
6238ac_ct_AR=$ac_cv_prog_ac_ct_AR
6239if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006240 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6241echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006243 { echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006245fi
6246
6247 if test "x$ac_ct_AR" = x; then
6248 AR="false"
6249 else
6250 case $cross_compiling:$ac_tool_warned in
6251yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006252{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6253whose name does not start with the host triplet. If you think this
6254configuration is useful to you, please write to autoconf@gnu.org." >&5
6255echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6256whose name does not start with the host triplet. If you think this
6257configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006258ac_tool_warned=yes ;;
6259esac
6260 AR=$ac_ct_AR
6261 fi
6262else
6263 AR="$ac_cv_prog_AR"
6264fi
6265
Reid Spencera773bd52006-08-04 18:18:08 +00006266# Extract the first word of "rm", so it can be a program name with args.
6267set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270if test "${ac_cv_path_RM+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006272else
6273 case $RM in
6274 [\\/]* | ?:[\\/]*)
6275 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6276 ;;
6277 *)
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 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 +00006285 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006287 break 2
6288 fi
6289done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006290done
Reid Spencera773bd52006-08-04 18:18:08 +00006291IFS=$as_save_IFS
6292
6293 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6294 ;;
6295esac
6296fi
6297RM=$ac_cv_path_RM
6298if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006299 { echo "$as_me:$LINENO: result: $RM" >&5
6300echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006302 { echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006304fi
6305
6306
6307# Extract the first word of "sed", so it can be a program name with args.
6308set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311if test "${ac_cv_path_SED+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006313else
6314 case $SED in
6315 [\\/]* | ?:[\\/]*)
6316 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6317 ;;
6318 *)
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 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 +00006326 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006328 break 2
6329 fi
6330done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331done
Reid Spencera773bd52006-08-04 18:18:08 +00006332IFS=$as_save_IFS
6333
6334 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6335 ;;
6336esac
6337fi
6338SED=$ac_cv_path_SED
6339if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006340 { echo "$as_me:$LINENO: result: $SED" >&5
6341echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006343 { echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006345fi
6346
6347
6348# Extract the first word of "tar", so it can be a program name with args.
6349set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352if test "${ac_cv_path_TAR+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006354else
6355 case $TAR in
6356 [\\/]* | ?:[\\/]*)
6357 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6358 ;;
6359 *)
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 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 +00006367 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006369 break 2
6370 fi
6371done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006372done
Reid Spencera773bd52006-08-04 18:18:08 +00006373IFS=$as_save_IFS
6374
6375 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6376 ;;
6377esac
6378fi
6379TAR=$ac_cv_path_TAR
6380if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006381 { echo "$as_me:$LINENO: result: $TAR" >&5
6382echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006383else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384 { echo "$as_me:$LINENO: result: no" >&5
6385echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006386fi
6387
6388
6389# Extract the first word of "pwd", so it can be a program name with args.
6390set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393if test "${ac_cv_path_BINPWD+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006395else
6396 case $BINPWD in
6397 [\\/]* | ?:[\\/]*)
6398 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6399 ;;
6400 *)
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 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 +00006408 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006410 break 2
6411 fi
6412done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413done
Reid Spencera773bd52006-08-04 18:18:08 +00006414IFS=$as_save_IFS
6415
6416 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6417 ;;
6418esac
6419fi
6420BINPWD=$ac_cv_path_BINPWD
6421if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6423echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425 { echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006427fi
6428
6429
6430
6431# Extract the first word of "Graphviz", so it can be a program name with args.
6432set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006437else
6438 case $GRAPHVIZ in
6439 [\\/]* | ?:[\\/]*)
6440 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6441 ;;
6442 *)
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 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 +00006450 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006452 break 2
6453 fi
6454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455done
Reid Spencera773bd52006-08-04 18:18:08 +00006456IFS=$as_save_IFS
6457
6458 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6459 ;;
6460esac
6461fi
6462GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6463if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006464 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6465echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467 { echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006469fi
6470
6471
6472if test "$GRAPHVIZ" != "echo Graphviz" ; then
6473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006474cat >>confdefs.h <<\_ACEOF
6475#define HAVE_GRAPHVIZ 1
6476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006477
Jeff Cohen28783c32007-01-12 18:22:38 +00006478 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006479 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6480 fi
6481
6482cat >>confdefs.h <<_ACEOF
6483#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6484_ACEOF
6485
6486fi
6487# Extract the first word of "dot", so it can be a program name with args.
6488set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491if test "${ac_cv_path_DOT+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006493else
6494 case $DOT in
6495 [\\/]* | ?:[\\/]*)
6496 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6497 ;;
6498 *)
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 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 +00006506 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006508 break 2
6509 fi
6510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006511done
Reid Spencera773bd52006-08-04 18:18:08 +00006512IFS=$as_save_IFS
6513
6514 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6515 ;;
6516esac
6517fi
6518DOT=$ac_cv_path_DOT
6519if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006520 { echo "$as_me:$LINENO: result: $DOT" >&5
6521echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523 { echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006525fi
6526
6527
6528if test "$DOT" != "echo dot" ; then
6529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006530cat >>confdefs.h <<\_ACEOF
6531#define HAVE_DOT 1
6532_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006533
Jeff Cohen28783c32007-01-12 18:22:38 +00006534 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006535 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6536 fi
6537
6538cat >>confdefs.h <<_ACEOF
6539#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6540_ACEOF
6541
6542fi
David Greenef0b9eff2009-07-09 17:16:26 +00006543# Extract the first word of "fdp", so it can be a program name with args.
6544set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547if test "${ac_cv_path_FDP+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006549else
6550 case $FDP in
6551 [\\/]* | ?:[\\/]*)
6552 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6553 ;;
6554 *)
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 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 +00006562 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006564 break 2
6565 fi
6566done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006567done
David Greenef0b9eff2009-07-09 17:16:26 +00006568IFS=$as_save_IFS
6569
6570 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6571 ;;
6572esac
6573fi
6574FDP=$ac_cv_path_FDP
6575if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006576 { echo "$as_me:$LINENO: result: $FDP" >&5
6577echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579 { echo "$as_me:$LINENO: result: no" >&5
6580echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006581fi
6582
6583
6584if test "$FDP" != "echo fdp" ; then
6585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006586cat >>confdefs.h <<\_ACEOF
6587#define HAVE_FDP 1
6588_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006589
6590 if test "$llvm_cv_os_type" = "MingW" ; then
6591 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6592 fi
6593
6594cat >>confdefs.h <<_ACEOF
6595#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6596_ACEOF
6597
6598fi
6599# Extract the first word of "neato", so it can be a program name with args.
6600set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603if test "${ac_cv_path_NEATO+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006605else
6606 case $NEATO in
6607 [\\/]* | ?:[\\/]*)
6608 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6609 ;;
6610 *)
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 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 +00006618 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006620 break 2
6621 fi
6622done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006623done
David Greenef0b9eff2009-07-09 17:16:26 +00006624IFS=$as_save_IFS
6625
6626 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6627 ;;
6628esac
6629fi
6630NEATO=$ac_cv_path_NEATO
6631if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006632 { echo "$as_me:$LINENO: result: $NEATO" >&5
6633echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006634else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006635 { echo "$as_me:$LINENO: result: no" >&5
6636echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006637fi
6638
6639
6640if test "$NEATO" != "echo neato" ; then
6641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006642cat >>confdefs.h <<\_ACEOF
6643#define HAVE_NEATO 1
6644_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006645
6646 if test "$llvm_cv_os_type" = "MingW" ; then
6647 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6648 fi
6649
6650cat >>confdefs.h <<_ACEOF
6651#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6652_ACEOF
6653
6654fi
6655# Extract the first word of "twopi", so it can be a program name with args.
6656set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659if test "${ac_cv_path_TWOPI+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006661else
6662 case $TWOPI in
6663 [\\/]* | ?:[\\/]*)
6664 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6665 ;;
6666 *)
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 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 +00006674 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006676 break 2
6677 fi
6678done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006679done
David Greenef0b9eff2009-07-09 17:16:26 +00006680IFS=$as_save_IFS
6681
6682 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6683 ;;
6684esac
6685fi
6686TWOPI=$ac_cv_path_TWOPI
6687if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006688 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6689echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006690else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006691 { echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006693fi
6694
6695
6696if test "$TWOPI" != "echo twopi" ; then
6697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006698cat >>confdefs.h <<\_ACEOF
6699#define HAVE_TWOPI 1
6700_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006701
6702 if test "$llvm_cv_os_type" = "MingW" ; then
6703 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6704 fi
6705
6706cat >>confdefs.h <<_ACEOF
6707#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6708_ACEOF
6709
6710fi
6711# Extract the first word of "circo", so it can be a program name with args.
6712set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715if test "${ac_cv_path_CIRCO+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006717else
6718 case $CIRCO in
6719 [\\/]* | ?:[\\/]*)
6720 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6721 ;;
6722 *)
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 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 +00006730 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006732 break 2
6733 fi
6734done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006735done
David Greenef0b9eff2009-07-09 17:16:26 +00006736IFS=$as_save_IFS
6737
6738 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6739 ;;
6740esac
6741fi
6742CIRCO=$ac_cv_path_CIRCO
6743if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006744 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6745echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006746else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006747 { echo "$as_me:$LINENO: result: no" >&5
6748echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006749fi
6750
6751
6752if test "$CIRCO" != "echo circo" ; then
6753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006754cat >>confdefs.h <<\_ACEOF
6755#define HAVE_CIRCO 1
6756_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006757
6758 if test "$llvm_cv_os_type" = "MingW" ; then
6759 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6760 fi
6761
6762cat >>confdefs.h <<_ACEOF
6763#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6764_ACEOF
6765
6766fi
Reid Spencera773bd52006-08-04 18:18:08 +00006767for ac_prog in gv gsview32
6768do
6769 # Extract the first word of "$ac_prog", so it can be a program name with args.
6770set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773if test "${ac_cv_path_GV+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006775else
6776 case $GV in
6777 [\\/]* | ?:[\\/]*)
6778 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6779 ;;
6780 *)
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782for as_dir in $PATH
6783do
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 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 +00006788 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006790 break 2
6791 fi
6792done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006793done
Reid Spencera773bd52006-08-04 18:18:08 +00006794IFS=$as_save_IFS
6795
6796 ;;
6797esac
6798fi
6799GV=$ac_cv_path_GV
6800if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006801 { echo "$as_me:$LINENO: result: $GV" >&5
6802echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006803else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006804 { echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006806fi
6807
6808
6809 test -n "$GV" && break
6810done
6811test -n "$GV" || GV="echo gv"
6812
6813if test "$GV" != "echo gv" ; then
6814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815cat >>confdefs.h <<\_ACEOF
6816#define HAVE_GV 1
6817_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006818
Jeff Cohen28783c32007-01-12 18:22:38 +00006819 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006820 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6821 fi
6822
6823cat >>confdefs.h <<_ACEOF
6824#define LLVM_PATH_GV "$GV${EXEEXT}"
6825_ACEOF
6826
6827fi
6828# Extract the first word of "dotty", so it can be a program name with args.
6829set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832if test "${ac_cv_path_DOTTY+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006834else
6835 case $DOTTY in
6836 [\\/]* | ?:[\\/]*)
6837 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6838 ;;
6839 *)
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 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 +00006847 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006849 break 2
6850 fi
6851done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006852done
Reid Spencera773bd52006-08-04 18:18:08 +00006853IFS=$as_save_IFS
6854
6855 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6856 ;;
6857esac
6858fi
6859DOTTY=$ac_cv_path_DOTTY
6860if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006861 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6862echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864 { echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006866fi
6867
6868
6869if test "$DOTTY" != "echo dotty" ; then
6870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006871cat >>confdefs.h <<\_ACEOF
6872#define HAVE_DOTTY 1
6873_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006874
Jeff Cohen28783c32007-01-12 18:22:38 +00006875 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006876 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6877 fi
6878
6879cat >>confdefs.h <<_ACEOF
6880#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6881_ACEOF
6882
6883fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006884# Extract the first word of "xdot.py", so it can be a program name with args.
6885set dummy xdot.py; ac_word=$2
6886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888if test "${ac_cv_path_XDOT_PY+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890else
6891 case $XDOT_PY in
6892 [\\/]* | ?:[\\/]*)
6893 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6894 ;;
6895 *)
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907done
6908done
6909IFS=$as_save_IFS
6910
6911 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6912 ;;
6913esac
6914fi
6915XDOT_PY=$ac_cv_path_XDOT_PY
6916if test -n "$XDOT_PY"; then
6917 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6918echo "${ECHO_T}$XDOT_PY" >&6; }
6919else
6920 { echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6; }
6922fi
6923
6924
6925if test "$XDOT_PY" != "echo xdot.py" ; then
6926
6927cat >>confdefs.h <<\_ACEOF
6928#define HAVE_XDOT_PY 1
6929_ACEOF
6930
6931 if test "$llvm_cv_os_type" = "MingW" ; then
6932 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6933 fi
6934
6935cat >>confdefs.h <<_ACEOF
6936#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6937_ACEOF
6938
6939fi
Reid Spencera773bd52006-08-04 18:18:08 +00006940
6941
6942# Extract the first word of "perl", so it can be a program name with args.
6943set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946if test "${ac_cv_path_PERL+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006948else
6949 case $PERL in
6950 [\\/]* | ?:[\\/]*)
6951 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6952 ;;
6953 *)
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 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 +00006961 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006963 break 2
6964 fi
6965done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966done
Reid Spencera773bd52006-08-04 18:18:08 +00006967IFS=$as_save_IFS
6968
6969 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6970 ;;
6971esac
6972fi
6973PERL=$ac_cv_path_PERL
6974if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006975 { echo "$as_me:$LINENO: result: $PERL" >&5
6976echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006978 { echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006980fi
6981
6982
6983if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006984 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6985echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006986 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006987 { echo "$as_me:$LINENO: result: yes" >&5
6988echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006989 else
6990 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991 { echo "$as_me:$LINENO: result: not found" >&5
6992echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006993 fi
6994fi
6995
6996
6997if test x"$PERL" = xnone; then
6998 HAVE_PERL=0
6999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007000 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7001echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7002 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007003else
7004 HAVE_PERL=1
7005
7006fi
7007
7008# Find a good install program. We prefer a C program (faster),
7009# so one script is as good as another. But avoid the broken or
7010# incompatible versions:
7011# SysV /etc/install, /usr/sbin/install
7012# SunOS /usr/etc/install
7013# IRIX /sbin/install
7014# AIX /bin/install
7015# AmigaOS /C/install, which installs bootblocks on floppy discs
7016# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7017# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7018# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7019# OS/2's system install, which has a completely different semantic
7020# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7022echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007023if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007024if test "${ac_cv_path_install+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007026else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007032 # Account for people who put trailing slashes in PATH elements.
7033case $as_dir/ in
7034 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007035 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007037 /usr/ucb/* ) ;;
7038 *)
7039 # OSF1 and SCO ODT 3.0 have their own names for install.
7040 # Don't use installbsd from OSF since it installs stuff as root
7041 # by default.
7042 for ac_prog in ginstall scoinst install; do
7043 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044 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 +00007045 if test $ac_prog = install &&
7046 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7047 # AIX install. It has an incompatible calling convention.
7048 :
7049 elif test $ac_prog = install &&
7050 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7051 # program-specific install script used by HP pwplus--don't use.
7052 :
7053 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7055 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007056 fi
7057 fi
7058 done
7059 done
7060 ;;
7061esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007062done
Reid Spencera773bd52006-08-04 18:18:08 +00007063IFS=$as_save_IFS
7064
7065
7066fi
7067 if test "${ac_cv_path_install+set}" = set; then
7068 INSTALL=$ac_cv_path_install
7069 else
7070 # As a last resort, use the slow shell script. Don't cache a
7071 # value for INSTALL within a source directory, because that will
7072 # break other packages using the cache if that directory is
7073 # removed, or if the value is a relative name.
7074 INSTALL=$ac_install_sh
7075 fi
7076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007077{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7078echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007079
7080# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7081# It thinks the first close brace ends the variable substitution.
7082test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7083
7084test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7085
7086test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7087
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007088case "$INSTALL" in
7089 [\\/$]* | ?:[\\/]* ) ;;
7090 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7091esac
Reid Spencera773bd52006-08-04 18:18:08 +00007092
7093# Extract the first word of "bzip2", so it can be a program name with args.
7094set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097if test "${ac_cv_path_BZIP2+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007099else
7100 case $BZIP2 in
7101 [\\/]* | ?:[\\/]*)
7102 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7103 ;;
7104 *)
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 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 +00007112 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007114 break 2
7115 fi
7116done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117done
Reid Spencera773bd52006-08-04 18:18:08 +00007118IFS=$as_save_IFS
7119
Reid Spencera773bd52006-08-04 18:18:08 +00007120 ;;
7121esac
7122fi
7123BZIP2=$ac_cv_path_BZIP2
7124if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007125 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7126echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007128 { echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007130fi
7131
7132
mike-m68cb3192010-05-06 23:45:43 +00007133# Extract the first word of "cat", so it can be a program name with args.
7134set dummy cat; ac_word=$2
7135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137if test "${ac_cv_path_CAT+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140 case $CAT in
7141 [\\/]* | ?:[\\/]*)
7142 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7143 ;;
7144 *)
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156done
7157done
7158IFS=$as_save_IFS
7159
7160 ;;
7161esac
7162fi
7163CAT=$ac_cv_path_CAT
7164if test -n "$CAT"; then
7165 { echo "$as_me:$LINENO: result: $CAT" >&5
7166echo "${ECHO_T}$CAT" >&6; }
7167else
7168 { echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6; }
7170fi
7171
7172
Reid Spencera773bd52006-08-04 18:18:08 +00007173# Extract the first word of "doxygen", so it can be a program name with args.
7174set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177if test "${ac_cv_path_DOXYGEN+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007179else
7180 case $DOXYGEN in
7181 [\\/]* | ?:[\\/]*)
7182 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7183 ;;
7184 *)
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 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 +00007192 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007194 break 2
7195 fi
7196done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197done
Reid Spencera773bd52006-08-04 18:18:08 +00007198IFS=$as_save_IFS
7199
Reid Spencera773bd52006-08-04 18:18:08 +00007200 ;;
7201esac
7202fi
7203DOXYGEN=$ac_cv_path_DOXYGEN
7204if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7206echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208 { echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007210fi
7211
7212
Reid Spencera773bd52006-08-04 18:18:08 +00007213# Extract the first word of "groff", so it can be a program name with args.
7214set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217if test "${ac_cv_path_GROFF+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007219else
7220 case $GROFF in
7221 [\\/]* | ?:[\\/]*)
7222 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7223 ;;
7224 *)
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 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 +00007232 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007234 break 2
7235 fi
7236done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237done
Reid Spencera773bd52006-08-04 18:18:08 +00007238IFS=$as_save_IFS
7239
Reid Spencera773bd52006-08-04 18:18:08 +00007240 ;;
7241esac
7242fi
7243GROFF=$ac_cv_path_GROFF
7244if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007245 { echo "$as_me:$LINENO: result: $GROFF" >&5
7246echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007248 { echo "$as_me:$LINENO: result: no" >&5
7249echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007250fi
7251
7252
7253# Extract the first word of "gzip", so it can be a program name with args.
7254set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007257if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007258 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007259else
Eric Christopher031d3072010-12-10 01:31:51 +00007260 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007261 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007262 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007263 ;;
7264 *)
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 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 +00007272 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007274 break 2
7275 fi
7276done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277done
Reid Spencera773bd52006-08-04 18:18:08 +00007278IFS=$as_save_IFS
7279
Reid Spencera773bd52006-08-04 18:18:08 +00007280 ;;
7281esac
7282fi
Eric Christopher031d3072010-12-10 01:31:51 +00007283GZIPBIN=$ac_cv_path_GZIPBIN
7284if test -n "$GZIPBIN"; then
7285 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7286echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007287else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288 { echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007290fi
7291
7292
7293# Extract the first word of "pod2html", so it can be a program name with args.
7294set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297if test "${ac_cv_path_POD2HTML+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007299else
7300 case $POD2HTML in
7301 [\\/]* | ?:[\\/]*)
7302 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7303 ;;
7304 *)
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 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 +00007312 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007314 break 2
7315 fi
7316done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317done
Reid Spencera773bd52006-08-04 18:18:08 +00007318IFS=$as_save_IFS
7319
Reid Spencera773bd52006-08-04 18:18:08 +00007320 ;;
7321esac
7322fi
7323POD2HTML=$ac_cv_path_POD2HTML
7324if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007325 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7326echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007327else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328 { echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007330fi
7331
7332
7333# Extract the first word of "pod2man", so it can be a program name with args.
7334set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337if test "${ac_cv_path_POD2MAN+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007339else
7340 case $POD2MAN in
7341 [\\/]* | ?:[\\/]*)
7342 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7343 ;;
7344 *)
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 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 +00007352 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007354 break 2
7355 fi
7356done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357done
Reid Spencera773bd52006-08-04 18:18:08 +00007358IFS=$as_save_IFS
7359
Reid Spencera773bd52006-08-04 18:18:08 +00007360 ;;
7361esac
7362fi
7363POD2MAN=$ac_cv_path_POD2MAN
7364if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007365 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7366echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007367else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007368 { echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007370fi
7371
7372
mike-m68cb3192010-05-06 23:45:43 +00007373# Extract the first word of "pdfroff", so it can be a program name with args.
7374set dummy pdfroff; ac_word=$2
7375{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377if test "${ac_cv_path_PDFROFF+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380 case $PDFROFF in
7381 [\\/]* | ?:[\\/]*)
7382 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7383 ;;
7384 *)
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7392 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396done
7397done
7398IFS=$as_save_IFS
7399
7400 ;;
7401esac
7402fi
7403PDFROFF=$ac_cv_path_PDFROFF
7404if test -n "$PDFROFF"; then
7405 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7406echo "${ECHO_T}$PDFROFF" >&6; }
7407else
7408 { echo "$as_me:$LINENO: result: no" >&5
7409echo "${ECHO_T}no" >&6; }
7410fi
7411
7412
Reid Spencera773bd52006-08-04 18:18:08 +00007413# Extract the first word of "runtest", so it can be a program name with args.
7414set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417if test "${ac_cv_path_RUNTEST+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007419else
7420 case $RUNTEST in
7421 [\\/]* | ?:[\\/]*)
7422 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7423 ;;
7424 *)
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 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 +00007432 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007434 break 2
7435 fi
7436done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007437done
Reid Spencera773bd52006-08-04 18:18:08 +00007438IFS=$as_save_IFS
7439
Reid Spencera773bd52006-08-04 18:18:08 +00007440 ;;
7441esac
7442fi
7443RUNTEST=$ac_cv_path_RUNTEST
7444if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007445 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7446echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 { echo "$as_me:$LINENO: result: no" >&5
7449echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007450fi
7451
7452
7453
7454no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7456echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007457
7458# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007460 withval=$with_tclinclude; with_tclinclude=${withval}
7461else
7462 with_tclinclude=''
7463fi
7464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465if test "${ac_cv_path_tclsh+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007467else
7468
7469if test x"${with_tclinclude}" != x ; then
7470 if test -f ${with_tclinclude}/tclsh ; then
7471 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7472 elif test -f ${with_tclinclude}/src/tclsh ; then
7473 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7474 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007475 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7476echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7477 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007478 fi
7479fi
Torok Edwin871384f2010-01-26 08:50:50 +00007480fi
7481
Reid Spencera773bd52006-08-04 18:18:08 +00007482
7483if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484 { echo "$as_me:$LINENO: result: none" >&5
7485echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007486 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
7487do
7488 # Extract the first word of "$ac_prog", so it can be a program name with args.
7489set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492if test "${ac_cv_path_TCLSH+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007494else
7495 case $TCLSH in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7498 ;;
7499 *)
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 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 +00007507 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007509 break 2
7510 fi
7511done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512done
Reid Spencera773bd52006-08-04 18:18:08 +00007513IFS=$as_save_IFS
7514
7515 ;;
7516esac
7517fi
7518TCLSH=$ac_cv_path_TCLSH
7519if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007520 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7521echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007523 { echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007525fi
7526
7527
7528 test -n "$TCLSH" && break
7529done
7530
7531 if test x"${TCLSH}" = x ; then
7532 ac_cv_path_tclsh='';
7533 else
7534 ac_cv_path_tclsh="${TCLSH}";
7535 fi
7536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7538echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007539 TCLSH="${ac_cv_path_tclsh}"
7540
7541fi
7542
Reid Spencera773bd52006-08-04 18:18:08 +00007543# Extract the first word of "zip", so it can be a program name with args.
7544set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547if test "${ac_cv_path_ZIP+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007549else
7550 case $ZIP in
7551 [\\/]* | ?:[\\/]*)
7552 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7553 ;;
7554 *)
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 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 +00007562 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007564 break 2
7565 fi
7566done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567done
Reid Spencera773bd52006-08-04 18:18:08 +00007568IFS=$as_save_IFS
7569
Reid Spencera773bd52006-08-04 18:18:08 +00007570 ;;
7571esac
7572fi
7573ZIP=$ac_cv_path_ZIP
7574if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007575 { echo "$as_me:$LINENO: result: $ZIP" >&5
7576echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007577else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007578 { echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007580fi
7581
7582
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007583for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007584do
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589if test "${ac_cv_path_OCAMLC+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007591else
7592 case $OCAMLC in
7593 [\\/]* | ?:[\\/]*)
7594 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7595 ;;
7596 *)
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 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 +00007604 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007606 break 2
7607 fi
7608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007610IFS=$as_save_IFS
7611
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007612 ;;
7613esac
7614fi
7615OCAMLC=$ac_cv_path_OCAMLC
7616if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007617 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7618echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620 { echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007622fi
7623
7624
Gordon Henriksene7072162008-03-07 18:20:01 +00007625 test -n "$OCAMLC" && break
7626done
7627
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007628for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007629do
7630 # Extract the first word of "$ac_prog", so it can be a program name with args.
7631set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007636else
7637 case $OCAMLOPT in
7638 [\\/]* | ?:[\\/]*)
7639 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7640 ;;
7641 *)
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643for as_dir in $PATH
7644do
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 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 +00007649 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007651 break 2
7652 fi
7653done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007654done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007655IFS=$as_save_IFS
7656
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007657 ;;
7658esac
7659fi
7660OCAMLOPT=$ac_cv_path_OCAMLOPT
7661if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007662 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7663echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665 { echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007667fi
7668
7669
Gordon Henriksene7072162008-03-07 18:20:01 +00007670 test -n "$OCAMLOPT" && break
7671done
7672
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007673for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007674do
7675 # Extract the first word of "$ac_prog", so it can be a program name with args.
7676set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007681else
7682 case $OCAMLDEP in
7683 [\\/]* | ?:[\\/]*)
7684 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7685 ;;
7686 *)
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 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 +00007694 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007696 break 2
7697 fi
7698done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007699done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007700IFS=$as_save_IFS
7701
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007702 ;;
7703esac
7704fi
7705OCAMLDEP=$ac_cv_path_OCAMLDEP
7706if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7708echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710 { echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007712fi
7713
7714
Gordon Henriksene7072162008-03-07 18:20:01 +00007715 test -n "$OCAMLDEP" && break
7716done
7717
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007718for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007719do
7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
7721set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7724if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007726else
7727 case $OCAMLDOC in
7728 [\\/]* | ?:[\\/]*)
7729 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7730 ;;
7731 *)
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 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 +00007739 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007741 break 2
7742 fi
7743done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007744done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007745IFS=$as_save_IFS
7746
7747 ;;
7748esac
7749fi
7750OCAMLDOC=$ac_cv_path_OCAMLDOC
7751if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7753echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007754else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755 { echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007757fi
7758
7759
7760 test -n "$OCAMLDOC" && break
7761done
7762
Torok Edwincc499a42008-10-22 09:56:27 +00007763for ac_prog in gas as
7764do
7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
7766set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769if test "${ac_cv_path_GAS+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007771else
7772 case $GAS in
7773 [\\/]* | ?:[\\/]*)
7774 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7775 ;;
7776 *)
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 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 +00007784 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007786 break 2
7787 fi
7788done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007789done
Torok Edwincc499a42008-10-22 09:56:27 +00007790IFS=$as_save_IFS
7791
7792 ;;
7793esac
7794fi
7795GAS=$ac_cv_path_GAS
7796if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007797 { echo "$as_me:$LINENO: result: $GAS" >&5
7798echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007800 { echo "$as_me:$LINENO: result: no" >&5
7801echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007802fi
7803
7804
7805 test -n "$GAS" && break
7806done
7807
Reid Spencera773bd52006-08-04 18:18:08 +00007808
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007809{ echo "$as_me:$LINENO: checking for linker version" >&5
7810echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7811if test "${llvm_cv_link_version+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814
7815 version_string="$(ld -v 2>&1 | head -1)"
7816
7817 # Check for ld64.
7818 if (echo "$version_string" | grep -q "ld64"); then
7819 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7820 else
7821 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7822 fi
7823
7824fi
7825{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7826echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7827
7828cat >>confdefs.h <<_ACEOF
7829#define HOST_LINK_VERSION "$llvm_cv_link_version"
7830_ACEOF
7831
7832
7833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007834{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7835echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7836if test "${llvm_cv_link_use_r+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007838else
7839 ac_ext=c
7840ac_cpp='$CPP $CPPFLAGS'
7841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844
7845 oldcflags="$CFLAGS"
7846 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007847 cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h. */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007852/* end confdefs.h. */
7853
7854int
7855main ()
7856{
Dan Gohman39ed6782010-04-25 00:12:20 +00007857
Reid Spencera773bd52006-08-04 18:18:08 +00007858 ;
7859 return 0;
7860}
7861_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007862rm -f conftest.$ac_objext conftest$ac_exeext
7863if { (ac_try="$ac_link"
7864case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880esac
7881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7890esac
7891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_try") 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007896 llvm_cv_link_use_r=yes
7897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007898 echo "$as_me: failed program was:" >&5
7899sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903
Bill Wendlingebcceee2009-04-18 11:20:33 +00007904rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007905 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007906 CFLAGS="$oldcflags"
7907 ac_ext=c
7908ac_cpp='$CPP $CPPFLAGS'
7909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912
7913
7914fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007915{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7916echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007917if test "$llvm_cv_link_use_r" = yes ; then
7918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007919cat >>confdefs.h <<\_ACEOF
7920#define HAVE_LINK_R 1
7921_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007922
7923 fi
7924
7925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007926{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7927echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7928if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007930else
7931 ac_ext=c
7932ac_cpp='$CPP $CPPFLAGS'
7933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937 oldcflags="$CFLAGS"
7938 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007939 cat >conftest.$ac_ext <<_ACEOF
7940/* confdefs.h. */
7941_ACEOF
7942cat confdefs.h >>conftest.$ac_ext
7943cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007944/* end confdefs.h. */
7945
7946int
7947main ()
7948{
Dan Gohman39ed6782010-04-25 00:12:20 +00007949
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007950 ;
7951 return 0;
7952}
7953_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007954rm -f conftest.$ac_objext conftest$ac_exeext
7955if { (ac_try="$ac_link"
7956case "(($ac_try" in
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7959esac
7960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961 (eval "$ac_link") 2>conftest.er1
7962 ac_status=$?
7963 grep -v '^ *+' conftest.er1 >conftest.err
7964 rm -f conftest.er1
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7972esac
7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982esac
7983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_try") 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007988 llvm_cv_link_use_export_dynamic=yes
7989else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007990 echo "$as_me: failed program was:" >&5
7991sed 's/^/| /' conftest.$ac_ext >&5
7992
7993 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007994fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007995
Bill Wendlingebcceee2009-04-18 11:20:33 +00007996rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007997 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007998 CFLAGS="$oldcflags"
7999 ac_ext=c
8000ac_cpp='$CPP $CPPFLAGS'
8001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004
8005
8006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008007{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8008echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008009if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008011cat >>confdefs.h <<\_ACEOF
8012#define HAVE_LINK_EXPORT_DYNAMIC 1
8013_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008014
8015 fi
8016
8017
Dan Gohmanda612d62010-06-01 14:56:56 +00008018{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8019echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8020if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022else
8023 ac_ext=c
8024ac_cpp='$CPP $CPPFLAGS'
8025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028
8029 oldcflags="$CFLAGS"
8030
8031 # The following code is from the autoconf manual,
8032 # "11.13: Limitations of Usual Tools".
8033 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8034 # Use mktemp if possible; otherwise fall back on mkdir,
8035 # with $RANDOM to make collisions less likely.
8036 : ${TMPDIR=/tmp}
8037 {
8038 tmp=`
8039 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8040 ` &&
8041 test -n "$tmp" && test -d "$tmp"
8042 } || {
8043 tmp=$TMPDIR/foo$$-$RANDOM
8044 (umask 077 && mkdir "$tmp")
8045 } || exit $?
8046
Dan Gohmanda612d62010-06-01 14:56:56 +00008047 echo "{" > "$tmp/export.map"
8048 echo " global: main;" >> "$tmp/export.map"
8049 echo " local: *;" >> "$tmp/export.map"
8050 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008051
Dan Gohmanda612d62010-06-01 14:56:56 +00008052 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008053 cat >conftest.$ac_ext <<_ACEOF
8054/* confdefs.h. */
8055_ACEOF
8056cat confdefs.h >>conftest.$ac_ext
8057cat >>conftest.$ac_ext <<_ACEOF
8058/* end confdefs.h. */
8059
8060int
8061main ()
8062{
Dan Gohman39ed6782010-04-25 00:12:20 +00008063
Dan Gohman391569c2010-04-16 22:59:06 +00008064 ;
8065 return 0;
8066}
8067_ACEOF
8068rm -f conftest.$ac_objext conftest$ac_exeext
8069if { (ac_try="$ac_link"
8070case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8073esac
8074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_link") 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8083 { (case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8086esac
8087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_try") 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; } &&
8092 { ac_try='test -s conftest$ac_exeext'
8093 { (case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8096esac
8097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_try") 2>&5
8099 ac_status=$?
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008102 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008103else
8104 echo "$as_me: failed program was:" >&5
8105sed 's/^/| /' conftest.$ac_ext >&5
8106
Dan Gohman943005e2010-06-01 16:22:27 +00008107 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008108fi
8109
8110rm -f core conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008112 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008113 rmdir "$tmp"
8114 CFLAGS="$oldcflags"
8115 ac_ext=c
8116ac_cpp='$CPP $CPPFLAGS'
8117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120
8121
8122fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008123{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8124echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8125if test "$llvm_cv_link_use_version_script" = yes ; then
8126 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008127
8128 fi
8129
8130
Reid Spencera773bd52006-08-04 18:18:08 +00008131
8132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008133{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8134echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8135if test "${ac_cv_c_const+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008137else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008138 cat >conftest.$ac_ext <<_ACEOF
8139/* confdefs.h. */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008143/* end confdefs.h. */
8144
8145int
8146main ()
8147{
8148/* FIXME: Include the comments suggested by Paul. */
8149#ifndef __cplusplus
8150 /* Ultrix mips cc rejects this. */
8151 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008153 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008154 char const *const *ccp;
8155 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008156 /* NEC SVR4.0.2 mips cc rejects this. */
8157 struct point {int x, y;};
8158 static struct point const zero = {0,0};
8159 /* AIX XL C 1.02.0.0 rejects this.
8160 It does not let you subtract one const X* pointer from another in
8161 an arm of an if-expression whose if-part is not a constant
8162 expression */
8163 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008164 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008165 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008166 ++ccp;
8167 p = (char**) ccp;
8168 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008169 { /* SCO 3.2v4 cc rejects this. */
8170 char *t;
8171 char const *s = 0 ? (char *) 0 : (char const *) 0;
8172
8173 *t++ = 0;
8174 if (s) return 0;
8175 }
8176 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8177 int x[] = {25, 17};
8178 const int *foo = &x[0];
8179 ++foo;
8180 }
8181 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8182 typedef const int *iptr;
8183 iptr p = 0;
8184 ++p;
8185 }
8186 { /* AIX XL C 1.02.0.0 rejects this saying
8187 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8188 struct s { int j; const int *ap[3]; };
8189 struct s *b; b->j = 5;
8190 }
8191 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8192 const int foo = 10;
8193 if (!foo) return 0;
8194 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008195 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008196#endif
8197
8198 ;
8199 return 0;
8200}
8201_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008202rm -f conftest.$ac_objext
8203if { (ac_try="$ac_compile"
8204case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207esac
8208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8220esac
8221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try='test -s conftest.$ac_objext'
8227 { (case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230esac
8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_try") 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008236 ac_cv_c_const=yes
8237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238 echo "$as_me: failed program was:" >&5
8239sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008242fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243
Reid Spencera773bd52006-08-04 18:18:08 +00008244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008246{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8247echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008248if test $ac_cv_c_const = no; then
8249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008250cat >>confdefs.h <<\_ACEOF
8251#define const
8252_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008253
8254fi
8255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008256
8257
8258
8259
8260
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008261ac_header_dirent=no
8262for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008263 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8264{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8265echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008268else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008269 cat >conftest.$ac_ext <<_ACEOF
8270/* confdefs.h. */
8271_ACEOF
8272cat confdefs.h >>conftest.$ac_ext
8273cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008274/* end confdefs.h. */
8275#include <sys/types.h>
8276#include <$ac_hdr>
8277
8278int
8279main ()
8280{
8281if ((DIR *) 0)
8282return 0;
8283 ;
8284 return 0;
8285}
8286_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008287rm -f conftest.$ac_objext
8288if { (ac_try="$ac_compile"
8289case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292esac
8293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_compile") 2>conftest.er1
8295 ac_status=$?
8296 grep -v '^ *+' conftest.er1 >conftest.err
8297 rm -f conftest.er1
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8302 { (case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305esac
8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_try") 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; } &&
8311 { ac_try='test -s conftest.$ac_objext'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315esac
8316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008321 eval "$as_ac_Header=yes"
8322else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008323 echo "$as_me: failed program was:" >&5
8324sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008327fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008328
Reid Spencera773bd52006-08-04 18:18:08 +00008329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008331ac_res=`eval echo '${'$as_ac_Header'}'`
8332 { echo "$as_me:$LINENO: result: $ac_res" >&5
8333echo "${ECHO_T}$ac_res" >&6; }
8334if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008335 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008337_ACEOF
8338
8339ac_header_dirent=$ac_hdr; break
8340fi
8341
8342done
8343# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8344if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008345 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8346echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8347if test "${ac_cv_search_opendir+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008349else
8350 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008351cat >conftest.$ac_ext <<_ACEOF
8352/* confdefs.h. */
8353_ACEOF
8354cat confdefs.h >>conftest.$ac_ext
8355cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008356/* end confdefs.h. */
8357
Reid Spencera773bd52006-08-04 18:18:08 +00008358/* Override any GCC internal prototype to avoid an error.
8359 Use char because int might match the return type of a GCC
8360 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008361#ifdef __cplusplus
8362extern "C"
8363#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008364char opendir ();
8365int
8366main ()
8367{
Reid Spencera773bd52006-08-04 18:18:08 +00008368return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008369 ;
8370 return 0;
8371}
8372_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008373for ac_lib in '' dir; do
8374 if test -z "$ac_lib"; then
8375 ac_res="none required"
8376 else
8377 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008379 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008380 rm -f conftest.$ac_objext conftest$ac_exeext
8381if { (ac_try="$ac_link"
8382case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385esac
8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_link") 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398esac
8399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008414 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008415else
8416 echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008421
Bill Wendlingebcceee2009-04-18 11:20:33 +00008422rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008423 conftest$ac_exeext
8424 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008425 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008426fi
John Criswell7a73b802003-06-30 21:59:07 +00008427done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428if test "${ac_cv_search_opendir+set}" = set; then
8429 :
Reid Spencera773bd52006-08-04 18:18:08 +00008430else
8431 ac_cv_search_opendir=no
8432fi
8433rm conftest.$ac_ext
8434LIBS=$ac_func_search_save_LIBS
8435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008436{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8437echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008438ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008439if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008441
Reid Spencera773bd52006-08-04 18:18:08 +00008442fi
8443
8444else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008445 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8446echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8447if test "${ac_cv_search_opendir+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008449else
8450 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008451cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h. */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008456/* end confdefs.h. */
8457
8458/* Override any GCC internal prototype to avoid an error.
8459 Use char because int might match the return type of a GCC
8460 builtin and then its argument prototype would still apply. */
8461#ifdef __cplusplus
8462extern "C"
8463#endif
8464char opendir ();
8465int
8466main ()
8467{
8468return opendir ();
8469 ;
8470 return 0;
8471}
8472_ACEOF
8473for ac_lib in '' x; do
8474 if test -z "$ac_lib"; then
8475 ac_res="none required"
8476 else
8477 ac_res=-l$ac_lib
8478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8479 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008480 rm -f conftest.$ac_objext conftest$ac_exeext
8481if { (ac_try="$ac_link"
8482case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8485esac
8486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_link") 2>conftest.er1
8488 ac_status=$?
8489 grep -v '^ *+' conftest.er1 >conftest.err
8490 rm -f conftest.er1
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495 { (case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498esac
8499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_try") 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8508esac
8509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_try") 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008514 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008515else
8516 echo "$as_me: failed program was:" >&5
8517sed 's/^/| /' conftest.$ac_ext >&5
8518
8519
Reid Spencera773bd52006-08-04 18:18:08 +00008520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008521
Bill Wendlingebcceee2009-04-18 11:20:33 +00008522rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008523 conftest$ac_exeext
8524 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008525 break
8526fi
8527done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528if test "${ac_cv_search_opendir+set}" = set; then
8529 :
Reid Spencera773bd52006-08-04 18:18:08 +00008530else
8531 ac_cv_search_opendir=no
8532fi
8533rm conftest.$ac_ext
8534LIBS=$ac_func_search_save_LIBS
8535fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8537echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008538ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008539if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8541
8542fi
8543
8544fi
John Criswell7a73b802003-06-30 21:59:07 +00008545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008546
John Criswell7a73b802003-06-30 21:59:07 +00008547for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008548do
8549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8555fi
8556ac_res=`eval echo '${'$as_ac_Header'}'`
8557 { echo "$as_me:$LINENO: result: $ac_res" >&5
8558echo "${ECHO_T}$ac_res" >&6; }
8559else
8560 # Is the header compilable?
8561{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8563cat >conftest.$ac_ext <<_ACEOF
8564/* confdefs.h. */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h. */
8569$ac_includes_default
8570#include <$ac_header>
8571_ACEOF
8572rm -f conftest.$ac_objext
8573if { (ac_try="$ac_compile"
8574case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577esac
8578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8587 { (case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590esac
8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_try") 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; } &&
8596 { ac_try='test -s conftest.$ac_objext'
8597 { (case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8600esac
8601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_try") 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_header_compiler=yes
8607else
8608 echo "$as_me: failed program was:" >&5
8609sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 ac_header_compiler=no
8612fi
8613
8614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616echo "${ECHO_T}$ac_header_compiler" >&6; }
8617
8618# Is the header present?
8619{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8621cat >conftest.$ac_ext <<_ACEOF
8622/* confdefs.h. */
8623_ACEOF
8624cat confdefs.h >>conftest.$ac_ext
8625cat >>conftest.$ac_ext <<_ACEOF
8626/* end confdefs.h. */
8627#include <$ac_header>
8628_ACEOF
8629if { (ac_try="$ac_cpp conftest.$ac_ext"
8630case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633esac
8634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } >/dev/null; then
8642 if test -s conftest.err; then
8643 ac_cpp_err=$ac_c_preproc_warn_flag
8644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8645 else
8646 ac_cpp_err=
8647 fi
8648else
8649 ac_cpp_err=yes
8650fi
8651if test -z "$ac_cpp_err"; then
8652 ac_header_preproc=yes
8653else
8654 echo "$as_me: failed program was:" >&5
8655sed 's/^/| /' conftest.$ac_ext >&5
8656
8657 ac_header_preproc=no
8658fi
8659
8660rm -f conftest.err conftest.$ac_ext
8661{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8662echo "${ECHO_T}$ac_header_preproc" >&6; }
8663
8664# So? What about this header?
8665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8666 yes:no: )
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8671 ac_header_preproc=yes
8672 ;;
8673 no:yes:* )
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8686 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008687## ------------------------------------ ##
8688## Report this to http://llvm.org/bugs/ ##
8689## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008690_ASBOX
8691 ) | sed "s/^/$as_me: WARNING: /" >&2
8692 ;;
8693esac
8694{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698else
8699 eval "$as_ac_Header=\$ac_header_preproc"
8700fi
8701ac_res=`eval echo '${'$as_ac_Header'}'`
8702 { echo "$as_me:$LINENO: result: $ac_res" >&5
8703echo "${ECHO_T}$ac_res" >&6; }
8704
8705fi
8706if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008707 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008709_ACEOF
8710
8711fi
8712
8713done
8714
Reid Spencera773bd52006-08-04 18:18:08 +00008715# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008716if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008717 enableval=$enable_ltdl_install;
8718fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008719
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008721
8722
8723if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008724 INSTALL_LTDL_TRUE=
8725 INSTALL_LTDL_FALSE='#'
8726else
8727 INSTALL_LTDL_TRUE='#'
8728 INSTALL_LTDL_FALSE=
8729fi
8730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008731
8732
8733if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008734 CONVENIENCE_LTDL_TRUE=
8735 CONVENIENCE_LTDL_FALSE='#'
8736else
8737 CONVENIENCE_LTDL_TRUE='#'
8738 CONVENIENCE_LTDL_FALSE=
8739fi
8740
8741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008742{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8743echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008744library_names_spec=
8745libname_spec='lib$name'
8746soname_spec=
8747shrext_cmds=".so"
8748postinstall_cmds=
8749postuninstall_cmds=
8750finish_cmds=
8751finish_eval=
8752shlibpath_var=
8753shlibpath_overrides_runpath=unknown
8754version_type=none
8755dynamic_linker="$host_os ld.so"
8756sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757if test "$GCC" = yes; then
8758 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8759 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8760 # if the path contains ";" then we assume it to be the separator
8761 # otherwise default to the standard path separator (i.e. ":") - it is
8762 # assumed that no part of a normal pathname contains ";" but that should
8763 # okay in the real world where ";" in dirpaths is itself problematic.
8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8765 else
8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8767 fi
8768else
8769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8770fi
8771need_lib_prefix=unknown
8772hardcode_into_libs=no
8773
8774# when you set need_version to no, make sure it does not cause -set_version
8775# flags to be left without arguments
8776need_version=unknown
8777
8778case $host_os in
8779aix3*)
8780 version_type=linux
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8782 shlibpath_var=LIBPATH
8783
8784 # AIX 3 has no versioning support, so we append a major version to the name.
8785 soname_spec='${libname}${release}${shared_ext}$major'
8786 ;;
8787
8788aix4* | aix5*)
8789 version_type=linux
8790 need_lib_prefix=no
8791 need_version=no
8792 hardcode_into_libs=yes
8793 if test "$host_cpu" = ia64; then
8794 # AIX 5 supports IA64
8795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8796 shlibpath_var=LD_LIBRARY_PATH
8797 else
8798 # With GCC up to 2.95.x, collect2 would create an import file
8799 # for dependence libraries. The import file would start with
8800 # the line `#! .'. This would cause the generated library to
8801 # depend on `.', always an invalid library. This was fixed in
8802 # development snapshots of GCC prior to 3.0.
8803 case $host_os in
8804 aix4 | aix4.[01] | aix4.[01].*)
8805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8806 echo ' yes '
8807 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8808 :
8809 else
8810 can_build_shared=no
8811 fi
8812 ;;
8813 esac
8814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8815 # soname into executable. Probably we can add versioning support to
8816 # collect2, so additional links can be useful in future.
8817 if test "$aix_use_runtimelinking" = yes; then
8818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8819 # instead of lib<name>.a to let people know that these are not
8820 # typical AIX shared libraries.
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8822 else
8823 # We preserve .a as extension for shared libraries through AIX4.2
8824 # and later when we are not doing run time linking.
8825 library_names_spec='${libname}${release}.a $libname.a'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 fi
8828 shlibpath_var=LIBPATH
8829 fi
8830 ;;
8831
8832amigaos*)
8833 library_names_spec='$libname.ixlibrary $libname.a'
8834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8835 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'
8836 ;;
8837
8838beos*)
8839 library_names_spec='${libname}${shared_ext}'
8840 dynamic_linker="$host_os ld.so"
8841 shlibpath_var=LIBRARY_PATH
8842 ;;
8843
8844bsdi[45]*)
8845 version_type=linux
8846 need_version=no
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8850 shlibpath_var=LD_LIBRARY_PATH
8851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8853 # the default ld.so.conf also contains /usr/contrib/lib and
8854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8855 # libtool to hard-code these into programs
8856 ;;
8857
8858cygwin* | mingw* | pw32*)
8859 version_type=windows
8860 shrext_cmds=".dll"
8861 need_version=no
8862 need_lib_prefix=no
8863
8864 case $GCC,$host_os in
8865 yes,cygwin* | yes,mingw* | yes,pw32*)
8866 library_names_spec='$libname.dll.a'
8867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8868 postinstall_cmds='base_file=`basename \${file}`~
8869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8870 dldir=$destdir/`dirname \$dlpath`~
8871 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008872 $install_prog $dir/$dlname \$dldir/$dlname~
8873 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8875 dlpath=$dir/\$dldll~
8876 $rm \$dlpath'
8877 shlibpath_overrides_runpath=yes
8878
8879 case $host_os in
8880 cygwin*)
8881 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8883 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8884 ;;
8885 mingw*)
8886 # MinGW DLLs use traditional 'lib' prefix
8887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8889 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8890 # It is most probably a Windows format PATH printed by
8891 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8892 # path with ; separators, and with drive letters. We can handle the
8893 # drive letters (cygwin fileutils understands them), so leave them,
8894 # especially as we might pass files found there to a mingw objdump,
8895 # which wouldn't understand a cygwinified path. Ahh.
8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8897 else
8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8899 fi
8900 ;;
8901 pw32*)
8902 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008903 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 +00008904 ;;
8905 esac
8906 ;;
8907
8908 *)
8909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8910 ;;
8911 esac
8912 dynamic_linker='Win32 ld.exe'
8913 # FIXME: first we should search . and the directory the executable is in
8914 shlibpath_var=PATH
8915 ;;
8916
8917darwin* | rhapsody*)
8918 dynamic_linker="$host_os dyld"
8919 version_type=darwin
8920 need_lib_prefix=no
8921 need_version=no
8922 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8923 soname_spec='${libname}${release}${major}$shared_ext'
8924 shlibpath_overrides_runpath=yes
8925 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008926 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008927 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8928 if test "$GCC" = yes; then
8929 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"`
8930 else
8931 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8932 fi
8933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8934 ;;
8935
8936dgux*)
8937 version_type=linux
8938 need_lib_prefix=no
8939 need_version=no
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 ;;
8944
Eric Christopher360fa9a2011-10-26 00:42:12 +00008945freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008946 dynamic_linker=no
8947 ;;
8948
8949kfreebsd*-gnu)
8950 version_type=linux
8951 need_lib_prefix=no
8952 need_version=no
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8958 dynamic_linker='GNU ld.so'
8959 ;;
8960
Reid Spencera773bd52006-08-04 18:18:08 +00008961freebsd* | dragonfly*)
8962 # DragonFly does not have aout. When/if they implement a new
8963 # versioning mechanism, adjust this.
8964 if test -x /usr/bin/objformat; then
8965 objformat=`/usr/bin/objformat`
8966 else
8967 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008968 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008969 *) objformat=elf ;;
8970 esac
8971 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008972 version_type=freebsd-$objformat
8973 case $version_type in
8974 freebsd-elf*)
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8976 need_version=no
8977 need_lib_prefix=no
8978 ;;
8979 freebsd-*)
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8981 need_version=yes
8982 ;;
8983 esac
8984 shlibpath_var=LD_LIBRARY_PATH
8985 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008986 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008987 shlibpath_overrides_runpath=yes
8988 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008989 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008990 shlibpath_overrides_runpath=yes
8991 hardcode_into_libs=yes
8992 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008993 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8994 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008995 shlibpath_overrides_runpath=no
8996 hardcode_into_libs=yes
8997 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008998 freebsd*) # from 4.6 on
8999 shlibpath_overrides_runpath=yes
9000 hardcode_into_libs=yes
9001 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009002 esac
9003 ;;
9004
9005gnu*)
9006 version_type=linux
9007 need_lib_prefix=no
9008 need_version=no
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 shlibpath_var=LD_LIBRARY_PATH
9012 hardcode_into_libs=yes
9013 ;;
9014
9015hpux9* | hpux10* | hpux11*)
9016 # Give a soname corresponding to the major version so that dld.sl refuses to
9017 # link against other versions.
9018 version_type=sunos
9019 need_lib_prefix=no
9020 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009021 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009022 ia64*)
9023 shrext_cmds='.so'
9024 hardcode_into_libs=yes
9025 dynamic_linker="$host_os dld.so"
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 if test "X$HPUX_IA64_MODE" = X32; then
9031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9032 else
9033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9034 fi
9035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9036 ;;
9037 hppa*64*)
9038 shrext_cmds='.sl'
9039 hardcode_into_libs=yes
9040 dynamic_linker="$host_os dld.sl"
9041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9047 ;;
9048 *)
9049 shrext_cmds='.sl'
9050 dynamic_linker="$host_os dld.sl"
9051 shlibpath_var=SHLIB_PATH
9052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 ;;
9056 esac
9057 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9058 postinstall_cmds='chmod 555 $lib'
9059 ;;
9060
Reid Spencera773bd52006-08-04 18:18:08 +00009061interix3*)
9062 version_type=linux
9063 need_lib_prefix=no
9064 need_version=no
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=no
9070 hardcode_into_libs=yes
9071 ;;
9072
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009073irix5* | irix6* | nonstopux*)
9074 case $host_os in
9075 nonstopux*) version_type=nonstopux ;;
9076 *)
9077 if test "$lt_cv_prog_gnu_ld" = yes; then
9078 version_type=linux
9079 else
9080 version_type=irix
9081 fi ;;
9082 esac
9083 need_lib_prefix=no
9084 need_version=no
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9087 case $host_os in
9088 irix5* | nonstopux*)
9089 libsuff= shlibsuff=
9090 ;;
9091 *)
9092 case $LD in # libtool.m4 will add one of these switches to LD
9093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9094 libsuff= shlibsuff= libmagic=32-bit;;
9095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9096 libsuff=32 shlibsuff=N32 libmagic=N32;;
9097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9098 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9099 *) libsuff= shlibsuff= libmagic=never-match;;
9100 esac
9101 ;;
9102 esac
9103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9104 shlibpath_overrides_runpath=no
9105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9107 hardcode_into_libs=yes
9108 ;;
9109
9110# No shared lib support for Linux oldld, aout, or coff.
9111linux*oldld* | linux*aout* | linux*coff*)
9112 dynamic_linker=no
9113 ;;
9114
9115# This must be Linux ELF.
9116linux*)
9117 version_type=linux
9118 need_lib_prefix=no
9119 need_version=no
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=no
9125 # This implies no fast_install, which is unacceptable.
9126 # Some rework will be needed to allow for fast_install
9127 # before this can be enabled.
9128 hardcode_into_libs=yes
9129
9130 # Append ld.so.conf contents to the search path
9131 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009132 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 +00009133 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9134 fi
9135
9136 # We used to test for /lib/ld.so.1 and disable shared libraries on
9137 # powerpc, because MkLinux only supported shared libraries with the
9138 # GNU dynamic linker. Since this was broken with cross compilers,
9139 # most powerpc-linux boxes support dynamic linking these days and
9140 # people can always --disable-shared, the test was removed, and we
9141 # assume the GNU/Linux dynamic linker is in use.
9142 dynamic_linker='GNU/Linux ld.so'
9143 ;;
9144
9145knetbsd*-gnu)
9146 version_type=linux
9147 need_lib_prefix=no
9148 need_version=no
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=no
9153 hardcode_into_libs=yes
9154 dynamic_linker='GNU ld.so'
9155 ;;
9156
9157netbsd*)
9158 version_type=sunos
9159 need_lib_prefix=no
9160 need_version=no
9161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9164 dynamic_linker='NetBSD (a.out) ld.so'
9165 else
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 dynamic_linker='NetBSD ld.elf_so'
9169 fi
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 hardcode_into_libs=yes
9173 ;;
9174
9175newsos6)
9176 version_type=linux
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=yes
9180 ;;
9181
9182nto-qnx*)
9183 version_type=linux
9184 need_lib_prefix=no
9185 need_version=no
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 shlibpath_var=LD_LIBRARY_PATH
9189 shlibpath_overrides_runpath=yes
9190 ;;
9191
9192openbsd*)
9193 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009194 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009195 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009196 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9197 case $host_os in
9198 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9199 *) need_version=no ;;
9200 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9205 case $host_os in
9206 openbsd2.[89] | openbsd2.[89].*)
9207 shlibpath_overrides_runpath=no
9208 ;;
9209 *)
9210 shlibpath_overrides_runpath=yes
9211 ;;
9212 esac
9213 else
9214 shlibpath_overrides_runpath=yes
9215 fi
9216 ;;
9217
9218os2*)
9219 libname_spec='$name'
9220 shrext_cmds=".dll"
9221 need_lib_prefix=no
9222 library_names_spec='$libname${shared_ext} $libname.a'
9223 dynamic_linker='OS/2 ld.exe'
9224 shlibpath_var=LIBPATH
9225 ;;
9226
9227osf3* | osf4* | osf5*)
9228 version_type=osf
9229 need_lib_prefix=no
9230 need_version=no
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9235 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9236 ;;
9237
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009238solaris*)
9239 version_type=linux
9240 need_lib_prefix=no
9241 need_version=no
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 shlibpath_var=LD_LIBRARY_PATH
9245 shlibpath_overrides_runpath=yes
9246 hardcode_into_libs=yes
9247 # ldd complains unless libraries are executable
9248 postinstall_cmds='chmod +x $lib'
9249 ;;
9250
9251sunos4*)
9252 version_type=sunos
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 shlibpath_overrides_runpath=yes
9257 if test "$with_gnu_ld" = yes; then
9258 need_lib_prefix=no
9259 fi
9260 need_version=yes
9261 ;;
9262
Reid Spencera773bd52006-08-04 18:18:08 +00009263sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009264 version_type=linux
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 case $host_vendor in
9269 sni)
9270 shlibpath_overrides_runpath=no
9271 need_lib_prefix=no
9272 export_dynamic_flag_spec='${wl}-Blargedynsym'
9273 runpath_var=LD_RUN_PATH
9274 ;;
9275 siemens)
9276 need_lib_prefix=no
9277 ;;
9278 motorola)
9279 need_lib_prefix=no
9280 need_version=no
9281 shlibpath_overrides_runpath=no
9282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9283 ;;
9284 esac
9285 ;;
9286
9287sysv4*MP*)
9288 if test -d /usr/nec ;then
9289 version_type=linux
9290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9291 soname_spec='$libname${shared_ext}.$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 fi
9294 ;;
9295
Reid Spencera773bd52006-08-04 18:18:08 +00009296sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9297 version_type=freebsd-elf
9298 need_lib_prefix=no
9299 need_version=no
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 hardcode_into_libs=yes
9304 if test "$with_gnu_ld" = yes; then
9305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9306 shlibpath_overrides_runpath=no
9307 else
9308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9309 shlibpath_overrides_runpath=yes
9310 case $host_os in
9311 sco3.2v5*)
9312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9313 ;;
9314 esac
9315 fi
9316 sys_lib_dlsearch_path_spec='/usr/lib'
9317 ;;
9318
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009319uts4*)
9320 version_type=linux
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 soname_spec='${libname}${release}${shared_ext}$major'
9323 shlibpath_var=LD_LIBRARY_PATH
9324 ;;
9325
9326*)
9327 dynamic_linker=no
9328 ;;
9329esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009330{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9331echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332test "$dynamic_linker" = no && can_build_shared=no
9333
Reid Spencera773bd52006-08-04 18:18:08 +00009334variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9335if test "$GCC" = yes; then
9336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9337fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009338
Reid Spencera773bd52006-08-04 18:18:08 +00009339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009340{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9341echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9342if test "${libltdl_cv_shlibext+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009344else
9345
9346module=yes
9347eval libltdl_cv_shlibext=$shrext_cmds
9348
9349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009350{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9351echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009352if test -n "$libltdl_cv_shlibext"; then
9353
9354cat >>confdefs.h <<_ACEOF
9355#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9356_ACEOF
9357
9358fi
9359
9360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009361{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9362echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9363if test "${libltdl_cv_shlibpath_var+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009365else
9366 libltdl_cv_shlibpath_var="$shlibpath_var"
9367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009368{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9369echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009370if test -n "$libltdl_cv_shlibpath_var"; then
9371
9372cat >>confdefs.h <<_ACEOF
9373#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9374_ACEOF
9375
9376fi
9377
9378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009379{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9380echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9381if test "${libltdl_cv_sys_search_path+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009383else
9384 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9385fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009386{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9387echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009388if test -n "$libltdl_cv_sys_search_path"; then
9389 sys_search_path=
9390 for dir in $libltdl_cv_sys_search_path; do
9391 if test -z "$sys_search_path"; then
9392 sys_search_path="$dir"
9393 else
9394 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9395 fi
9396 done
9397
9398cat >>confdefs.h <<_ACEOF
9399#define LTDL_SYSSEARCHPATH "$sys_search_path"
9400_ACEOF
9401
9402fi
9403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009404{ echo "$as_me:$LINENO: checking for objdir" >&5
9405echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9406if test "${libltdl_cv_objdir+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009408else
9409 libltdl_cv_objdir="$objdir"
9410 if test -n "$objdir"; then
9411 :
9412 else
9413 rm -f .libs 2>/dev/null
9414 mkdir .libs 2>/dev/null
9415 if test -d .libs; then
9416 libltdl_cv_objdir=.libs
9417 else
9418 # MS-DOS does not allow filenames that begin with a dot.
9419 libltdl_cv_objdir=_libs
9420 fi
9421 rmdir .libs 2>/dev/null
9422 fi
9423
9424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009425{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9426echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009427
9428cat >>confdefs.h <<_ACEOF
9429#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9430_ACEOF
9431
9432
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009433
9434
9435
9436
9437# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009438{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9439echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9440if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442else
9443
9444# These are sane defaults that work on at least a few old systems.
9445# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9446
9447# Character class describing NM global symbol codes.
9448symcode='[BCDEGRST]'
9449
9450# Regexp to match symbols that can be accessed directly from C.
9451sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9452
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009453# Transform an extracted symbol line into a proper C declaration
9454lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9455
9456# Transform an extracted symbol line into symbol name and symbol address
9457lt_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'"
9458
9459# Define system-specific variables.
9460case $host_os in
9461aix*)
9462 symcode='[BCDT]'
9463 ;;
9464cygwin* | mingw* | pw32*)
9465 symcode='[ABCDGISTW]'
9466 ;;
9467hpux*) # Its linker distinguishes data from code symbols
9468 if test "$host_cpu" = ia64; then
9469 symcode='[ABCDEGRST]'
9470 fi
9471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9472 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'"
9473 ;;
9474linux*)
9475 if test "$host_cpu" = ia64; then
9476 symcode='[ABCDGIRSTW]'
9477 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9478 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'"
9479 fi
9480 ;;
9481irix* | nonstopux*)
9482 symcode='[BCDEGRST]'
9483 ;;
9484osf*)
9485 symcode='[BCDEGQRST]'
9486 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009487solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009488 symcode='[BDRT]'
9489 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009490sco3.2v5*)
9491 symcode='[DT]'
9492 ;;
9493sysv4.2uw2*)
9494 symcode='[DT]'
9495 ;;
9496sysv5* | sco5v6* | unixware* | OpenUNIX*)
9497 symcode='[ABDT]'
9498 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499sysv4)
9500 symcode='[DFNSTU]'
9501 ;;
9502esac
9503
9504# Handle CRLF in mingw tool chain
9505opt_cr=
9506case $build_os in
9507mingw*)
9508 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9509 ;;
9510esac
9511
9512# If we're using GNU nm, then use its standard symbol codes.
9513case `$NM -V 2>&1` in
9514*GNU* | *'with BFD'*)
9515 symcode='[ABCDGIRSTW]' ;;
9516esac
9517
9518# Try without a prefix undercore, then with it.
9519for ac_symprfx in "" "_"; do
9520
Reid Spencera773bd52006-08-04 18:18:08 +00009521 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9522 symxfrm="\\1 $ac_symprfx\\2 \\2"
9523
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009524 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009525 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 +00009526
9527 # Check to see that the pipe works correctly.
9528 pipe_works=no
9529
9530 rm -f conftest*
9531 cat > conftest.$ac_ext <<EOF
9532#ifdef __cplusplus
9533extern "C" {
9534#endif
9535char nm_test_var;
9536void nm_test_func(){}
9537#ifdef __cplusplus
9538}
9539#endif
9540int main(){nm_test_var='a';nm_test_func();return(0);}
9541EOF
9542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009544 (eval $ac_compile) 2>&5
9545 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009548 # Now try to grab the symbols.
9549 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009550 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 +00009551 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9552 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009555 # Try sorting and uniquifying the output.
9556 if sort "$nlist" | uniq > "$nlist"T; then
9557 mv -f "$nlist"T "$nlist"
9558 else
9559 rm -f "$nlist"T
9560 fi
9561
9562 # Make sure that we snagged all the symbols we need.
9563 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9564 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9565 cat <<EOF > conftest.$ac_ext
9566#ifdef __cplusplus
9567extern "C" {
9568#endif
9569
9570EOF
9571 # Now generate the symbol file.
9572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9573
9574 cat <<EOF >> conftest.$ac_ext
9575#if defined (__STDC__) && __STDC__
9576# define lt_ptr_t void *
9577#else
9578# define lt_ptr_t char *
9579# define const
9580#endif
9581
9582/* The mapping between symbol names and symbols. */
9583const struct {
9584 const char *name;
9585 lt_ptr_t address;
9586}
9587lt_preloaded_symbols[] =
9588{
9589EOF
9590 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9591 cat <<\EOF >> conftest.$ac_ext
9592 {0, (lt_ptr_t) 0}
9593};
9594
9595#ifdef __cplusplus
9596}
9597#endif
9598EOF
9599 # Now try linking the two files.
9600 mv conftest.$ac_objext conftstm.$ac_objext
9601 lt_save_LIBS="$LIBS"
9602 lt_save_CFLAGS="$CFLAGS"
9603 LIBS="conftstm.$ac_objext"
9604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009606 (eval $ac_link) 2>&5
9607 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009610 pipe_works=yes
9611 fi
9612 LIBS="$lt_save_LIBS"
9613 CFLAGS="$lt_save_CFLAGS"
9614 else
9615 echo "cannot find nm_test_func in $nlist" >&5
9616 fi
9617 else
9618 echo "cannot find nm_test_var in $nlist" >&5
9619 fi
9620 else
9621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9622 fi
9623 else
9624 echo "$progname: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9626 fi
9627 rm -f conftest* conftst*
9628
9629 # Do not use the global_symbol_pipe unless it works.
9630 if test "$pipe_works" = yes; then
9631 break
9632 else
9633 lt_cv_sys_global_symbol_pipe=
9634 fi
9635done
9636
9637fi
9638
9639if test -z "$lt_cv_sys_global_symbol_pipe"; then
9640 lt_cv_sys_global_symbol_to_cdecl=
9641fi
9642if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009643 { echo "$as_me:$LINENO: result: failed" >&5
9644echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009646 { echo "$as_me:$LINENO: result: ok" >&5
9647echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009648fi
9649
9650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009651{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9652echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9653if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009655else
9656 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9657 libltdl_cv_preloaded_symbols=yes
9658 else
9659 libltdl_cv_preloaded_symbols=no
9660 fi
9661
9662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009663{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9664echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009665if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009667cat >>confdefs.h <<\_ACEOF
9668#define HAVE_PRELOADED_SYMBOLS 1
9669_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009670
9671fi
9672
9673LIBADD_DL=
9674
9675ac_ext=c
9676ac_cpp='$CPP $CPPFLAGS'
9677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9679ac_compiler_gnu=$ac_cv_c_compiler_gnu
9680
9681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009682{ echo "$as_me:$LINENO: checking for shl_load" >&5
9683echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9684if test "${ac_cv_func_shl_load+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9686else
9687 cat >conftest.$ac_ext <<_ACEOF
9688/* confdefs.h. */
9689_ACEOF
9690cat confdefs.h >>conftest.$ac_ext
9691cat >>conftest.$ac_ext <<_ACEOF
9692/* end confdefs.h. */
9693/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9695#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009697/* System header to define __stub macros and hopefully few prototypes,
9698 which can conflict with char shl_load (); below.
9699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9700 <limits.h> exists even on freestanding compilers. */
9701
9702#ifdef __STDC__
9703# include <limits.h>
9704#else
9705# include <assert.h>
9706#endif
9707
9708#undef shl_load
9709
9710/* Override any GCC internal prototype to avoid an error.
9711 Use char because int might match the return type of a GCC
9712 builtin and then its argument prototype would still apply. */
9713#ifdef __cplusplus
9714extern "C"
9715#endif
9716char shl_load ();
9717/* The GNU C library defines this for functions which it implements
9718 to always fail with ENOSYS. Some functions are actually named
9719 something starting with __ and the normal name is an alias. */
9720#if defined __stub_shl_load || defined __stub___shl_load
9721choke me
9722#endif
9723
9724int
9725main ()
9726{
9727return shl_load ();
9728 ;
9729 return 0;
9730}
9731_ACEOF
9732rm -f conftest.$ac_objext conftest$ac_exeext
9733if { (ac_try="$ac_link"
9734case "(($ac_try" in
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9737esac
9738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_link") 2>conftest.er1
9740 ac_status=$?
9741 grep -v '^ *+' conftest.er1 >conftest.err
9742 rm -f conftest.er1
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9750esac
9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760esac
9761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_cv_func_shl_load=yes
9767else
9768 echo "$as_me: failed program was:" >&5
9769sed 's/^/| /' conftest.$ac_ext >&5
9770
9771 ac_cv_func_shl_load=no
9772fi
9773
9774rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9776fi
9777{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9778echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9779if test $ac_cv_func_shl_load = yes; then
9780
9781cat >>confdefs.h <<\_ACEOF
9782#define HAVE_SHL_LOAD 1
9783_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784
9785else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009786 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9787echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9788if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009790else
9791 ac_check_lib_save_LIBS=$LIBS
9792LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009793cat >conftest.$ac_ext <<_ACEOF
9794/* confdefs.h. */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798/* end confdefs.h. */
9799
Reid Spencera773bd52006-08-04 18:18:08 +00009800/* Override any GCC internal prototype to avoid an error.
9801 Use char because int might match the return type of a GCC
9802 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803#ifdef __cplusplus
9804extern "C"
9805#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009806char shl_load ();
9807int
9808main ()
9809{
Reid Spencera773bd52006-08-04 18:18:08 +00009810return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009811 ;
9812 return 0;
9813}
9814_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009815rm -f conftest.$ac_objext conftest$ac_exeext
9816if { (ac_try="$ac_link"
9817case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9820esac
9821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_link") 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; } &&
9839 { ac_try='test -s conftest$ac_exeext'
9840 { (case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9843esac
9844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_try") 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849 ac_cv_lib_dld_shl_load=yes
9850else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009851 echo "$as_me: failed program was:" >&5
9852sed 's/^/| /' conftest.$ac_ext >&5
9853
9854 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009856
Bill Wendlingebcceee2009-04-18 11:20:33 +00009857rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009858 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859LIBS=$ac_check_lib_save_LIBS
9860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009861{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9862echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9863if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009865cat >>confdefs.h <<\_ACEOF
9866#define HAVE_SHL_LOAD 1
9867_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009868
9869 LIBADD_DL="$LIBADD_DL -ldld"
9870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009871 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9872echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9873if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875else
9876 ac_check_lib_save_LIBS=$LIBS
9877LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009878cat >conftest.$ac_ext <<_ACEOF
9879/* confdefs.h. */
9880_ACEOF
9881cat confdefs.h >>conftest.$ac_ext
9882cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883/* end confdefs.h. */
9884
Reid Spencera773bd52006-08-04 18:18:08 +00009885/* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888#ifdef __cplusplus
9889extern "C"
9890#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009891char dlopen ();
9892int
9893main ()
9894{
Reid Spencera773bd52006-08-04 18:18:08 +00009895return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896 ;
9897 return 0;
9898}
9899_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009900rm -f conftest.$ac_objext conftest$ac_exeext
9901if { (ac_try="$ac_link"
9902case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905esac
9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_link") 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9915 { (case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918esac
9919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_try") 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; } &&
9924 { ac_try='test -s conftest$ac_exeext'
9925 { (case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928esac
9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_try") 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934 ac_cv_lib_dl_dlopen=yes
9935else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009936 echo "$as_me: failed program was:" >&5
9937sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009940fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009941
Bill Wendlingebcceee2009-04-18 11:20:33 +00009942rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009943 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009944LIBS=$ac_check_lib_save_LIBS
9945fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009946{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9947echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9948if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009950cat >>confdefs.h <<\_ACEOF
9951#define HAVE_LIBDL 1
9952_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009953
9954 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009956 cat >conftest.$ac_ext <<_ACEOF
9957/* confdefs.h. */
9958_ACEOF
9959cat confdefs.h >>conftest.$ac_ext
9960cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961/* end confdefs.h. */
9962#if HAVE_DLFCN_H
9963# include <dlfcn.h>
9964#endif
9965
9966int
9967main ()
9968{
9969dlopen(0, 0);
9970 ;
9971 return 0;
9972}
9973_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009974rm -f conftest.$ac_objext conftest$ac_exeext
9975if { (ac_try="$ac_link"
9976case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest$ac_exeext'
9999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10002esac
10003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010009cat >>confdefs.h <<\_ACEOF
10010#define HAVE_LIBDL 1
10011_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010012 libltdl_cv_func_dlopen="yes"
10013else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010014 echo "$as_me: failed program was:" >&5
10015sed 's/^/| /' conftest.$ac_ext >&5
10016
10017 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10018echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10019if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021else
10022 ac_check_lib_save_LIBS=$LIBS
10023LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010024cat >conftest.$ac_ext <<_ACEOF
10025/* confdefs.h. */
10026_ACEOF
10027cat confdefs.h >>conftest.$ac_ext
10028cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029/* end confdefs.h. */
10030
Reid Spencera773bd52006-08-04 18:18:08 +000010031/* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010034#ifdef __cplusplus
10035extern "C"
10036#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037char dlopen ();
10038int
10039main ()
10040{
Reid Spencera773bd52006-08-04 18:18:08 +000010041return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042 ;
10043 return 0;
10044}
10045_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010046rm -f conftest.$ac_objext conftest$ac_exeext
10047if { (ac_try="$ac_link"
10048case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10051esac
10052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_link") 2>conftest.er1
10054 ac_status=$?
10055 grep -v '^ *+' conftest.er1 >conftest.err
10056 rm -f conftest.er1
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064esac
10065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try='test -s conftest$ac_exeext'
10071 { (case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10074esac
10075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_try") 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080 ac_cv_lib_svld_dlopen=yes
10081else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010082 echo "$as_me: failed program was:" >&5
10083sed 's/^/| /' conftest.$ac_ext >&5
10084
10085 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010087
Bill Wendlingebcceee2009-04-18 11:20:33 +000010088rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010089 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010090LIBS=$ac_check_lib_save_LIBS
10091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010092{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10093echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10094if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010096cat >>confdefs.h <<\_ACEOF
10097#define HAVE_LIBDL 1
10098_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010099
10100 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010102 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10103echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10104if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010106else
10107 ac_check_lib_save_LIBS=$LIBS
10108LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010109cat >conftest.$ac_ext <<_ACEOF
10110/* confdefs.h. */
10111_ACEOF
10112cat confdefs.h >>conftest.$ac_ext
10113cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114/* end confdefs.h. */
10115
Reid Spencera773bd52006-08-04 18:18:08 +000010116/* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119#ifdef __cplusplus
10120extern "C"
10121#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010122char dld_link ();
10123int
10124main ()
10125{
Reid Spencera773bd52006-08-04 18:18:08 +000010126return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127 ;
10128 return 0;
10129}
10130_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010131rm -f conftest.$ac_objext conftest$ac_exeext
10132if { (ac_try="$ac_link"
10133case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136esac
10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_link") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } &&
10145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10146 { (case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_try") 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest$ac_exeext'
10156 { (case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159esac
10160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_try") 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010165 ac_cv_lib_dld_dld_link=yes
10166else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010167 echo "$as_me: failed program was:" >&5
10168sed 's/^/| /' conftest.$ac_ext >&5
10169
10170 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010171fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010172
Bill Wendlingebcceee2009-04-18 11:20:33 +000010173rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010174 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010175LIBS=$ac_check_lib_save_LIBS
10176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010177{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10178echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10179if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010181cat >>confdefs.h <<\_ACEOF
10182#define HAVE_DLD 1
10183_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184
10185 LIBADD_DL="$LIBADD_DL -ldld"
10186else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010187 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10188echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10189if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191else
10192 cat >conftest.$ac_ext <<_ACEOF
10193/* confdefs.h. */
10194_ACEOF
10195cat confdefs.h >>conftest.$ac_ext
10196cat >>conftest.$ac_ext <<_ACEOF
10197/* end confdefs.h. */
10198/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10200#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010202/* System header to define __stub macros and hopefully few prototypes,
10203 which can conflict with char _dyld_func_lookup (); below.
10204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10205 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010207#ifdef __STDC__
10208# include <limits.h>
10209#else
10210# include <assert.h>
10211#endif
10212
10213#undef _dyld_func_lookup
10214
10215/* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10218#ifdef __cplusplus
10219extern "C"
10220#endif
10221char _dyld_func_lookup ();
10222/* The GNU C library defines this for functions which it implements
10223 to always fail with ENOSYS. Some functions are actually named
10224 something starting with __ and the normal name is an alias. */
10225#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10226choke me
10227#endif
10228
10229int
10230main ()
10231{
10232return _dyld_func_lookup ();
10233 ;
10234 return 0;
10235}
10236_ACEOF
10237rm -f conftest.$ac_objext conftest$ac_exeext
10238if { (ac_try="$ac_link"
10239case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10242esac
10243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_link") 2>conftest.er1
10245 ac_status=$?
10246 grep -v '^ *+' conftest.er1 >conftest.err
10247 rm -f conftest.er1
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10252 { (case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10255esac
10256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_try") 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265esac
10266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_try") 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 ac_cv_func__dyld_func_lookup=yes
10272else
10273 echo "$as_me: failed program was:" >&5
10274sed 's/^/| /' conftest.$ac_ext >&5
10275
10276 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277fi
Reid Spencera773bd52006-08-04 18:18:08 +000010278
Bill Wendlingebcceee2009-04-18 11:20:33 +000010279rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010280 conftest$ac_exeext conftest.$ac_ext
10281fi
10282{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10283echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10284if test $ac_cv_func__dyld_func_lookup = yes; then
10285
10286cat >>confdefs.h <<\_ACEOF
10287#define HAVE_DYLD 1
10288_ACEOF
10289
10290fi
10291
10292
10293fi
10294
10295
10296fi
10297
10298
10299fi
10300
10301rm -f core conftest.err conftest.$ac_objext \
10302 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010303
10304fi
10305
10306
10307fi
10308
10309
10310fi
10311
10312
10313if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10314then
10315 lt_save_LIBS="$LIBS"
10316 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010317
10318for ac_func in dlerror
10319do
10320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10321{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10323if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325else
10326 cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h. */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h. */
10332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10334#define $ac_func innocuous_$ac_func
10335
10336/* System header to define __stub macros and hopefully few prototypes,
10337 which can conflict with char $ac_func (); below.
10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339 <limits.h> exists even on freestanding compilers. */
10340
10341#ifdef __STDC__
10342# include <limits.h>
10343#else
10344# include <assert.h>
10345#endif
10346
10347#undef $ac_func
10348
10349/* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10352#ifdef __cplusplus
10353extern "C"
10354#endif
10355char $ac_func ();
10356/* The GNU C library defines this for functions which it implements
10357 to always fail with ENOSYS. Some functions are actually named
10358 something starting with __ and the normal name is an alias. */
10359#if defined __stub_$ac_func || defined __stub___$ac_func
10360choke me
10361#endif
10362
10363int
10364main ()
10365{
10366return $ac_func ();
10367 ;
10368 return 0;
10369}
10370_ACEOF
10371rm -f conftest.$ac_objext conftest$ac_exeext
10372if { (ac_try="$ac_link"
10373case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376esac
10377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_link") 2>conftest.er1
10379 ac_status=$?
10380 grep -v '^ *+' conftest.er1 >conftest.err
10381 rm -f conftest.er1
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389esac
10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10399esac
10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 eval "$as_ac_var=yes"
10406else
10407 echo "$as_me: failed program was:" >&5
10408sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 eval "$as_ac_var=no"
10411fi
10412
10413rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415fi
10416ac_res=`eval echo '${'$as_ac_var'}'`
10417 { echo "$as_me:$LINENO: result: $ac_res" >&5
10418echo "${ECHO_T}$ac_res" >&6; }
10419if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422_ACEOF
10423
10424fi
10425done
10426
10427 LIBS="$lt_save_LIBS"
10428fi
10429ac_ext=c
10430ac_cpp='$CPP $CPPFLAGS'
10431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10433ac_compiler_gnu=$ac_cv_c_compiler_gnu
10434
10435
10436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010437{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10438echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10439if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441else
10442 ac_cv_sys_symbol_underscore=no
10443 cat > conftest.$ac_ext <<EOF
10444void nm_test_func(){}
10445int main(){nm_test_func;return 0;}
10446EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448 (eval $ac_compile) 2>&5
10449 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452 # Now try to grab the symbols.
10453 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010454 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 +000010455 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10456 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459 # See whether the symbols have a leading underscore.
10460 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10461 ac_cv_sys_symbol_underscore=yes
10462 else
10463 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10464 :
10465 else
10466 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10467 fi
10468 fi
10469 else
10470 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10471 fi
10472 else
10473 echo "configure: failed program was:" >&5
10474 cat conftest.c >&5
10475 fi
10476 rm -rf conftest*
10477
10478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010479{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10480echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010481
10482
10483if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10484 if test x"$libltdl_cv_func_dlopen" = xyes ||
10485 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010486 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10487echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10488if test "${libltdl_cv_need_uscore+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010490else
10491 libltdl_cv_need_uscore=unknown
10492 save_LIBS="$LIBS"
10493 LIBS="$LIBS $LIBADD_DL"
10494 if test "$cross_compiling" = yes; then :
10495 libltdl_cv_need_uscore=cross
10496else
10497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10498 lt_status=$lt_dlunknown
10499 cat > conftest.$ac_ext <<EOF
Rafael Espindola48381e52012-01-31 17:18:47 +000010500#line 10500 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501#include "confdefs.h"
10502
10503#if HAVE_DLFCN_H
10504#include <dlfcn.h>
10505#endif
10506
10507#include <stdio.h>
10508
10509#ifdef RTLD_GLOBAL
10510# define LT_DLGLOBAL RTLD_GLOBAL
10511#else
10512# ifdef DL_GLOBAL
10513# define LT_DLGLOBAL DL_GLOBAL
10514# else
10515# define LT_DLGLOBAL 0
10516# endif
10517#endif
10518
10519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10520 find out it does not work in some platform. */
10521#ifndef LT_DLLAZY_OR_NOW
10522# ifdef RTLD_LAZY
10523# define LT_DLLAZY_OR_NOW RTLD_LAZY
10524# else
10525# ifdef DL_LAZY
10526# define LT_DLLAZY_OR_NOW DL_LAZY
10527# else
10528# ifdef RTLD_NOW
10529# define LT_DLLAZY_OR_NOW RTLD_NOW
10530# else
10531# ifdef DL_NOW
10532# define LT_DLLAZY_OR_NOW DL_NOW
10533# else
10534# define LT_DLLAZY_OR_NOW 0
10535# endif
10536# endif
10537# endif
10538# endif
10539#endif
10540
10541#ifdef __cplusplus
10542extern "C" void exit (int);
10543#endif
10544
10545void fnord() { int i=42;}
10546int main ()
10547{
10548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10549 int status = $lt_dlunknown;
10550
10551 if (self)
10552 {
10553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10555 /* dlclose (self); */
10556 }
Reid Spencera773bd52006-08-04 18:18:08 +000010557 else
10558 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559
10560 exit (status);
10561}
10562EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564 (eval $ac_link) 2>&5
10565 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010568 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569 lt_status=$?
10570 case x$lt_status in
10571 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10572 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010573 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010574 esac
10575 else :
10576 # compilation failed
10577
10578 fi
10579fi
10580rm -fr conftest*
10581
10582 LIBS="$save_LIBS"
10583
10584fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010585{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10586echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010587 fi
10588fi
10589
10590if test x"$libltdl_cv_need_uscore" = xyes; then
10591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010592cat >>confdefs.h <<\_ACEOF
10593#define NEED_USCORE 1
10594_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010595
10596fi
10597
10598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010599{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10600echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10601if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010603else
10604 # PORTME does your system automatically load deplibs for dlopen?
10605 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10606 # For now, we just catch OSes we know something about -- in the
10607 # future, we'll try test this programmatically.
10608 libltdl_cv_sys_dlopen_deplibs=unknown
10609 case "$host_os" in
10610 aix3*|aix4.1.*|aix4.2.*)
10611 # Unknown whether this is true for these versions of AIX, but
10612 # we want this `case' here to explicitly catch those versions.
10613 libltdl_cv_sys_dlopen_deplibs=unknown
10614 ;;
10615 aix[45]*)
10616 libltdl_cv_sys_dlopen_deplibs=yes
10617 ;;
10618 darwin*)
10619 # Assuming the user has installed a libdl from somewhere, this is true
10620 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10621 libltdl_cv_sys_dlopen_deplibs=yes
10622 ;;
10623 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10624 # GNU and its variants, using gnu ld.so (Glibc)
10625 libltdl_cv_sys_dlopen_deplibs=yes
10626 ;;
10627 hpux10*|hpux11*)
10628 libltdl_cv_sys_dlopen_deplibs=yes
10629 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010630 interix*)
10631 libltdl_cv_sys_dlopen_deplibs=yes
10632 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633 irix[12345]*|irix6.[01]*)
10634 # Catch all versions of IRIX before 6.2, and indicate that we don't
10635 # know how it worked for any of those versions.
10636 libltdl_cv_sys_dlopen_deplibs=unknown
10637 ;;
10638 irix*)
10639 # The case above catches anything before 6.2, and it's known that
10640 # at 6.2 and later dlopen does load deplibs.
10641 libltdl_cv_sys_dlopen_deplibs=yes
10642 ;;
10643 netbsd*)
10644 libltdl_cv_sys_dlopen_deplibs=yes
10645 ;;
10646 openbsd*)
10647 libltdl_cv_sys_dlopen_deplibs=yes
10648 ;;
10649 osf[1234]*)
10650 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10651 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010652 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010653 libltdl_cv_sys_dlopen_deplibs=no
10654 ;;
10655 osf5.0|osf5.0a|osf5.1)
10656 # dlopen *does* load deplibs and with the right loader patch applied
10657 # it even uses RPATH in a shared library to search for shared objects
10658 # that the library depends on, but there's no easy way to know if that
10659 # patch is installed. Since this is the case, all we can really
10660 # say is unknown -- it depends on the patch being installed. If
10661 # it is, this changes to `yes'. Without it, it would be `no'.
10662 libltdl_cv_sys_dlopen_deplibs=unknown
10663 ;;
10664 osf*)
10665 # the two cases above should catch all versions of osf <= 5.1. Read
10666 # the comments above for what we know about them.
10667 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10668 # is used to find them so we can finally say `yes'.
10669 libltdl_cv_sys_dlopen_deplibs=yes
10670 ;;
10671 solaris*)
10672 libltdl_cv_sys_dlopen_deplibs=yes
10673 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10675 libltdl_cv_sys_dlopen_deplibs=yes
10676 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677 esac
10678
10679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010680{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10681echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010684cat >>confdefs.h <<\_ACEOF
10685#define LTDL_DLOPEN_DEPLIBS 1
10686_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687
10688fi
10689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010690
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010692do
10693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10699fi
10700ac_res=`eval echo '${'$as_ac_Header'}'`
10701 { echo "$as_me:$LINENO: result: $ac_res" >&5
10702echo "${ECHO_T}$ac_res" >&6; }
10703else
10704 # Is the header compilable?
10705{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10707cat >conftest.$ac_ext <<_ACEOF
10708/* confdefs.h. */
10709_ACEOF
10710cat confdefs.h >>conftest.$ac_ext
10711cat >>conftest.$ac_ext <<_ACEOF
10712/* end confdefs.h. */
10713$ac_includes_default
10714#include <$ac_header>
10715_ACEOF
10716rm -f conftest.$ac_objext
10717if { (ac_try="$ac_compile"
10718case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_compile") 2>conftest.er1
10724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try='test -s conftest.$ac_objext'
10741 { (case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_try") 2>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 ac_header_compiler=yes
10751else
10752 echo "$as_me: failed program was:" >&5
10753sed 's/^/| /' conftest.$ac_ext >&5
10754
10755 ac_header_compiler=no
10756fi
10757
10758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10760echo "${ECHO_T}$ac_header_compiler" >&6; }
10761
10762# Is the header present?
10763{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10765cat >conftest.$ac_ext <<_ACEOF
10766/* confdefs.h. */
10767_ACEOF
10768cat confdefs.h >>conftest.$ac_ext
10769cat >>conftest.$ac_ext <<_ACEOF
10770/* end confdefs.h. */
10771#include <$ac_header>
10772_ACEOF
10773if { (ac_try="$ac_cpp conftest.$ac_ext"
10774case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10777esac
10778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10780 ac_status=$?
10781 grep -v '^ *+' conftest.er1 >conftest.err
10782 rm -f conftest.er1
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_c_preproc_warn_flag
10788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10789 else
10790 ac_cpp_err=
10791 fi
10792else
10793 ac_cpp_err=yes
10794fi
10795if test -z "$ac_cpp_err"; then
10796 ac_header_preproc=yes
10797else
10798 echo "$as_me: failed program was:" >&5
10799sed 's/^/| /' conftest.$ac_ext >&5
10800
10801 ac_header_preproc=no
10802fi
10803
10804rm -f conftest.err conftest.$ac_ext
10805{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10806echo "${ECHO_T}$ac_header_preproc" >&6; }
10807
10808# So? What about this header?
10809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10810 yes:no: )
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10812echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10814echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10815 ac_header_preproc=yes
10816 ;;
10817 no:yes:* )
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10823echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10825echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10829echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10830 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010831## ------------------------------------ ##
10832## Report this to http://llvm.org/bugs/ ##
10833## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010834_ASBOX
10835 ) | sed "s/^/$as_me: WARNING: /" >&2
10836 ;;
10837esac
10838{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10842else
10843 eval "$as_ac_Header=\$ac_header_preproc"
10844fi
10845ac_res=`eval echo '${'$as_ac_Header'}'`
10846 { echo "$as_me:$LINENO: result: $ac_res" >&5
10847echo "${ECHO_T}$ac_res" >&6; }
10848
10849fi
10850if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853_ACEOF
10854
10855fi
10856
10857done
10858
10859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010860{ echo "$as_me:$LINENO: checking for error_t" >&5
10861echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10862if test "${ac_cv_type_error_t+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864else
10865 cat >conftest.$ac_ext <<_ACEOF
10866/* confdefs.h. */
10867_ACEOF
10868cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h. */
10871#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010872# include <argz.h>
10873#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010874
10875typedef error_t ac__type_new_;
10876int
10877main ()
10878{
10879if ((ac__type_new_ *) 0)
10880 return 0;
10881if (sizeof (ac__type_new_))
10882 return 0;
10883 ;
10884 return 0;
10885}
10886_ACEOF
10887rm -f conftest.$ac_objext
10888if { (ac_try="$ac_compile"
10889case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10892esac
10893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902 { (case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905esac
10906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_try") 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest.$ac_objext'
10912 { (case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915esac
10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_try") 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_cv_type_error_t=yes
10922else
10923 echo "$as_me: failed program was:" >&5
10924sed 's/^/| /' conftest.$ac_ext >&5
10925
10926 ac_cv_type_error_t=no
10927fi
10928
10929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930fi
10931{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10932echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10933if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010934
10935cat >>confdefs.h <<_ACEOF
10936#define HAVE_ERROR_T 1
10937_ACEOF
10938
10939
10940else
10941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010942cat >>confdefs.h <<\_ACEOF
10943#define error_t int
10944_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010945
10946fi
10947
10948
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010949
10950
10951
10952
10953
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010954for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010955do
10956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962 cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h. */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h. */
10968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10970#define $ac_func innocuous_$ac_func
10971
10972/* System header to define __stub macros and hopefully few prototypes,
10973 which can conflict with char $ac_func (); below.
10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975 <limits.h> exists even on freestanding compilers. */
10976
10977#ifdef __STDC__
10978# include <limits.h>
10979#else
10980# include <assert.h>
10981#endif
10982
10983#undef $ac_func
10984
10985/* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988#ifdef __cplusplus
10989extern "C"
10990#endif
10991char $ac_func ();
10992/* The GNU C library defines this for functions which it implements
10993 to always fail with ENOSYS. Some functions are actually named
10994 something starting with __ and the normal name is an alias. */
10995#if defined __stub_$ac_func || defined __stub___$ac_func
10996choke me
10997#endif
10998
10999int
11000main ()
11001{
11002return $ac_func ();
11003 ;
11004 return 0;
11005}
11006_ACEOF
11007rm -f conftest.$ac_objext conftest$ac_exeext
11008if { (ac_try="$ac_link"
11009case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11012esac
11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_link") 2>conftest.er1
11015 ac_status=$?
11016 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11022 { (case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11025esac
11026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_try") 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest$ac_exeext'
11032 { (case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11035esac
11036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_try") 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; }; then
11041 eval "$as_ac_var=yes"
11042else
11043 echo "$as_me: failed program was:" >&5
11044sed 's/^/| /' conftest.$ac_ext >&5
11045
11046 eval "$as_ac_var=no"
11047fi
11048
11049rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11051fi
11052ac_res=`eval echo '${'$as_ac_var'}'`
11053 { echo "$as_me:$LINENO: result: $ac_res" >&5
11054echo "${ECHO_T}$ac_res" >&6; }
11055if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011058_ACEOF
11059
11060fi
11061done
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011082
11083
11084
11085
11086
11087
11088
11089
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011090for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11091 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011092do
11093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099fi
11100ac_res=`eval echo '${'$as_ac_Header'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102echo "${ECHO_T}$ac_res" >&6; }
11103else
11104 # Is the header compilable?
11105{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11107cat >conftest.$ac_ext <<_ACEOF
11108/* confdefs.h. */
11109_ACEOF
11110cat confdefs.h >>conftest.$ac_ext
11111cat >>conftest.$ac_ext <<_ACEOF
11112/* end confdefs.h. */
11113$ac_includes_default
11114#include <$ac_header>
11115_ACEOF
11116rm -f conftest.$ac_objext
11117if { (ac_try="$ac_compile"
11118case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121esac
11122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134esac
11135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; } &&
11140 { ac_try='test -s conftest.$ac_objext'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_header_compiler=yes
11151else
11152 echo "$as_me: failed program was:" >&5
11153sed 's/^/| /' conftest.$ac_ext >&5
11154
11155 ac_header_compiler=no
11156fi
11157
11158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160echo "${ECHO_T}$ac_header_compiler" >&6; }
11161
11162# Is the header present?
11163{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11165cat >conftest.$ac_ext <<_ACEOF
11166/* confdefs.h. */
11167_ACEOF
11168cat confdefs.h >>conftest.$ac_ext
11169cat >>conftest.$ac_ext <<_ACEOF
11170/* end confdefs.h. */
11171#include <$ac_header>
11172_ACEOF
11173if { (ac_try="$ac_cpp conftest.$ac_ext"
11174case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177esac
11178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } >/dev/null; then
11186 if test -s conftest.err; then
11187 ac_cpp_err=$ac_c_preproc_warn_flag
11188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11189 else
11190 ac_cpp_err=
11191 fi
11192else
11193 ac_cpp_err=yes
11194fi
11195if test -z "$ac_cpp_err"; then
11196 ac_header_preproc=yes
11197else
11198 echo "$as_me: failed program was:" >&5
11199sed 's/^/| /' conftest.$ac_ext >&5
11200
11201 ac_header_preproc=no
11202fi
11203
11204rm -f conftest.err conftest.$ac_ext
11205{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206echo "${ECHO_T}$ac_header_preproc" >&6; }
11207
11208# So? What about this header?
11209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11210 yes:no: )
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215 ac_header_preproc=yes
11216 ;;
11217 no:yes:* )
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11230 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011231## ------------------------------------ ##
11232## Report this to http://llvm.org/bugs/ ##
11233## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011234_ASBOX
11235 ) | sed "s/^/$as_me: WARNING: /" >&2
11236 ;;
11237esac
11238{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242else
11243 eval "$as_ac_Header=\$ac_header_preproc"
11244fi
11245ac_res=`eval echo '${'$as_ac_Header'}'`
11246 { echo "$as_me:$LINENO: result: $ac_res" >&5
11247echo "${ECHO_T}$ac_res" >&6; }
11248
11249fi
11250if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253_ACEOF
11254
11255fi
11256
11257done
11258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011259
11260
11261
11262
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011263for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011264do
11265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271fi
11272ac_res=`eval echo '${'$as_ac_Header'}'`
11273 { echo "$as_me:$LINENO: result: $ac_res" >&5
11274echo "${ECHO_T}$ac_res" >&6; }
11275else
11276 # Is the header compilable?
11277{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11279cat >conftest.$ac_ext <<_ACEOF
11280/* confdefs.h. */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h. */
11285$ac_includes_default
11286#include <$ac_header>
11287_ACEOF
11288rm -f conftest.$ac_objext
11289if { (ac_try="$ac_compile"
11290case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11293esac
11294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_compile") 2>conftest.er1
11296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11303 { (case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306esac
11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_try") 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_try") 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_header_compiler=yes
11323else
11324 echo "$as_me: failed program was:" >&5
11325sed 's/^/| /' conftest.$ac_ext >&5
11326
11327 ac_header_compiler=no
11328fi
11329
11330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332echo "${ECHO_T}$ac_header_compiler" >&6; }
11333
11334# Is the header present?
11335{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11337cat >conftest.$ac_ext <<_ACEOF
11338/* confdefs.h. */
11339_ACEOF
11340cat confdefs.h >>conftest.$ac_ext
11341cat >>conftest.$ac_ext <<_ACEOF
11342/* end confdefs.h. */
11343#include <$ac_header>
11344_ACEOF
11345if { (ac_try="$ac_cpp conftest.$ac_ext"
11346case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11349esac
11350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11352 ac_status=$?
11353 grep -v '^ *+' conftest.er1 >conftest.err
11354 rm -f conftest.er1
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } >/dev/null; then
11358 if test -s conftest.err; then
11359 ac_cpp_err=$ac_c_preproc_warn_flag
11360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11361 else
11362 ac_cpp_err=
11363 fi
11364else
11365 ac_cpp_err=yes
11366fi
11367if test -z "$ac_cpp_err"; then
11368 ac_header_preproc=yes
11369else
11370 echo "$as_me: failed program was:" >&5
11371sed 's/^/| /' conftest.$ac_ext >&5
11372
11373 ac_header_preproc=no
11374fi
11375
11376rm -f conftest.err conftest.$ac_ext
11377{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378echo "${ECHO_T}$ac_header_preproc" >&6; }
11379
11380# So? What about this header?
11381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382 yes:no: )
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc=yes
11388 ;;
11389 no:yes:* )
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11402 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011403## ------------------------------------ ##
11404## Report this to http://llvm.org/bugs/ ##
11405## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011406_ASBOX
11407 ) | sed "s/^/$as_me: WARNING: /" >&2
11408 ;;
11409esac
11410{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414else
11415 eval "$as_ac_Header=\$ac_header_preproc"
11416fi
11417ac_res=`eval echo '${'$as_ac_Header'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419echo "${ECHO_T}$ac_res" >&6; }
11420
11421fi
11422if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011423 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011424#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011425_ACEOF
11426
11427fi
11428
11429done
11430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011431
11432
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011433for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011434do
11435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441fi
11442ac_res=`eval echo '${'$as_ac_Header'}'`
11443 { echo "$as_me:$LINENO: result: $ac_res" >&5
11444echo "${ECHO_T}$ac_res" >&6; }
11445else
11446 # Is the header compilable?
11447{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11449cat >conftest.$ac_ext <<_ACEOF
11450/* confdefs.h. */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h. */
11455$ac_includes_default
11456#include <$ac_header>
11457_ACEOF
11458rm -f conftest.$ac_objext
11459if { (ac_try="$ac_compile"
11460case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463esac
11464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_compile") 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473 { (case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11476esac
11477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_try") 2>&5
11479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; } &&
11482 { ac_try='test -s conftest.$ac_objext'
11483 { (case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486esac
11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_try") 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_header_compiler=yes
11493else
11494 echo "$as_me: failed program was:" >&5
11495sed 's/^/| /' conftest.$ac_ext >&5
11496
11497 ac_header_compiler=no
11498fi
11499
11500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502echo "${ECHO_T}$ac_header_compiler" >&6; }
11503
11504# Is the header present?
11505{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507cat >conftest.$ac_ext <<_ACEOF
11508/* confdefs.h. */
11509_ACEOF
11510cat confdefs.h >>conftest.$ac_ext
11511cat >>conftest.$ac_ext <<_ACEOF
11512/* end confdefs.h. */
11513#include <$ac_header>
11514_ACEOF
11515if { (ac_try="$ac_cpp conftest.$ac_ext"
11516case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11519esac
11520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } >/dev/null; then
11528 if test -s conftest.err; then
11529 ac_cpp_err=$ac_c_preproc_warn_flag
11530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11531 else
11532 ac_cpp_err=
11533 fi
11534else
11535 ac_cpp_err=yes
11536fi
11537if test -z "$ac_cpp_err"; then
11538 ac_header_preproc=yes
11539else
11540 echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
11543 ac_header_preproc=no
11544fi
11545
11546rm -f conftest.err conftest.$ac_ext
11547{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548echo "${ECHO_T}$ac_header_preproc" >&6; }
11549
11550# So? What about this header?
11551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11552 yes:no: )
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11554echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11556echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11557 ac_header_preproc=yes
11558 ;;
11559 no:yes:* )
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11563echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11565echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11567echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11572 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011573## ------------------------------------ ##
11574## Report this to http://llvm.org/bugs/ ##
11575## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011576_ASBOX
11577 ) | sed "s/^/$as_me: WARNING: /" >&2
11578 ;;
11579esac
11580{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584else
11585 eval "$as_ac_Header=\$ac_header_preproc"
11586fi
11587ac_res=`eval echo '${'$as_ac_Header'}'`
11588 { echo "$as_me:$LINENO: result: $ac_res" >&5
11589echo "${ECHO_T}$ac_res" >&6; }
11590
11591fi
11592if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595_ACEOF
11596 break
11597fi
11598
11599done
11600
11601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011602
11603
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011605do
11606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611else
11612 cat >conftest.$ac_ext <<_ACEOF
11613/* confdefs.h. */
11614_ACEOF
11615cat confdefs.h >>conftest.$ac_ext
11616cat >>conftest.$ac_ext <<_ACEOF
11617/* end confdefs.h. */
11618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11620#define $ac_func innocuous_$ac_func
11621
11622/* System header to define __stub macros and hopefully few prototypes,
11623 which can conflict with char $ac_func (); below.
11624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625 <limits.h> exists even on freestanding compilers. */
11626
11627#ifdef __STDC__
11628# include <limits.h>
11629#else
11630# include <assert.h>
11631#endif
11632
11633#undef $ac_func
11634
11635/* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11638#ifdef __cplusplus
11639extern "C"
11640#endif
11641char $ac_func ();
11642/* The GNU C library defines this for functions which it implements
11643 to always fail with ENOSYS. Some functions are actually named
11644 something starting with __ and the normal name is an alias. */
11645#if defined __stub_$ac_func || defined __stub___$ac_func
11646choke me
11647#endif
11648
11649int
11650main ()
11651{
11652return $ac_func ();
11653 ;
11654 return 0;
11655}
11656_ACEOF
11657rm -f conftest.$ac_objext conftest$ac_exeext
11658if { (ac_try="$ac_link"
11659case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11662esac
11663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_link") 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672 { (case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675esac
11676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_try") 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685esac
11686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_try") 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 eval "$as_ac_var=yes"
11692else
11693 echo "$as_me: failed program was:" >&5
11694sed 's/^/| /' conftest.$ac_ext >&5
11695
11696 eval "$as_ac_var=no"
11697fi
11698
11699rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11701fi
11702ac_res=`eval echo '${'$as_ac_var'}'`
11703 { echo "$as_me:$LINENO: result: $ac_res" >&5
11704echo "${ECHO_T}$ac_res" >&6; }
11705if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011708_ACEOF
11709 break
11710fi
11711done
11712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011713
11714
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011716do
11717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 cat >conftest.$ac_ext <<_ACEOF
11724/* confdefs.h. */
11725_ACEOF
11726cat confdefs.h >>conftest.$ac_ext
11727cat >>conftest.$ac_ext <<_ACEOF
11728/* end confdefs.h. */
11729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11731#define $ac_func innocuous_$ac_func
11732
11733/* System header to define __stub macros and hopefully few prototypes,
11734 which can conflict with char $ac_func (); below.
11735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736 <limits.h> exists even on freestanding compilers. */
11737
11738#ifdef __STDC__
11739# include <limits.h>
11740#else
11741# include <assert.h>
11742#endif
11743
11744#undef $ac_func
11745
11746/* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply. */
11749#ifdef __cplusplus
11750extern "C"
11751#endif
11752char $ac_func ();
11753/* The GNU C library defines this for functions which it implements
11754 to always fail with ENOSYS. Some functions are actually named
11755 something starting with __ and the normal name is an alias. */
11756#if defined __stub_$ac_func || defined __stub___$ac_func
11757choke me
11758#endif
11759
11760int
11761main ()
11762{
11763return $ac_func ();
11764 ;
11765 return 0;
11766}
11767_ACEOF
11768rm -f conftest.$ac_objext conftest$ac_exeext
11769if { (ac_try="$ac_link"
11770case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773esac
11774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_link") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786esac
11787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest$ac_exeext'
11793 { (case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796esac
11797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_try") 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 eval "$as_ac_var=yes"
11803else
11804 echo "$as_me: failed program was:" >&5
11805sed 's/^/| /' conftest.$ac_ext >&5
11806
11807 eval "$as_ac_var=no"
11808fi
11809
11810rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11812fi
11813ac_res=`eval echo '${'$as_ac_var'}'`
11814 { echo "$as_me:$LINENO: result: $ac_res" >&5
11815echo "${ECHO_T}$ac_res" >&6; }
11816if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011817 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011819_ACEOF
11820 break
11821fi
11822done
11823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011824
11825
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011827do
11828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833else
11834 cat >conftest.$ac_ext <<_ACEOF
11835/* confdefs.h. */
11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h. */
11840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11842#define $ac_func innocuous_$ac_func
11843
11844/* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char $ac_func (); below.
11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847 <limits.h> exists even on freestanding compilers. */
11848
11849#ifdef __STDC__
11850# include <limits.h>
11851#else
11852# include <assert.h>
11853#endif
11854
11855#undef $ac_func
11856
11857/* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11860#ifdef __cplusplus
11861extern "C"
11862#endif
11863char $ac_func ();
11864/* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867#if defined __stub_$ac_func || defined __stub___$ac_func
11868choke me
11869#endif
11870
11871int
11872main ()
11873{
11874return $ac_func ();
11875 ;
11876 return 0;
11877}
11878_ACEOF
11879rm -f conftest.$ac_objext conftest$ac_exeext
11880if { (ac_try="$ac_link"
11881case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884esac
11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897esac
11898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11907esac
11908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_try") 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 eval "$as_ac_var=yes"
11914else
11915 echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 eval "$as_ac_var=no"
11919fi
11920
11921rm -f core conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11923fi
11924ac_res=`eval echo '${'$as_ac_var'}'`
11925 { echo "$as_me:$LINENO: result: $ac_res" >&5
11926echo "${ECHO_T}$ac_res" >&6; }
11927if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011930_ACEOF
11931 break
11932fi
11933done
11934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011935
11936
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011937for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011938do
11939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11942if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945 cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
11951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953#define $ac_func innocuous_$ac_func
11954
11955/* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char $ac_func (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11959
11960#ifdef __STDC__
11961# include <limits.h>
11962#else
11963# include <assert.h>
11964#endif
11965
11966#undef $ac_func
11967
11968/* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11971#ifdef __cplusplus
11972extern "C"
11973#endif
11974char $ac_func ();
11975/* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978#if defined __stub_$ac_func || defined __stub___$ac_func
11979choke me
11980#endif
11981
11982int
11983main ()
11984{
11985return $ac_func ();
11986 ;
11987 return 0;
11988}
11989_ACEOF
11990rm -f conftest.$ac_objext conftest$ac_exeext
11991if { (ac_try="$ac_link"
11992case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995esac
11996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_link") 2>conftest.er1
11998 ac_status=$?
11999 grep -v '^ *+' conftest.er1 >conftest.err
12000 rm -f conftest.er1
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12005 { (case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12008esac
12009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_try") 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018esac
12019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_try") 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 eval "$as_ac_var=yes"
12025else
12026 echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029 eval "$as_ac_var=no"
12030fi
12031
12032rm -f core conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12034fi
12035ac_res=`eval echo '${'$as_ac_var'}'`
12036 { echo "$as_me:$LINENO: result: $ac_res" >&5
12037echo "${ECHO_T}$ac_res" >&6; }
12038if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012039 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012041_ACEOF
12042
12043fi
12044done
12045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012046
12047
12048
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012050do
12051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12054if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12056else
12057 cat >conftest.$ac_ext <<_ACEOF
12058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
12063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12065#define $ac_func innocuous_$ac_func
12066
12067/* System header to define __stub macros and hopefully few prototypes,
12068 which can conflict with char $ac_func (); below.
12069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12070 <limits.h> exists even on freestanding compilers. */
12071
12072#ifdef __STDC__
12073# include <limits.h>
12074#else
12075# include <assert.h>
12076#endif
12077
12078#undef $ac_func
12079
12080/* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12083#ifdef __cplusplus
12084extern "C"
12085#endif
12086char $ac_func ();
12087/* The GNU C library defines this for functions which it implements
12088 to always fail with ENOSYS. Some functions are actually named
12089 something starting with __ and the normal name is an alias. */
12090#if defined __stub_$ac_func || defined __stub___$ac_func
12091choke me
12092#endif
12093
12094int
12095main ()
12096{
12097return $ac_func ();
12098 ;
12099 return 0;
12100}
12101_ACEOF
12102rm -f conftest.$ac_objext conftest$ac_exeext
12103if { (ac_try="$ac_link"
12104case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12107esac
12108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_link") 2>conftest.er1
12110 ac_status=$?
12111 grep -v '^ *+' conftest.er1 >conftest.err
12112 rm -f conftest.er1
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
12116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12117 { (case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120esac
12121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_try") 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest$ac_exeext'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130esac
12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 eval "$as_ac_var=yes"
12137else
12138 echo "$as_me: failed program was:" >&5
12139sed 's/^/| /' conftest.$ac_ext >&5
12140
12141 eval "$as_ac_var=no"
12142fi
12143
12144rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146fi
12147ac_res=`eval echo '${'$as_ac_var'}'`
12148 { echo "$as_me:$LINENO: result: $ac_res" >&5
12149echo "${ECHO_T}$ac_res" >&6; }
12150if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012151 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012153_ACEOF
12154
12155fi
12156done
12157
12158
Douglas Gregor01746742009-05-11 18:05:52 +000012159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012160{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12161echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012162
Reid Spencer86901802004-12-08 23:07:27 +000012163ICC=no
12164IXX=no
12165case $CC in
12166 icc*|icpc*)
12167 ICC=yes
12168 IXX=yes
12169 ;;
12170 *)
12171 ;;
12172esac
12173
Duraid Madina937c60a2006-02-15 07:57:42 +000012174if test "$GCC" != "yes" && test "$ICC" != "yes"
12175then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012176 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12177echo "$as_me: error: gcc|icc required but not found" >&2;}
12178 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012179fi
12180
12181if test "$GXX" != "yes" && test "$IXX" != "yes"
12182then
Eric Christopher73e36da2010-12-08 02:02:14 +000012183 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12184echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012185 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012186fi
12187
Reid Spencer86901802004-12-08 23:07:27 +000012188if test "$GCC" = "yes"
12189then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012190 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012191#if !defined(__GNUC__) || __GNUC__ < 3
12192#error Unsupported GCC version
12193#endif
12194
12195_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012196rm -f conftest.$ac_objext
12197if { (ac_try="$ac_compile"
12198case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201esac
12202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_compile") 2>conftest.er1
12204 ac_status=$?
12205 grep -v '^ *+' conftest.er1 >conftest.err
12206 rm -f conftest.er1
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } &&
12210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214esac
12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12224esac
12225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_try") 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012231else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012232 echo "$as_me: failed program was:" >&5
12233sed 's/^/| /' conftest.$ac_ext >&5
12234
12235 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12236echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12237 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012239
Chris Lattner399c7c72008-02-05 19:43:53 +000012240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012241fi
12242
12243if test -z "$llvm_cv_gnu_make_command"
12244then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012245 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12246echo "$as_me: error: GNU Make required but not found" >&2;}
12247 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012248fi
12249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012250{ echo "$as_me:$LINENO: result: ok" >&5
12251echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012253{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12254echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012255NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12256
12257NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012259{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12260echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012261
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012263
12264{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12265echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12266if test "${ac_cv_lib_m_sin+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012268else
12269 ac_check_lib_save_LIBS=$LIBS
12270LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012271cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012276/* end confdefs.h. */
12277
Reid Spencera773bd52006-08-04 18:18:08 +000012278/* Override any GCC internal prototype to avoid an error.
12279 Use char because int might match the return type of a GCC
12280 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012281#ifdef __cplusplus
12282extern "C"
12283#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012284char sin ();
12285int
12286main ()
12287{
Reid Spencera773bd52006-08-04 18:18:08 +000012288return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012289 ;
12290 return 0;
12291}
12292_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012293rm -f conftest.$ac_objext conftest$ac_exeext
12294if { (ac_try="$ac_link"
12295case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298esac
12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_link") 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311esac
12312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest$ac_exeext'
12318 { (case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12321esac
12322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_try") 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012327 ac_cv_lib_m_sin=yes
12328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012329 echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
12332 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012334
Bill Wendlingebcceee2009-04-18 11:20:33 +000012335rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012336 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012337LIBS=$ac_check_lib_save_LIBS
12338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012339{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12340echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12341if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012342 cat >>confdefs.h <<_ACEOF
12343#define HAVE_LIBM 1
12344_ACEOF
12345
12346 LIBS="-lm $LIBS"
12347
12348fi
12349
Jeff Cohen28783c32007-01-12 18:22:38 +000012350if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012351
12352{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12353echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12354if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012356else
12357 ac_check_lib_save_LIBS=$LIBS
12358LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012359cat >conftest.$ac_ext <<_ACEOF
12360/* confdefs.h. */
12361_ACEOF
12362cat confdefs.h >>conftest.$ac_ext
12363cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012364/* end confdefs.h. */
12365
Reid Spencer48fdf912006-06-01 19:03:21 +000012366
Reid Spencer484fc8e2006-06-01 16:55:59 +000012367int
12368main ()
12369{
Reid Spencera773bd52006-08-04 18:18:08 +000012370return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012371 ;
12372 return 0;
12373}
12374_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012375rm -f conftest.$ac_objext conftest$ac_exeext
12376if { (ac_try="$ac_link"
12377case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380esac
12381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_link") 2>conftest.er1
12383 ac_status=$?
12384 grep -v '^ *+' conftest.er1 >conftest.err
12385 rm -f conftest.er1
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } &&
12389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12390 { (case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12393esac
12394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_try") 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; } &&
12399 { ac_try='test -s conftest$ac_exeext'
12400 { (case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12403esac
12404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_try") 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012409 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012411 echo "$as_me: failed program was:" >&5
12412sed 's/^/| /' conftest.$ac_ext >&5
12413
12414 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012416
Bill Wendlingebcceee2009-04-18 11:20:33 +000012417rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012418 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012419LIBS=$ac_check_lib_save_LIBS
12420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012421{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12422echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12423if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012424 cat >>confdefs.h <<_ACEOF
12425#define HAVE_LIBIMAGEHLP 1
12426_ACEOF
12427
12428 LIBS="-limagehlp $LIBS"
12429
12430fi
12431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012432
12433{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12434echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12435if test "${ac_cv_lib_psapi_main+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012437else
12438 ac_check_lib_save_LIBS=$LIBS
12439LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012440cat >conftest.$ac_ext <<_ACEOF
12441/* confdefs.h. */
12442_ACEOF
12443cat confdefs.h >>conftest.$ac_ext
12444cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012445/* end confdefs.h. */
12446
Reid Spencer48fdf912006-06-01 19:03:21 +000012447
Reid Spencer484fc8e2006-06-01 16:55:59 +000012448int
12449main ()
12450{
Reid Spencera773bd52006-08-04 18:18:08 +000012451return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012452 ;
12453 return 0;
12454}
12455_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012456rm -f conftest.$ac_objext conftest$ac_exeext
12457if { (ac_try="$ac_link"
12458case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12461esac
12462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_link") 2>conftest.er1
12464 ac_status=$?
12465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12471 { (case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12474esac
12475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_try") 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; } &&
12480 { ac_try='test -s conftest$ac_exeext'
12481 { (case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12484esac
12485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_try") 2>&5
12487 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012490 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012492 echo "$as_me: failed program was:" >&5
12493sed 's/^/| /' conftest.$ac_ext >&5
12494
12495 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012497
Bill Wendlingebcceee2009-04-18 11:20:33 +000012498rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012499 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012500LIBS=$ac_check_lib_save_LIBS
12501fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012502{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12503echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12504if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012505 cat >>confdefs.h <<_ACEOF
12506#define HAVE_LIBPSAPI 1
12507_ACEOF
12508
12509 LIBS="-lpsapi $LIBS"
12510
12511fi
12512
12513fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012515{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12516echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12517if test "${ac_cv_search_dlopen+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012519else
12520 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012521cat >conftest.$ac_ext <<_ACEOF
12522/* confdefs.h. */
12523_ACEOF
12524cat confdefs.h >>conftest.$ac_ext
12525cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012527
Reid Spencera773bd52006-08-04 18:18:08 +000012528/* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012531#ifdef __cplusplus
12532extern "C"
12533#endif
John Criswell7a73b802003-06-30 21:59:07 +000012534char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012535int
12536main ()
12537{
Reid Spencera773bd52006-08-04 18:18:08 +000012538return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012539 ;
12540 return 0;
12541}
12542_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012543for ac_lib in '' dl; do
12544 if test -z "$ac_lib"; then
12545 ac_res="none required"
12546 else
12547 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012549 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012550 rm -f conftest.$ac_objext conftest$ac_exeext
12551if { (ac_try="$ac_link"
12552case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12555esac
12556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_link") 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12565 { (case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568esac
12569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_try") 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest$ac_exeext'
12575 { (case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578esac
12579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_try") 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012584 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012585else
12586 echo "$as_me: failed program was:" >&5
12587sed 's/^/| /' conftest.$ac_ext >&5
12588
12589
John Criswell7a73b802003-06-30 21:59:07 +000012590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012591
Bill Wendlingebcceee2009-04-18 11:20:33 +000012592rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012593 conftest$ac_exeext
12594 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012595 break
John Criswell7a73b802003-06-30 21:59:07 +000012596fi
Reid Spencera773bd52006-08-04 18:18:08 +000012597done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012598if test "${ac_cv_search_dlopen+set}" = set; then
12599 :
Reid Spencera773bd52006-08-04 18:18:08 +000012600else
12601 ac_cv_search_dlopen=no
12602fi
12603rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012604LIBS=$ac_func_search_save_LIBS
12605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012606{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12607echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012608ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012609if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012612cat >>confdefs.h <<\_ACEOF
12613#define HAVE_DLOPEN 1
12614_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012615
12616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012617 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12618echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012619fi
12620
12621
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012622if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012623 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12624echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12625if test "${ac_cv_search_ffi_call+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012627else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012628 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012629cat >conftest.$ac_ext <<_ACEOF
12630/* confdefs.h. */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012634/* end confdefs.h. */
12635
12636/* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12639#ifdef __cplusplus
12640extern "C"
12641#endif
12642char ffi_call ();
12643int
12644main ()
12645{
12646return ffi_call ();
12647 ;
12648 return 0;
12649}
12650_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012651for ac_lib in '' ffi; do
12652 if test -z "$ac_lib"; then
12653 ac_res="none required"
12654 else
12655 ac_res=-l$ac_lib
12656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12657 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012658 rm -f conftest.$ac_objext conftest$ac_exeext
12659if { (ac_try="$ac_link"
12660case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12663esac
12664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_link") 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12676esac
12677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12686esac
12687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_try") 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012692 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012693else
12694 echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012699
Bill Wendlingebcceee2009-04-18 11:20:33 +000012700rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012701 conftest$ac_exeext
12702 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012703 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012704fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012706if test "${ac_cv_search_ffi_call+set}" = set; then
12707 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012708else
12709 ac_cv_search_ffi_call=no
12710fi
12711rm conftest.$ac_ext
12712LIBS=$ac_func_search_save_LIBS
12713fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012714{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12715echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012716ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012717if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012720cat >>confdefs.h <<\_ACEOF
12721#define HAVE_FFI_CALL 1
12722_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012723
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012724else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012725 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12726echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12727 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012728fi
12729
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012730fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012732{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12733echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12734if test "${ac_cv_search_mallinfo+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012736else
12737 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012738cat >conftest.$ac_ext <<_ACEOF
12739/* confdefs.h. */
12740_ACEOF
12741cat confdefs.h >>conftest.$ac_ext
12742cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012744
Reid Spencera773bd52006-08-04 18:18:08 +000012745/* Override any GCC internal prototype to avoid an error.
12746 Use char because int might match the return type of a GCC
12747 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012748#ifdef __cplusplus
12749extern "C"
12750#endif
John Criswell7a73b802003-06-30 21:59:07 +000012751char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012752int
12753main ()
12754{
Reid Spencera773bd52006-08-04 18:18:08 +000012755return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012756 ;
12757 return 0;
12758}
12759_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012760for ac_lib in '' malloc; do
12761 if test -z "$ac_lib"; then
12762 ac_res="none required"
12763 else
12764 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012766 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012767 rm -f conftest.$ac_objext conftest$ac_exeext
12768if { (ac_try="$ac_link"
12769case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12772esac
12773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_link") 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782 { (case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785esac
12786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_try") 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012801 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012802else
12803 echo "$as_me: failed program was:" >&5
12804sed 's/^/| /' conftest.$ac_ext >&5
12805
12806
John Criswell7a73b802003-06-30 21:59:07 +000012807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012808
Bill Wendlingebcceee2009-04-18 11:20:33 +000012809rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012810 conftest$ac_exeext
12811 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012812 break
John Criswell7a73b802003-06-30 21:59:07 +000012813fi
Reid Spencera773bd52006-08-04 18:18:08 +000012814done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012815if test "${ac_cv_search_mallinfo+set}" = set; then
12816 :
Reid Spencera773bd52006-08-04 18:18:08 +000012817else
12818 ac_cv_search_mallinfo=no
12819fi
12820rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012821LIBS=$ac_func_search_save_LIBS
12822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012823{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12824echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012825ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012826if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012829cat >>confdefs.h <<\_ACEOF
12830#define HAVE_MALLINFO 1
12831_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012832
12833fi
12834
12835
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012836if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012837
12838{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12839echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12840if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012842else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012843 ac_check_lib_save_LIBS=$LIBS
12844LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012845cat >conftest.$ac_ext <<_ACEOF
12846/* confdefs.h. */
12847_ACEOF
12848cat confdefs.h >>conftest.$ac_ext
12849cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012850/* end confdefs.h. */
12851
Reid Spencera773bd52006-08-04 18:18:08 +000012852/* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012855#ifdef __cplusplus
12856extern "C"
12857#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012858char pthread_mutex_init ();
12859int
12860main ()
12861{
Reid Spencera773bd52006-08-04 18:18:08 +000012862return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012863 ;
12864 return 0;
12865}
12866_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012867rm -f conftest.$ac_objext conftest$ac_exeext
12868if { (ac_try="$ac_link"
12869case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872esac
12873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895esac
12896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012901 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012903 echo "$as_me: failed program was:" >&5
12904sed 's/^/| /' conftest.$ac_ext >&5
12905
12906 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012908
Bill Wendlingebcceee2009-04-18 11:20:33 +000012909rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012910 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012911LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012913{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12914echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12915if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012916 cat >>confdefs.h <<_ACEOF
12917#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012918_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012919
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012920 LIBS="-lpthread $LIBS"
12921
Reid Spencer22177fe2005-07-12 15:24:20 +000012922fi
12923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012924 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12925echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12926if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012928else
12929 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012930cat >conftest.$ac_ext <<_ACEOF
12931/* confdefs.h. */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012935/* end confdefs.h. */
12936
Reid Spencera773bd52006-08-04 18:18:08 +000012937/* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012940#ifdef __cplusplus
12941extern "C"
12942#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012943char pthread_mutex_lock ();
12944int
12945main ()
12946{
Reid Spencera773bd52006-08-04 18:18:08 +000012947return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012948 ;
12949 return 0;
12950}
12951_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012952for ac_lib in '' pthread; do
12953 if test -z "$ac_lib"; then
12954 ac_res="none required"
12955 else
12956 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012958 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012959 rm -f conftest.$ac_objext conftest$ac_exeext
12960if { (ac_try="$ac_link"
12961case "(($ac_try" in
12962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963 *) ac_try_echo=$ac_try;;
12964esac
12965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966 (eval "$ac_link") 2>conftest.er1
12967 ac_status=$?
12968 grep -v '^ *+' conftest.er1 >conftest.err
12969 rm -f conftest.er1
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977esac
12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest$ac_exeext'
12984 { (case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987esac
12988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_try") 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012993 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012994else
12995 echo "$as_me: failed program was:" >&5
12996sed 's/^/| /' conftest.$ac_ext >&5
12997
12998
Brian Gaeke5f268f72003-12-05 19:29:01 +000012999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013000
Bill Wendlingebcceee2009-04-18 11:20:33 +000013001rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013002 conftest$ac_exeext
13003 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013004 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013005fi
Reid Spencera773bd52006-08-04 18:18:08 +000013006done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013007if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13008 :
Reid Spencera773bd52006-08-04 18:18:08 +000013009else
13010 ac_cv_search_pthread_mutex_lock=no
13011fi
13012rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013013LIBS=$ac_func_search_save_LIBS
13014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013015{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13016echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013017ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013018if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013021cat >>confdefs.h <<\_ACEOF
13022#define HAVE_PTHREAD_MUTEX_LOCK 1
13023_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013024
13025fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013027 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13028echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13029if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013031else
13032 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013033cat >conftest.$ac_ext <<_ACEOF
13034/* confdefs.h. */
13035_ACEOF
13036cat confdefs.h >>conftest.$ac_ext
13037cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013038/* end confdefs.h. */
13039
13040/* Override any GCC internal prototype to avoid an error.
13041 Use char because int might match the return type of a GCC
13042 builtin and then its argument prototype would still apply. */
13043#ifdef __cplusplus
13044extern "C"
13045#endif
13046char pthread_rwlock_init ();
13047int
13048main ()
13049{
13050return pthread_rwlock_init ();
13051 ;
13052 return 0;
13053}
13054_ACEOF
13055for ac_lib in '' pthread; do
13056 if test -z "$ac_lib"; then
13057 ac_res="none required"
13058 else
13059 ac_res=-l$ac_lib
13060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13061 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013062 rm -f conftest.$ac_objext conftest$ac_exeext
13063if { (ac_try="$ac_link"
13064case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13067esac
13068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_link") 2>conftest.er1
13070 ac_status=$?
13071 grep -v '^ *+' conftest.er1 >conftest.err
13072 rm -f conftest.er1
13073 cat conftest.err >&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077 { (case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080esac
13081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_try") 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; } &&
13086 { ac_try='test -s conftest$ac_exeext'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013096 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013097else
13098 echo "$as_me: failed program was:" >&5
13099sed 's/^/| /' conftest.$ac_ext >&5
13100
13101
Owen Andersonde8aed22009-06-16 18:20:20 +000013102fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013103
Owen Andersonde8aed22009-06-16 18:20:20 +000013104rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013105 conftest$ac_exeext
13106 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013107 break
13108fi
13109done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13111 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013112else
13113 ac_cv_search_pthread_rwlock_init=no
13114fi
13115rm conftest.$ac_ext
13116LIBS=$ac_func_search_save_LIBS
13117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013118{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13119echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013120ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013121if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013124cat >>confdefs.h <<\_ACEOF
13125#define HAVE_PTHREAD_RWLOCK_INIT 1
13126_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013127
13128fi
13129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013130 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13131echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13132if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013134else
13135 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013136cat >conftest.$ac_ext <<_ACEOF
13137/* confdefs.h. */
13138_ACEOF
13139cat confdefs.h >>conftest.$ac_ext
13140cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013141/* end confdefs.h. */
13142
13143/* Override any GCC internal prototype to avoid an error.
13144 Use char because int might match the return type of a GCC
13145 builtin and then its argument prototype would still apply. */
13146#ifdef __cplusplus
13147extern "C"
13148#endif
13149char pthread_getspecific ();
13150int
13151main ()
13152{
13153return pthread_getspecific ();
13154 ;
13155 return 0;
13156}
13157_ACEOF
13158for ac_lib in '' pthread; do
13159 if test -z "$ac_lib"; then
13160 ac_res="none required"
13161 else
13162 ac_res=-l$ac_lib
13163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13164 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013165 rm -f conftest.$ac_objext conftest$ac_exeext
13166if { (ac_try="$ac_link"
13167case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13170esac
13171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_link") 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13180 { (case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13183esac
13184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_try") 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; } &&
13189 { ac_try='test -s conftest$ac_exeext'
13190 { (case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13193esac
13194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_try") 2>&5
13196 ac_status=$?
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013199 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013200else
13201 echo "$as_me: failed program was:" >&5
13202sed 's/^/| /' conftest.$ac_ext >&5
13203
13204
Owen Anderson27fcfe12009-06-25 23:10:26 +000013205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013206
Owen Anderson27fcfe12009-06-25 23:10:26 +000013207rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013208 conftest$ac_exeext
13209 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013210 break
13211fi
13212done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013213if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13214 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013215else
13216 ac_cv_search_pthread_getspecific=no
13217fi
13218rm conftest.$ac_ext
13219LIBS=$ac_func_search_save_LIBS
13220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013221{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13222echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013223ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013224if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013227cat >>confdefs.h <<\_ACEOF
13228#define HAVE_PTHREAD_GETSPECIFIC 1
13229_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013230
13231fi
13232
Reid Spencer0a262ba2005-08-24 10:07:20 +000013233fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013234
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013235
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013236# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013237if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013238 withval=$with_udis86;
13239 USE_UDIS86=1
13240
13241 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013242 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013243 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13244 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013245
13246{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13247echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13248if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013250else
13251 ac_check_lib_save_LIBS=$LIBS
13252LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013253cat >conftest.$ac_ext <<_ACEOF
13254/* confdefs.h. */
13255_ACEOF
13256cat confdefs.h >>conftest.$ac_ext
13257cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013258/* end confdefs.h. */
13259
13260/* Override any GCC internal prototype to avoid an error.
13261 Use char because int might match the return type of a GCC
13262 builtin and then its argument prototype would still apply. */
13263#ifdef __cplusplus
13264extern "C"
13265#endif
13266char ud_init ();
13267int
13268main ()
13269{
13270return ud_init ();
13271 ;
13272 return 0;
13273}
13274_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275rm -f conftest.$ac_objext conftest$ac_exeext
13276if { (ac_try="$ac_link"
13277case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280esac
13281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_link") 2>conftest.er1
13283 ac_status=$?
13284 grep -v '^ *+' conftest.er1 >conftest.err
13285 rm -f conftest.er1
13286 cat conftest.err >&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13290 { (case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13293esac
13294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_try") 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest$ac_exeext'
13300 { (case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303esac
13304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_try") 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013309 ac_cv_lib_udis86_ud_init=yes
13310else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013311 echo "$as_me: failed program was:" >&5
13312sed 's/^/| /' conftest.$ac_ext >&5
13313
13314 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013316
Bill Wendlingebcceee2009-04-18 11:20:33 +000013317rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013318 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013319LIBS=$ac_check_lib_save_LIBS
13320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013321{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13322echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13323if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013324 cat >>confdefs.h <<_ACEOF
13325#define HAVE_LIBUDIS86 1
13326_ACEOF
13327
13328 LIBS="-ludis86 $LIBS"
13329
13330else
13331
13332 echo "Error! You need to have libudis86 around."
13333 exit -1
13334
13335fi
13336
13337
13338else
13339 USE_UDIS86=0
13340
13341fi
13342
13343
13344cat >>confdefs.h <<_ACEOF
13345#define USE_UDIS86 $USE_UDIS86
13346_ACEOF
13347
13348
13349
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013350# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013351if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013352 withval=$with_oprofile;
13353 USE_OPROFILE=1
13354
13355 case "$withval" in
13356 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013357 no) llvm_cv_oppath=
13358 USE_OPROFILE=0
13359 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013360 *) llvm_cv_oppath="${withval}/lib/oprofile"
13361 CPPFLAGS="-I${withval}/include";;
13362 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013363 if test -n "$llvm_cv_oppath" ; then
13364 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13366echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13367if test "${ac_cv_search_bfd_init+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013369else
13370 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013371cat >conftest.$ac_ext <<_ACEOF
13372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013376/* end confdefs.h. */
13377
13378/* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13381#ifdef __cplusplus
13382extern "C"
13383#endif
13384char bfd_init ();
13385int
13386main ()
13387{
13388return bfd_init ();
13389 ;
13390 return 0;
13391}
13392_ACEOF
13393for ac_lib in '' bfd; do
13394 if test -z "$ac_lib"; then
13395 ac_res="none required"
13396 else
13397 ac_res=-l$ac_lib
13398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13399 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013400 rm -f conftest.$ac_objext conftest$ac_exeext
13401if { (ac_try="$ac_link"
13402case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13405esac
13406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_link") 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13415 { (case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418esac
13419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_try") 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest$ac_exeext'
13425 { (case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428esac
13429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_try") 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013434 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013435else
13436 echo "$as_me: failed program was:" >&5
13437sed 's/^/| /' conftest.$ac_ext >&5
13438
13439
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013441
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013442rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013443 conftest$ac_exeext
13444 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013445 break
13446fi
13447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013448if test "${ac_cv_search_bfd_init+set}" = set; then
13449 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013450else
13451 ac_cv_search_bfd_init=no
13452fi
13453rm conftest.$ac_ext
13454LIBS=$ac_func_search_save_LIBS
13455fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013456{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13457echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013458ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013459if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13461
13462fi
13463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013464 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13465echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13466if test "${ac_cv_search_op_open_agent+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013468else
13469 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013470cat >conftest.$ac_ext <<_ACEOF
13471/* confdefs.h. */
13472_ACEOF
13473cat confdefs.h >>conftest.$ac_ext
13474cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013475/* end confdefs.h. */
13476
13477/* Override any GCC internal prototype to avoid an error.
13478 Use char because int might match the return type of a GCC
13479 builtin and then its argument prototype would still apply. */
13480#ifdef __cplusplus
13481extern "C"
13482#endif
13483char op_open_agent ();
13484int
13485main ()
13486{
13487return op_open_agent ();
13488 ;
13489 return 0;
13490}
13491_ACEOF
13492for ac_lib in '' opagent; do
13493 if test -z "$ac_lib"; then
13494 ac_res="none required"
13495 else
13496 ac_res=-l$ac_lib
13497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13498 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013499 rm -f conftest.$ac_objext conftest$ac_exeext
13500if { (ac_try="$ac_link"
13501case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504esac
13505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_link") 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
13513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13514 { (case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13517esac
13518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_try") 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
13523 { ac_try='test -s conftest$ac_exeext'
13524 { (case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13527esac
13528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_try") 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013533 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013534else
13535 echo "$as_me: failed program was:" >&5
13536sed 's/^/| /' conftest.$ac_ext >&5
13537
13538
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013540
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013541rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013542 conftest$ac_exeext
13543 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013544 break
13545fi
13546done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013547if test "${ac_cv_search_op_open_agent+set}" = set; then
13548 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013549else
13550 ac_cv_search_op_open_agent=no
13551fi
13552rm conftest.$ac_ext
13553LIBS=$ac_func_search_save_LIBS
13554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013555{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13556echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013557ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013558if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13560
13561else
13562
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013563 echo "Error! You need to have libopagent around."
13564 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013565
13566fi
13567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013568 if test "${ac_cv_header_opagent_h+set}" = set; then
13569 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13570echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13571if test "${ac_cv_header_opagent_h+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13573fi
13574{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13575echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13576else
13577 # Is the header compilable?
13578{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13579echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13580cat >conftest.$ac_ext <<_ACEOF
13581/* confdefs.h. */
13582_ACEOF
13583cat confdefs.h >>conftest.$ac_ext
13584cat >>conftest.$ac_ext <<_ACEOF
13585/* end confdefs.h. */
13586$ac_includes_default
13587#include <opagent.h>
13588_ACEOF
13589rm -f conftest.$ac_objext
13590if { (ac_try="$ac_compile"
13591case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13594esac
13595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_compile") 2>conftest.er1
13597 ac_status=$?
13598 grep -v '^ *+' conftest.er1 >conftest.err
13599 rm -f conftest.er1
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13604 { (case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607esac
13608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_try") 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest.$ac_objext'
13614 { (case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617esac
13618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_try") 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_header_compiler=yes
13624else
13625 echo "$as_me: failed program was:" >&5
13626sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013628 ac_header_compiler=no
13629fi
13630
13631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13633echo "${ECHO_T}$ac_header_compiler" >&6; }
13634
13635# Is the header present?
13636{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13637echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13638cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
13644#include <opagent.h>
13645_ACEOF
13646if { (ac_try="$ac_cpp conftest.$ac_ext"
13647case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13650esac
13651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13653 ac_status=$?
13654 grep -v '^ *+' conftest.er1 >conftest.err
13655 rm -f conftest.er1
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } >/dev/null; then
13659 if test -s conftest.err; then
13660 ac_cpp_err=$ac_c_preproc_warn_flag
13661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13662 else
13663 ac_cpp_err=
13664 fi
13665else
13666 ac_cpp_err=yes
13667fi
13668if test -z "$ac_cpp_err"; then
13669 ac_header_preproc=yes
13670else
13671 echo "$as_me: failed program was:" >&5
13672sed 's/^/| /' conftest.$ac_ext >&5
13673
13674 ac_header_preproc=no
13675fi
13676
13677rm -f conftest.err conftest.$ac_ext
13678{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13679echo "${ECHO_T}$ac_header_preproc" >&6; }
13680
13681# So? What about this header?
13682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13683 yes:no: )
13684 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13685echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13687echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13688 ac_header_preproc=yes
13689 ;;
13690 no:yes:* )
13691 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13692echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13694echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13696echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13698echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13700echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13702echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13703 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013704## ------------------------------------ ##
13705## Report this to http://llvm.org/bugs/ ##
13706## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013707_ASBOX
13708 ) | sed "s/^/$as_me: WARNING: /" >&2
13709 ;;
13710esac
13711{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13712echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13713if test "${ac_cv_header_opagent_h+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13715else
13716 ac_cv_header_opagent_h=$ac_header_preproc
13717fi
13718{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13719echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13720
13721fi
13722if test $ac_cv_header_opagent_h = yes; then
13723 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013724else
13725
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013726 echo "Error! You need to have opagent.h around."
13727 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013728
13729fi
13730
13731
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013732 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013733
13734else
13735
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013736 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013737
13738
13739fi
13740
13741
13742cat >>confdefs.h <<_ACEOF
13743#define USE_OPROFILE $USE_OPROFILE
13744_ACEOF
13745
13746
13747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013748
13749
13750
13751
13752
Reid Spencer59473af2004-12-25 07:31:29 +000013753ac_header_dirent=no
13754for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013755 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13756{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13757echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013761 cat >conftest.$ac_ext <<_ACEOF
13762/* confdefs.h. */
13763_ACEOF
13764cat confdefs.h >>conftest.$ac_ext
13765cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013766/* end confdefs.h. */
13767#include <sys/types.h>
13768#include <$ac_hdr>
13769
13770int
13771main ()
13772{
13773if ((DIR *) 0)
13774return 0;
13775 ;
13776 return 0;
13777}
13778_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013779rm -f conftest.$ac_objext
13780if { (ac_try="$ac_compile"
13781case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13784esac
13785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_compile") 2>conftest.er1
13787 ac_status=$?
13788 grep -v '^ *+' conftest.er1 >conftest.err
13789 rm -f conftest.er1
13790 cat conftest.err >&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } &&
13793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13794 { (case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13797esac
13798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_try") 2>&5
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; } &&
13803 { ac_try='test -s conftest.$ac_objext'
13804 { (case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807esac
13808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_try") 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013813 eval "$as_ac_Header=yes"
13814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013815 echo "$as_me: failed program was:" >&5
13816sed 's/^/| /' conftest.$ac_ext >&5
13817
13818 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013820
Reid Spencera773bd52006-08-04 18:18:08 +000013821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013823ac_res=`eval echo '${'$as_ac_Header'}'`
13824 { echo "$as_me:$LINENO: result: $ac_res" >&5
13825echo "${ECHO_T}$ac_res" >&6; }
13826if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013827 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013828#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013829_ACEOF
13830
13831ac_header_dirent=$ac_hdr; break
13832fi
13833
13834done
13835# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13836if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013837 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13838echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13839if test "${ac_cv_search_opendir+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013841else
13842 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013843cat >conftest.$ac_ext <<_ACEOF
13844/* confdefs.h. */
13845_ACEOF
13846cat confdefs.h >>conftest.$ac_ext
13847cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013848/* end confdefs.h. */
13849
Reid Spencera773bd52006-08-04 18:18:08 +000013850/* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013853#ifdef __cplusplus
13854extern "C"
13855#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013856char opendir ();
13857int
13858main ()
13859{
Reid Spencera773bd52006-08-04 18:18:08 +000013860return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013861 ;
13862 return 0;
13863}
13864_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013865for ac_lib in '' dir; do
13866 if test -z "$ac_lib"; then
13867 ac_res="none required"
13868 else
13869 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013871 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013872 rm -f conftest.$ac_objext conftest$ac_exeext
13873if { (ac_try="$ac_link"
13874case "(($ac_try" in
13875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876 *) ac_try_echo=$ac_try;;
13877esac
13878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879 (eval "$ac_link") 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13887 { (case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890esac
13891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_try") 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest$ac_exeext'
13897 { (case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900esac
13901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_try") 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013906 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013907else
13908 echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911
Reid Spencer59473af2004-12-25 07:31:29 +000013912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013913
Bill Wendlingebcceee2009-04-18 11:20:33 +000013914rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013915 conftest$ac_exeext
13916 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013917 break
Reid Spencer59473af2004-12-25 07:31:29 +000013918fi
Reid Spencera773bd52006-08-04 18:18:08 +000013919done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920if test "${ac_cv_search_opendir+set}" = set; then
13921 :
Reid Spencera773bd52006-08-04 18:18:08 +000013922else
13923 ac_cv_search_opendir=no
13924fi
13925rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013926LIBS=$ac_func_search_save_LIBS
13927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013928{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13929echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013930ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013931if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013933
13934fi
13935
13936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013937 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13938echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13939if test "${ac_cv_search_opendir+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013941else
13942 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013943cat >conftest.$ac_ext <<_ACEOF
13944/* confdefs.h. */
13945_ACEOF
13946cat confdefs.h >>conftest.$ac_ext
13947cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013948/* end confdefs.h. */
13949
Reid Spencera773bd52006-08-04 18:18:08 +000013950/* Override any GCC internal prototype to avoid an error.
13951 Use char because int might match the return type of a GCC
13952 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013953#ifdef __cplusplus
13954extern "C"
13955#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013956char opendir ();
13957int
13958main ()
13959{
Reid Spencera773bd52006-08-04 18:18:08 +000013960return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013961 ;
13962 return 0;
13963}
13964_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013965for ac_lib in '' x; do
13966 if test -z "$ac_lib"; then
13967 ac_res="none required"
13968 else
13969 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013971 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013972 rm -f conftest.$ac_objext conftest$ac_exeext
13973if { (ac_try="$ac_link"
13974case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13977esac
13978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_link") 2>conftest.er1
13980 ac_status=$?
13981 grep -v '^ *+' conftest.er1 >conftest.err
13982 rm -f conftest.er1
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } &&
13986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13987 { (case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13990esac
13991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_try") 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; } &&
13996 { ac_try='test -s conftest$ac_exeext'
13997 { (case "(($ac_try" in
13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999 *) ac_try_echo=$ac_try;;
14000esac
14001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002 (eval "$ac_try") 2>&5
14003 ac_status=$?
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014006 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007else
14008 echo "$as_me: failed program was:" >&5
14009sed 's/^/| /' conftest.$ac_ext >&5
14010
14011
Reid Spencer59473af2004-12-25 07:31:29 +000014012fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014013
Bill Wendlingebcceee2009-04-18 11:20:33 +000014014rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014015 conftest$ac_exeext
14016 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014017 break
Reid Spencer59473af2004-12-25 07:31:29 +000014018fi
Reid Spencera773bd52006-08-04 18:18:08 +000014019done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020if test "${ac_cv_search_opendir+set}" = set; then
14021 :
Reid Spencera773bd52006-08-04 18:18:08 +000014022else
14023 ac_cv_search_opendir=no
14024fi
14025rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014026LIBS=$ac_func_search_save_LIBS
14027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14029echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014030ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014031if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014033
14034fi
14035
14036fi
14037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014038{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14039echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14040if test "${ac_cv_header_mmap_anon+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014042else
14043 ac_ext=c
14044ac_cpp='$CPP $CPPFLAGS'
14045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14047ac_compiler_gnu=$ac_cv_c_compiler_gnu
14048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014049 cat >conftest.$ac_ext <<_ACEOF
14050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014054/* end confdefs.h. */
14055#include <sys/mman.h>
14056#include <unistd.h>
14057#include <fcntl.h>
14058int
14059main ()
14060{
14061mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14062 ;
14063 return 0;
14064}
14065_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014066rm -f conftest.$ac_objext
14067if { (ac_try="$ac_compile"
14068case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14071esac
14072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_compile") 2>conftest.er1
14074 ac_status=$?
14075 grep -v '^ *+' conftest.er1 >conftest.err
14076 rm -f conftest.er1
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } &&
14080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14081 { (case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14084esac
14085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_try") 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; } &&
14090 { ac_try='test -s conftest.$ac_objext'
14091 { (case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14094esac
14095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_try") 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014100 ac_cv_header_mmap_anon=yes
14101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014102 echo "$as_me: failed program was:" >&5
14103sed 's/^/| /' conftest.$ac_ext >&5
14104
14105 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014106fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014107
Reid Spencera773bd52006-08-04 18:18:08 +000014108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014109 ac_ext=c
14110ac_cpp='$CPP $CPPFLAGS'
14111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14113ac_compiler_gnu=$ac_cv_c_compiler_gnu
14114
14115
14116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14118echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014119if test "$ac_cv_header_mmap_anon" = yes; then
14120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014121cat >>confdefs.h <<\_ACEOF
14122#define HAVE_MMAP_ANONYMOUS 1
14123_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014124
14125fi
14126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14128echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14129if test "${ac_cv_header_stat_broken+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014132 cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h. */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014137/* end confdefs.h. */
14138#include <sys/types.h>
14139#include <sys/stat.h>
14140
Reid Spencera773bd52006-08-04 18:18:08 +000014141#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014142# if S_ISBLK (S_IFDIR)
14143You lose.
14144# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014145#endif
14146
Reid Spencera773bd52006-08-04 18:18:08 +000014147#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148# if S_ISBLK (S_IFCHR)
14149You lose.
14150# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014151#endif
14152
Reid Spencera773bd52006-08-04 18:18:08 +000014153#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014154# if S_ISLNK (S_IFREG)
14155You lose.
14156# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014157#endif
14158
Reid Spencera773bd52006-08-04 18:18:08 +000014159#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014160# if S_ISSOCK (S_IFREG)
14161You lose.
14162# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014163#endif
14164
14165_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14167 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014168 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169else
14170 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014171fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014172rm -f conftest*
14173
Reid Spencer59473af2004-12-25 07:31:29 +000014174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014175{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14176echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014177if test $ac_cv_header_stat_broken = yes; then
14178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014179cat >>confdefs.h <<\_ACEOF
14180#define STAT_MACROS_BROKEN 1
14181_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014182
14183fi
14184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014185{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14186echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14187if test "${ac_cv_header_sys_wait_h+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014189else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014190 cat >conftest.$ac_ext <<_ACEOF
14191/* confdefs.h. */
14192_ACEOF
14193cat confdefs.h >>conftest.$ac_ext
14194cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014195/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014196#include <sys/types.h>
14197#include <sys/wait.h>
14198#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014199# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014200#endif
14201#ifndef WIFEXITED
14202# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14203#endif
14204
John Criswell7a73b802003-06-30 21:59:07 +000014205int
14206main ()
14207{
14208 int s;
14209 wait (&s);
14210 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14211 ;
14212 return 0;
14213}
14214_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014215rm -f conftest.$ac_objext
14216if { (ac_try="$ac_compile"
14217case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220esac
14221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_compile") 2>conftest.er1
14223 ac_status=$?
14224 grep -v '^ *+' conftest.er1 >conftest.err
14225 rm -f conftest.er1
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14230 { (case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14233esac
14234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_try") 2>&5
14236 ac_status=$?
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; } &&
14239 { ac_try='test -s conftest.$ac_objext'
14240 { (case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14243esac
14244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_try") 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014249 ac_cv_header_sys_wait_h=yes
14250else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014251 echo "$as_me: failed program was:" >&5
14252sed 's/^/| /' conftest.$ac_ext >&5
14253
14254 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014255fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014256
Reid Spencera773bd52006-08-04 18:18:08 +000014257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014258fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014259{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14260echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014261if test $ac_cv_header_sys_wait_h = yes; then
14262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014263cat >>confdefs.h <<\_ACEOF
14264#define HAVE_SYS_WAIT_H 1
14265_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014266
14267fi
14268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014269{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14270echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14271if test "${ac_cv_header_time+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014273else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014274 cat >conftest.$ac_ext <<_ACEOF
14275/* confdefs.h. */
14276_ACEOF
14277cat confdefs.h >>conftest.$ac_ext
14278cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014279/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014280#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014281#include <sys/time.h>
14282#include <time.h>
14283
14284int
14285main ()
14286{
14287if ((struct tm *) 0)
14288return 0;
14289 ;
14290 return 0;
14291}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014292_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014293rm -f conftest.$ac_objext
14294if { (ac_try="$ac_compile"
14295case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298esac
14299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311esac
14312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321esac
14322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014327 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014329 echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334
Reid Spencera773bd52006-08-04 18:18:08 +000014335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014337{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14338echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014339if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014341cat >>confdefs.h <<\_ACEOF
14342#define TIME_WITH_SYS_TIME 1
14343_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014344
14345fi
14346
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014348
14349
14350
14351
14352
14353
Reid Spencer59473af2004-12-25 07:31:29 +000014354for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355do
14356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14362fi
14363ac_res=`eval echo '${'$as_ac_Header'}'`
14364 { echo "$as_me:$LINENO: result: $ac_res" >&5
14365echo "${ECHO_T}$ac_res" >&6; }
14366else
14367 # Is the header compilable?
14368{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14370cat >conftest.$ac_ext <<_ACEOF
14371/* confdefs.h. */
14372_ACEOF
14373cat confdefs.h >>conftest.$ac_ext
14374cat >>conftest.$ac_ext <<_ACEOF
14375/* end confdefs.h. */
14376$ac_includes_default
14377#include <$ac_header>
14378_ACEOF
14379rm -f conftest.$ac_objext
14380if { (ac_try="$ac_compile"
14381case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14384esac
14385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_compile") 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14394 { (case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397esac
14398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_try") 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14407esac
14408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_try") 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 ac_header_compiler=yes
14414else
14415 echo "$as_me: failed program was:" >&5
14416sed 's/^/| /' conftest.$ac_ext >&5
14417
14418 ac_header_compiler=no
14419fi
14420
14421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14423echo "${ECHO_T}$ac_header_compiler" >&6; }
14424
14425# Is the header present?
14426{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14428cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h. */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h. */
14434#include <$ac_header>
14435_ACEOF
14436if { (ac_try="$ac_cpp conftest.$ac_ext"
14437case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14440esac
14441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14443 ac_status=$?
14444 grep -v '^ *+' conftest.er1 >conftest.err
14445 rm -f conftest.er1
14446 cat conftest.err >&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } >/dev/null; then
14449 if test -s conftest.err; then
14450 ac_cpp_err=$ac_c_preproc_warn_flag
14451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14452 else
14453 ac_cpp_err=
14454 fi
14455else
14456 ac_cpp_err=yes
14457fi
14458if test -z "$ac_cpp_err"; then
14459 ac_header_preproc=yes
14460else
14461 echo "$as_me: failed program was:" >&5
14462sed 's/^/| /' conftest.$ac_ext >&5
14463
14464 ac_header_preproc=no
14465fi
14466
14467rm -f conftest.err conftest.$ac_ext
14468{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14469echo "${ECHO_T}$ac_header_preproc" >&6; }
14470
14471# So? What about this header?
14472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14473 yes:no: )
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14475echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14477echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14478 ac_header_preproc=yes
14479 ;;
14480 no:yes:* )
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14482echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14484echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14486echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14488echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14490echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14492echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14493 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014494## ------------------------------------ ##
14495## Report this to http://llvm.org/bugs/ ##
14496## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014497_ASBOX
14498 ) | sed "s/^/$as_me: WARNING: /" >&2
14499 ;;
14500esac
14501{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505else
14506 eval "$as_ac_Header=\$ac_header_preproc"
14507fi
14508ac_res=`eval echo '${'$as_ac_Header'}'`
14509 { echo "$as_me:$LINENO: result: $ac_res" >&5
14510echo "${ECHO_T}$ac_res" >&6; }
14511
14512fi
14513if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014514 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014516_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014517
14518fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014519
Reid Spencer59473af2004-12-25 07:31:29 +000014520done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014522
14523
14524
14525
14526
14527
Douglas Gregor071d73d2009-05-18 17:21:34 +000014528for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014529do
14530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536fi
14537ac_res=`eval echo '${'$as_ac_Header'}'`
14538 { echo "$as_me:$LINENO: result: $ac_res" >&5
14539echo "${ECHO_T}$ac_res" >&6; }
14540else
14541 # Is the header compilable?
14542{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550$ac_includes_default
14551#include <$ac_header>
14552_ACEOF
14553rm -f conftest.$ac_objext
14554if { (ac_try="$ac_compile"
14555case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14558esac
14559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_compile") 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14568 { (case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14571esac
14572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_try") 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest.$ac_objext'
14578 { (case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14581esac
14582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_try") 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_header_compiler=yes
14588else
14589 echo "$as_me: failed program was:" >&5
14590sed 's/^/| /' conftest.$ac_ext >&5
14591
14592 ac_header_compiler=no
14593fi
14594
14595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14597echo "${ECHO_T}$ac_header_compiler" >&6; }
14598
14599# Is the header present?
14600{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14602cat >conftest.$ac_ext <<_ACEOF
14603/* confdefs.h. */
14604_ACEOF
14605cat confdefs.h >>conftest.$ac_ext
14606cat >>conftest.$ac_ext <<_ACEOF
14607/* end confdefs.h. */
14608#include <$ac_header>
14609_ACEOF
14610if { (ac_try="$ac_cpp conftest.$ac_ext"
14611case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614esac
14615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } >/dev/null; then
14623 if test -s conftest.err; then
14624 ac_cpp_err=$ac_c_preproc_warn_flag
14625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14626 else
14627 ac_cpp_err=
14628 fi
14629else
14630 ac_cpp_err=yes
14631fi
14632if test -z "$ac_cpp_err"; then
14633 ac_header_preproc=yes
14634else
14635 echo "$as_me: failed program was:" >&5
14636sed 's/^/| /' conftest.$ac_ext >&5
14637
14638 ac_header_preproc=no
14639fi
14640
14641rm -f conftest.err conftest.$ac_ext
14642{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14643echo "${ECHO_T}$ac_header_preproc" >&6; }
14644
14645# So? What about this header?
14646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14647 yes:no: )
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14652 ac_header_preproc=yes
14653 ;;
14654 no:yes:* )
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14667 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014668## ------------------------------------ ##
14669## Report this to http://llvm.org/bugs/ ##
14670## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014671_ASBOX
14672 ) | sed "s/^/$as_me: WARNING: /" >&2
14673 ;;
14674esac
14675{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14679else
14680 eval "$as_ac_Header=\$ac_header_preproc"
14681fi
14682ac_res=`eval echo '${'$as_ac_Header'}'`
14683 { echo "$as_me:$LINENO: result: $ac_res" >&5
14684echo "${ECHO_T}$ac_res" >&6; }
14685
14686fi
14687if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014688 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014690_ACEOF
14691
14692fi
14693
14694done
14695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014696
14697
Douglas Gregor071d73d2009-05-18 17:21:34 +000014698for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014699do
14700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14706fi
14707ac_res=`eval echo '${'$as_ac_Header'}'`
14708 { echo "$as_me:$LINENO: result: $ac_res" >&5
14709echo "${ECHO_T}$ac_res" >&6; }
14710else
14711 # Is the header compilable?
14712{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14714cat >conftest.$ac_ext <<_ACEOF
14715/* confdefs.h. */
14716_ACEOF
14717cat confdefs.h >>conftest.$ac_ext
14718cat >>conftest.$ac_ext <<_ACEOF
14719/* end confdefs.h. */
14720$ac_includes_default
14721#include <$ac_header>
14722_ACEOF
14723rm -f conftest.$ac_objext
14724if { (ac_try="$ac_compile"
14725case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14728esac
14729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_compile") 2>conftest.er1
14731 ac_status=$?
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
14737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14738 { (case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741esac
14742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_try") 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } &&
14747 { ac_try='test -s conftest.$ac_objext'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_header_compiler=yes
14758else
14759 echo "$as_me: failed program was:" >&5
14760sed 's/^/| /' conftest.$ac_ext >&5
14761
14762 ac_header_compiler=no
14763fi
14764
14765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14767echo "${ECHO_T}$ac_header_compiler" >&6; }
14768
14769# Is the header present?
14770{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14772cat >conftest.$ac_ext <<_ACEOF
14773/* confdefs.h. */
14774_ACEOF
14775cat confdefs.h >>conftest.$ac_ext
14776cat >>conftest.$ac_ext <<_ACEOF
14777/* end confdefs.h. */
14778#include <$ac_header>
14779_ACEOF
14780if { (ac_try="$ac_cpp conftest.$ac_ext"
14781case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14784esac
14785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14787 ac_status=$?
14788 grep -v '^ *+' conftest.er1 >conftest.err
14789 rm -f conftest.er1
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } >/dev/null; then
14793 if test -s conftest.err; then
14794 ac_cpp_err=$ac_c_preproc_warn_flag
14795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14796 else
14797 ac_cpp_err=
14798 fi
14799else
14800 ac_cpp_err=yes
14801fi
14802if test -z "$ac_cpp_err"; then
14803 ac_header_preproc=yes
14804else
14805 echo "$as_me: failed program was:" >&5
14806sed 's/^/| /' conftest.$ac_ext >&5
14807
14808 ac_header_preproc=no
14809fi
14810
14811rm -f conftest.err conftest.$ac_ext
14812{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813echo "${ECHO_T}$ac_header_preproc" >&6; }
14814
14815# So? What about this header?
14816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14817 yes:no: )
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14822 ac_header_preproc=yes
14823 ;;
14824 no:yes:* )
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14828echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14832echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14837 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014838## ------------------------------------ ##
14839## Report this to http://llvm.org/bugs/ ##
14840## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014841_ASBOX
14842 ) | sed "s/^/$as_me: WARNING: /" >&2
14843 ;;
14844esac
14845{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14849else
14850 eval "$as_ac_Header=\$ac_header_preproc"
14851fi
14852ac_res=`eval echo '${'$as_ac_Header'}'`
14853 { echo "$as_me:$LINENO: result: $ac_res" >&5
14854echo "${ECHO_T}$ac_res" >&6; }
14855
14856fi
14857if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014858 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014860_ACEOF
14861
14862fi
14863
14864done
Reid Spencer59473af2004-12-25 07:31:29 +000014865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014866
14867
14868
14869
Daniel Dunbar3e462932011-02-03 02:40:02 +000014870
14871for 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 +000014872do
14873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879fi
14880ac_res=`eval echo '${'$as_ac_Header'}'`
14881 { echo "$as_me:$LINENO: result: $ac_res" >&5
14882echo "${ECHO_T}$ac_res" >&6; }
14883else
14884 # Is the header compilable?
14885{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14887cat >conftest.$ac_ext <<_ACEOF
14888/* confdefs.h. */
14889_ACEOF
14890cat confdefs.h >>conftest.$ac_ext
14891cat >>conftest.$ac_ext <<_ACEOF
14892/* end confdefs.h. */
14893$ac_includes_default
14894#include <$ac_header>
14895_ACEOF
14896rm -f conftest.$ac_objext
14897if { (ac_try="$ac_compile"
14898case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14901esac
14902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_compile") 2>conftest.er1
14904 ac_status=$?
14905 grep -v '^ *+' conftest.er1 >conftest.err
14906 rm -f conftest.er1
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14911 { (case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914esac
14915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_try") 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; } &&
14920 { ac_try='test -s conftest.$ac_objext'
14921 { (case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924esac
14925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_try") 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 ac_header_compiler=yes
14931else
14932 echo "$as_me: failed program was:" >&5
14933sed 's/^/| /' conftest.$ac_ext >&5
14934
14935 ac_header_compiler=no
14936fi
14937
14938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14940echo "${ECHO_T}$ac_header_compiler" >&6; }
14941
14942# Is the header present?
14943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14945cat >conftest.$ac_ext <<_ACEOF
14946/* confdefs.h. */
14947_ACEOF
14948cat confdefs.h >>conftest.$ac_ext
14949cat >>conftest.$ac_ext <<_ACEOF
14950/* end confdefs.h. */
14951#include <$ac_header>
14952_ACEOF
14953if { (ac_try="$ac_cpp conftest.$ac_ext"
14954case "(($ac_try" in
14955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14957esac
14958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14960 ac_status=$?
14961 grep -v '^ *+' conftest.er1 >conftest.err
14962 rm -f conftest.er1
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } >/dev/null; then
14966 if test -s conftest.err; then
14967 ac_cpp_err=$ac_c_preproc_warn_flag
14968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14969 else
14970 ac_cpp_err=
14971 fi
14972else
14973 ac_cpp_err=yes
14974fi
14975if test -z "$ac_cpp_err"; then
14976 ac_header_preproc=yes
14977else
14978 echo "$as_me: failed program was:" >&5
14979sed 's/^/| /' conftest.$ac_ext >&5
14980
14981 ac_header_preproc=no
14982fi
14983
14984rm -f conftest.err conftest.$ac_ext
14985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14986echo "${ECHO_T}$ac_header_preproc" >&6; }
14987
14988# So? What about this header?
14989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14990 yes:no: )
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14995 ac_header_preproc=yes
14996 ;;
14997 no:yes:* )
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15001echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15005echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15010 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015011## ------------------------------------ ##
15012## Report this to http://llvm.org/bugs/ ##
15013## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015014_ASBOX
15015 ) | sed "s/^/$as_me: WARNING: /" >&2
15016 ;;
15017esac
15018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15022else
15023 eval "$as_ac_Header=\$ac_header_preproc"
15024fi
15025ac_res=`eval echo '${'$as_ac_Header'}'`
15026 { echo "$as_me:$LINENO: result: $ac_res" >&5
15027echo "${ECHO_T}$ac_res" >&6; }
15028
15029fi
15030if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015031 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015033_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015034
15035fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015036
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015037done
15038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015039
15040
15041
15042
Douglas Gregor01746742009-05-11 18:05:52 +000015043for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015044do
15045as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15046if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15051fi
15052ac_res=`eval echo '${'$as_ac_Header'}'`
15053 { echo "$as_me:$LINENO: result: $ac_res" >&5
15054echo "${ECHO_T}$ac_res" >&6; }
15055else
15056 # Is the header compilable?
15057{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15058echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15059cat >conftest.$ac_ext <<_ACEOF
15060/* confdefs.h. */
15061_ACEOF
15062cat confdefs.h >>conftest.$ac_ext
15063cat >>conftest.$ac_ext <<_ACEOF
15064/* end confdefs.h. */
15065$ac_includes_default
15066#include <$ac_header>
15067_ACEOF
15068rm -f conftest.$ac_objext
15069if { (ac_try="$ac_compile"
15070case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15073esac
15074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_compile") 2>conftest.er1
15076 ac_status=$?
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15083 { (case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15086esac
15087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_try") 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest.$ac_objext'
15093 { (case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096esac
15097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_try") 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_header_compiler=yes
15103else
15104 echo "$as_me: failed program was:" >&5
15105sed 's/^/| /' conftest.$ac_ext >&5
15106
15107 ac_header_compiler=no
15108fi
15109
15110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15112echo "${ECHO_T}$ac_header_compiler" >&6; }
15113
15114# Is the header present?
15115{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15117cat >conftest.$ac_ext <<_ACEOF
15118/* confdefs.h. */
15119_ACEOF
15120cat confdefs.h >>conftest.$ac_ext
15121cat >>conftest.$ac_ext <<_ACEOF
15122/* end confdefs.h. */
15123#include <$ac_header>
15124_ACEOF
15125if { (ac_try="$ac_cpp conftest.$ac_ext"
15126case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129esac
15130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } >/dev/null; then
15138 if test -s conftest.err; then
15139 ac_cpp_err=$ac_c_preproc_warn_flag
15140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15141 else
15142 ac_cpp_err=
15143 fi
15144else
15145 ac_cpp_err=yes
15146fi
15147if test -z "$ac_cpp_err"; then
15148 ac_header_preproc=yes
15149else
15150 echo "$as_me: failed program was:" >&5
15151sed 's/^/| /' conftest.$ac_ext >&5
15152
15153 ac_header_preproc=no
15154fi
15155
15156rm -f conftest.err conftest.$ac_ext
15157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15158echo "${ECHO_T}$ac_header_preproc" >&6; }
15159
15160# So? What about this header?
15161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15162 yes:no: )
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15167 ac_header_preproc=yes
15168 ;;
15169 no:yes:* )
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15182 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015183## ------------------------------------ ##
15184## Report this to http://llvm.org/bugs/ ##
15185## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015186_ASBOX
15187 ) | sed "s/^/$as_me: WARNING: /" >&2
15188 ;;
15189esac
15190{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15194else
15195 eval "$as_ac_Header=\$ac_header_preproc"
15196fi
15197ac_res=`eval echo '${'$as_ac_Header'}'`
15198 { echo "$as_me:$LINENO: result: $ac_res" >&5
15199echo "${ECHO_T}$ac_res" >&6; }
15200
15201fi
15202if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015203 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015205_ACEOF
15206
15207fi
15208
15209done
15210
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015211
15212for ac_header in valgrind/valgrind.h
15213do
15214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15220fi
15221ac_res=`eval echo '${'$as_ac_Header'}'`
15222 { echo "$as_me:$LINENO: result: $ac_res" >&5
15223echo "${ECHO_T}$ac_res" >&6; }
15224else
15225 # Is the header compilable?
15226{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15227echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15228cat >conftest.$ac_ext <<_ACEOF
15229/* confdefs.h. */
15230_ACEOF
15231cat confdefs.h >>conftest.$ac_ext
15232cat >>conftest.$ac_ext <<_ACEOF
15233/* end confdefs.h. */
15234$ac_includes_default
15235#include <$ac_header>
15236_ACEOF
15237rm -f conftest.$ac_objext
15238if { (ac_try="$ac_compile"
15239case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15242esac
15243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_compile") 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15252 { (case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15255esac
15256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_try") 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest.$ac_objext'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
15271 ac_header_compiler=yes
15272else
15273 echo "$as_me: failed program was:" >&5
15274sed 's/^/| /' conftest.$ac_ext >&5
15275
15276 ac_header_compiler=no
15277fi
15278
15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15281echo "${ECHO_T}$ac_header_compiler" >&6; }
15282
15283# Is the header present?
15284{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15286cat >conftest.$ac_ext <<_ACEOF
15287/* confdefs.h. */
15288_ACEOF
15289cat confdefs.h >>conftest.$ac_ext
15290cat >>conftest.$ac_ext <<_ACEOF
15291/* end confdefs.h. */
15292#include <$ac_header>
15293_ACEOF
15294if { (ac_try="$ac_cpp conftest.$ac_ext"
15295case "(($ac_try" in
15296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15298esac
15299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15301 ac_status=$?
15302 grep -v '^ *+' conftest.er1 >conftest.err
15303 rm -f conftest.er1
15304 cat conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } >/dev/null; then
15307 if test -s conftest.err; then
15308 ac_cpp_err=$ac_c_preproc_warn_flag
15309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15310 else
15311 ac_cpp_err=
15312 fi
15313else
15314 ac_cpp_err=yes
15315fi
15316if test -z "$ac_cpp_err"; then
15317 ac_header_preproc=yes
15318else
15319 echo "$as_me: failed program was:" >&5
15320sed 's/^/| /' conftest.$ac_ext >&5
15321
15322 ac_header_preproc=no
15323fi
15324
15325rm -f conftest.err conftest.$ac_ext
15326{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15327echo "${ECHO_T}$ac_header_preproc" >&6; }
15328
15329# So? What about this header?
15330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15331 yes:no: )
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15333echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15335echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15336 ac_header_preproc=yes
15337 ;;
15338 no:yes:* )
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15340echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15342echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15344echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15346echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15350echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15351 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015352## ------------------------------------ ##
15353## Report this to http://llvm.org/bugs/ ##
15354## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015355_ASBOX
15356 ) | sed "s/^/$as_me: WARNING: /" >&2
15357 ;;
15358esac
15359{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15363else
15364 eval "$as_ac_Header=\$ac_header_preproc"
15365fi
15366ac_res=`eval echo '${'$as_ac_Header'}'`
15367 { echo "$as_me:$LINENO: result: $ac_res" >&5
15368echo "${ECHO_T}$ac_res" >&6; }
15369
15370fi
15371if test `eval echo '${'$as_ac_Header'}'` = yes; then
15372 cat >>confdefs.h <<_ACEOF
15373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15374_ACEOF
15375
15376fi
15377
15378done
15379
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015380
15381for ac_header in fenv.h
15382do
15383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15389fi
15390ac_res=`eval echo '${'$as_ac_Header'}'`
15391 { echo "$as_me:$LINENO: result: $ac_res" >&5
15392echo "${ECHO_T}$ac_res" >&6; }
15393else
15394 # Is the header compilable?
15395{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15397cat >conftest.$ac_ext <<_ACEOF
15398/* confdefs.h. */
15399_ACEOF
15400cat confdefs.h >>conftest.$ac_ext
15401cat >>conftest.$ac_ext <<_ACEOF
15402/* end confdefs.h. */
15403$ac_includes_default
15404#include <$ac_header>
15405_ACEOF
15406rm -f conftest.$ac_objext
15407if { (ac_try="$ac_compile"
15408case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15411esac
15412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_compile") 2>conftest.er1
15414 ac_status=$?
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421 { (case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15424esac
15425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_try") 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest.$ac_objext'
15431 { (case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434esac
15435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_try") 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 ac_header_compiler=yes
15441else
15442 echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5
15444
15445 ac_header_compiler=no
15446fi
15447
15448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15450echo "${ECHO_T}$ac_header_compiler" >&6; }
15451
15452# Is the header present?
15453{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15455cat >conftest.$ac_ext <<_ACEOF
15456/* confdefs.h. */
15457_ACEOF
15458cat confdefs.h >>conftest.$ac_ext
15459cat >>conftest.$ac_ext <<_ACEOF
15460/* end confdefs.h. */
15461#include <$ac_header>
15462_ACEOF
15463if { (ac_try="$ac_cpp conftest.$ac_ext"
15464case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15467esac
15468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15470 ac_status=$?
15471 grep -v '^ *+' conftest.er1 >conftest.err
15472 rm -f conftest.er1
15473 cat conftest.err >&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } >/dev/null; then
15476 if test -s conftest.err; then
15477 ac_cpp_err=$ac_c_preproc_warn_flag
15478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15479 else
15480 ac_cpp_err=
15481 fi
15482else
15483 ac_cpp_err=yes
15484fi
15485if test -z "$ac_cpp_err"; then
15486 ac_header_preproc=yes
15487else
15488 echo "$as_me: failed program was:" >&5
15489sed 's/^/| /' conftest.$ac_ext >&5
15490
15491 ac_header_preproc=no
15492fi
15493
15494rm -f conftest.err conftest.$ac_ext
15495{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15496echo "${ECHO_T}$ac_header_preproc" >&6; }
15497
15498# So? What about this header?
15499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15500 yes:no: )
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15505 ac_header_preproc=yes
15506 ;;
15507 no:yes:* )
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15511echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15515echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15520 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015521## ------------------------------------ ##
15522## Report this to http://llvm.org/bugs/ ##
15523## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015524_ASBOX
15525 ) | sed "s/^/$as_me: WARNING: /" >&2
15526 ;;
15527esac
15528{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15532else
15533 eval "$as_ac_Header=\$ac_header_preproc"
15534fi
15535ac_res=`eval echo '${'$as_ac_Header'}'`
15536 { echo "$as_me:$LINENO: result: $ac_res" >&5
15537echo "${ECHO_T}$ac_res" >&6; }
15538
15539fi
15540if test `eval echo '${'$as_ac_Header'}'` = yes; then
15541 cat >>confdefs.h <<_ACEOF
15542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15543_ACEOF
15544
15545fi
15546
15547done
15548
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015549if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015550
15551for ac_header in pthread.h
15552do
15553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559fi
15560ac_res=`eval echo '${'$as_ac_Header'}'`
15561 { echo "$as_me:$LINENO: result: $ac_res" >&5
15562echo "${ECHO_T}$ac_res" >&6; }
15563else
15564 # Is the header compilable?
15565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15567cat >conftest.$ac_ext <<_ACEOF
15568/* confdefs.h. */
15569_ACEOF
15570cat confdefs.h >>conftest.$ac_ext
15571cat >>conftest.$ac_ext <<_ACEOF
15572/* end confdefs.h. */
15573$ac_includes_default
15574#include <$ac_header>
15575_ACEOF
15576rm -f conftest.$ac_objext
15577if { (ac_try="$ac_compile"
15578case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15581esac
15582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_compile") 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } &&
15590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15591 { (case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15594esac
15595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_try") 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; } &&
15600 { ac_try='test -s conftest.$ac_objext'
15601 { (case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15604esac
15605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_try") 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_header_compiler=yes
15611else
15612 echo "$as_me: failed program was:" >&5
15613sed 's/^/| /' conftest.$ac_ext >&5
15614
15615 ac_header_compiler=no
15616fi
15617
15618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15619{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15620echo "${ECHO_T}$ac_header_compiler" >&6; }
15621
15622# Is the header present?
15623{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15625cat >conftest.$ac_ext <<_ACEOF
15626/* confdefs.h. */
15627_ACEOF
15628cat confdefs.h >>conftest.$ac_ext
15629cat >>conftest.$ac_ext <<_ACEOF
15630/* end confdefs.h. */
15631#include <$ac_header>
15632_ACEOF
15633if { (ac_try="$ac_cpp conftest.$ac_ext"
15634case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15637esac
15638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15640 ac_status=$?
15641 grep -v '^ *+' conftest.er1 >conftest.err
15642 rm -f conftest.er1
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } >/dev/null; then
15646 if test -s conftest.err; then
15647 ac_cpp_err=$ac_c_preproc_warn_flag
15648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15649 else
15650 ac_cpp_err=
15651 fi
15652else
15653 ac_cpp_err=yes
15654fi
15655if test -z "$ac_cpp_err"; then
15656 ac_header_preproc=yes
15657else
15658 echo "$as_me: failed program was:" >&5
15659sed 's/^/| /' conftest.$ac_ext >&5
15660
15661 ac_header_preproc=no
15662fi
15663
15664rm -f conftest.err conftest.$ac_ext
15665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15666echo "${ECHO_T}$ac_header_preproc" >&6; }
15667
15668# So? What about this header?
15669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15670 yes:no: )
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15675 ac_header_preproc=yes
15676 ;;
15677 no:yes:* )
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15690 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015691## ------------------------------------ ##
15692## Report this to http://llvm.org/bugs/ ##
15693## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015694_ASBOX
15695 ) | sed "s/^/$as_me: WARNING: /" >&2
15696 ;;
15697esac
15698{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15702else
15703 eval "$as_ac_Header=\$ac_header_preproc"
15704fi
15705ac_res=`eval echo '${'$as_ac_Header'}'`
15706 { echo "$as_me:$LINENO: result: $ac_res" >&5
15707echo "${ECHO_T}$ac_res" >&6; }
15708
15709fi
15710if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015711 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015713_ACEOF
15714 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015715
15716else
15717 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015718
15719fi
15720
Reid Spencerbe3e4192007-08-17 05:45:26 +000015721done
Reid Spencer1000b732006-12-01 00:37:14 +000015722
15723else
15724 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015725
15726fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015727
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015728if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015729
15730
15731for ac_header in ffi.h ffi/ffi.h
15732do
15733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739fi
15740ac_res=`eval echo '${'$as_ac_Header'}'`
15741 { echo "$as_me:$LINENO: result: $ac_res" >&5
15742echo "${ECHO_T}$ac_res" >&6; }
15743else
15744 # Is the header compilable?
15745{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15747cat >conftest.$ac_ext <<_ACEOF
15748/* confdefs.h. */
15749_ACEOF
15750cat confdefs.h >>conftest.$ac_ext
15751cat >>conftest.$ac_ext <<_ACEOF
15752/* end confdefs.h. */
15753$ac_includes_default
15754#include <$ac_header>
15755_ACEOF
15756rm -f conftest.$ac_objext
15757if { (ac_try="$ac_compile"
15758case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15761esac
15762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_compile") 2>conftest.er1
15764 ac_status=$?
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771 { (case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15774esac
15775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_try") 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; } &&
15780 { ac_try='test -s conftest.$ac_objext'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15784esac
15785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_header_compiler=yes
15791else
15792 echo "$as_me: failed program was:" >&5
15793sed 's/^/| /' conftest.$ac_ext >&5
15794
15795 ac_header_compiler=no
15796fi
15797
15798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800echo "${ECHO_T}$ac_header_compiler" >&6; }
15801
15802# Is the header present?
15803{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15805cat >conftest.$ac_ext <<_ACEOF
15806/* confdefs.h. */
15807_ACEOF
15808cat confdefs.h >>conftest.$ac_ext
15809cat >>conftest.$ac_ext <<_ACEOF
15810/* end confdefs.h. */
15811#include <$ac_header>
15812_ACEOF
15813if { (ac_try="$ac_cpp conftest.$ac_ext"
15814case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15817esac
15818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15820 ac_status=$?
15821 grep -v '^ *+' conftest.er1 >conftest.err
15822 rm -f conftest.er1
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } >/dev/null; then
15826 if test -s conftest.err; then
15827 ac_cpp_err=$ac_c_preproc_warn_flag
15828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15829 else
15830 ac_cpp_err=
15831 fi
15832else
15833 ac_cpp_err=yes
15834fi
15835if test -z "$ac_cpp_err"; then
15836 ac_header_preproc=yes
15837else
15838 echo "$as_me: failed program was:" >&5
15839sed 's/^/| /' conftest.$ac_ext >&5
15840
15841 ac_header_preproc=no
15842fi
15843
15844rm -f conftest.err conftest.$ac_ext
15845{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846echo "${ECHO_T}$ac_header_preproc" >&6; }
15847
15848# So? What about this header?
15849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15850 yes:no: )
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855 ac_header_preproc=yes
15856 ;;
15857 no:yes:* )
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15870 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015871## ------------------------------------ ##
15872## Report this to http://llvm.org/bugs/ ##
15873## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015874_ASBOX
15875 ) | sed "s/^/$as_me: WARNING: /" >&2
15876 ;;
15877esac
15878{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882else
15883 eval "$as_ac_Header=\$ac_header_preproc"
15884fi
15885ac_res=`eval echo '${'$as_ac_Header'}'`
15886 { echo "$as_me:$LINENO: result: $ac_res" >&5
15887echo "${ECHO_T}$ac_res" >&6; }
15888
15889fi
15890if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015891 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015893_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015894
15895fi
15896
15897done
15898
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015899fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015900
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015901
Eric Christopher654dee42010-06-22 21:01:04 +000015902for ac_header in CrashReporterClient.h
15903do
15904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910fi
15911ac_res=`eval echo '${'$as_ac_Header'}'`
15912 { echo "$as_me:$LINENO: result: $ac_res" >&5
15913echo "${ECHO_T}$ac_res" >&6; }
15914else
15915 # Is the header compilable?
15916{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15918cat >conftest.$ac_ext <<_ACEOF
15919/* confdefs.h. */
15920_ACEOF
15921cat confdefs.h >>conftest.$ac_ext
15922cat >>conftest.$ac_ext <<_ACEOF
15923/* end confdefs.h. */
15924$ac_includes_default
15925#include <$ac_header>
15926_ACEOF
15927rm -f conftest.$ac_objext
15928if { (ac_try="$ac_compile"
15929case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932esac
15933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_compile") 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15942 { (case "(($ac_try" in
15943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944 *) ac_try_echo=$ac_try;;
15945esac
15946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15947 (eval "$ac_try") 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; } &&
15951 { ac_try='test -s conftest.$ac_objext'
15952 { (case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15955esac
15956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_try") 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 ac_header_compiler=yes
15962else
15963 echo "$as_me: failed program was:" >&5
15964sed 's/^/| /' conftest.$ac_ext >&5
15965
15966 ac_header_compiler=no
15967fi
15968
15969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15971echo "${ECHO_T}$ac_header_compiler" >&6; }
15972
15973# Is the header present?
15974{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15976cat >conftest.$ac_ext <<_ACEOF
15977/* confdefs.h. */
15978_ACEOF
15979cat confdefs.h >>conftest.$ac_ext
15980cat >>conftest.$ac_ext <<_ACEOF
15981/* end confdefs.h. */
15982#include <$ac_header>
15983_ACEOF
15984if { (ac_try="$ac_cpp conftest.$ac_ext"
15985case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15988esac
15989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15991 ac_status=$?
15992 grep -v '^ *+' conftest.er1 >conftest.err
15993 rm -f conftest.er1
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } >/dev/null; then
15997 if test -s conftest.err; then
15998 ac_cpp_err=$ac_c_preproc_warn_flag
15999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16000 else
16001 ac_cpp_err=
16002 fi
16003else
16004 ac_cpp_err=yes
16005fi
16006if test -z "$ac_cpp_err"; then
16007 ac_header_preproc=yes
16008else
16009 echo "$as_me: failed program was:" >&5
16010sed 's/^/| /' conftest.$ac_ext >&5
16011
16012 ac_header_preproc=no
16013fi
16014
16015rm -f conftest.err conftest.$ac_ext
16016{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16017echo "${ECHO_T}$ac_header_preproc" >&6; }
16018
16019# So? What about this header?
16020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16021 yes:no: )
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16023echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16025echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16026 ac_header_preproc=yes
16027 ;;
16028 no:yes:* )
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16030echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16032echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16034echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16036echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16040echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16041 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016042## ------------------------------------ ##
16043## Report this to http://llvm.org/bugs/ ##
16044## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016045_ASBOX
16046 ) | sed "s/^/$as_me: WARNING: /" >&2
16047 ;;
16048esac
16049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16053else
16054 eval "$as_ac_Header=\$ac_header_preproc"
16055fi
16056ac_res=`eval echo '${'$as_ac_Header'}'`
16057 { echo "$as_me:$LINENO: result: $ac_res" >&5
16058echo "${ECHO_T}$ac_res" >&6; }
16059
16060fi
16061if test `eval echo '${'$as_ac_Header'}'` = yes; then
16062 cat >>confdefs.h <<_ACEOF
16063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16064_ACEOF
16065
16066fi
16067
16068done
16069
16070
Eric Christopher51e57132010-12-07 02:05:42 +000016071{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16072echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016073cat >conftest.$ac_ext <<_ACEOF
16074/* confdefs.h. */
16075_ACEOF
16076cat confdefs.h >>conftest.$ac_ext
16077cat >>conftest.$ac_ext <<_ACEOF
16078/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016079extern const char *__crashreporter_info__;
16080 int main() {
16081 __crashreporter_info__ = "test";
16082 return 0;
16083 }
Eric Christopher481d4022010-12-03 07:45:22 +000016084
Eric Christopher481d4022010-12-03 07:45:22 +000016085_ACEOF
16086rm -f conftest.$ac_objext conftest$ac_exeext
16087if { (ac_try="$ac_link"
16088case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16091esac
16092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_link") 2>conftest.er1
16094 ac_status=$?
16095 grep -v '^ *+' conftest.er1 >conftest.err
16096 rm -f conftest.er1
16097 cat conftest.err >&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16104esac
16105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest$ac_exeext'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114esac
16115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016120 { echo "$as_me:$LINENO: result: yes" >&5
16121echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016122
16123cat >>confdefs.h <<\_ACEOF
16124#define HAVE_CRASHREPORTER_INFO 1
16125_ACEOF
16126
Eric Christopher51e57132010-12-07 02:05:42 +000016127else
16128 echo "$as_me: failed program was:" >&5
16129sed 's/^/| /' conftest.$ac_ext >&5
16130
16131 { echo "$as_me:$LINENO: result: no" >&5
16132echo "${ECHO_T}no" >&6; }
16133
16134cat >>confdefs.h <<\_ACEOF
16135#define HAVE_CRASHREPORTER_INFO 0
16136_ACEOF
16137
Eric Christopher481d4022010-12-03 07:45:22 +000016138fi
Eric Christopher654dee42010-06-22 21:01:04 +000016139
Eric Christopher51e57132010-12-07 02:05:42 +000016140rm -f core conftest.err conftest.$ac_objext \
16141 conftest$ac_exeext conftest.$ac_ext
16142
16143
Reid Spencer8085cff2005-01-16 02:58:39 +000016144
Torok Edwin871384f2010-01-26 08:50:50 +000016145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016146 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16147echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16148if test "${ac_cv_huge_val_sanity+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016150else
16151
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016152 ac_ext=cpp
16153ac_cpp='$CXXCPP $CPPFLAGS'
16154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016157
Eric Christopherc7718502010-03-02 05:06:54 +000016158 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016159 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016160 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016161 ac_cv_huge_val_sanity=yes
16162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016163 cat >conftest.$ac_ext <<_ACEOF
16164/* confdefs.h. */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016168/* end confdefs.h. */
16169#include <math.h>
16170int
16171main ()
16172{
16173double x = HUGE_VAL; return x != x;
16174 ;
16175 return 0;
16176}
16177_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016178rm -f conftest$ac_exeext
16179if { (ac_try="$ac_link"
16180case "(($ac_try" in
16181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182 *) ac_try_echo=$ac_try;;
16183esac
16184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185 (eval "$ac_link") 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16189 { (case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16192esac
16193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_try") 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016198 ac_cv_huge_val_sanity=yes
16199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016200 echo "$as_me: program exited with status $ac_status" >&5
16201echo "$as_me: failed program was:" >&5
16202sed 's/^/| /' conftest.$ac_ext >&5
16203
16204( exit $ac_status )
16205ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016206fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016207rm -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 +000016208fi
16209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016210
Eric Christopherc7718502010-03-02 05:06:54 +000016211 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016212 ac_ext=c
16213ac_cpp='$CPP $CPPFLAGS'
16214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16216ac_compiler_gnu=$ac_cv_c_compiler_gnu
16217
16218
16219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016220{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16221echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016222 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16223
16224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016225{ echo "$as_me:$LINENO: checking for pid_t" >&5
16226echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16227if test "${ac_cv_type_pid_t+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16229else
16230 cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236$ac_includes_default
16237typedef pid_t ac__type_new_;
16238int
16239main ()
16240{
16241if ((ac__type_new_ *) 0)
16242 return 0;
16243if (sizeof (ac__type_new_))
16244 return 0;
16245 ;
16246 return 0;
16247}
16248_ACEOF
16249rm -f conftest.$ac_objext
16250if { (ac_try="$ac_compile"
16251case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254esac
16255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_compile") 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264 { (case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267esac
16268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_try") 2>&5
16270 ac_status=$?
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; } &&
16273 { ac_try='test -s conftest.$ac_objext'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277esac
16278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_type_pid_t=yes
16284else
16285 echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016288 ac_cv_type_pid_t=no
16289fi
16290
16291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292fi
16293{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16294echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16295if test $ac_cv_type_pid_t = yes; then
16296 :
John Criswell7a73b802003-06-30 21:59:07 +000016297else
16298
16299cat >>confdefs.h <<_ACEOF
16300#define pid_t int
16301_ACEOF
16302
16303fi
16304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016305{ echo "$as_me:$LINENO: checking for size_t" >&5
16306echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16307if test "${ac_cv_type_size_t+set}" = set; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16309else
16310 cat >conftest.$ac_ext <<_ACEOF
16311/* confdefs.h. */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
16315/* end confdefs.h. */
16316$ac_includes_default
16317typedef size_t ac__type_new_;
16318int
16319main ()
16320{
16321if ((ac__type_new_ *) 0)
16322 return 0;
16323if (sizeof (ac__type_new_))
16324 return 0;
16325 ;
16326 return 0;
16327}
16328_ACEOF
16329rm -f conftest.$ac_objext
16330if { (ac_try="$ac_compile"
16331case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16334esac
16335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_compile") 2>conftest.er1
16337 ac_status=$?
16338 grep -v '^ *+' conftest.er1 >conftest.err
16339 rm -f conftest.er1
16340 cat conftest.err >&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
16343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16344 { (case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16347esac
16348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_try") 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; } &&
16353 { ac_try='test -s conftest.$ac_objext'
16354 { (case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357esac
16358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_try") 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_cv_type_size_t=yes
16364else
16365 echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016368 ac_cv_type_size_t=no
16369fi
16370
16371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16372fi
16373{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16374echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16375if test $ac_cv_type_size_t = yes; then
16376 :
John Criswell7a73b802003-06-30 21:59:07 +000016377else
16378
16379cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016380#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016381_ACEOF
16382
16383fi
16384
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016385
16386cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016387#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016388_ACEOF
16389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016390{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16391echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16392if test "${ac_cv_struct_tm+set}" = set; then
16393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016395 cat >conftest.$ac_ext <<_ACEOF
16396/* confdefs.h. */
16397_ACEOF
16398cat confdefs.h >>conftest.$ac_ext
16399cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016400/* end confdefs.h. */
16401#include <sys/types.h>
16402#include <time.h>
16403
16404int
16405main ()
16406{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016407struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016408 ;
16409 return 0;
16410}
16411_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016412rm -f conftest.$ac_objext
16413if { (ac_try="$ac_compile"
16414case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16417esac
16418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_compile") 2>conftest.er1
16420 ac_status=$?
16421 grep -v '^ *+' conftest.er1 >conftest.err
16422 rm -f conftest.er1
16423 cat conftest.err >&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } &&
16426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16427 { (case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16430esac
16431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_try") 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; } &&
16436 { ac_try='test -s conftest.$ac_objext'
16437 { (case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16440esac
16441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_try") 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016446 ac_cv_struct_tm=time.h
16447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016448 echo "$as_me: failed program was:" >&5
16449sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016453
Reid Spencera773bd52006-08-04 18:18:08 +000016454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016455fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016456{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16457echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016458if test $ac_cv_struct_tm = sys/time.h; then
16459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016460cat >>confdefs.h <<\_ACEOF
16461#define TM_IN_SYS_TIME 1
16462_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016463
16464fi
16465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016466{ echo "$as_me:$LINENO: checking for int64_t" >&5
16467echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16468if test "${ac_cv_type_int64_t+set}" = set; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16470else
16471 cat >conftest.$ac_ext <<_ACEOF
16472/* confdefs.h. */
16473_ACEOF
16474cat confdefs.h >>conftest.$ac_ext
16475cat >>conftest.$ac_ext <<_ACEOF
16476/* end confdefs.h. */
16477$ac_includes_default
16478typedef int64_t ac__type_new_;
16479int
16480main ()
16481{
16482if ((ac__type_new_ *) 0)
16483 return 0;
16484if (sizeof (ac__type_new_))
16485 return 0;
16486 ;
16487 return 0;
16488}
16489_ACEOF
16490rm -f conftest.$ac_objext
16491if { (ac_try="$ac_compile"
16492case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16495esac
16496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_compile") 2>conftest.er1
16498 ac_status=$?
16499 grep -v '^ *+' conftest.er1 >conftest.err
16500 rm -f conftest.er1
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505 { (case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16508esac
16509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_try") 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16518esac
16519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_cv_type_int64_t=yes
16525else
16526 echo "$as_me: failed program was:" >&5
16527sed 's/^/| /' conftest.$ac_ext >&5
16528
16529 ac_cv_type_int64_t=no
16530fi
16531
16532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533fi
16534{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16535echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16536if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016537
16538cat >>confdefs.h <<_ACEOF
16539#define HAVE_INT64_T 1
16540_ACEOF
16541
16542
16543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016544 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16545echo "$as_me: error: Type int64_t required but not found" >&2;}
16546 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016547fi
16548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016549{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16550echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16551if test "${ac_cv_type_uint64_t+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16553else
16554 cat >conftest.$ac_ext <<_ACEOF
16555/* confdefs.h. */
16556_ACEOF
16557cat confdefs.h >>conftest.$ac_ext
16558cat >>conftest.$ac_ext <<_ACEOF
16559/* end confdefs.h. */
16560$ac_includes_default
16561typedef uint64_t ac__type_new_;
16562int
16563main ()
16564{
16565if ((ac__type_new_ *) 0)
16566 return 0;
16567if (sizeof (ac__type_new_))
16568 return 0;
16569 ;
16570 return 0;
16571}
16572_ACEOF
16573rm -f conftest.$ac_objext
16574if { (ac_try="$ac_compile"
16575case "(($ac_try" in
16576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16578esac
16579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580 (eval "$ac_compile") 2>conftest.er1
16581 ac_status=$?
16582 grep -v '^ *+' conftest.er1 >conftest.err
16583 rm -f conftest.er1
16584 cat conftest.err >&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } &&
16587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16588 { (case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16591esac
16592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_try") 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; } &&
16597 { ac_try='test -s conftest.$ac_objext'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16601esac
16602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_cv_type_uint64_t=yes
16608else
16609 echo "$as_me: failed program was:" >&5
16610sed 's/^/| /' conftest.$ac_ext >&5
16611
16612 ac_cv_type_uint64_t=no
16613fi
16614
16615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16616fi
16617{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16618echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16619if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016620
16621cat >>confdefs.h <<_ACEOF
16622#define HAVE_UINT64_T 1
16623_ACEOF
16624
16625
16626else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016627 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16628echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16629if test "${ac_cv_type_u_int64_t+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16631else
16632 cat >conftest.$ac_ext <<_ACEOF
16633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h. */
16638$ac_includes_default
16639typedef u_int64_t ac__type_new_;
16640int
16641main ()
16642{
16643if ((ac__type_new_ *) 0)
16644 return 0;
16645if (sizeof (ac__type_new_))
16646 return 0;
16647 ;
16648 return 0;
16649}
16650_ACEOF
16651rm -f conftest.$ac_objext
16652if { (ac_try="$ac_compile"
16653case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16656esac
16657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_compile") 2>conftest.er1
16659 ac_status=$?
16660 grep -v '^ *+' conftest.er1 >conftest.err
16661 rm -f conftest.er1
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16666 { (case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16669esac
16670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_try") 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; } &&
16675 { ac_try='test -s conftest.$ac_objext'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679esac
16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_cv_type_u_int64_t=yes
16686else
16687 echo "$as_me: failed program was:" >&5
16688sed 's/^/| /' conftest.$ac_ext >&5
16689
16690 ac_cv_type_u_int64_t=no
16691fi
16692
16693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16694fi
16695{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16696echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16697if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016698
16699cat >>confdefs.h <<_ACEOF
16700#define HAVE_U_INT64_T 1
16701_ACEOF
16702
16703
Misha Brukmanceca9042004-09-02 23:02:30 +000016704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016705 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16706echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16707 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016708fi
16709
John Criswell679ff312004-09-02 18:44:44 +000016710fi
16711
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016712
16713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016714
16715
16716
16717
16718
16719
16720
Reid Spencerdf3be822006-01-23 08:15:53 +000016721for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016722do
16723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16724{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16728else
16729 cat >conftest.$ac_ext <<_ACEOF
16730/* confdefs.h. */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h. */
16735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16737#define $ac_func innocuous_$ac_func
16738
16739/* System header to define __stub macros and hopefully few prototypes,
16740 which can conflict with char $ac_func (); below.
16741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16742 <limits.h> exists even on freestanding compilers. */
16743
16744#ifdef __STDC__
16745# include <limits.h>
16746#else
16747# include <assert.h>
16748#endif
16749
16750#undef $ac_func
16751
16752/* Override any GCC internal prototype to avoid an error.
16753 Use char because int might match the return type of a GCC
16754 builtin and then its argument prototype would still apply. */
16755#ifdef __cplusplus
16756extern "C"
16757#endif
16758char $ac_func ();
16759/* The GNU C library defines this for functions which it implements
16760 to always fail with ENOSYS. Some functions are actually named
16761 something starting with __ and the normal name is an alias. */
16762#if defined __stub_$ac_func || defined __stub___$ac_func
16763choke me
16764#endif
16765
16766int
16767main ()
16768{
16769return $ac_func ();
16770 ;
16771 return 0;
16772}
16773_ACEOF
16774rm -f conftest.$ac_objext conftest$ac_exeext
16775if { (ac_try="$ac_link"
16776case "(($ac_try" in
16777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778 *) ac_try_echo=$ac_try;;
16779esac
16780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781 (eval "$ac_link") 2>conftest.er1
16782 ac_status=$?
16783 grep -v '^ *+' conftest.er1 >conftest.err
16784 rm -f conftest.er1
16785 cat conftest.err >&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
16788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16789 { (case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16792esac
16793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_try") 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; } &&
16798 { ac_try='test -s conftest$ac_exeext'
16799 { (case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16802esac
16803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_try") 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 eval "$as_ac_var=yes"
16809else
16810 echo "$as_me: failed program was:" >&5
16811sed 's/^/| /' conftest.$ac_ext >&5
16812
16813 eval "$as_ac_var=no"
16814fi
16815
16816rm -f core conftest.err conftest.$ac_objext \
16817 conftest$ac_exeext conftest.$ac_ext
16818fi
16819ac_res=`eval echo '${'$as_ac_var'}'`
16820 { echo "$as_me:$LINENO: result: $ac_res" >&5
16821echo "${ECHO_T}$ac_res" >&6; }
16822if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016823 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016825_ACEOF
16826
16827fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016828done
John Criswell7a73b802003-06-30 21:59:07 +000016829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016830
16831
16832
16833
Reid Spencer96cf5872007-07-13 10:05:30 +000016834for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016835do
16836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16837{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16841else
16842 cat >conftest.$ac_ext <<_ACEOF
16843/* confdefs.h. */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
16847/* end confdefs.h. */
16848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16850#define $ac_func innocuous_$ac_func
16851
16852/* System header to define __stub macros and hopefully few prototypes,
16853 which can conflict with char $ac_func (); below.
16854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16855 <limits.h> exists even on freestanding compilers. */
16856
16857#ifdef __STDC__
16858# include <limits.h>
16859#else
16860# include <assert.h>
16861#endif
16862
16863#undef $ac_func
16864
16865/* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
16868#ifdef __cplusplus
16869extern "C"
16870#endif
16871char $ac_func ();
16872/* The GNU C library defines this for functions which it implements
16873 to always fail with ENOSYS. Some functions are actually named
16874 something starting with __ and the normal name is an alias. */
16875#if defined __stub_$ac_func || defined __stub___$ac_func
16876choke me
16877#endif
16878
16879int
16880main ()
16881{
16882return $ac_func ();
16883 ;
16884 return 0;
16885}
16886_ACEOF
16887rm -f conftest.$ac_objext conftest$ac_exeext
16888if { (ac_try="$ac_link"
16889case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16892esac
16893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_link") 2>conftest.er1
16895 ac_status=$?
16896 grep -v '^ *+' conftest.er1 >conftest.err
16897 rm -f conftest.er1
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16902 { (case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_try") 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest$ac_exeext'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 eval "$as_ac_var=yes"
16922else
16923 echo "$as_me: failed program was:" >&5
16924sed 's/^/| /' conftest.$ac_ext >&5
16925
16926 eval "$as_ac_var=no"
16927fi
16928
16929rm -f core conftest.err conftest.$ac_objext \
16930 conftest$ac_exeext conftest.$ac_ext
16931fi
16932ac_res=`eval echo '${'$as_ac_var'}'`
16933 { echo "$as_me:$LINENO: result: $ac_res" >&5
16934echo "${ECHO_T}$ac_res" >&6; }
16935if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016936 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016938_ACEOF
16939
16940fi
16941done
16942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016943
16944
16945
16946
16947
Reid Spencerb90645c2007-02-16 19:17:20 +000016948for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016949do
16950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16954 echo $ECHO_N "(cached) $ECHO_C" >&6
16955else
16956 cat >conftest.$ac_ext <<_ACEOF
16957/* confdefs.h. */
16958_ACEOF
16959cat confdefs.h >>conftest.$ac_ext
16960cat >>conftest.$ac_ext <<_ACEOF
16961/* end confdefs.h. */
16962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16964#define $ac_func innocuous_$ac_func
16965
16966/* System header to define __stub macros and hopefully few prototypes,
16967 which can conflict with char $ac_func (); below.
16968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16969 <limits.h> exists even on freestanding compilers. */
16970
16971#ifdef __STDC__
16972# include <limits.h>
16973#else
16974# include <assert.h>
16975#endif
16976
16977#undef $ac_func
16978
16979/* Override any GCC internal prototype to avoid an error.
16980 Use char because int might match the return type of a GCC
16981 builtin and then its argument prototype would still apply. */
16982#ifdef __cplusplus
16983extern "C"
16984#endif
16985char $ac_func ();
16986/* The GNU C library defines this for functions which it implements
16987 to always fail with ENOSYS. Some functions are actually named
16988 something starting with __ and the normal name is an alias. */
16989#if defined __stub_$ac_func || defined __stub___$ac_func
16990choke me
16991#endif
16992
16993int
16994main ()
16995{
16996return $ac_func ();
16997 ;
16998 return 0;
16999}
17000_ACEOF
17001rm -f conftest.$ac_objext conftest$ac_exeext
17002if { (ac_try="$ac_link"
17003case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17006esac
17007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_link") 2>conftest.er1
17009 ac_status=$?
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17019esac
17020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_try") 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029esac
17030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 eval "$as_ac_var=yes"
17036else
17037 echo "$as_me: failed program was:" >&5
17038sed 's/^/| /' conftest.$ac_ext >&5
17039
17040 eval "$as_ac_var=no"
17041fi
17042
17043rm -f core conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext conftest.$ac_ext
17045fi
17046ac_res=`eval echo '${'$as_ac_var'}'`
17047 { echo "$as_me:$LINENO: result: $ac_res" >&5
17048echo "${ECHO_T}$ac_res" >&6; }
17049if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017050 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017052_ACEOF
17053
17054fi
17055done
17056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017057
17058
17059
Reid Spencerb90645c2007-02-16 19:17:20 +000017060for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017061do
17062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17063{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17065if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067else
17068 cat >conftest.$ac_ext <<_ACEOF
17069/* confdefs.h. */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
17073/* end confdefs.h. */
17074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17076#define $ac_func innocuous_$ac_func
17077
17078/* System header to define __stub macros and hopefully few prototypes,
17079 which can conflict with char $ac_func (); below.
17080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17081 <limits.h> exists even on freestanding compilers. */
17082
17083#ifdef __STDC__
17084# include <limits.h>
17085#else
17086# include <assert.h>
17087#endif
17088
17089#undef $ac_func
17090
17091/* Override any GCC internal prototype to avoid an error.
17092 Use char because int might match the return type of a GCC
17093 builtin and then its argument prototype would still apply. */
17094#ifdef __cplusplus
17095extern "C"
17096#endif
17097char $ac_func ();
17098/* The GNU C library defines this for functions which it implements
17099 to always fail with ENOSYS. Some functions are actually named
17100 something starting with __ and the normal name is an alias. */
17101#if defined __stub_$ac_func || defined __stub___$ac_func
17102choke me
17103#endif
17104
17105int
17106main ()
17107{
17108return $ac_func ();
17109 ;
17110 return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext conftest$ac_exeext
17114if { (ac_try="$ac_link"
17115case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118esac
17119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_link") 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128 { (case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17131esac
17132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_try") 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 eval "$as_ac_var=yes"
17148else
17149 echo "$as_me: failed program was:" >&5
17150sed 's/^/| /' conftest.$ac_ext >&5
17151
17152 eval "$as_ac_var=no"
17153fi
17154
17155rm -f core conftest.err conftest.$ac_objext \
17156 conftest$ac_exeext conftest.$ac_ext
17157fi
17158ac_res=`eval echo '${'$as_ac_var'}'`
17159 { echo "$as_me:$LINENO: result: $ac_res" >&5
17160echo "${ECHO_T}$ac_res" >&6; }
17161if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017162 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017164_ACEOF
17165
17166fi
17167done
17168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017169
17170
17171
17172
17173
Eric Christophere4291822010-04-16 05:14:21 +000017174
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017175
17176for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017177do
17178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17179{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17181if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17183else
17184 cat >conftest.$ac_ext <<_ACEOF
17185/* confdefs.h. */
17186_ACEOF
17187cat confdefs.h >>conftest.$ac_ext
17188cat >>conftest.$ac_ext <<_ACEOF
17189/* end confdefs.h. */
17190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17192#define $ac_func innocuous_$ac_func
17193
17194/* System header to define __stub macros and hopefully few prototypes,
17195 which can conflict with char $ac_func (); below.
17196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197 <limits.h> exists even on freestanding compilers. */
17198
17199#ifdef __STDC__
17200# include <limits.h>
17201#else
17202# include <assert.h>
17203#endif
17204
17205#undef $ac_func
17206
17207/* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17210#ifdef __cplusplus
17211extern "C"
17212#endif
17213char $ac_func ();
17214/* The GNU C library defines this for functions which it implements
17215 to always fail with ENOSYS. Some functions are actually named
17216 something starting with __ and the normal name is an alias. */
17217#if defined __stub_$ac_func || defined __stub___$ac_func
17218choke me
17219#endif
17220
17221int
17222main ()
17223{
17224return $ac_func ();
17225 ;
17226 return 0;
17227}
17228_ACEOF
17229rm -f conftest.$ac_objext conftest$ac_exeext
17230if { (ac_try="$ac_link"
17231case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17234esac
17235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_link") 2>conftest.er1
17237 ac_status=$?
17238 grep -v '^ *+' conftest.er1 >conftest.err
17239 rm -f conftest.er1
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17247esac
17248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try='test -s conftest$ac_exeext'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257esac
17258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 eval "$as_ac_var=yes"
17264else
17265 echo "$as_me: failed program was:" >&5
17266sed 's/^/| /' conftest.$ac_ext >&5
17267
17268 eval "$as_ac_var=no"
17269fi
17270
17271rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273fi
17274ac_res=`eval echo '${'$as_ac_var'}'`
17275 { echo "$as_me:$LINENO: result: $ac_res" >&5
17276echo "${ECHO_T}$ac_res" >&6; }
17277if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017278 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017280_ACEOF
17281
17282fi
17283done
Reid Spencerdf3be822006-01-23 08:15:53 +000017284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017285
17286
17287
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017288for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017289do
17290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295else
17296 cat >conftest.$ac_ext <<_ACEOF
17297/* confdefs.h. */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h. */
17302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17304#define $ac_func innocuous_$ac_func
17305
17306/* System header to define __stub macros and hopefully few prototypes,
17307 which can conflict with char $ac_func (); below.
17308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17309 <limits.h> exists even on freestanding compilers. */
17310
17311#ifdef __STDC__
17312# include <limits.h>
17313#else
17314# include <assert.h>
17315#endif
17316
17317#undef $ac_func
17318
17319/* Override any GCC internal prototype to avoid an error.
17320 Use char because int might match the return type of a GCC
17321 builtin and then its argument prototype would still apply. */
17322#ifdef __cplusplus
17323extern "C"
17324#endif
17325char $ac_func ();
17326/* The GNU C library defines this for functions which it implements
17327 to always fail with ENOSYS. Some functions are actually named
17328 something starting with __ and the normal name is an alias. */
17329#if defined __stub_$ac_func || defined __stub___$ac_func
17330choke me
17331#endif
17332
17333int
17334main ()
17335{
17336return $ac_func ();
17337 ;
17338 return 0;
17339}
17340_ACEOF
17341rm -f conftest.$ac_objext conftest$ac_exeext
17342if { (ac_try="$ac_link"
17343case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17346esac
17347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_link") 2>conftest.er1
17349 ac_status=$?
17350 grep -v '^ *+' conftest.er1 >conftest.err
17351 rm -f conftest.er1
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17356 { (case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17359esac
17360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_try") 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest$ac_exeext'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369esac
17370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 eval "$as_ac_var=yes"
17376else
17377 echo "$as_me: failed program was:" >&5
17378sed 's/^/| /' conftest.$ac_ext >&5
17379
17380 eval "$as_ac_var=no"
17381fi
17382
17383rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
17385fi
17386ac_res=`eval echo '${'$as_ac_var'}'`
17387 { echo "$as_me:$LINENO: result: $ac_res" >&5
17388echo "${ECHO_T}$ac_res" >&6; }
17389if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017390 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017392_ACEOF
17393
17394fi
17395done
17396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017397
17398
17399
17400
Chris Lattner511f11d2005-11-14 07:25:50 +000017401for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017402do
17403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17404{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17406if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17408else
17409 cat >conftest.$ac_ext <<_ACEOF
17410/* confdefs.h. */
17411_ACEOF
17412cat confdefs.h >>conftest.$ac_ext
17413cat >>conftest.$ac_ext <<_ACEOF
17414/* end confdefs.h. */
17415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17417#define $ac_func innocuous_$ac_func
17418
17419/* System header to define __stub macros and hopefully few prototypes,
17420 which can conflict with char $ac_func (); below.
17421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17422 <limits.h> exists even on freestanding compilers. */
17423
17424#ifdef __STDC__
17425# include <limits.h>
17426#else
17427# include <assert.h>
17428#endif
17429
17430#undef $ac_func
17431
17432/* Override any GCC internal prototype to avoid an error.
17433 Use char because int might match the return type of a GCC
17434 builtin and then its argument prototype would still apply. */
17435#ifdef __cplusplus
17436extern "C"
17437#endif
17438char $ac_func ();
17439/* The GNU C library defines this for functions which it implements
17440 to always fail with ENOSYS. Some functions are actually named
17441 something starting with __ and the normal name is an alias. */
17442#if defined __stub_$ac_func || defined __stub___$ac_func
17443choke me
17444#endif
17445
17446int
17447main ()
17448{
17449return $ac_func ();
17450 ;
17451 return 0;
17452}
17453_ACEOF
17454rm -f conftest.$ac_objext conftest$ac_exeext
17455if { (ac_try="$ac_link"
17456case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459esac
17460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_link") 2>conftest.er1
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17469 { (case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17472esac
17473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 (eval "$ac_try") 2>&5
17475 ac_status=$?
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; } &&
17478 { ac_try='test -s conftest$ac_exeext'
17479 { (case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17482esac
17483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_try") 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 eval "$as_ac_var=yes"
17489else
17490 echo "$as_me: failed program was:" >&5
17491sed 's/^/| /' conftest.$ac_ext >&5
17492
17493 eval "$as_ac_var=no"
17494fi
17495
17496rm -f core conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17498fi
17499ac_res=`eval echo '${'$as_ac_var'}'`
17500 { echo "$as_me:$LINENO: result: $ac_res" >&5
17501echo "${ECHO_T}$ac_res" >&6; }
17502if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017503 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017505_ACEOF
17506
17507fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017508done
John Criswell7a73b802003-06-30 21:59:07 +000017509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017510
17511
17512
17513
Daniel Dunbar3e462932011-02-03 02:40:02 +000017514
17515for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017516do
17517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522else
17523 cat >conftest.$ac_ext <<_ACEOF
17524/* confdefs.h. */
17525_ACEOF
17526cat confdefs.h >>conftest.$ac_ext
17527cat >>conftest.$ac_ext <<_ACEOF
17528/* end confdefs.h. */
17529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17531#define $ac_func innocuous_$ac_func
17532
17533/* System header to define __stub macros and hopefully few prototypes,
17534 which can conflict with char $ac_func (); below.
17535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17536 <limits.h> exists even on freestanding compilers. */
17537
17538#ifdef __STDC__
17539# include <limits.h>
17540#else
17541# include <assert.h>
17542#endif
17543
17544#undef $ac_func
17545
17546/* Override any GCC internal prototype to avoid an error.
17547 Use char because int might match the return type of a GCC
17548 builtin and then its argument prototype would still apply. */
17549#ifdef __cplusplus
17550extern "C"
17551#endif
17552char $ac_func ();
17553/* The GNU C library defines this for functions which it implements
17554 to always fail with ENOSYS. Some functions are actually named
17555 something starting with __ and the normal name is an alias. */
17556#if defined __stub_$ac_func || defined __stub___$ac_func
17557choke me
17558#endif
17559
17560int
17561main ()
17562{
17563return $ac_func ();
17564 ;
17565 return 0;
17566}
17567_ACEOF
17568rm -f conftest.$ac_objext conftest$ac_exeext
17569if { (ac_try="$ac_link"
17570case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17573esac
17574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_link") 2>conftest.er1
17576 ac_status=$?
17577 grep -v '^ *+' conftest.er1 >conftest.err
17578 rm -f conftest.er1
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17583 { (case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17586esac
17587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_try") 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try='test -s conftest$ac_exeext'
17593 { (case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17596esac
17597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_try") 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 eval "$as_ac_var=yes"
17603else
17604 echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607 eval "$as_ac_var=no"
17608fi
17609
17610rm -f core conftest.err conftest.$ac_objext \
17611 conftest$ac_exeext conftest.$ac_ext
17612fi
17613ac_res=`eval echo '${'$as_ac_var'}'`
17614 { echo "$as_me:$LINENO: result: $ac_res" >&5
17615echo "${ECHO_T}$ac_res" >&6; }
17616if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017617 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017619_ACEOF
17620
17621fi
17622done
17623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017624{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17625echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17626if test "${llvm_cv_c_printf_a+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017628else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017629 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017630ac_cpp='$CPP $CPPFLAGS'
17631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17633ac_compiler_gnu=$ac_cv_c_compiler_gnu
17634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017635 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017636 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017638 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017640 /* confdefs.h. */
17641_ACEOF
17642cat confdefs.h >>conftest.$ac_ext
17643cat >>conftest.$ac_ext <<_ACEOF
17644/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017645
John Criswella0137d32003-10-13 16:22:01 +000017646#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017647#include <stdlib.h>
17648
John Criswella0137d32003-10-13 16:22:01 +000017649int
17650main ()
17651{
17652
Reid Spencer2706f8c2004-09-19 23:53:36 +000017653volatile double A, B;
17654char Buffer[100];
17655A = 1;
17656A /= 10.0;
17657sprintf(Buffer, "%a", A);
17658B = atof(Buffer);
17659if (A != B)
17660 return (1);
17661if (A != 0x1.999999999999ap-4)
17662 return (1);
17663return (0);
John Criswella0137d32003-10-13 16:22:01 +000017664 ;
17665 return 0;
17666}
17667_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017668rm -f conftest$ac_exeext
17669if { (ac_try="$ac_link"
17670case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17673esac
17674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_link") 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17679 { (case "(($ac_try" in
17680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681 *) ac_try_echo=$ac_try;;
17682esac
17683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_try") 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017688 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017690 echo "$as_me: program exited with status $ac_status" >&5
17691echo "$as_me: failed program was:" >&5
17692sed 's/^/| /' conftest.$ac_ext >&5
17693
17694( exit $ac_status )
17695llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017696fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017697rm -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 +000017698fi
Reid Spencera773bd52006-08-04 18:18:08 +000017699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017700
Reid Spencer2706f8c2004-09-19 23:53:36 +000017701 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017702ac_cpp='$CPP $CPPFLAGS'
17703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17705ac_compiler_gnu=$ac_cv_c_compiler_gnu
17706
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017707fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017708{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17709echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017710 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017712cat >>confdefs.h <<\_ACEOF
17713#define HAVE_PRINTF_A 1
17714_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017715
Reid Spencer2706f8c2004-09-19 23:53:36 +000017716 fi
John Criswella0137d32003-10-13 16:22:01 +000017717
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017719{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17720echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17721if test "${ac_cv_func_rand48+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017723else
Reid Spencera773bd52006-08-04 18:18:08 +000017724 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017725ac_cpp='$CXXCPP $CPPFLAGS'
17726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017730 cat >conftest.$ac_ext <<_ACEOF
17731/* confdefs.h. */
17732_ACEOF
17733cat confdefs.h >>conftest.$ac_ext
17734cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017735/* end confdefs.h. */
17736#include <stdlib.h>
17737int
17738main ()
17739{
17740srand48(0);lrand48();drand48();
17741 ;
17742 return 0;
17743}
17744_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017745rm -f conftest.$ac_objext
17746if { (ac_try="$ac_compile"
17747case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17750esac
17751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_compile") 2>conftest.er1
17753 ac_status=$?
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17760 { (case "(($ac_try" in
17761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762 *) ac_try_echo=$ac_try;;
17763esac
17764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765 (eval "$ac_try") 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest.$ac_objext'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773esac
17774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017779 ac_cv_func_rand48=yes
17780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017781 echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017786
Reid Spencera773bd52006-08-04 18:18:08 +000017787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017788 ac_ext=c
17789ac_cpp='$CPP $CPPFLAGS'
17790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17792ac_compiler_gnu=$ac_cv_c_compiler_gnu
17793
17794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017795{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17796echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017797
17798if test "$ac_cv_func_rand48" = "yes" ; then
17799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017800cat >>confdefs.h <<\_ACEOF
17801#define HAVE_RAND48 1
17802_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017803
17804fi
John Criswell0021c312004-02-13 21:57:29 +000017805
17806
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017807{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17808echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17809if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17811else
17812 cat >conftest.$ac_ext <<_ACEOF
17813/* confdefs.h. */
17814_ACEOF
17815cat confdefs.h >>conftest.$ac_ext
17816cat >>conftest.$ac_ext <<_ACEOF
17817/* end confdefs.h. */
17818$ac_includes_default
17819int
17820main ()
17821{
17822#ifndef strerror_s
17823 char *p = (char *) strerror_s;
17824 return !p;
17825#endif
17826
17827 ;
17828 return 0;
17829}
17830_ACEOF
17831rm -f conftest.$ac_objext
17832if { (ac_try="$ac_compile"
17833case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17836esac
17837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_compile") 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17849esac
17850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest.$ac_objext'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_cv_have_decl_strerror_s=yes
17866else
17867 echo "$as_me: failed program was:" >&5
17868sed 's/^/| /' conftest.$ac_ext >&5
17869
17870 ac_cv_have_decl_strerror_s=no
17871fi
17872
17873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874fi
17875{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17876echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17877if test $ac_cv_have_decl_strerror_s = yes; then
17878
17879cat >>confdefs.h <<_ACEOF
17880#define HAVE_DECL_STRERROR_S 1
17881_ACEOF
17882
17883
17884else
17885 cat >>confdefs.h <<_ACEOF
17886#define HAVE_DECL_STRERROR_S 0
17887_ACEOF
17888
17889
17890fi
17891
17892
17893
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017894if test "$llvm_cv_os_type" = "MingW" ; then
17895 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17896echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17897if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17899else
17900 ac_check_lib_save_LIBS=$LIBS
17901LIBS="-lgcc $LIBS"
17902cat >conftest.$ac_ext <<_ACEOF
17903/* confdefs.h. */
17904_ACEOF
17905cat confdefs.h >>conftest.$ac_ext
17906cat >>conftest.$ac_ext <<_ACEOF
17907/* end confdefs.h. */
17908
17909/* Override any GCC internal prototype to avoid an error.
17910 Use char because int might match the return type of a GCC
17911 builtin and then its argument prototype would still apply. */
17912#ifdef __cplusplus
17913extern "C"
17914#endif
17915char _alloca ();
17916int
17917main ()
17918{
17919return _alloca ();
17920 ;
17921 return 0;
17922}
17923_ACEOF
17924rm -f conftest.$ac_objext conftest$ac_exeext
17925if { (ac_try="$ac_link"
17926case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929esac
17930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_link") 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17939 { (case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17942esac
17943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_try") 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest$ac_exeext'
17949 { (case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17952esac
17953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_try") 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_cv_lib_gcc__alloca=yes
17959else
17960 echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963 ac_cv_lib_gcc__alloca=no
17964fi
17965
17966rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17968LIBS=$ac_check_lib_save_LIBS
17969fi
17970{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17971echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17972if test $ac_cv_lib_gcc__alloca = yes; then
17973
17974cat >>confdefs.h <<\_ACEOF
17975#define HAVE__ALLOCA 1
17976_ACEOF
17977
17978fi
17979
17980 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17981echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17982if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17984else
17985 ac_check_lib_save_LIBS=$LIBS
17986LIBS="-lgcc $LIBS"
17987cat >conftest.$ac_ext <<_ACEOF
17988/* confdefs.h. */
17989_ACEOF
17990cat confdefs.h >>conftest.$ac_ext
17991cat >>conftest.$ac_ext <<_ACEOF
17992/* end confdefs.h. */
17993
17994/* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
17997#ifdef __cplusplus
17998extern "C"
17999#endif
18000char __alloca ();
18001int
18002main ()
18003{
18004return __alloca ();
18005 ;
18006 return 0;
18007}
18008_ACEOF
18009rm -f conftest.$ac_objext conftest$ac_exeext
18010if { (ac_try="$ac_link"
18011case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18014esac
18015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_link") 2>conftest.er1
18017 ac_status=$?
18018 grep -v '^ *+' conftest.er1 >conftest.err
18019 rm -f conftest.er1
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18024 { (case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18027esac
18028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_try") 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest$ac_exeext'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18037esac
18038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
18043 ac_cv_lib_gcc___alloca=yes
18044else
18045 echo "$as_me: failed program was:" >&5
18046sed 's/^/| /' conftest.$ac_ext >&5
18047
18048 ac_cv_lib_gcc___alloca=no
18049fi
18050
18051rm -f core conftest.err conftest.$ac_objext \
18052 conftest$ac_exeext conftest.$ac_ext
18053LIBS=$ac_check_lib_save_LIBS
18054fi
18055{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18056echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18057if test $ac_cv_lib_gcc___alloca = yes; then
18058
18059cat >>confdefs.h <<\_ACEOF
18060#define HAVE___ALLOCA 1
18061_ACEOF
18062
18063fi
18064
18065 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18066echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18067if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18069else
18070 ac_check_lib_save_LIBS=$LIBS
18071LIBS="-lgcc $LIBS"
18072cat >conftest.$ac_ext <<_ACEOF
18073/* confdefs.h. */
18074_ACEOF
18075cat confdefs.h >>conftest.$ac_ext
18076cat >>conftest.$ac_ext <<_ACEOF
18077/* end confdefs.h. */
18078
18079/* Override any GCC internal prototype to avoid an error.
18080 Use char because int might match the return type of a GCC
18081 builtin and then its argument prototype would still apply. */
18082#ifdef __cplusplus
18083extern "C"
18084#endif
18085char __chkstk ();
18086int
18087main ()
18088{
18089return __chkstk ();
18090 ;
18091 return 0;
18092}
18093_ACEOF
18094rm -f conftest.$ac_objext conftest$ac_exeext
18095if { (ac_try="$ac_link"
18096case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18099esac
18100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_link") 2>conftest.er1
18102 ac_status=$?
18103 grep -v '^ *+' conftest.er1 >conftest.err
18104 rm -f conftest.er1
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } &&
18108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18109 { (case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18112esac
18113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_try") 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest$ac_exeext'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122esac
18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_lib_gcc___chkstk=yes
18129else
18130 echo "$as_me: failed program was:" >&5
18131sed 's/^/| /' conftest.$ac_ext >&5
18132
18133 ac_cv_lib_gcc___chkstk=no
18134fi
18135
18136rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18138LIBS=$ac_check_lib_save_LIBS
18139fi
18140{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18141echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18142if test $ac_cv_lib_gcc___chkstk = yes; then
18143
18144cat >>confdefs.h <<\_ACEOF
18145#define HAVE___CHKSTK 1
18146_ACEOF
18147
18148fi
18149
18150 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18151echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18152if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18154else
18155 ac_check_lib_save_LIBS=$LIBS
18156LIBS="-lgcc $LIBS"
18157cat >conftest.$ac_ext <<_ACEOF
18158/* confdefs.h. */
18159_ACEOF
18160cat confdefs.h >>conftest.$ac_ext
18161cat >>conftest.$ac_ext <<_ACEOF
18162/* end confdefs.h. */
18163
18164/* Override any GCC internal prototype to avoid an error.
18165 Use char because int might match the return type of a GCC
18166 builtin and then its argument prototype would still apply. */
18167#ifdef __cplusplus
18168extern "C"
18169#endif
18170char ___chkstk ();
18171int
18172main ()
18173{
18174return ___chkstk ();
18175 ;
18176 return 0;
18177}
18178_ACEOF
18179rm -f conftest.$ac_objext conftest$ac_exeext
18180if { (ac_try="$ac_link"
18181case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18184esac
18185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_link") 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
18193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18194 { (case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197esac
18198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_try") 2>&5
18200 ac_status=$?
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; } &&
18203 { ac_try='test -s conftest$ac_exeext'
18204 { (case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18207esac
18208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_try") 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
18213 ac_cv_lib_gcc____chkstk=yes
18214else
18215 echo "$as_me: failed program was:" >&5
18216sed 's/^/| /' conftest.$ac_ext >&5
18217
18218 ac_cv_lib_gcc____chkstk=no
18219fi
18220
18221rm -f core conftest.err conftest.$ac_objext \
18222 conftest$ac_exeext conftest.$ac_ext
18223LIBS=$ac_check_lib_save_LIBS
18224fi
18225{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18226echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18227if test $ac_cv_lib_gcc____chkstk = yes; then
18228
18229cat >>confdefs.h <<\_ACEOF
18230#define HAVE____CHKSTK 1
18231_ACEOF
18232
18233fi
18234
18235
18236 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18237echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18238if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18240else
18241 ac_check_lib_save_LIBS=$LIBS
18242LIBS="-lgcc $LIBS"
18243cat >conftest.$ac_ext <<_ACEOF
18244/* confdefs.h. */
18245_ACEOF
18246cat confdefs.h >>conftest.$ac_ext
18247cat >>conftest.$ac_ext <<_ACEOF
18248/* end confdefs.h. */
18249
18250/* Override any GCC internal prototype to avoid an error.
18251 Use char because int might match the return type of a GCC
18252 builtin and then its argument prototype would still apply. */
18253#ifdef __cplusplus
18254extern "C"
18255#endif
18256char __ashldi3 ();
18257int
18258main ()
18259{
18260return __ashldi3 ();
18261 ;
18262 return 0;
18263}
18264_ACEOF
18265rm -f conftest.$ac_objext conftest$ac_exeext
18266if { (ac_try="$ac_link"
18267case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18270esac
18271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_link") 2>conftest.er1
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18280 { (case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18283esac
18284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_try") 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest$ac_exeext'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_cv_lib_gcc___ashldi3=yes
18300else
18301 echo "$as_me: failed program was:" >&5
18302sed 's/^/| /' conftest.$ac_ext >&5
18303
18304 ac_cv_lib_gcc___ashldi3=no
18305fi
18306
18307rm -f core conftest.err conftest.$ac_objext \
18308 conftest$ac_exeext conftest.$ac_ext
18309LIBS=$ac_check_lib_save_LIBS
18310fi
18311{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18312echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18313if test $ac_cv_lib_gcc___ashldi3 = yes; then
18314
18315cat >>confdefs.h <<\_ACEOF
18316#define HAVE___ASHLDI3 1
18317_ACEOF
18318
18319fi
18320
18321 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18322echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18323if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18325else
18326 ac_check_lib_save_LIBS=$LIBS
18327LIBS="-lgcc $LIBS"
18328cat >conftest.$ac_ext <<_ACEOF
18329/* confdefs.h. */
18330_ACEOF
18331cat confdefs.h >>conftest.$ac_ext
18332cat >>conftest.$ac_ext <<_ACEOF
18333/* end confdefs.h. */
18334
18335/* Override any GCC internal prototype to avoid an error.
18336 Use char because int might match the return type of a GCC
18337 builtin and then its argument prototype would still apply. */
18338#ifdef __cplusplus
18339extern "C"
18340#endif
18341char __ashrdi3 ();
18342int
18343main ()
18344{
18345return __ashrdi3 ();
18346 ;
18347 return 0;
18348}
18349_ACEOF
18350rm -f conftest.$ac_objext conftest$ac_exeext
18351if { (ac_try="$ac_link"
18352case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18355esac
18356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_link") 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18365 { (case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18368esac
18369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_try") 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest$ac_exeext'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378esac
18379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 ac_cv_lib_gcc___ashrdi3=yes
18385else
18386 echo "$as_me: failed program was:" >&5
18387sed 's/^/| /' conftest.$ac_ext >&5
18388
18389 ac_cv_lib_gcc___ashrdi3=no
18390fi
18391
18392rm -f core conftest.err conftest.$ac_objext \
18393 conftest$ac_exeext conftest.$ac_ext
18394LIBS=$ac_check_lib_save_LIBS
18395fi
18396{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18397echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18398if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18399
18400cat >>confdefs.h <<\_ACEOF
18401#define HAVE___ASHRDI3 1
18402_ACEOF
18403
18404fi
18405
18406 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18407echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18408if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18410else
18411 ac_check_lib_save_LIBS=$LIBS
18412LIBS="-lgcc $LIBS"
18413cat >conftest.$ac_ext <<_ACEOF
18414/* confdefs.h. */
18415_ACEOF
18416cat confdefs.h >>conftest.$ac_ext
18417cat >>conftest.$ac_ext <<_ACEOF
18418/* end confdefs.h. */
18419
18420/* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
18423#ifdef __cplusplus
18424extern "C"
18425#endif
18426char __divdi3 ();
18427int
18428main ()
18429{
18430return __divdi3 ();
18431 ;
18432 return 0;
18433}
18434_ACEOF
18435rm -f conftest.$ac_objext conftest$ac_exeext
18436if { (ac_try="$ac_link"
18437case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18440esac
18441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_link") 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18453esac
18454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest$ac_exeext'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18463esac
18464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_cv_lib_gcc___divdi3=yes
18470else
18471 echo "$as_me: failed program was:" >&5
18472sed 's/^/| /' conftest.$ac_ext >&5
18473
18474 ac_cv_lib_gcc___divdi3=no
18475fi
18476
18477rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
18479LIBS=$ac_check_lib_save_LIBS
18480fi
18481{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18482echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18483if test $ac_cv_lib_gcc___divdi3 = yes; then
18484
18485cat >>confdefs.h <<\_ACEOF
18486#define HAVE___DIVDI3 1
18487_ACEOF
18488
18489fi
18490
18491 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18492echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18493if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18495else
18496 ac_check_lib_save_LIBS=$LIBS
18497LIBS="-lgcc $LIBS"
18498cat >conftest.$ac_ext <<_ACEOF
18499/* confdefs.h. */
18500_ACEOF
18501cat confdefs.h >>conftest.$ac_ext
18502cat >>conftest.$ac_ext <<_ACEOF
18503/* end confdefs.h. */
18504
18505/* Override any GCC internal prototype to avoid an error.
18506 Use char because int might match the return type of a GCC
18507 builtin and then its argument prototype would still apply. */
18508#ifdef __cplusplus
18509extern "C"
18510#endif
18511char __fixdfdi ();
18512int
18513main ()
18514{
18515return __fixdfdi ();
18516 ;
18517 return 0;
18518}
18519_ACEOF
18520rm -f conftest.$ac_objext conftest$ac_exeext
18521if { (ac_try="$ac_link"
18522case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18525esac
18526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_link") 2>conftest.er1
18528 ac_status=$?
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
18534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18535 { (case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18538esac
18539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_try") 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } &&
18544 { ac_try='test -s conftest$ac_exeext'
18545 { (case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18548esac
18549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_try") 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_lib_gcc___fixdfdi=yes
18555else
18556 echo "$as_me: failed program was:" >&5
18557sed 's/^/| /' conftest.$ac_ext >&5
18558
18559 ac_cv_lib_gcc___fixdfdi=no
18560fi
18561
18562rm -f core conftest.err conftest.$ac_objext \
18563 conftest$ac_exeext conftest.$ac_ext
18564LIBS=$ac_check_lib_save_LIBS
18565fi
18566{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18567echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18568if test $ac_cv_lib_gcc___fixdfdi = yes; then
18569
18570cat >>confdefs.h <<\_ACEOF
18571#define HAVE___FIXDFDI 1
18572_ACEOF
18573
18574fi
18575
18576 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18577echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18578if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18580else
18581 ac_check_lib_save_LIBS=$LIBS
18582LIBS="-lgcc $LIBS"
18583cat >conftest.$ac_ext <<_ACEOF
18584/* confdefs.h. */
18585_ACEOF
18586cat confdefs.h >>conftest.$ac_ext
18587cat >>conftest.$ac_ext <<_ACEOF
18588/* end confdefs.h. */
18589
18590/* Override any GCC internal prototype to avoid an error.
18591 Use char because int might match the return type of a GCC
18592 builtin and then its argument prototype would still apply. */
18593#ifdef __cplusplus
18594extern "C"
18595#endif
18596char __fixsfdi ();
18597int
18598main ()
18599{
18600return __fixsfdi ();
18601 ;
18602 return 0;
18603}
18604_ACEOF
18605rm -f conftest.$ac_objext conftest$ac_exeext
18606if { (ac_try="$ac_link"
18607case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18610esac
18611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_link") 2>conftest.er1
18613 ac_status=$?
18614 grep -v '^ *+' conftest.er1 >conftest.err
18615 rm -f conftest.er1
18616 cat conftest.err >&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } &&
18619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18620 { (case "(($ac_try" in
18621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18623esac
18624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_try") 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest$ac_exeext'
18630 { (case "(($ac_try" in
18631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632 *) ac_try_echo=$ac_try;;
18633esac
18634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635 (eval "$ac_try") 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_cv_lib_gcc___fixsfdi=yes
18640else
18641 echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
18644 ac_cv_lib_gcc___fixsfdi=no
18645fi
18646
18647rm -f core conftest.err conftest.$ac_objext \
18648 conftest$ac_exeext conftest.$ac_ext
18649LIBS=$ac_check_lib_save_LIBS
18650fi
18651{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18652echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18653if test $ac_cv_lib_gcc___fixsfdi = yes; then
18654
18655cat >>confdefs.h <<\_ACEOF
18656#define HAVE___FIXSFDI 1
18657_ACEOF
18658
18659fi
18660
18661 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18662echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18663if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18665else
18666 ac_check_lib_save_LIBS=$LIBS
18667LIBS="-lgcc $LIBS"
18668cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674
18675/* Override any GCC internal prototype to avoid an error.
18676 Use char because int might match the return type of a GCC
18677 builtin and then its argument prototype would still apply. */
18678#ifdef __cplusplus
18679extern "C"
18680#endif
18681char __floatdidf ();
18682int
18683main ()
18684{
18685return __floatdidf ();
18686 ;
18687 return 0;
18688}
18689_ACEOF
18690rm -f conftest.$ac_objext conftest$ac_exeext
18691if { (ac_try="$ac_link"
18692case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18695esac
18696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_link") 2>conftest.er1
18698 ac_status=$?
18699 grep -v '^ *+' conftest.er1 >conftest.err
18700 rm -f conftest.er1
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
18704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18705 { (case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18708esac
18709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_try") 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; } &&
18714 { ac_try='test -s conftest$ac_exeext'
18715 { (case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_try") 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18724 ac_cv_lib_gcc___floatdidf=yes
18725else
18726 echo "$as_me: failed program was:" >&5
18727sed 's/^/| /' conftest.$ac_ext >&5
18728
18729 ac_cv_lib_gcc___floatdidf=no
18730fi
18731
18732rm -f core conftest.err conftest.$ac_objext \
18733 conftest$ac_exeext conftest.$ac_ext
18734LIBS=$ac_check_lib_save_LIBS
18735fi
18736{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18737echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18738if test $ac_cv_lib_gcc___floatdidf = yes; then
18739
18740cat >>confdefs.h <<\_ACEOF
18741#define HAVE___FLOATDIDF 1
18742_ACEOF
18743
18744fi
18745
18746 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18747echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18748if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18750else
18751 ac_check_lib_save_LIBS=$LIBS
18752LIBS="-lgcc $LIBS"
18753cat >conftest.$ac_ext <<_ACEOF
18754/* confdefs.h. */
18755_ACEOF
18756cat confdefs.h >>conftest.$ac_ext
18757cat >>conftest.$ac_ext <<_ACEOF
18758/* end confdefs.h. */
18759
18760/* Override any GCC internal prototype to avoid an error.
18761 Use char because int might match the return type of a GCC
18762 builtin and then its argument prototype would still apply. */
18763#ifdef __cplusplus
18764extern "C"
18765#endif
18766char __lshrdi3 ();
18767int
18768main ()
18769{
18770return __lshrdi3 ();
18771 ;
18772 return 0;
18773}
18774_ACEOF
18775rm -f conftest.$ac_objext conftest$ac_exeext
18776if { (ac_try="$ac_link"
18777case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780esac
18781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_link") 2>conftest.er1
18783 ac_status=$?
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
18789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18790 { (case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18793esac
18794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_try") 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; } &&
18799 { ac_try='test -s conftest$ac_exeext'
18800 { (case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18803esac
18804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_try") 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_cv_lib_gcc___lshrdi3=yes
18810else
18811 echo "$as_me: failed program was:" >&5
18812sed 's/^/| /' conftest.$ac_ext >&5
18813
18814 ac_cv_lib_gcc___lshrdi3=no
18815fi
18816
18817rm -f core conftest.err conftest.$ac_objext \
18818 conftest$ac_exeext conftest.$ac_ext
18819LIBS=$ac_check_lib_save_LIBS
18820fi
18821{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18822echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18823if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18824
18825cat >>confdefs.h <<\_ACEOF
18826#define HAVE___LSHRDI3 1
18827_ACEOF
18828
18829fi
18830
18831 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18832echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18833if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18834 echo $ECHO_N "(cached) $ECHO_C" >&6
18835else
18836 ac_check_lib_save_LIBS=$LIBS
18837LIBS="-lgcc $LIBS"
18838cat >conftest.$ac_ext <<_ACEOF
18839/* confdefs.h. */
18840_ACEOF
18841cat confdefs.h >>conftest.$ac_ext
18842cat >>conftest.$ac_ext <<_ACEOF
18843/* end confdefs.h. */
18844
18845/* Override any GCC internal prototype to avoid an error.
18846 Use char because int might match the return type of a GCC
18847 builtin and then its argument prototype would still apply. */
18848#ifdef __cplusplus
18849extern "C"
18850#endif
18851char __moddi3 ();
18852int
18853main ()
18854{
18855return __moddi3 ();
18856 ;
18857 return 0;
18858}
18859_ACEOF
18860rm -f conftest.$ac_objext conftest$ac_exeext
18861if { (ac_try="$ac_link"
18862case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18865esac
18866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_link") 2>conftest.er1
18868 ac_status=$?
18869 grep -v '^ *+' conftest.er1 >conftest.err
18870 rm -f conftest.er1
18871 cat conftest.err >&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); } &&
18874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18875 { (case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18878esac
18879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_try") 2>&5
18881 ac_status=$?
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); }; } &&
18884 { ac_try='test -s conftest$ac_exeext'
18885 { (case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18888esac
18889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_try") 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_cv_lib_gcc___moddi3=yes
18895else
18896 echo "$as_me: failed program was:" >&5
18897sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 ac_cv_lib_gcc___moddi3=no
18900fi
18901
18902rm -f core conftest.err conftest.$ac_objext \
18903 conftest$ac_exeext conftest.$ac_ext
18904LIBS=$ac_check_lib_save_LIBS
18905fi
18906{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18907echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18908if test $ac_cv_lib_gcc___moddi3 = yes; then
18909
18910cat >>confdefs.h <<\_ACEOF
18911#define HAVE___MODDI3 1
18912_ACEOF
18913
18914fi
18915
18916 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18917echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18918if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920else
18921 ac_check_lib_save_LIBS=$LIBS
18922LIBS="-lgcc $LIBS"
18923cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h. */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h. */
18929
18930/* Override any GCC internal prototype to avoid an error.
18931 Use char because int might match the return type of a GCC
18932 builtin and then its argument prototype would still apply. */
18933#ifdef __cplusplus
18934extern "C"
18935#endif
18936char __udivdi3 ();
18937int
18938main ()
18939{
18940return __udivdi3 ();
18941 ;
18942 return 0;
18943}
18944_ACEOF
18945rm -f conftest.$ac_objext conftest$ac_exeext
18946if { (ac_try="$ac_link"
18947case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18950esac
18951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_link") 2>conftest.er1
18953 ac_status=$?
18954 grep -v '^ *+' conftest.er1 >conftest.err
18955 rm -f conftest.er1
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
18959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18960 { (case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18963esac
18964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_try") 2>&5
18966 ac_status=$?
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; } &&
18969 { ac_try='test -s conftest$ac_exeext'
18970 { (case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18973esac
18974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_try") 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
18979 ac_cv_lib_gcc___udivdi3=yes
18980else
18981 echo "$as_me: failed program was:" >&5
18982sed 's/^/| /' conftest.$ac_ext >&5
18983
18984 ac_cv_lib_gcc___udivdi3=no
18985fi
18986
18987rm -f core conftest.err conftest.$ac_objext \
18988 conftest$ac_exeext conftest.$ac_ext
18989LIBS=$ac_check_lib_save_LIBS
18990fi
18991{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18992echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18993if test $ac_cv_lib_gcc___udivdi3 = yes; then
18994
18995cat >>confdefs.h <<\_ACEOF
18996#define HAVE___UDIVDI3 1
18997_ACEOF
18998
18999fi
19000
19001 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19002echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19003if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
19005else
19006 ac_check_lib_save_LIBS=$LIBS
19007LIBS="-lgcc $LIBS"
19008cat >conftest.$ac_ext <<_ACEOF
19009/* confdefs.h. */
19010_ACEOF
19011cat confdefs.h >>conftest.$ac_ext
19012cat >>conftest.$ac_ext <<_ACEOF
19013/* end confdefs.h. */
19014
19015/* Override any GCC internal prototype to avoid an error.
19016 Use char because int might match the return type of a GCC
19017 builtin and then its argument prototype would still apply. */
19018#ifdef __cplusplus
19019extern "C"
19020#endif
19021char __umoddi3 ();
19022int
19023main ()
19024{
19025return __umoddi3 ();
19026 ;
19027 return 0;
19028}
19029_ACEOF
19030rm -f conftest.$ac_objext conftest$ac_exeext
19031if { (ac_try="$ac_link"
19032case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19035esac
19036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_link") 2>conftest.er1
19038 ac_status=$?
19039 grep -v '^ *+' conftest.er1 >conftest.err
19040 rm -f conftest.er1
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } &&
19044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19045 { (case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19048esac
19049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050 (eval "$ac_try") 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } &&
19054 { ac_try='test -s conftest$ac_exeext'
19055 { (case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19058esac
19059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_try") 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 ac_cv_lib_gcc___umoddi3=yes
19065else
19066 echo "$as_me: failed program was:" >&5
19067sed 's/^/| /' conftest.$ac_ext >&5
19068
19069 ac_cv_lib_gcc___umoddi3=no
19070fi
19071
19072rm -f core conftest.err conftest.$ac_objext \
19073 conftest$ac_exeext conftest.$ac_ext
19074LIBS=$ac_check_lib_save_LIBS
19075fi
19076{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19077echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19078if test $ac_cv_lib_gcc___umoddi3 = yes; then
19079
19080cat >>confdefs.h <<\_ACEOF
19081#define HAVE___UMODDI3 1
19082_ACEOF
19083
19084fi
19085
19086
19087 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19088echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19089if test "${ac_cv_lib_gcc___main+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19091else
19092 ac_check_lib_save_LIBS=$LIBS
19093LIBS="-lgcc $LIBS"
19094cat >conftest.$ac_ext <<_ACEOF
19095/* confdefs.h. */
19096_ACEOF
19097cat confdefs.h >>conftest.$ac_ext
19098cat >>conftest.$ac_ext <<_ACEOF
19099/* end confdefs.h. */
19100
19101/* Override any GCC internal prototype to avoid an error.
19102 Use char because int might match the return type of a GCC
19103 builtin and then its argument prototype would still apply. */
19104#ifdef __cplusplus
19105extern "C"
19106#endif
19107char __main ();
19108int
19109main ()
19110{
19111return __main ();
19112 ;
19113 return 0;
19114}
19115_ACEOF
19116rm -f conftest.$ac_objext conftest$ac_exeext
19117if { (ac_try="$ac_link"
19118case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121esac
19122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19134esac
19135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try='test -s conftest$ac_exeext'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144esac
19145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 ac_cv_lib_gcc___main=yes
19151else
19152 echo "$as_me: failed program was:" >&5
19153sed 's/^/| /' conftest.$ac_ext >&5
19154
19155 ac_cv_lib_gcc___main=no
19156fi
19157
19158rm -f core conftest.err conftest.$ac_objext \
19159 conftest$ac_exeext conftest.$ac_ext
19160LIBS=$ac_check_lib_save_LIBS
19161fi
19162{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19163echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19164if test $ac_cv_lib_gcc___main = yes; then
19165
19166cat >>confdefs.h <<\_ACEOF
19167#define HAVE___MAIN 1
19168_ACEOF
19169
19170fi
19171
19172 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19173echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19174if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19176else
19177 ac_check_lib_save_LIBS=$LIBS
19178LIBS="-lgcc $LIBS"
19179cat >conftest.$ac_ext <<_ACEOF
19180/* confdefs.h. */
19181_ACEOF
19182cat confdefs.h >>conftest.$ac_ext
19183cat >>conftest.$ac_ext <<_ACEOF
19184/* end confdefs.h. */
19185
19186/* Override any GCC internal prototype to avoid an error.
19187 Use char because int might match the return type of a GCC
19188 builtin and then its argument prototype would still apply. */
19189#ifdef __cplusplus
19190extern "C"
19191#endif
19192char __cmpdi2 ();
19193int
19194main ()
19195{
19196return __cmpdi2 ();
19197 ;
19198 return 0;
19199}
19200_ACEOF
19201rm -f conftest.$ac_objext conftest$ac_exeext
19202if { (ac_try="$ac_link"
19203case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19206esac
19207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_link") 2>conftest.er1
19209 ac_status=$?
19210 grep -v '^ *+' conftest.er1 >conftest.err
19211 rm -f conftest.er1
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
19215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19216 { (case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19219esac
19220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_try") 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try='test -s conftest$ac_exeext'
19226 { (case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19229esac
19230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_try") 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235 ac_cv_lib_gcc___cmpdi2=yes
19236else
19237 echo "$as_me: failed program was:" >&5
19238sed 's/^/| /' conftest.$ac_ext >&5
19239
19240 ac_cv_lib_gcc___cmpdi2=no
19241fi
19242
19243rm -f core conftest.err conftest.$ac_objext \
19244 conftest$ac_exeext conftest.$ac_ext
19245LIBS=$ac_check_lib_save_LIBS
19246fi
19247{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19248echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19249if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19250
19251cat >>confdefs.h <<\_ACEOF
19252#define HAVE___CMPDI2 1
19253_ACEOF
19254
19255fi
19256
19257fi
19258
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019259if test "$llvm_cv_os_type" = "MingW" ; then
19260 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19261echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19262 cat >conftest.$ac_ext <<_ACEOF
19263#include <windows.h>
19264#include <imagehlp.h>
19265extern void foo(PENUMLOADED_MODULES_CALLBACK);
19266extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19267_ACEOF
19268rm -f conftest.$ac_objext
19269if { (ac_try="$ac_compile"
19270case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19273esac
19274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_compile") 2>conftest.er1
19276 ac_status=$?
19277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19283 { (case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19286esac
19287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_try") 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest.$ac_objext'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296esac
19297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; }; then
19302
19303 { echo "$as_me:$LINENO: result: yes" >&5
19304echo "${ECHO_T}yes" >&6; }
19305 llvm_cv_win32_elmcb_pcstr="PCSTR"
19306
19307else
19308 echo "$as_me: failed program was:" >&5
19309sed 's/^/| /' conftest.$ac_ext >&5
19310
19311
19312 { echo "$as_me:$LINENO: result: no" >&5
19313echo "${ECHO_T}no" >&6; }
19314 llvm_cv_win32_elmcb_pcstr="PSTR"
19315
19316fi
19317
19318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319
19320cat >>confdefs.h <<_ACEOF
19321#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19322_ACEOF
19323
19324fi
19325
Torok Edwin871384f2010-01-26 08:50:50 +000019326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019327{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19328echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19329if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019331else
Reid Spencera773bd52006-08-04 18:18:08 +000019332 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019333ac_cpp='$CXXCPP $CPPFLAGS'
19334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019338 cat >conftest.$ac_ext <<_ACEOF
19339/* confdefs.h. */
19340_ACEOF
19341cat confdefs.h >>conftest.$ac_ext
19342cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019343/* end confdefs.h. */
19344#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019345int
19346main ()
19347{
19348float f; isnan(f);
19349 ;
19350 return 0;
19351}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019352_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019353rm -f conftest.$ac_objext
19354if { (ac_try="$ac_compile"
19355case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19358esac
19359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_compile") 2>conftest.er1
19361 ac_status=$?
19362 grep -v '^ *+' conftest.er1 >conftest.err
19363 rm -f conftest.er1
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19368 { (case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19371esac
19372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_try") 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19381esac
19382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019387 ac_cv_func_isnan_in_math_h=yes
19388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019389 echo "$as_me: failed program was:" >&5
19390sed 's/^/| /' conftest.$ac_ext >&5
19391
19392 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019394
Reid Spencera773bd52006-08-04 18:18:08 +000019395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019396 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019397ac_cpp='$CPP $CPPFLAGS'
19398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400ac_compiler_gnu=$ac_cv_c_compiler_gnu
19401
19402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019403{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19404echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019405
19406
19407if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019409cat >>confdefs.h <<\_ACEOF
19410#define HAVE_ISNAN_IN_MATH_H 1
19411_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019412
Reid Spencerabec8f92004-10-27 23:03:44 +000019413fi
19414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019415{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19416echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19417if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019419else
Reid Spencera773bd52006-08-04 18:18:08 +000019420 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019421ac_cpp='$CXXCPP $CPPFLAGS'
19422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019426 cat >conftest.$ac_ext <<_ACEOF
19427/* confdefs.h. */
19428_ACEOF
19429cat confdefs.h >>conftest.$ac_ext
19430cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019431/* end confdefs.h. */
19432#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019433int
19434main ()
19435{
19436float f; isnan(f);
19437 ;
19438 return 0;
19439}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019441rm -f conftest.$ac_objext
19442if { (ac_try="$ac_compile"
19443case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19446esac
19447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_compile") 2>conftest.er1
19449 ac_status=$?
19450 grep -v '^ *+' conftest.er1 >conftest.err
19451 rm -f conftest.er1
19452 cat conftest.err >&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } &&
19455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19456 { (case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19459esac
19460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_try") 2>&5
19462 ac_status=$?
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; } &&
19465 { ac_try='test -s conftest.$ac_objext'
19466 { (case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469esac
19470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_try") 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019475 ac_cv_func_isnan_in_cmath=yes
19476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019477 echo "$as_me: failed program was:" >&5
19478sed 's/^/| /' conftest.$ac_ext >&5
19479
19480 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019482
Reid Spencera773bd52006-08-04 18:18:08 +000019483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019484 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019485ac_cpp='$CPP $CPPFLAGS'
19486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19488ac_compiler_gnu=$ac_cv_c_compiler_gnu
19489
19490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019491{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19492echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019493
19494if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019496cat >>confdefs.h <<\_ACEOF
19497#define HAVE_ISNAN_IN_CMATH 1
19498_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019499
Reid Spencerabec8f92004-10-27 23:03:44 +000019500fi
19501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019502{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19503echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19504if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019506else
Reid Spencera773bd52006-08-04 18:18:08 +000019507 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019508ac_cpp='$CXXCPP $CPPFLAGS'
19509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019513 cat >conftest.$ac_ext <<_ACEOF
19514/* confdefs.h. */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019518/* end confdefs.h. */
19519#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019520int
19521main ()
19522{
19523float f; std::isnan(f);
19524 ;
19525 return 0;
19526}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019527_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019528rm -f conftest.$ac_objext
19529if { (ac_try="$ac_compile"
19530case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19533esac
19534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_compile") 2>conftest.er1
19536 ac_status=$?
19537 grep -v '^ *+' conftest.er1 >conftest.err
19538 rm -f conftest.er1
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19543 { (case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19546esac
19547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_try") 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556esac
19557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_try") 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019562 ac_cv_func_std_isnan_in_cmath=yes
19563else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019564 echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019568fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019569
Reid Spencera773bd52006-08-04 18:18:08 +000019570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019571 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019572ac_cpp='$CPP $CPPFLAGS'
19573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575ac_compiler_gnu=$ac_cv_c_compiler_gnu
19576
19577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019578{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19579echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019580
19581if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019583cat >>confdefs.h <<\_ACEOF
19584#define HAVE_STD_ISNAN_IN_CMATH 1
19585_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019586
Reid Spencerabec8f92004-10-27 23:03:44 +000019587fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019588
19589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019590{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19591echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19592if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019594else
Reid Spencera773bd52006-08-04 18:18:08 +000019595 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019596ac_cpp='$CXXCPP $CPPFLAGS'
19597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019601 cat >conftest.$ac_ext <<_ACEOF
19602/* confdefs.h. */
19603_ACEOF
19604cat confdefs.h >>conftest.$ac_ext
19605cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019606/* end confdefs.h. */
19607#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019608int
19609main ()
19610{
19611float f; isinf(f);
19612 ;
19613 return 0;
19614}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019615_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019616rm -f conftest.$ac_objext
19617if { (ac_try="$ac_compile"
19618case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621esac
19622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_compile") 2>conftest.er1
19624 ac_status=$?
19625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631 { (case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19634esac
19635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_try") 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644esac
19645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019650 ac_cv_func_isinf_in_math_h=yes
19651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019652 echo "$as_me: failed program was:" >&5
19653sed 's/^/| /' conftest.$ac_ext >&5
19654
19655 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019657
Reid Spencera773bd52006-08-04 18:18:08 +000019658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019659 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019660ac_cpp='$CPP $CPPFLAGS'
19661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664
19665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019666{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19667echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019668
19669if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019671cat >>confdefs.h <<\_ACEOF
19672#define HAVE_ISINF_IN_MATH_H 1
19673_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019674
Reid Spencerabec8f92004-10-27 23:03:44 +000019675fi
19676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019677{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19678echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19679if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019681else
Reid Spencera773bd52006-08-04 18:18:08 +000019682 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019683ac_cpp='$CXXCPP $CPPFLAGS'
19684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019688 cat >conftest.$ac_ext <<_ACEOF
19689/* confdefs.h. */
19690_ACEOF
19691cat confdefs.h >>conftest.$ac_ext
19692cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019693/* end confdefs.h. */
19694#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019695int
19696main ()
19697{
19698float f; isinf(f);
19699 ;
19700 return 0;
19701}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019702_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019703rm -f conftest.$ac_objext
19704if { (ac_try="$ac_compile"
19705case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19708esac
19709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_compile") 2>conftest.er1
19711 ac_status=$?
19712 grep -v '^ *+' conftest.er1 >conftest.err
19713 rm -f conftest.er1
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
19717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19718 { (case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19721esac
19722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_try") 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; } &&
19727 { ac_try='test -s conftest.$ac_objext'
19728 { (case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19731esac
19732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_try") 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019737 ac_cv_func_isinf_in_cmath=yes
19738else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019739 echo "$as_me: failed program was:" >&5
19740sed 's/^/| /' conftest.$ac_ext >&5
19741
19742 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019744
Reid Spencera773bd52006-08-04 18:18:08 +000019745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019746 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019747ac_cpp='$CPP $CPPFLAGS'
19748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751
19752fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019753{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19754echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019755
19756if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019758cat >>confdefs.h <<\_ACEOF
19759#define HAVE_ISINF_IN_CMATH 1
19760_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019761
Reid Spencerabec8f92004-10-27 23:03:44 +000019762fi
19763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019764{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19765echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19766if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019768else
Reid Spencera773bd52006-08-04 18:18:08 +000019769 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019770ac_cpp='$CXXCPP $CPPFLAGS'
19771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019775 cat >conftest.$ac_ext <<_ACEOF
19776/* confdefs.h. */
19777_ACEOF
19778cat confdefs.h >>conftest.$ac_ext
19779cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019780/* end confdefs.h. */
19781#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019782int
19783main ()
19784{
19785float f; std::isinf(f)}
19786 ;
19787 return 0;
19788}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019789_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019790rm -f conftest.$ac_objext
19791if { (ac_try="$ac_compile"
19792case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795esac
19796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_compile") 2>conftest.er1
19798 ac_status=$?
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19805 { (case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19808esac
19809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810 (eval "$ac_try") 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest.$ac_objext'
19815 { (case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818esac
19819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_try") 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019824 ac_cv_func_std_isinf_in_cmath=yes
19825else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019826 echo "$as_me: failed program was:" >&5
19827sed 's/^/| /' conftest.$ac_ext >&5
19828
19829 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019831
Reid Spencera773bd52006-08-04 18:18:08 +000019832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019833 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019834ac_cpp='$CPP $CPPFLAGS'
19835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837ac_compiler_gnu=$ac_cv_c_compiler_gnu
19838
19839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019840{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19841echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019842
19843if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019845cat >>confdefs.h <<\_ACEOF
19846#define HAVE_STD_ISINF_IN_CMATH 1
19847_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019848
Reid Spencerabec8f92004-10-27 23:03:44 +000019849fi
19850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019851{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19852echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19853if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019855else
Reid Spencera773bd52006-08-04 18:18:08 +000019856 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019857ac_cpp='$CXXCPP $CPPFLAGS'
19858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19861
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019862 cat >conftest.$ac_ext <<_ACEOF
19863/* confdefs.h. */
19864_ACEOF
19865cat confdefs.h >>conftest.$ac_ext
19866cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019867/* end confdefs.h. */
19868#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019869int
19870main ()
19871{
19872float f; finite(f);
19873 ;
19874 return 0;
19875}
Brian Gaeked59a6472004-07-21 03:33:58 +000019876_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019877rm -f conftest.$ac_objext
19878if { (ac_try="$ac_compile"
19879case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19882esac
19883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_compile") 2>conftest.er1
19885 ac_status=$?
19886 grep -v '^ *+' conftest.er1 >conftest.err
19887 rm -f conftest.er1
19888 cat conftest.err >&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); } &&
19891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19892 { (case "(($ac_try" in
19893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894 *) ac_try_echo=$ac_try;;
19895esac
19896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897 (eval "$ac_try") 2>&5
19898 ac_status=$?
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; } &&
19901 { ac_try='test -s conftest.$ac_objext'
19902 { (case "(($ac_try" in
19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19905esac
19906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907 (eval "$ac_try") 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019911 ac_cv_func_finite_in_ieeefp_h=yes
19912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019913 echo "$as_me: failed program was:" >&5
19914sed 's/^/| /' conftest.$ac_ext >&5
19915
19916 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019917fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019918
Reid Spencera773bd52006-08-04 18:18:08 +000019919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019920 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019921ac_cpp='$CPP $CPPFLAGS'
19922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924ac_compiler_gnu=$ac_cv_c_compiler_gnu
19925
19926fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019927{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19928echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019929
Brian Gaeke6802b552004-10-28 05:06:45 +000019930if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019931
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019932cat >>confdefs.h <<\_ACEOF
19933#define HAVE_FINITE_IN_IEEEFP_H 1
19934_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019935
Reid Spencerabec8f92004-10-27 23:03:44 +000019936fi
19937
19938
19939
Reid Spencer30fe5262007-01-20 07:48:49 +000019940if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019941
19942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019943for ac_header in stdlib.h unistd.h
19944do
19945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951fi
19952ac_res=`eval echo '${'$as_ac_Header'}'`
19953 { echo "$as_me:$LINENO: result: $ac_res" >&5
19954echo "${ECHO_T}$ac_res" >&6; }
19955else
19956 # Is the header compilable?
19957{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19959cat >conftest.$ac_ext <<_ACEOF
19960/* confdefs.h. */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h. */
19965$ac_includes_default
19966#include <$ac_header>
19967_ACEOF
19968rm -f conftest.$ac_objext
19969if { (ac_try="$ac_compile"
19970case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19973esac
19974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_compile") 2>conftest.er1
19976 ac_status=$?
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
19982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19983 { (case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19986esac
19987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_try") 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; } &&
19992 { ac_try='test -s conftest.$ac_objext'
19993 { (case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19996esac
19997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_try") 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20002 ac_header_compiler=yes
20003else
20004 echo "$as_me: failed program was:" >&5
20005sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020007 ac_header_compiler=no
20008fi
20009
20010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20011{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20012echo "${ECHO_T}$ac_header_compiler" >&6; }
20013
20014# Is the header present?
20015{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20017cat >conftest.$ac_ext <<_ACEOF
20018/* confdefs.h. */
20019_ACEOF
20020cat confdefs.h >>conftest.$ac_ext
20021cat >>conftest.$ac_ext <<_ACEOF
20022/* end confdefs.h. */
20023#include <$ac_header>
20024_ACEOF
20025if { (ac_try="$ac_cpp conftest.$ac_ext"
20026case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20029esac
20030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } >/dev/null; then
20038 if test -s conftest.err; then
20039 ac_cpp_err=$ac_c_preproc_warn_flag
20040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20041 else
20042 ac_cpp_err=
20043 fi
20044else
20045 ac_cpp_err=yes
20046fi
20047if test -z "$ac_cpp_err"; then
20048 ac_header_preproc=yes
20049else
20050 echo "$as_me: failed program was:" >&5
20051sed 's/^/| /' conftest.$ac_ext >&5
20052
20053 ac_header_preproc=no
20054fi
20055
20056rm -f conftest.err conftest.$ac_ext
20057{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20058echo "${ECHO_T}$ac_header_preproc" >&6; }
20059
20060# So? What about this header?
20061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20062 yes:no: )
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20067 ac_header_preproc=yes
20068 ;;
20069 no:yes:* )
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20082 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020083## ------------------------------------ ##
20084## Report this to http://llvm.org/bugs/ ##
20085## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020086_ASBOX
20087 ) | sed "s/^/$as_me: WARNING: /" >&2
20088 ;;
20089esac
20090{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094else
20095 eval "$as_ac_Header=\$ac_header_preproc"
20096fi
20097ac_res=`eval echo '${'$as_ac_Header'}'`
20098 { echo "$as_me:$LINENO: result: $ac_res" >&5
20099echo "${ECHO_T}$ac_res" >&6; }
20100
20101fi
20102if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020103 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020105_ACEOF
20106
20107fi
20108
20109done
20110
20111
20112for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020113do
20114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20115{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20117if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119else
20120 cat >conftest.$ac_ext <<_ACEOF
20121/* confdefs.h. */
20122_ACEOF
20123cat confdefs.h >>conftest.$ac_ext
20124cat >>conftest.$ac_ext <<_ACEOF
20125/* end confdefs.h. */
20126/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20128#define $ac_func innocuous_$ac_func
20129
20130/* System header to define __stub macros and hopefully few prototypes,
20131 which can conflict with char $ac_func (); below.
20132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20133 <limits.h> exists even on freestanding compilers. */
20134
20135#ifdef __STDC__
20136# include <limits.h>
20137#else
20138# include <assert.h>
20139#endif
20140
20141#undef $ac_func
20142
20143/* Override any GCC internal prototype to avoid an error.
20144 Use char because int might match the return type of a GCC
20145 builtin and then its argument prototype would still apply. */
20146#ifdef __cplusplus
20147extern "C"
20148#endif
20149char $ac_func ();
20150/* The GNU C library defines this for functions which it implements
20151 to always fail with ENOSYS. Some functions are actually named
20152 something starting with __ and the normal name is an alias. */
20153#if defined __stub_$ac_func || defined __stub___$ac_func
20154choke me
20155#endif
20156
20157int
20158main ()
20159{
20160return $ac_func ();
20161 ;
20162 return 0;
20163}
20164_ACEOF
20165rm -f conftest.$ac_objext conftest$ac_exeext
20166if { (ac_try="$ac_link"
20167case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20170esac
20171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172 (eval "$ac_link") 2>conftest.er1
20173 ac_status=$?
20174 grep -v '^ *+' conftest.er1 >conftest.err
20175 rm -f conftest.er1
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20180 { (case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20183esac
20184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_try") 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; } &&
20189 { ac_try='test -s conftest$ac_exeext'
20190 { (case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20193esac
20194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_try") 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199 eval "$as_ac_var=yes"
20200else
20201 echo "$as_me: failed program was:" >&5
20202sed 's/^/| /' conftest.$ac_ext >&5
20203
20204 eval "$as_ac_var=no"
20205fi
20206
20207rm -f core conftest.err conftest.$ac_objext \
20208 conftest$ac_exeext conftest.$ac_ext
20209fi
20210ac_res=`eval echo '${'$as_ac_var'}'`
20211 { echo "$as_me:$LINENO: result: $ac_res" >&5
20212echo "${ECHO_T}$ac_res" >&6; }
20213if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020214 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020216_ACEOF
20217
20218fi
20219done
20220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020221{ echo "$as_me:$LINENO: checking for working mmap" >&5
20222echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20223if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020226 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020227 ac_cv_func_mmap_fixed_mapped=no
20228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020229 cat >conftest.$ac_ext <<_ACEOF
20230/* confdefs.h. */
20231_ACEOF
20232cat confdefs.h >>conftest.$ac_ext
20233cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020235$ac_includes_default
20236/* malloc might have been renamed as rpl_malloc. */
20237#undef malloc
20238
20239/* Thanks to Mike Haertel and Jim Avera for this test.
20240 Here is a matrix of mmap possibilities:
20241 mmap private not fixed
20242 mmap private fixed at somewhere currently unmapped
20243 mmap private fixed at somewhere already mapped
20244 mmap shared not fixed
20245 mmap shared fixed at somewhere currently unmapped
20246 mmap shared fixed at somewhere already mapped
20247 For private mappings, we should verify that changes cannot be read()
20248 back from the file, nor mmap's back from the file at a different
20249 address. (There have been systems where private was not correctly
20250 implemented like the infamous i386 svr4.0, and systems where the
20251 VM page cache was not coherent with the file system buffer cache
20252 like early versions of FreeBSD and possibly contemporary NetBSD.)
20253 For shared mappings, we should conversely verify that changes get
20254 propagated back to all the places they're supposed to be.
20255
20256 Grep wants private fixed already mapped.
20257 The main things grep needs to know about mmap are:
20258 * does it exist and is it safe to write into the mmap'd area
20259 * how to use it (BSD variants) */
20260
20261#include <fcntl.h>
20262#include <sys/mman.h>
20263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020264#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020265char *malloc ();
20266#endif
20267
20268/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020269#if !HAVE_GETPAGESIZE
20270/* Assume that all systems that can run configure have sys/param.h. */
20271# if !HAVE_SYS_PARAM_H
20272# define HAVE_SYS_PARAM_H 1
20273# endif
20274
John Criswell7a73b802003-06-30 21:59:07 +000020275# ifdef _SC_PAGESIZE
20276# define getpagesize() sysconf(_SC_PAGESIZE)
20277# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020278# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020279# include <sys/param.h>
20280# ifdef EXEC_PAGESIZE
20281# define getpagesize() EXEC_PAGESIZE
20282# else /* no EXEC_PAGESIZE */
20283# ifdef NBPG
20284# define getpagesize() NBPG * CLSIZE
20285# ifndef CLSIZE
20286# define CLSIZE 1
20287# endif /* no CLSIZE */
20288# else /* no NBPG */
20289# ifdef NBPC
20290# define getpagesize() NBPC
20291# else /* no NBPC */
20292# ifdef PAGESIZE
20293# define getpagesize() PAGESIZE
20294# endif /* PAGESIZE */
20295# endif /* no NBPC */
20296# endif /* no NBPG */
20297# endif /* no EXEC_PAGESIZE */
20298# else /* no HAVE_SYS_PARAM_H */
20299# define getpagesize() 8192 /* punt totally */
20300# endif /* no HAVE_SYS_PARAM_H */
20301# endif /* no _SC_PAGESIZE */
20302
20303#endif /* no HAVE_GETPAGESIZE */
20304
20305int
20306main ()
20307{
20308 char *data, *data2, *data3;
20309 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020310 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020311
20312 pagesize = getpagesize ();
20313
20314 /* First, make a file with some known garbage in it. */
20315 data = (char *) malloc (pagesize);
20316 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020317 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020318 for (i = 0; i < pagesize; ++i)
20319 *(data + i) = rand ();
20320 umask (0);
20321 fd = creat ("conftest.mmap", 0600);
20322 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020323 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020324 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020325 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020326 close (fd);
20327
20328 /* Next, try to mmap the file at a fixed address which already has
20329 something else allocated at it. If we can, also make sure that
20330 we see the same garbage. */
20331 fd = open ("conftest.mmap", O_RDWR);
20332 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020333 return 1;
20334 data2 = (char *) malloc (2 * pagesize);
20335 if (!data2)
20336 return 1;
20337 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020338 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020339 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020340 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020341 for (i = 0; i < pagesize; ++i)
20342 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020343 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020344
20345 /* Finally, make sure that changes to the mapped area do not
20346 percolate back to the file as seen by read(). (This is a bug on
20347 some variants of i386 svr4.0.) */
20348 for (i = 0; i < pagesize; ++i)
20349 *(data2 + i) = *(data2 + i) + 1;
20350 data3 = (char *) malloc (pagesize);
20351 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020352 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020353 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020354 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020355 for (i = 0; i < pagesize; ++i)
20356 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020357 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020358 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020359 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020360}
20361_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362rm -f conftest$ac_exeext
20363if { (ac_try="$ac_link"
20364case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367esac
20368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_link") 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373 { (case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20376esac
20377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_try") 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020382 ac_cv_func_mmap_fixed_mapped=yes
20383else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020384 echo "$as_me: program exited with status $ac_status" >&5
20385echo "$as_me: failed program was:" >&5
20386sed 's/^/| /' conftest.$ac_ext >&5
20387
20388( exit $ac_status )
20389ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020390fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020391rm -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 +000020392fi
Reid Spencera773bd52006-08-04 18:18:08 +000020393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394
John Criswell7a73b802003-06-30 21:59:07 +000020395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020396{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20397echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020398if test $ac_cv_func_mmap_fixed_mapped = yes; then
20399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020400cat >>confdefs.h <<\_ACEOF
20401#define HAVE_MMAP 1
20402_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020403
20404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020405rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020407 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20408echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20409if test "${ac_cv_func_mmap_file+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020411else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020412 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020413ac_cpp='$CPP $CPPFLAGS'
20414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20416ac_compiler_gnu=$ac_cv_c_compiler_gnu
20417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020418 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020419 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020421 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020422
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020423 /* confdefs.h. */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020428
John Criswell7a73b802003-06-30 21:59:07 +000020429#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020430#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020431#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020432
20433int
20434main ()
20435{
John Criswell7a73b802003-06-30 21:59:07 +000020436
20437 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020438 fd = creat ("foo",0777);
20439 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20440 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020441 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020442 ;
20443 return 0;
20444}
John Criswell7a73b802003-06-30 21:59:07 +000020445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020446rm -f conftest$ac_exeext
20447if { (ac_try="$ac_link"
20448case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20451esac
20452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453 (eval "$ac_link") 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20457 { (case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20460esac
20461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_try") 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020466 ac_cv_func_mmap_file=yes
20467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020468 echo "$as_me: program exited with status $ac_status" >&5
20469echo "$as_me: failed program was:" >&5
20470sed 's/^/| /' conftest.$ac_ext >&5
20471
20472( exit $ac_status )
20473ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020474fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020475rm -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 +000020476fi
Reid Spencera773bd52006-08-04 18:18:08 +000020477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020478
John Criswell7a73b802003-06-30 21:59:07 +000020479 ac_ext=c
20480ac_cpp='$CPP $CPPFLAGS'
20481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20483ac_compiler_gnu=$ac_cv_c_compiler_gnu
20484
20485
20486fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020487{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20488echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020489if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020491cat >>confdefs.h <<\_ACEOF
20492#define HAVE_MMAP_FILE
20493_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020494
20495 MMAP_FILE=yes
20496
20497fi
20498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020499 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20500echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20501if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020503else
Reid Spencer582a23c2004-12-29 07:07:57 +000020504 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020505 ac_cv_need_dev_zero_for_mmap=yes
20506 else
20507 ac_cv_need_dev_zero_for_mmap=no
20508 fi
20509
20510fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020511{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20512echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020513if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020515cat >>confdefs.h <<\_ACEOF
20516#define NEED_DEV_ZERO_FOR_MMAP 1
20517_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020518
20519fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020520
Reid Spencer30fe5262007-01-20 07:48:49 +000020521 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20522 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020523 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20524echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020525 fi
20526 if test "$ac_cv_func_mmap_file" = "no"
20527 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020528 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20529echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020530 fi
John Criswellb13092b2003-07-22 21:00:24 +000020531fi
John Criswell7a73b802003-06-30 21:59:07 +000020532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020533{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20534echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020535ac_ext=cpp
20536ac_cpp='$CXXCPP $CPPFLAGS'
20537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541cat >conftest.$ac_ext <<_ACEOF
20542/* confdefs.h. */
20543_ACEOF
20544cat confdefs.h >>conftest.$ac_ext
20545cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020546/* end confdefs.h. */
20547int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020548 volatile unsigned long val = 1;
20549 __sync_synchronize();
20550 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020551 __sync_add_and_fetch(&val, 1);
20552 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020553 return 0;
20554 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020555
20556_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020557rm -f conftest.$ac_objext conftest$ac_exeext
20558if { (ac_try="$ac_link"
20559case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20562esac
20563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_link") 2>conftest.er1
20565 ac_status=$?
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } &&
20571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20572 { (case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20575esac
20576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577 (eval "$ac_try") 2>&5
20578 ac_status=$?
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; } &&
20581 { ac_try='test -s conftest$ac_exeext'
20582 { (case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20585esac
20586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_try") 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020591 ac_ext=c
20592ac_cpp='$CPP $CPPFLAGS'
20593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20595ac_compiler_gnu=$ac_cv_c_compiler_gnu
20596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020597 { echo "$as_me:$LINENO: result: yes" >&5
20598echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020600cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020601#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020602_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020603
Owen Andersond4b272b2009-05-18 23:58:51 +000020604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020605 echo "$as_me: failed program was:" >&5
20606sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020608 { echo "$as_me:$LINENO: result: no" >&5
20609echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020611cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020612#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020613_ACEOF
20614
20615 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20616echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020618
Owen Andersond4b272b2009-05-18 23:58:51 +000020619rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020620 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020621
John Criswell7a73b802003-06-30 21:59:07 +000020622
Nick Lewycky4372e692009-09-29 06:18:23 +000020623if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020624 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20625echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20626if test "${llvm_cv_linux_mixed+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020628else
20629 ac_ext=c
20630ac_cpp='$CPP $CPPFLAGS'
20631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20633ac_compiler_gnu=$ac_cv_c_compiler_gnu
20634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020635 cat >conftest.$ac_ext <<_ACEOF
20636/* confdefs.h. */
20637_ACEOF
20638cat confdefs.h >>conftest.$ac_ext
20639cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020640/* end confdefs.h. */
20641#ifndef __x86_64__
20642 error: Not x86-64 even if uname says so!
20643 #endif
20644
20645int
20646main ()
20647{
20648
20649 ;
20650 return 0;
20651}
20652_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653rm -f conftest.$ac_objext
20654if { (ac_try="$ac_compile"
20655case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20658esac
20659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_compile") 2>conftest.er1
20661 ac_status=$?
20662 grep -v '^ *+' conftest.er1 >conftest.err
20663 rm -f conftest.er1
20664 cat conftest.err >&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } &&
20667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20668 { (case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20671esac
20672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_try") 2>&5
20674 ac_status=$?
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); }; } &&
20677 { ac_try='test -s conftest.$ac_objext'
20678 { (case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20681esac
20682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_try") 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020687 llvm_cv_linux_mixed=no
20688else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020689 echo "$as_me: failed program was:" >&5
20690sed 's/^/| /' conftest.$ac_ext >&5
20691
20692 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020693fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020694
Nick Lewycky4372e692009-09-29 06:18:23 +000020695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696 ac_ext=c
20697ac_cpp='$CPP $CPPFLAGS'
20698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700ac_compiler_gnu=$ac_cv_c_compiler_gnu
20701
20702
20703fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20705echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020706
20707 if test "$llvm_cv_linux_mixed" = "yes"; then
20708 llvm_cv_target_arch="x86"
20709 ARCH="x86"
20710 fi
20711fi
20712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020713
Reid Spencer9372f152007-07-30 20:13:24 +000020714for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020715do
20716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20717{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20719if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20721else
20722 cat >conftest.$ac_ext <<_ACEOF
20723/* confdefs.h. */
20724_ACEOF
20725cat confdefs.h >>conftest.$ac_ext
20726cat >>conftest.$ac_ext <<_ACEOF
20727/* end confdefs.h. */
20728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20730#define $ac_func innocuous_$ac_func
20731
20732/* System header to define __stub macros and hopefully few prototypes,
20733 which can conflict with char $ac_func (); below.
20734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20735 <limits.h> exists even on freestanding compilers. */
20736
20737#ifdef __STDC__
20738# include <limits.h>
20739#else
20740# include <assert.h>
20741#endif
20742
20743#undef $ac_func
20744
20745/* Override any GCC internal prototype to avoid an error.
20746 Use char because int might match the return type of a GCC
20747 builtin and then its argument prototype would still apply. */
20748#ifdef __cplusplus
20749extern "C"
20750#endif
20751char $ac_func ();
20752/* The GNU C library defines this for functions which it implements
20753 to always fail with ENOSYS. Some functions are actually named
20754 something starting with __ and the normal name is an alias. */
20755#if defined __stub_$ac_func || defined __stub___$ac_func
20756choke me
20757#endif
20758
20759int
20760main ()
20761{
20762return $ac_func ();
20763 ;
20764 return 0;
20765}
20766_ACEOF
20767rm -f conftest.$ac_objext conftest$ac_exeext
20768if { (ac_try="$ac_link"
20769case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20772esac
20773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774 (eval "$ac_link") 2>conftest.er1
20775 ac_status=$?
20776 grep -v '^ *+' conftest.er1 >conftest.err
20777 rm -f conftest.er1
20778 cat conftest.err >&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); } &&
20781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20782 { (case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20785esac
20786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_try") 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; } &&
20791 { ac_try='test -s conftest$ac_exeext'
20792 { (case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20795esac
20796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_try") 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; }; then
20801 eval "$as_ac_var=yes"
20802else
20803 echo "$as_me: failed program was:" >&5
20804sed 's/^/| /' conftest.$ac_ext >&5
20805
20806 eval "$as_ac_var=no"
20807fi
20808
20809rm -f core conftest.err conftest.$ac_objext \
20810 conftest$ac_exeext conftest.$ac_ext
20811fi
20812ac_res=`eval echo '${'$as_ac_var'}'`
20813 { echo "$as_me:$LINENO: result: $ac_res" >&5
20814echo "${ECHO_T}$ac_res" >&6; }
20815if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020816 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020818_ACEOF
20819
20820fi
20821done
20822
20823
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020824SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020825
20826
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020827SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20828
20829
Jeff Cohen28783c32007-01-12 18:22:38 +000020830if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020831 prefix="/usr/local"
20832fi
Reid Spencere9de0912004-08-20 09:03:57 +000020833eval LLVM_PREFIX="${prefix}";
20834eval LLVM_BINDIR="${prefix}/bin";
20835eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020836eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020837eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020838eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020839eval LLVM_INCLUDEDIR="${prefix}/include";
20840eval LLVM_INFODIR="${prefix}/info";
20841eval LLVM_MANDIR="${prefix}/man";
20842LLVM_CONFIGTIME=`date`
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020854
Reid Spencere9de0912004-08-20 09:03:57 +000020855cat >>confdefs.h <<_ACEOF
20856#define LLVM_PREFIX "$LLVM_PREFIX"
20857_ACEOF
20858
20859
20860cat >>confdefs.h <<_ACEOF
20861#define LLVM_BINDIR "$LLVM_BINDIR"
20862_ACEOF
20863
20864
20865cat >>confdefs.h <<_ACEOF
20866#define LLVM_LIBDIR "$LLVM_LIBDIR"
20867_ACEOF
20868
20869
20870cat >>confdefs.h <<_ACEOF
20871#define LLVM_DATADIR "$LLVM_DATADIR"
20872_ACEOF
20873
20874
20875cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020876#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020877_ACEOF
20878
20879
20880cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020881#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020882_ACEOF
20883
20884
20885cat >>confdefs.h <<_ACEOF
20886#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20887_ACEOF
20888
20889
20890cat >>confdefs.h <<_ACEOF
20891#define LLVM_INFODIR "$LLVM_INFODIR"
20892_ACEOF
20893
20894
20895cat >>confdefs.h <<_ACEOF
20896#define LLVM_MANDIR "$LLVM_MANDIR"
20897_ACEOF
20898
20899
20900cat >>confdefs.h <<_ACEOF
20901#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20902_ACEOF
20903
20904
Eric Christopher790e11c2007-12-01 00:34:39 +000020905cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020906#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020907_ACEOF
20908
20909
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020910if test "$BINDINGS_TO_BUILD" = auto ; then
20911 BINDINGS_TO_BUILD=""
20912 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20913 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20914 fi
20915fi
20916BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20917
20918
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020919ALL_BINDINGS=ocaml
20920
20921
Gordon Henriksenf0915682007-10-02 16:42:22 +000020922binding_prereqs_failed=0
20923for a_binding in $BINDINGS_TO_BUILD ; do
20924 case "$a_binding" in
20925 ocaml)
20926 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020927 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20928echo "$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 +000020929 binding_prereqs_failed=1
20930 fi
20931 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020932 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20933echo "$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 +000020934 binding_prereqs_failed=1
20935 fi
20936 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020937 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20938echo "$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 +000020939 fi
20940 if test "x$with_ocaml_libdir" != xauto ; then
20941 OCAML_LIBDIR=$with_ocaml_libdir
20942
20943 else
20944 ocaml_stdlib="`"$OCAMLC" -where`"
20945 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20946 then
20947 # ocaml stdlib is beneath our prefix; use stdlib
20948 OCAML_LIBDIR=$ocaml_stdlib
20949
20950 else
20951 # ocaml stdlib is outside our prefix; use libdir/ocaml
20952 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20953
20954 fi
20955 fi
20956 ;;
20957 esac
20958done
20959if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020960 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20961echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20962 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020963fi
20964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020965{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20966echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20967if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20968 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020969else
20970 ac_ext=cpp
20971ac_cpp='$CXXCPP $CPPFLAGS'
20972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20975
20976 oldcxxflags="$CXXFLAGS"
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000020977 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020978 cat >conftest.$ac_ext <<_ACEOF
20979/* confdefs.h. */
20980_ACEOF
20981cat confdefs.h >>conftest.$ac_ext
20982cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020983/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000020984template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020985int
20986main ()
20987{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000020988X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020989 ;
20990 return 0;
20991}
20992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020993rm -f conftest.$ac_objext
20994if { (ac_try="$ac_compile"
20995case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20998esac
20999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_compile") 2>conftest.er1
21001 ac_status=$?
21002 grep -v '^ *+' conftest.er1 >conftest.err
21003 rm -f conftest.er1
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
21007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21008 { (case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21011esac
21012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_try") 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; } &&
21017 { ac_try='test -s conftest.$ac_objext'
21018 { (case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21021esac
21022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023 (eval "$ac_try") 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021027 llvm_cv_cxx_visibility_inlines_hidden=yes
21028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021029 echo "$as_me: failed program was:" >&5
21030sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021034
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036 CXXFLAGS="$oldcxxflags"
21037 ac_ext=c
21038ac_cpp='$CPP $CPPFLAGS'
21039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21041ac_compiler_gnu=$ac_cv_c_compiler_gnu
21042
21043
21044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021045{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21046echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021047if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21048 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21049
21050else
21051 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21052
21053fi
21054
Gordon Henriksenf0915682007-10-02 16:42:22 +000021055
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021056if test "$llvm_cv_link_use_r" = "yes" ; then
21057 RPATH="-Wl,-R"
21058else
21059 RPATH="-Wl,-rpath"
21060fi
21061
21062
21063if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21064 RDYNAMIC="-Wl,-export-dynamic"
21065else
21066 RDYNAMIC=""
21067fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021068
21069
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021070
Eric Christophera1cba682010-08-08 02:44:25 +000021071ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021072
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021073
21074
21075
21076
21077
Douglas Gregor1555a232009-06-16 20:12:29 +000021078ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21079
21080ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21081
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021082ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21083
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021084ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21085
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021086ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021087
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021088
Reid Spencera773bd52006-08-04 18:18:08 +000021089ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021090
Eric Christopher360fa9a2011-10-26 00:42:12 +000021091
Reid Spencerea949cf2006-08-16 00:45:38 +000021092ac_config_files="$ac_config_files llvm.spec"
21093
21094
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021095ac_config_files="$ac_config_files docs/doxygen.cfg"
21096
Eric Christopher63c09512012-02-02 00:16:55 +000021097
Eric Christopherac898652012-02-02 00:19:05 +000021098if test ${clang_src_root} = ""; then
21099 clang_src_root="$ac_pwd/tools/clang"
21100fi
Eric Christopher63c09512012-02-02 00:16:55 +000021101if test -f ${clang_src_root}/README.txt; then
21102 ac_config_headers="$ac_config_headers ${clang_src_root}/include/clang/Config/config.h"
21103
21104 ac_config_files="$ac_config_files ${clang_src_root}/docs/doxygen.cfg"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021105
21106fi
21107
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021108ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021109
Eric Christopher360fa9a2011-10-26 00:42:12 +000021110
Reid Spencera773bd52006-08-04 18:18:08 +000021111ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021112
Reid Spencera773bd52006-08-04 18:18:08 +000021113ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021114
21115
Reid Spencera773bd52006-08-04 18:18:08 +000021116ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021117
21118
Reid Spencera773bd52006-08-04 18:18:08 +000021119ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021120
21121
Reid Spencera773bd52006-08-04 18:18:08 +000021122ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021123
21124
Reid Spencer8b2e1412006-11-17 03:32:33 +000021125ac_config_commands="$ac_config_commands runtime/Makefile"
21126
21127
Reid Spencera773bd52006-08-04 18:18:08 +000021128ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021129
21130
Reid Spencera773bd52006-08-04 18:18:08 +000021131ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021132
21133
Bill Wendlingf24eb392009-01-04 23:12:30 +000021134ac_config_commands="$ac_config_commands unittests/Makefile"
21135
21136
Reid Spencera773bd52006-08-04 18:18:08 +000021137ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021138
21139
Reid Spencera773bd52006-08-04 18:18:08 +000021140ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021141
21142
Reid Spencera773bd52006-08-04 18:18:08 +000021143ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021144
21145
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021146ac_config_commands="$ac_config_commands bindings/Makefile"
21147
21148
21149ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21150
21151
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021152
John Criswell7a73b802003-06-30 21:59:07 +000021153cat >confcache <<\_ACEOF
21154# This file is a shell script that caches the results of configure
21155# tests run on this system so they can be shared between configure
21156# scripts and configure runs, see configure's option --config-cache.
21157# It is not useful on other systems. If it contains results you don't
21158# want to keep, you may remove or edit it.
21159#
21160# config.status only pays attention to the cache file if you give it
21161# the --recheck option to rerun configure.
21162#
John Criswell0c38eaf2003-09-10 15:17:25 +000021163# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021164# loading this file, other *unset* `ac_cv_foo' will be assigned the
21165# following values.
21166
21167_ACEOF
21168
21169# The following way of writing the cache mishandles newlines in values,
21170# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021171# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021172# Ultrix sh set writes to stderr and can't be redirected directly,
21173# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021174(
21175 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21176 eval ac_val=\$$ac_var
21177 case $ac_val in #(
21178 *${as_nl}*)
21179 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021180 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21181echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021182 esac
21183 case $ac_var in #(
21184 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021185 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021186 esac ;;
21187 esac
21188 done
21189
John Criswell7a73b802003-06-30 21:59:07 +000021190 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021191 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21192 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021193 # `set' does not quote correctly, so add quotes (double-quote
21194 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021195 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021196 "s/'/'\\\\''/g;
21197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021198 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021199 *)
21200 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021201 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021202 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021203 esac |
21204 sort
21205) |
John Criswell7a73b802003-06-30 21:59:07 +000021206 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021207 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021208 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021209 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021210 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21211 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021212 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21213 :end' >>confcache
21214if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21215 if test -w "$cache_file"; then
21216 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021217 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21218echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021219 cat confcache >$cache_file
21220 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021221 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21222echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021223 fi
21224fi
21225rm -f confcache
21226
21227test "x$prefix" = xNONE && prefix=$ac_default_prefix
21228# Let make expand exec_prefix.
21229test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21230
John Criswell7a73b802003-06-30 21:59:07 +000021231DEFS=-DHAVE_CONFIG_H
21232
John Criswell0c38eaf2003-09-10 15:17:25 +000021233ac_libobjs=
21234ac_ltlibobjs=
21235for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21236 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021237 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021238 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021239 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21240 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021241 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21242 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021243done
21244LIBOBJS=$ac_libobjs
21245
21246LTLIBOBJS=$ac_ltlibobjs
21247
21248
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021249if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021250 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21251Usually this means the macro was only invoked conditionally." >&5
21252echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21253Usually this means the macro was only invoked conditionally." >&2;}
21254 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021255fi
21256if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021257 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21258Usually this means the macro was only invoked conditionally." >&5
21259echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21260Usually this means the macro was only invoked conditionally." >&2;}
21261 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021262fi
John Criswell7a73b802003-06-30 21:59:07 +000021263
21264: ${CONFIG_STATUS=./config.status}
21265ac_clean_files_save=$ac_clean_files
21266ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21268echo "$as_me: creating $CONFIG_STATUS" >&6;}
21269cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021270#! $SHELL
21271# Generated by $as_me.
21272# Run this file to recreate the current configuration.
21273# Compiler output produced by configure, useful for debugging
21274# configure, is in config.log if it exists.
21275
21276debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021277ac_cs_recheck=false
21278ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021279SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021282cat >>$CONFIG_STATUS <<\_ACEOF
21283## --------------------- ##
21284## M4sh Initialization. ##
21285## --------------------- ##
21286
21287# Be Bourne compatible
21288if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021289 emulate sh
21290 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021291 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021292 # is contrary to our usage. Disable this feature.
21293 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021294 setopt NO_GLOB_SUBST
21295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021296 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021298BIN_SH=xpg4; export BIN_SH # for Tru64
21299DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021300
John Criswell7a73b802003-06-30 21:59:07 +000021301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021302# PATH needs CR
21303# Avoid depending upon Character Ranges.
21304as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21305as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21306as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21307as_cr_digits='0123456789'
21308as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021309
21310# The user is always right.
21311if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021312 echo "#! /bin/sh" >conf$$.sh
21313 echo "exit 0" >>conf$$.sh
21314 chmod +x conf$$.sh
21315 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21316 PATH_SEPARATOR=';'
21317 else
21318 PATH_SEPARATOR=:
21319 fi
21320 rm -f conf$$.sh
21321fi
21322
21323# Support unset when possible.
21324if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21325 as_unset=unset
21326else
21327 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021328fi
John Criswell7a73b802003-06-30 21:59:07 +000021329
Reid Spencera773bd52006-08-04 18:18:08 +000021330
21331# IFS
21332# We need space, tab and new line, in precisely that order. Quoting is
21333# there to prevent editors from complaining about space-tab.
21334# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21335# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021336as_nl='
21337'
Reid Spencera773bd52006-08-04 18:18:08 +000021338IFS=" "" $as_nl"
21339
21340# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021341case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021342 *[\\/]* ) as_myself=$0 ;;
21343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021344for as_dir in $PATH
21345do
21346 IFS=$as_save_IFS
21347 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21349done
Reid Spencera773bd52006-08-04 18:18:08 +000021350IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021351
Reid Spencera773bd52006-08-04 18:18:08 +000021352 ;;
21353esac
21354# We did not find ourselves, most probably we were run as `sh COMMAND'
21355# in which case we are not to be found in the path.
21356if test "x$as_myself" = x; then
21357 as_myself=$0
21358fi
21359if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021360 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21361 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021362fi
21363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021364# Work around bugs in pre-3.0 UWIN ksh.
21365for as_var in ENV MAIL MAILPATH
21366do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021367done
21368PS1='$ '
21369PS2='> '
21370PS4='+ '
21371
21372# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021373for as_var in \
21374 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21375 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21376 LC_TELEPHONE LC_TIME
21377do
21378 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21379 eval $as_var=C; export $as_var
21380 else
21381 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021382 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383done
Torok Edwin871384f2010-01-26 08:50:50 +000021384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021385# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021386if expr a : '\(a\)' >/dev/null 2>&1 &&
21387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21388 as_expr=expr
21389else
21390 as_expr=false
21391fi
21392
21393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21394 as_basename=basename
21395else
21396 as_basename=false
21397fi
21398
21399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021400# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021401as_me=`$as_basename -- "$0" ||
21402$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21403 X"$0" : 'X\(//\)$' \| \
21404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021405echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021406 sed '/^.*\/\([^/][^/]*\)\/*$/{
21407 s//\1/
21408 q
21409 }
21410 /^X\/\(\/\/\)$/{
21411 s//\1/
21412 q
21413 }
21414 /^X\/\(\/\).*/{
21415 s//\1/
21416 q
21417 }
21418 s/.*/./; q'`
21419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021420# CDPATH.
21421$as_unset CDPATH
21422
21423
21424
21425 as_lineno_1=$LINENO
21426 as_lineno_2=$LINENO
21427 test "x$as_lineno_1" != "x$as_lineno_2" &&
21428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21429
21430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21431 # uniformly replaced by the line number. The first 'sed' inserts a
21432 # line-number line after each line using $LINENO; the second 'sed'
21433 # does the real work. The second script uses 'N' to pair each
21434 # line-number line with the line containing $LINENO, and appends
21435 # trailing '-' during substitution so that $LINENO is not a special
21436 # case at line end.
21437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21438 # scripts with optimization help from Paolo Bonzini. Blame Lee
21439 # E. McMahon (1931-1989) for sed's syntax. :-)
21440 sed -n '
21441 p
21442 /[$]LINENO/=
21443 ' <$as_myself |
21444 sed '
21445 s/[$]LINENO.*/&-/
21446 t lineno
21447 b
21448 :lineno
21449 N
21450 :loop
21451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21452 t loop
21453 s/-\n.*//
21454 ' >$as_me.lineno &&
21455 chmod +x "$as_me.lineno" ||
21456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21457 { (exit 1); exit 1; }; }
21458
21459 # Don't try to exec as it changes $[0], causing all sort of problems
21460 # (the dirname of $[0] is not the place where we might find the
21461 # original and so on. Autoconf is especially sensitive to this).
21462 . "./$as_me.lineno"
21463 # Exit status is that of the last command.
21464 exit
21465}
21466
21467
21468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21469 as_dirname=dirname
21470else
21471 as_dirname=false
21472fi
Reid Spencera773bd52006-08-04 18:18:08 +000021473
21474ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021475case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021476-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021477 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021479 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021480 esac;;
21481*)
21482 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021483esac
21484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485if expr a : '\(a\)' >/dev/null 2>&1 &&
21486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21487 as_expr=expr
21488else
21489 as_expr=false
21490fi
21491
John Criswell7a73b802003-06-30 21:59:07 +000021492rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021493if test -d conf$$.dir; then
21494 rm -f conf$$.dir/conf$$.file
21495else
21496 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021497 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021498fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499echo >conf$$.file
21500if ln -s conf$$.file conf$$ 2>/dev/null; then
21501 as_ln_s='ln -s'
21502 # ... but there are two gotchas:
21503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21505 # In both cases, we have to default to `cp -p'.
21506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021507 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021508elif ln conf$$.file conf$$ 2>/dev/null; then
21509 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021510else
21511 as_ln_s='cp -p'
21512fi
Reid Spencera773bd52006-08-04 18:18:08 +000021513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21514rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021515
John Criswell0c38eaf2003-09-10 15:17:25 +000021516if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021517 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021518else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021519 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021520 as_mkdir_p=false
21521fi
21522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021523# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21524# systems may use methods other than mode bits to determine executability.
21525cat >conf$$.file <<_ASEOF
21526#! /bin/sh
21527exit 0
21528_ASEOF
21529chmod +x conf$$.file
21530if test -x conf$$.file >/dev/null 2>&1; then
21531 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021532else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021533 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021535rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021536
21537# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021538as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021539
21540# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021541as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021542
21543
John Criswell7a73b802003-06-30 21:59:07 +000021544exec 6>&1
21545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021546# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021547# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021548# values after options handling.
21549ac_log="
Eric Christopherf33ab862011-12-21 00:52:44 +000021550This file was extended by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021551generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021552
21553 CONFIG_FILES = $CONFIG_FILES
21554 CONFIG_HEADERS = $CONFIG_HEADERS
21555 CONFIG_LINKS = $CONFIG_LINKS
21556 CONFIG_COMMANDS = $CONFIG_COMMANDS
21557 $ $0 $@
21558
Reid Spencera773bd52006-08-04 18:18:08 +000021559on `(hostname || uname -n) 2>/dev/null | sed 1q`
21560"
21561
John Criswell7a73b802003-06-30 21:59:07 +000021562_ACEOF
21563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021564cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021565# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021566config_files="$ac_config_files"
21567config_headers="$ac_config_headers"
21568config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021569
Reid Spencera773bd52006-08-04 18:18:08 +000021570_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021573ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021574\`$as_me' instantiates files from templates according to the
21575current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021577Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021578
21579 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021580 -V, --version print version number, then exit
21581 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021582 -d, --debug don't remove temporary files
21583 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021584 --file=FILE[:TEMPLATE]
21585 instantiate the configuration file FILE
21586 --header=FILE[:TEMPLATE]
21587 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021588
21589Configuration files:
21590$config_files
21591
21592Configuration headers:
21593$config_headers
21594
John Criswellc764fbc2003-09-06 15:17:13 +000021595Configuration commands:
21596$config_commands
21597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021598Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021599
Reid Spencera773bd52006-08-04 18:18:08 +000021600_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021601cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021602ac_cs_version="\\
Eric Christopherf33ab862011-12-21 00:52:44 +000021603LLVM config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021604configured by $0, generated by GNU Autoconf 2.60,
21605 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021607Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021608This config.status script is free software; the Free Software Foundation
21609gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021610
21611ac_pwd='$ac_pwd'
21612srcdir='$srcdir'
21613INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021614_ACEOF
21615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021616cat >>$CONFIG_STATUS <<\_ACEOF
21617# If no file are specified by the user, then we need to provide default
21618# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021619ac_need_defaults=:
21620while test $# != 0
21621do
21622 case $1 in
21623 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021626 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021627 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021628 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021629 ac_option=$1
21630 ac_optarg=$2
21631 ac_shift=shift
21632 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021633 esac
21634
John Criswell0c38eaf2003-09-10 15:17:25 +000021635 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021636 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21638 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021640 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021641 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021642 debug=: ;;
21643 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021644 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021645 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021646 ac_need_defaults=false;;
21647 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021648 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021649 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021650 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021651 --he | --h)
21652 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021653 { echo "$as_me: error: ambiguous option: $1
21654Try \`$0 --help' for more information." >&2
21655 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021656 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021657 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21660 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021661
21662 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021663 -*) { echo "$as_me: error: unrecognized option: $1
21664Try \`$0 --help' for more information." >&2
21665 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021667 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021668 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021669
21670 esac
21671 shift
21672done
21673
John Criswell0c38eaf2003-09-10 15:17:25 +000021674ac_configure_extra_args=
21675
21676if $ac_cs_silent; then
21677 exec 6>/dev/null
21678 ac_configure_extra_args="$ac_configure_extra_args --silent"
21679fi
21680
21681_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021682cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021683if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021684 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21685 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021686 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021687 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021688fi
21689
John Criswell7a73b802003-06-30 21:59:07 +000021690_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021691cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021692exec 5>>config.log
21693{
21694 echo
21695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21696## Running $as_me. ##
21697_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021698 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021699} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021700
Reid Spencera773bd52006-08-04 18:18:08 +000021701_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021702cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021703#
Reid Spencera773bd52006-08-04 18:18:08 +000021704# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021705#
Reid Spencerc0682832005-02-24 19:05:19 +000021706llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021707
21708_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021710cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021711
21712# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021713for ac_config_target in $ac_config_targets
21714do
Reid Spencera773bd52006-08-04 18:18:08 +000021715 case $ac_config_target in
21716 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021717 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021718 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21719 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021720 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021721 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021722 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021723 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021724 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021725 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Eric Christopher63c09512012-02-02 00:16:55 +000021726 "${clang_src_root}/include/clang/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ${clang_src_root}/include/clang/Config/config.h" ;;
21727 "${clang_src_root}/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES ${clang_src_root}/docs/doxygen.cfg" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021728 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021729 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21730 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21731 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21732 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21733 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021734 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021735 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21736 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021737 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021738 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21739 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21740 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021741 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21742 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021744 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21745echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21746 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021747 esac
21748done
21749
Reid Spencera773bd52006-08-04 18:18:08 +000021750
John Criswell7a73b802003-06-30 21:59:07 +000021751# If the user did not use the arguments to specify the items to instantiate,
21752# then the envvar interface is used. Set only those that are not.
21753# We use the long form for the default assignment because of an extremely
21754# bizarre bug on SunOS 4.1.3.
21755if $ac_need_defaults; then
21756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021758 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021759fi
21760
John Criswell0c38eaf2003-09-10 15:17:25 +000021761# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021762# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021763# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021764# Hook for its removal unless debugging.
21765# Note that there is a small window in which the directory will not be cleaned:
21766# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021767$debug ||
21768{
Reid Spencera773bd52006-08-04 18:18:08 +000021769 tmp=
21770 trap 'exit_status=$?
21771 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21772' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021773 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021774}
John Criswell7a73b802003-06-30 21:59:07 +000021775# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021776
John Criswell7a73b802003-06-30 21:59:07 +000021777{
Reid Spencera773bd52006-08-04 18:18:08 +000021778 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021779 test -n "$tmp" && test -d "$tmp"
21780} ||
21781{
Reid Spencera773bd52006-08-04 18:18:08 +000021782 tmp=./conf$$-$RANDOM
21783 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021784} ||
21785{
21786 echo "$me: cannot create a temporary directory in ." >&2
21787 { (exit 1); exit 1; }
21788}
John Criswell7a73b802003-06-30 21:59:07 +000021789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021790#
21791# Set up the sed scripts for CONFIG_FILES section.
21792#
21793
21794# No need to generate the scripts if there are no CONFIG_FILES.
21795# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021796if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021797
21798_ACEOF
21799
Reid Spencera773bd52006-08-04 18:18:08 +000021800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021801
Reid Spencera773bd52006-08-04 18:18:08 +000021802ac_delim='%!_!# '
21803for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021804 cat >conf$$subs.sed <<_ACEOF
21805SHELL!$SHELL$ac_delim
21806PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21807PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21808PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21809PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21810PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21811PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21812exec_prefix!$exec_prefix$ac_delim
21813prefix!$prefix$ac_delim
21814program_transform_name!$program_transform_name$ac_delim
21815bindir!$bindir$ac_delim
21816sbindir!$sbindir$ac_delim
21817libexecdir!$libexecdir$ac_delim
21818datarootdir!$datarootdir$ac_delim
21819datadir!$datadir$ac_delim
21820sysconfdir!$sysconfdir$ac_delim
21821sharedstatedir!$sharedstatedir$ac_delim
21822localstatedir!$localstatedir$ac_delim
21823includedir!$includedir$ac_delim
21824oldincludedir!$oldincludedir$ac_delim
21825docdir!$docdir$ac_delim
21826infodir!$infodir$ac_delim
21827htmldir!$htmldir$ac_delim
21828dvidir!$dvidir$ac_delim
21829pdfdir!$pdfdir$ac_delim
21830psdir!$psdir$ac_delim
21831libdir!$libdir$ac_delim
21832localedir!$localedir$ac_delim
21833mandir!$mandir$ac_delim
21834DEFS!$DEFS$ac_delim
21835ECHO_C!$ECHO_C$ac_delim
21836ECHO_N!$ECHO_N$ac_delim
21837ECHO_T!$ECHO_T$ac_delim
21838LIBS!$LIBS$ac_delim
21839build_alias!$build_alias$ac_delim
21840host_alias!$host_alias$ac_delim
21841target_alias!$target_alias$ac_delim
21842LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021843CC!$CC$ac_delim
21844CFLAGS!$CFLAGS$ac_delim
21845LDFLAGS!$LDFLAGS$ac_delim
21846CPPFLAGS!$CPPFLAGS$ac_delim
21847ac_ct_CC!$ac_ct_CC$ac_delim
21848EXEEXT!$EXEEXT$ac_delim
21849OBJEXT!$OBJEXT$ac_delim
21850CXX!$CXX$ac_delim
21851CXXFLAGS!$CXXFLAGS$ac_delim
21852ac_ct_CXX!$ac_ct_CXX$ac_delim
21853CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021854subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021855ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21856LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021857build!$build$ac_delim
21858build_cpu!$build_cpu$ac_delim
21859build_vendor!$build_vendor$ac_delim
21860build_os!$build_os$ac_delim
21861host!$host$ac_delim
21862host_cpu!$host_cpu$ac_delim
21863host_vendor!$host_vendor$ac_delim
21864host_os!$host_os$ac_delim
21865target!$target$ac_delim
21866target_cpu!$target_cpu$ac_delim
21867target_vendor!$target_vendor$ac_delim
21868target_os!$target_os$ac_delim
21869OS!$OS$ac_delim
21870HOST_OS!$HOST_OS$ac_delim
21871TARGET_OS!$TARGET_OS$ac_delim
21872LINKALL!$LINKALL$ac_delim
21873NOLINKALL!$NOLINKALL$ac_delim
21874LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21875LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21876ARCH!$ARCH$ac_delim
21877ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878GREP!$GREP$ac_delim
21879EGREP!$EGREP$ac_delim
21880LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21881BUILD_CC!$BUILD_CC$ac_delim
21882BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21883BUILD_CXX!$BUILD_CXX$ac_delim
21884CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021885ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021886ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21887ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21888DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21889ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21890EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21891DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21892DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21893JIT!$JIT$ac_delim
21894TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021895ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021896ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021897LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021898ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021899ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021900ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021901ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021902_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021905 break
21906 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21908echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21909 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021910 else
21911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021912 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021913done
21914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021915ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21916if test -n "$ac_eof"; then
21917 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21918 ac_eof=`expr $ac_eof + 1`
21919fi
21920
21921cat >>$CONFIG_STATUS <<_ACEOF
21922cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21923/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021924_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021925sed '
21926s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21927s/^/s,@/; s/!/@,|#_!!_#|/
21928:n
21929t n
21930s/'"$ac_delim"'$/,g/; t
21931s/$/\\/; p
21932N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21933' >>$CONFIG_STATUS <conf$$subs.sed
21934rm -f conf$$subs.sed
21935cat >>$CONFIG_STATUS <<_ACEOF
21936CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021937_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021938
21939
21940ac_delim='%!_!# '
21941for ac_last_try in false false false false false :; do
21942 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000021943ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021944TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21945LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21946LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021947LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021948LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021949ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021950OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021951EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021952EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021953CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021954BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021955INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021956NM!$NM$ac_delim
21957ifGNUmake!$ifGNUmake$ac_delim
21958LN_S!$LN_S$ac_delim
21959CMP!$CMP$ac_delim
21960CP!$CP$ac_delim
21961DATE!$DATE$ac_delim
21962FIND!$FIND$ac_delim
21963MKDIR!$MKDIR$ac_delim
21964MV!$MV$ac_delim
21965RANLIB!$RANLIB$ac_delim
21966AR!$AR$ac_delim
21967RM!$RM$ac_delim
21968SED!$SED$ac_delim
21969TAR!$TAR$ac_delim
21970BINPWD!$BINPWD$ac_delim
21971GRAPHVIZ!$GRAPHVIZ$ac_delim
21972DOT!$DOT$ac_delim
21973FDP!$FDP$ac_delim
21974NEATO!$NEATO$ac_delim
21975TWOPI!$TWOPI$ac_delim
21976CIRCO!$CIRCO$ac_delim
21977GV!$GV$ac_delim
21978DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021979XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021980PERL!$PERL$ac_delim
21981HAVE_PERL!$HAVE_PERL$ac_delim
21982INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21983INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21984INSTALL_DATA!$INSTALL_DATA$ac_delim
21985BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021986CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021987DOXYGEN!$DOXYGEN$ac_delim
21988GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021989GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021990POD2HTML!$POD2HTML$ac_delim
21991POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021992PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021993RUNTEST!$RUNTEST$ac_delim
21994TCLSH!$TCLSH$ac_delim
21995ZIP!$ZIP$ac_delim
21996OCAMLC!$OCAMLC$ac_delim
21997OCAMLOPT!$OCAMLOPT$ac_delim
21998OCAMLDEP!$OCAMLDEP$ac_delim
21999OCAMLDOC!$OCAMLDOC$ac_delim
22000GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022001HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022002INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22003INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22004CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22005CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22006LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022007NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22008NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22009USE_UDIS86!$USE_UDIS86$ac_delim
22010USE_OPROFILE!$USE_OPROFILE$ac_delim
22011HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22012HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22013MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022014SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022015SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022016LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22017LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22018LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22019LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22020LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22021LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22022LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22023LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22024LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22025LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22026BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22027ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022028OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22029ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22030RPATH!$RPATH$ac_delim
22031RDYNAMIC!$RDYNAMIC$ac_delim
22032LIBOBJS!$LIBOBJS$ac_delim
22033LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022034_ACEOF
22035
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022036 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022037 break
22038 elif $ac_last_try; then
22039 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22040echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22041 { (exit 1); exit 1; }; }
22042 else
22043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22044 fi
22045done
22046
22047ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22048if test -n "$ac_eof"; then
22049 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22050 ac_eof=`expr $ac_eof + 1`
22051fi
22052
22053cat >>$CONFIG_STATUS <<_ACEOF
22054cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022055/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22056_ACEOF
22057sed '
22058s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22059s/^/s,@/; s/!/@,|#_!!_#|/
22060:n
22061t n
22062s/'"$ac_delim"'$/,g/; t
22063s/$/\\/; p
22064N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22065' >>$CONFIG_STATUS <conf$$subs.sed
22066rm -f conf$$subs.sed
22067cat >>$CONFIG_STATUS <<_ACEOF
22068:end
22069s/|#_!!_#|//g
22070CEOF$ac_eof
22071_ACEOF
22072
22073
Reid Spencera773bd52006-08-04 18:18:08 +000022074# VPATH may cause trouble with some makes, so we remove $(srcdir),
22075# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22076# trailing colons and then remove the whole line if VPATH becomes empty
22077# (actually we leave an empty line to preserve line numbers).
22078if test "x$srcdir" = x.; then
22079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22080s/:*\$(srcdir):*/:/
22081s/:*\${srcdir}:*/:/
22082s/:*@srcdir@:*/:/
22083s/^\([^=]*=[ ]*\):*/\1/
22084s/:*$//
22085s/^[^=]*=[ ]*$//
22086}'
22087fi
22088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022089cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022090fi # test -n "$CONFIG_FILES"
22091
Reid Spencera773bd52006-08-04 18:18:08 +000022092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022093for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022094do
22095 case $ac_tag in
22096 :[FHLC]) ac_mode=$ac_tag; continue;;
22097 esac
22098 case $ac_mode$ac_tag in
22099 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022100 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22101echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22102 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022103 :[FH]-) ac_tag=-:-;;
22104 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22105 esac
22106 ac_save_IFS=$IFS
22107 IFS=:
22108 set x $ac_tag
22109 IFS=$ac_save_IFS
22110 shift
22111 ac_file=$1
22112 shift
22113
22114 case $ac_mode in
22115 :L) ac_source=$1;;
22116 :[FH])
22117 ac_file_inputs=
22118 for ac_f
22119 do
22120 case $ac_f in
22121 -) ac_f="$tmp/stdin";;
22122 *) # Look for the file first in the build tree, then in the source tree
22123 # (if the path is not absolute). The absolute path cannot be DOS-style,
22124 # because $ac_f cannot contain `:'.
22125 test -f "$ac_f" ||
22126 case $ac_f in
22127 [\\/$]*) false;;
22128 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22129 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022130 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22131echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22132 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022133 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022134 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022135 done
22136
22137 # Let's still pretend it is `configure' which instantiates (i.e., don't
22138 # use $as_me), people would be surprised to read:
22139 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022140 configure_input="Generated from "`IFS=:
22141 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022142 if test x"$ac_file" != x-; then
22143 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022144 { echo "$as_me:$LINENO: creating $ac_file" >&5
22145echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022146 fi
22147
22148 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022150 esac
22151 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022152 esac
22153
Reid Spencera773bd52006-08-04 18:18:08 +000022154 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022155$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022156 X"$ac_file" : 'X\(//\)[^/]' \| \
22157 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022159echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22161 s//\1/
22162 q
22163 }
22164 /^X\(\/\/\)[^/].*/{
22165 s//\1/
22166 q
22167 }
22168 /^X\(\/\/\)$/{
22169 s//\1/
22170 q
22171 }
22172 /^X\(\/\).*/{
22173 s//\1/
22174 q
22175 }
22176 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022177 { as_dir="$ac_dir"
22178 case $as_dir in #(
22179 -*) as_dir=./$as_dir;;
22180 esac
22181 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22182 as_dirs=
22183 while :; do
22184 case $as_dir in #(
22185 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22186 *) as_qdir=$as_dir;;
22187 esac
22188 as_dirs="'$as_qdir' $as_dirs"
22189 as_dir=`$as_dirname -- "$as_dir" ||
22190$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191 X"$as_dir" : 'X\(//\)[^/]' \| \
22192 X"$as_dir" : 'X\(//\)$' \| \
22193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22194echo X"$as_dir" |
22195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22196 s//\1/
22197 q
22198 }
22199 /^X\(\/\/\)[^/].*/{
22200 s//\1/
22201 q
22202 }
22203 /^X\(\/\/\)$/{
22204 s//\1/
22205 q
22206 }
22207 /^X\(\/\).*/{
22208 s//\1/
22209 q
22210 }
22211 s/.*/./; q'`
22212 test -d "$as_dir" && break
22213 done
22214 test -z "$as_dirs" || eval "mkdir $as_dirs"
22215 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22216echo "$as_me: error: cannot create directory $as_dir" >&2;}
22217 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022218 ac_builddir=.
22219
Reid Spencera773bd52006-08-04 18:18:08 +000022220case "$ac_dir" in
22221.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22222*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022224 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022225 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022226 case $ac_top_builddir_sub in
22227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22229 esac ;;
22230esac
22231ac_abs_top_builddir=$ac_pwd
22232ac_abs_builddir=$ac_pwd$ac_dir_suffix
22233# for backward compatibility:
22234ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022235
22236case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022237 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022238 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022239 ac_top_srcdir=$ac_top_builddir_sub
22240 ac_abs_top_srcdir=$ac_pwd ;;
22241 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022242 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022243 ac_top_srcdir=$srcdir
22244 ac_abs_top_srcdir=$srcdir ;;
22245 *) # Relative name.
22246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22247 ac_top_srcdir=$ac_top_build_prefix$srcdir
22248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022249esac
Reid Spencera773bd52006-08-04 18:18:08 +000022250ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022251
John Criswell7a73b802003-06-30 21:59:07 +000022252
Reid Spencera773bd52006-08-04 18:18:08 +000022253 case $ac_mode in
22254 :F)
22255 #
22256 # CONFIG_FILE
22257 #
John Criswell7a73b802003-06-30 21:59:07 +000022258
22259 case $INSTALL in
22260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022261 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022262 esac
John Criswell7a73b802003-06-30 21:59:07 +000022263_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022265cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022266# If the template does not know about datarootdir, expand it.
22267# FIXME: This hack should be removed a few years after 2.60.
22268ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022269
22270case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022271 p
22272 q
22273}
22274/@datadir@/p
22275/@docdir@/p
22276/@infodir@/p
22277/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022278/@mandir@/p
22279' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022280*datarootdir*) ac_datarootdir_seen=yes;;
22281*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022282 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22283echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022285cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022286 ac_datarootdir_hack='
22287 s&@datadir@&$datadir&g
22288 s&@docdir@&$docdir&g
22289 s&@infodir@&$infodir&g
22290 s&@localedir@&$localedir&g
22291 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022292 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022293esac
22294_ACEOF
22295
22296# Neutralize VPATH when `$srcdir' = `.'.
22297# Shell code in configure.ac might set extrasub.
22298# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022299cat >>$CONFIG_STATUS <<_ACEOF
22300 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022301$extrasub
22302_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022303cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022304:t
22305/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022306s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022307s&@top_builddir@&$ac_top_builddir_sub&;t t
22308s&@srcdir@&$ac_srcdir&;t t
22309s&@abs_srcdir@&$ac_abs_srcdir&;t t
22310s&@top_srcdir@&$ac_top_srcdir&;t t
22311s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22312s&@builddir@&$ac_builddir&;t t
22313s&@abs_builddir@&$ac_abs_builddir&;t t
22314s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22315s&@INSTALL@&$ac_INSTALL&;t t
22316$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022317" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022318
Reid Spencera773bd52006-08-04 18:18:08 +000022319test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22320 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22321 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022322 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022323which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022324echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022325which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022326
Reid Spencera773bd52006-08-04 18:18:08 +000022327 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022328 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022329 -) cat "$tmp/out"; rm -f "$tmp/out";;
22330 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22331 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022332 ;;
22333 :H)
22334 #
22335 # CONFIG_HEADER
22336 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022337_ACEOF
22338
22339# Transform confdefs.h into a sed script `conftest.defines', that
22340# substitutes the proper values into config.h.in to produce config.h.
22341rm -f conftest.defines conftest.tail
22342# First, append a space to every undef/define line, to ease matching.
22343echo 's/$/ /' >conftest.defines
22344# Then, protect against being on the right side of a sed subst, or in
22345# an unquoted here document, in config.status. If some macros were
22346# called several times there might be several #defines for the same
22347# symbol, which is useless. But do not sort them, since the last
22348# AC_DEFINE must be honored.
22349ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22350# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22351# NAME is the cpp macro being defined, VALUE is the value it is being given.
22352# PARAMS is the parameter list in the macro definition--in most cases, it's
22353# just an empty string.
22354ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22355ac_dB='\\)[ (].*,\\1define\\2'
22356ac_dC=' '
22357ac_dD=' ,'
22358
22359uniq confdefs.h |
22360 sed -n '
22361 t rset
22362 :rset
22363 s/^[ ]*#[ ]*define[ ][ ]*//
22364 t ok
22365 d
22366 :ok
22367 s/[\\&,]/\\&/g
22368 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22369 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22370 ' >>conftest.defines
22371
22372# Remove the space that was appended to ease matching.
22373# Then replace #undef with comments. This is necessary, for
22374# example, in the case of _POSIX_SOURCE, which is predefined and required
22375# on some systems where configure will not decide to define it.
22376# (The regexp can be short, since the line contains either #define or #undef.)
22377echo 's/ $//
22378s,^[ #]*u.*,/* & */,' >>conftest.defines
22379
22380# Break up conftest.defines:
22381ac_max_sed_lines=50
22382
22383# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22384# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22385# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22386# et cetera.
22387ac_in='$ac_file_inputs'
22388ac_out='"$tmp/out1"'
22389ac_nxt='"$tmp/out2"'
22390
22391while :
22392do
22393 # Write a here document:
22394 cat >>$CONFIG_STATUS <<_ACEOF
22395 # First, check the format of the line:
22396 cat >"\$tmp/defines.sed" <<\\CEOF
22397/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22398/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22399b
22400:def
22401_ACEOF
22402 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22403 echo 'CEOF
22404 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22405 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22406 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22407 grep . conftest.tail >/dev/null || break
22408 rm -f conftest.defines
22409 mv conftest.tail conftest.defines
22410done
22411rm -f conftest.defines conftest.tail
22412
22413echo "ac_result=$ac_in" >>$CONFIG_STATUS
22414cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022415 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022416 echo "/* $configure_input */" >"$tmp/config.h"
22417 cat "$ac_result" >>"$tmp/config.h"
22418 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22419 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22420echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022421 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022422 rm -f $ac_file
22423 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022424 fi
22425 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022426 echo "/* $configure_input */"
22427 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022428 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022429 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022430 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022432 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22433echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022434 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022435 esac
John Criswell7a73b802003-06-30 21:59:07 +000022436
Reid Spencera773bd52006-08-04 18:18:08 +000022437
22438 case $ac_file$ac_mode in
22439 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022441 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022443 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022445 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022447 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022448 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022449 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022450 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022451 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022452 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022453 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022454 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022455 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022457 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022458 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022459 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022460 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022461 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022462 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022463 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022464 ${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 +000022465
22466 esac
22467done # for ac_tag
22468
John Criswell7a73b802003-06-30 21:59:07 +000022469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022470{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022471_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022472chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022473ac_clean_files=$ac_clean_files_save
22474
22475
22476# configure is writing to config.log, and then calls config.status.
22477# config.status does its own redirection, appending to config.log.
22478# Unfortunately, on DOS this fails, as config.log is still kept open
22479# by configure, so config.status won't be able to write to it; its
22480# output is simply discarded. So we exec the FD to /dev/null,
22481# effectively closing config.log, so it can be properly (re)opened and
22482# appended to by config.status. When coming back to configure, we
22483# need to make the FD available again.
22484if test "$no_create" != yes; then
22485 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022486 ac_config_status_args=
22487 test "$silent" = yes &&
22488 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022489 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022491 exec 5>>config.log
22492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22493 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022494 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022495fi
22496
John Criswell12399a12003-09-30 15:55:44 +000022497#
22498# CONFIG_SUBDIRS section.
22499#
22500if test "$no_recursion" != yes; then
22501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022502 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022503 ac_sub_configure_args=
22504 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022505 eval "set x $ac_configure_args"
22506 shift
22507 for ac_arg
22508 do
John Criswell12399a12003-09-30 15:55:44 +000022509 if test -n "$ac_prev"; then
22510 ac_prev=
22511 continue
22512 fi
22513 case $ac_arg in
22514 -cache-file | --cache-file | --cache-fil | --cache-fi \
22515 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22516 ac_prev=cache_file ;;
22517 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22518 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22519 | --c=*)
22520 ;;
22521 --config-cache | -C)
22522 ;;
22523 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22524 ac_prev=srcdir ;;
22525 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22526 ;;
22527 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22528 ac_prev=prefix ;;
22529 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22530 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022531 *)
22532 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022533 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022534 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022535 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022536 esac
22537 done
22538
22539 # Always prepend --prefix to ensure using the same prefix
22540 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022541 ac_arg="--prefix=$prefix"
22542 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022543 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022544 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022545 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022546
22547 ac_popdir=`pwd`
22548 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22549
22550 # Do not complain, so a configure script can configure whichever
22551 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022552 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022553
Reid Spencera773bd52006-08-04 18:18:08 +000022554 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022555 echo "$as_me:$LINENO: $ac_msg" >&5
22556 echo "$ac_msg" >&6
22557 { as_dir="$ac_dir"
22558 case $as_dir in #(
22559 -*) as_dir=./$as_dir;;
22560 esac
22561 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22562 as_dirs=
22563 while :; do
22564 case $as_dir in #(
22565 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22566 *) as_qdir=$as_dir;;
22567 esac
22568 as_dirs="'$as_qdir' $as_dirs"
22569 as_dir=`$as_dirname -- "$as_dir" ||
22570$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22571 X"$as_dir" : 'X\(//\)[^/]' \| \
22572 X"$as_dir" : 'X\(//\)$' \| \
22573 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22574echo X"$as_dir" |
22575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22576 s//\1/
22577 q
22578 }
22579 /^X\(\/\/\)[^/].*/{
22580 s//\1/
22581 q
22582 }
22583 /^X\(\/\/\)$/{
22584 s//\1/
22585 q
22586 }
22587 /^X\(\/\).*/{
22588 s//\1/
22589 q
22590 }
22591 s/.*/./; q'`
22592 test -d "$as_dir" && break
22593 done
22594 test -z "$as_dirs" || eval "mkdir $as_dirs"
22595 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22596echo "$as_me: error: cannot create directory $as_dir" >&2;}
22597 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022598 ac_builddir=.
22599
Reid Spencera773bd52006-08-04 18:18:08 +000022600case "$ac_dir" in
22601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22602*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022604 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022605 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022606 case $ac_top_builddir_sub in
22607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22609 esac ;;
22610esac
22611ac_abs_top_builddir=$ac_pwd
22612ac_abs_builddir=$ac_pwd$ac_dir_suffix
22613# for backward compatibility:
22614ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022615
22616case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022617 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022618 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022619 ac_top_srcdir=$ac_top_builddir_sub
22620 ac_abs_top_srcdir=$ac_pwd ;;
22621 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022622 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022623 ac_top_srcdir=$srcdir
22624 ac_abs_top_srcdir=$srcdir ;;
22625 *) # Relative name.
22626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22627 ac_top_srcdir=$ac_top_build_prefix$srcdir
22628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022629esac
Reid Spencera773bd52006-08-04 18:18:08 +000022630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022631
22632
Reid Spencera773bd52006-08-04 18:18:08 +000022633 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022634
22635 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022636 if test -f "$ac_srcdir/configure.gnu"; then
22637 ac_sub_configure=$ac_srcdir/configure.gnu
22638 elif test -f "$ac_srcdir/configure"; then
22639 ac_sub_configure=$ac_srcdir/configure
22640 elif test -f "$ac_srcdir/configure.in"; then
22641 # This should be Cygnus configure.
22642 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022643 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022644 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22645echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022646 ac_sub_configure=
22647 fi
22648
22649 # The recursion is here.
22650 if test -n "$ac_sub_configure"; then
22651 # Make the cache file name correct relative to the subdirectory.
22652 case $cache_file in
22653 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022654 *) # Relative name.
22655 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022656 esac
22657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022658 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22659echo "$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 +000022660 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022661 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22662 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022663 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22664echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22665 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022666 fi
22667
Reid Spencera773bd52006-08-04 18:18:08 +000022668 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022669 done
22670fi
22671