blob: bc4c98449d50e970ef52da964998b1cbce246e3a [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
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'
Benjamin Kramerb85b2d52012-04-20 18:15:07 +0000564PACKAGE_VERSION='3.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000711CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000713INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000714NM
715ifGNUmake
716LN_S
717CMP
718CP
719DATE
720FIND
721MKDIR
722MV
723RANLIB
724AR
725RM
726SED
727TAR
728BINPWD
729GRAPHVIZ
730DOT
731FDP
732NEATO
733TWOPI
734CIRCO
735GV
736DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000737XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000738INSTALL_PROGRAM
739INSTALL_SCRIPT
740INSTALL_DATA
741BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000742CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000743DOXYGEN
744GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000745GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746POD2HTML
747POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000748PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749RUNTEST
750TCLSH
751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
756GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000757HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000765COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766USE_UDIS86
767USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000768USE_INTEL_JITEVENTS
769INTEL_JITEVENTS_INCDIR
770INTEL_JITEVENTS_LIBDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771HAVE_PTHREAD
772HUGE_VAL_SANITY
773MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000775SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776LLVM_PREFIX
777LLVM_BINDIR
778LLVM_LIBDIR
779LLVM_DATADIR
780LLVM_DOCSDIR
781LLVM_ETCDIR
782LLVM_INCLUDEDIR
783LLVM_INFODIR
784LLVM_MANDIR
785LLVM_CONFIGTIME
786BINDINGS_TO_BUILD
787ALL_BINDINGS
788OCAML_LIBDIR
789ENABLE_VISIBILITY_INLINES_HIDDEN
790RPATH
791RDYNAMIC
792LIBOBJS
793LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000794ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000802CXX
803CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000804CCC
805CPP'
John Criswell0157f502010-03-19 21:31:39 +0000806ac_subdirs_all='projects/llvm-gcc
807projects/test-suite
808projects/llvm-test
809projects/poolalloc
810projects/llvm-poolalloc
811projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000813projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-java
816projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000817projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000818projects/llvm-kernel
819tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000846# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000855includedir='${prefix}/include'
856oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000866
867ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000868ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000869for ac_option
870do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000873 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000874 ac_prev=
875 continue
876 fi
877
Reid Spencera773bd52006-08-04 18:18:08 +0000878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
John Criswell7a73b802003-06-30 21:59:07 +0000882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
Reid Spencera773bd52006-08-04 18:18:08 +0000885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000910 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000912 datadir=$ac_optarg ;;
913
Reid Spencera773bd52006-08-04 18:18:08 +0000914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
John Criswell7a73b802003-06-30 21:59:07 +0000921 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000923 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000939
940 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000942 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
Reid Spencera773bd52006-08-04 18:18:08 +0000974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
John Criswell7a73b802003-06-30 21:59:07 +0000980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
Reid Spencera773bd52006-08-04 18:18:08 +00001004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
John Criswell7a73b802003-06-30 21:59:07 +00001009 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
Reid Spencera773bd52006-08-04 18:18:08 +00001078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
John Criswell7a73b802003-06-30 21:59:07 +00001088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001139 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001148 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001184 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001202fi
1203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001209do
Reid Spencera773bd52006-08-04 18:18:08 +00001210 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001211 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001214 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
Reid Spencera773bd52006-08-04 18:18:08 +00001243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001251
1252
John Criswell7a73b802003-06-30 21:59:07 +00001253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001256 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 ac_confdir=`$as_dirname -- "$0" ||
1258$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\).*/{
1276 s//\1/
1277 q
1278 }
1279 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001281 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=..
1283 fi
1284else
1285 ac_srcdir_defaulted=no
1286fi
Reid Spencera773bd52006-08-04 18:18:08 +00001287if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001291fi
Reid Spencera773bd52006-08-04 18:18:08 +00001292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
John Criswell7a73b802003-06-30 21:59:07 +00001313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001321\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
John Criswell7a73b802003-06-30 21:59:07 +00001341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001369 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001387 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001388 esac
1389 cat <<\_ACEOF
1390
1391Optional Features:
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001394 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001395 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1399 YES)
David Greenea696d242007-06-28 19:36:08 +00001400 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001401 Compile with expensive debug checks enabled (default
1402 is NO)
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001407 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001408 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001409 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001410 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001411 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001412 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001413 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001414 --enable-shared Build a shared library and link tools against it
1415 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001416 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001417 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001418 --enable-timestamps Enable embedding timestamp information in build
1419 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001420 --enable-targets Build specific host targets: all or
1421 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001422 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Justin Holewinski49683f32012-05-04 20:18:50 +00001423 xcore, msp430, ptx, nvptx, and cpp (default=all)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001424 --enable-bindings Build specific language bindings:
1425 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001426 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001427 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001428
1429Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001432 --with-optimize-option Select the compiler options to use for optimized
1433 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001434 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001435 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001436 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001438 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001439 --with-clang-resource-dir
1440 Relative directory from the Clang binary for
1441 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001442 --with-c-include-dirs Colon separated list of directories clang will
1443 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001444 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001445 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001446 --with-binutils-include Specify path to binutils/include/ containing
1447 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001448 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001449 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001450 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001451 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001452 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001453 --with-oprofile=<prefix>
1454 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001455 --with-intel-jitevents=<vtune-amplifier-dir>
1456 Specify location of run-time support library for
1457 Intel JIT API
1458 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001459
1460Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001461 CC C compiler command
1462 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001465 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001466 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001467 CXX C++ compiler command
1468 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001469 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001470
1471Use these variables to override the choices made by `configure' or to help
1472it to find libraries and programs with nonstandard names/locations.
1473
Eric Christopherf33ab862011-12-21 00:52:44 +00001474Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001475_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001476ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001477fi
1478
1479if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001482 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001483 ac_builddir=.
1484
Reid Spencera773bd52006-08-04 18:18:08 +00001485case "$ac_dir" in
1486.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001489 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 esac ;;
1495esac
1496ac_abs_top_builddir=$ac_pwd
1497ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498# for backward compatibility:
1499ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001500
1501case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001502 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001503 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001507 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1510 *) # Relative name.
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001514esac
Reid Spencera773bd52006-08-04 18:18:08 +00001515ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001516
Reid Spencera773bd52006-08-04 18:18:08 +00001517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001525 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001526 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001527 fi || ac_status=$?
1528 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001529 done
1530fi
1531
Reid Spencera773bd52006-08-04 18:18:08 +00001532test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001533if $ac_init_version; then
1534 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001535LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001536generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001538Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15392002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001542
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001543Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001544_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001545 exit
John Criswell7a73b802003-06-30 21:59:07 +00001546fi
Reid Spencera773bd52006-08-04 18:18:08 +00001547cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001548This file contains any messages produced by compilers while
1549running configure, to aid debugging if configure makes a mistake.
1550
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001551It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001552generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001553
1554 $ $0 $@
1555
1556_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001557exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001558{
1559cat <<_ASUNAME
1560## --------- ##
1561## Platform. ##
1562## --------- ##
1563
1564hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1565uname -m = `(uname -m) 2>/dev/null || echo unknown`
1566uname -r = `(uname -r) 2>/dev/null || echo unknown`
1567uname -s = `(uname -s) 2>/dev/null || echo unknown`
1568uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569
1570/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1571/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1572
1573/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1574/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1575/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001576/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001577/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1578/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1579/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1580
1581_ASUNAME
1582
1583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584for as_dir in $PATH
1585do
1586 IFS=$as_save_IFS
1587 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001588 echo "PATH: $as_dir"
1589done
Reid Spencera773bd52006-08-04 18:18:08 +00001590IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001591
1592} >&5
1593
1594cat >&5 <<_ACEOF
1595
1596
1597## ----------- ##
1598## Core tests. ##
1599## ----------- ##
1600
1601_ACEOF
1602
1603
1604# Keep a trace of the command line.
1605# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001606# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001607# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001608# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001609ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001610ac_configure_args0=
1611ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001612ac_must_keep_next=false
1613for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001614do
John Criswell0c38eaf2003-09-10 15:17:25 +00001615 for ac_arg
1616 do
1617 case $ac_arg in
1618 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1620 | -silent | --silent | --silen | --sile | --sil)
1621 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001622 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001623 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 esac
1625 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001626 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001628 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001630 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001632 case $ac_arg in
1633 *=* | --config-cache | -C | -disable-* | --disable-* \
1634 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1635 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1636 | -with-* | --with-* | -without-* | --without-* | --x)
1637 case "$ac_configure_args0 " in
1638 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639 esac
1640 ;;
1641 -* ) ac_must_keep_next=true ;;
1642 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 ;;
1646 esac
1647 done
John Criswell7a73b802003-06-30 21:59:07 +00001648done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1650$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 +00001651
1652# When interrupted or exit'd, cleanup temporary files, and complete
1653# config.log. We remove comments because anyway the quotes in there
1654# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001655# WARNING: Use '\'' to represent an apostrophe within the trap.
1656# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001657trap 'exit_status=$?
1658 # Save into config.log some information that might help in debugging.
1659 {
1660 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001661
John Criswell7a73b802003-06-30 21:59:07 +00001662 cat <<\_ASBOX
1663## ---------------- ##
1664## Cache variables. ##
1665## ---------------- ##
1666_ASBOX
1667 echo
1668 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001669(
1670 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1671 eval ac_val=\$$ac_var
1672 case $ac_val in #(
1673 *${as_nl}*)
1674 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001675 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1676echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001677 esac
1678 case $ac_var in #(
1679 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001680 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001681 esac ;;
1682 esac
1683 done
John Criswell7a73b802003-06-30 21:59:07 +00001684 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001685 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1686 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001687 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001688 "s/'\''/'\''\\\\'\'''\''/g;
1689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001691 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001693 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001694 esac |
1695 sort
1696)
John Criswell7a73b802003-06-30 21:59:07 +00001697 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001698
1699 cat <<\_ASBOX
1700## ----------------- ##
1701## Output variables. ##
1702## ----------------- ##
1703_ASBOX
1704 echo
1705 for ac_var in $ac_subst_vars
1706 do
Reid Spencera773bd52006-08-04 18:18:08 +00001707 eval ac_val=\$$ac_var
1708 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001710 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001711 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 done | sort
1713 echo
1714
1715 if test -n "$ac_subst_files"; then
1716 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001717## ------------------- ##
1718## File substitutions. ##
1719## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001720_ASBOX
1721 echo
1722 for ac_var in $ac_subst_files
1723 do
Reid Spencera773bd52006-08-04 18:18:08 +00001724 eval ac_val=\$$ac_var
1725 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001726 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001727 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001728 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001729 done | sort
1730 echo
1731 fi
1732
John Criswell7a73b802003-06-30 21:59:07 +00001733 if test -s confdefs.h; then
1734 cat <<\_ASBOX
1735## ----------- ##
1736## confdefs.h. ##
1737## ----------- ##
1738_ASBOX
1739 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001740 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001741 echo
1742 fi
1743 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001744 echo "$as_me: caught signal $ac_signal"
1745 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001746 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001747 rm -f core *.core core.conftest.* &&
1748 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001749 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001750' 0
John Criswell7a73b802003-06-30 21:59:07 +00001751for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001752 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001753done
1754ac_signal=0
1755
1756# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001757rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001758
1759# Predefined preprocessor variables.
1760
1761cat >>confdefs.h <<_ACEOF
1762#define PACKAGE_NAME "$PACKAGE_NAME"
1763_ACEOF
1764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001765
John Criswell7a73b802003-06-30 21:59:07 +00001766cat >>confdefs.h <<_ACEOF
1767#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768_ACEOF
1769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001770
John Criswell7a73b802003-06-30 21:59:07 +00001771cat >>confdefs.h <<_ACEOF
1772#define PACKAGE_VERSION "$PACKAGE_VERSION"
1773_ACEOF
1774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775
John Criswell7a73b802003-06-30 21:59:07 +00001776cat >>confdefs.h <<_ACEOF
1777#define PACKAGE_STRING "$PACKAGE_STRING"
1778_ACEOF
1779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001780
John Criswell7a73b802003-06-30 21:59:07 +00001781cat >>confdefs.h <<_ACEOF
1782#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783_ACEOF
1784
1785
1786# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001788if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001790elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001792else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793 set x "$ac_default_prefix/share/config.site" \
1794 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001795fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796shift
1797for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001798do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799 if test -r "$ac_site_file"; then
1800 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1801echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001802 sed 's/^/| /' "$ac_site_file" >&5
1803 . "$ac_site_file"
1804 fi
1805done
1806
1807if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808 # Some versions of bash will fail to source /dev/null (special
1809 # files actually), so we avoid doing that.
1810 if test -f "$cache_file"; then
1811 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1812echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001813 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001814 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1815 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001816 esac
1817 fi
1818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001819 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1820echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001821 >$cache_file
1822fi
1823
1824# Check that the precious variables saved in the cache have kept the same
1825# value.
1826ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001827for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001828 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1829 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001830 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1831 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001832 case $ac_old_set,$ac_new_set in
1833 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001834 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1835echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001836 ac_cache_corrupted=: ;;
1837 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001838 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1839echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001840 ac_cache_corrupted=: ;;
1841 ,);;
1842 *)
1843 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001844 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1845echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1846 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1847echo "$as_me: former value: $ac_old_val" >&2;}
1848 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1849echo "$as_me: current value: $ac_new_val" >&2;}
1850 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001851 fi;;
1852 esac
1853 # Pass precious variables to config.status.
1854 if test "$ac_new_set" = set; then
1855 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001856 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001857 *) ac_arg=$ac_var=$ac_new_val ;;
1858 esac
1859 case " $ac_configure_args " in
1860 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001861 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001862 esac
1863 fi
1864done
1865if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001866 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1867echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1868 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1869echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1870 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001871fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
Reid Spencera773bd52006-08-04 18:18:08 +00001896
John Criswell7a73b802003-06-30 21:59:07 +00001897ac_ext=c
1898ac_cpp='$CPP $CPPFLAGS'
1899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902
1903
1904
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001905cat >>confdefs.h <<\_ACEOF
1906#define LLVM_VERSION_MAJOR 3
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001911#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001912_ACEOF
1913
1914
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001915LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001916
1917
1918
1919
1920
1921
1922
John Criswell7a73b802003-06-30 21:59:07 +00001923ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001924for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001925 if test -f "$ac_dir/install-sh"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/install-sh -c"
1928 break
1929 elif test -f "$ac_dir/install.sh"; then
1930 ac_aux_dir=$ac_dir
1931 ac_install_sh="$ac_aux_dir/install.sh -c"
1932 break
1933 elif test -f "$ac_dir/shtool"; then
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/shtool install -c"
1936 break
1937 fi
John Criswell7a73b802003-06-30 21:59:07 +00001938done
1939if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001940 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1941echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1942 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001943fi
Reid Spencera773bd52006-08-04 18:18:08 +00001944
1945# These three variables are undocumented and unsupported,
1946# and are intended to be withdrawn in a future Autoconf release.
1947# They can cause serious problems if a builder's source tree is in a directory
1948# whose full name contains unusual characters.
1949ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1950ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1951ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1952
John Criswell7a73b802003-06-30 21:59:07 +00001953
John Criswell392aaa32003-07-22 19:18:09 +00001954
Reid Spencer2706f8c2004-09-19 23:53:36 +00001955if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001956 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001957 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1958echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1959 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001960 fi
John Criswell93e1c722003-09-15 17:04:06 +00001961fi
1962
Nick Lewycky83fc4472009-09-29 05:48:51 +00001963ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001964ac_cpp='$CPP $CPPFLAGS'
1965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001968if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001969 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001970 do
1971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1972set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975if test "${ac_cv_prog_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001977else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001978 if test -n "$CC"; then
1979 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001980else
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 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 +00001988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001990 break 2
1991 fi
1992done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001993done
Reid Spencera773bd52006-08-04 18:18:08 +00001994IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001995
1996fi
1997fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001998CC=$ac_cv_prog_CC
1999if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002000 { echo "$as_me:$LINENO: result: $CC" >&5
2001echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002002else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002003 { echo "$as_me:$LINENO: result: no" >&5
2004echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002005fi
2006
Reid Spencera773bd52006-08-04 18:18:08 +00002007
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002008 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002009 done
2010fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002011if test -z "$CC"; then
2012 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002013 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002014do
2015 # Extract the first word of "$ac_prog", so it can be a program name with args.
2016set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2019if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002021else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002022 if test -n "$ac_ct_CC"; then
2023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002024else
2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026for as_dir in $PATH
2027do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 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 +00002032 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002034 break 2
2035 fi
2036done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002037done
Reid Spencera773bd52006-08-04 18:18:08 +00002038IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002039
2040fi
2041fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002042ac_ct_CC=$ac_cv_prog_ac_ct_CC
2043if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2045echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002047 { echo "$as_me:$LINENO: result: no" >&5
2048echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002049fi
2050
Reid Spencera773bd52006-08-04 18:18:08 +00002051
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002052 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002053done
John Criswell7a73b802003-06-30 21:59:07 +00002054
Reid Spencera773bd52006-08-04 18:18:08 +00002055 if test "x$ac_ct_CC" = x; then
2056 CC=""
2057 else
2058 case $cross_compiling:$ac_tool_warned in
2059yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002060{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2061whose name does not start with the host triplet. If you think this
2062configuration is useful to you, please write to autoconf@gnu.org." >&5
2063echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2064whose name does not start with the host triplet. If you think this
2065configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002066ac_tool_warned=yes ;;
2067esac
2068 CC=$ac_ct_CC
2069 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002070fi
2071
John Criswell7a73b802003-06-30 21:59:07 +00002072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002073test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2074See \`config.log' for more details." >&5
2075echo "$as_me: error: no acceptable C compiler found in \$PATH
2076See \`config.log' for more details." >&2;}
2077 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078
John Criswell7a73b802003-06-30 21:59:07 +00002079# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002080echo "$as_me:$LINENO: checking for C compiler version" >&5
2081ac_compiler=`set X $ac_compile; echo $2`
2082{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002083case "(($ac_try" in
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2086esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2088 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002089 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092{ (ac_try="$ac_compiler -v >&5"
2093case "(($ac_try" in
2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095 *) ac_try_echo=$ac_try;;
2096esac
2097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098 (eval "$ac_compiler -v >&5") 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }
2102{ (ac_try="$ac_compiler -V >&5"
2103case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106esac
2107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108 (eval "$ac_compiler -V >&5") 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002112
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002113cat >conftest.$ac_ext <<_ACEOF
2114/* confdefs.h. */
2115_ACEOF
2116cat confdefs.h >>conftest.$ac_ext
2117cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002118/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002119
John Criswell7a73b802003-06-30 21:59:07 +00002120int
2121main ()
2122{
2123
2124 ;
2125 return 0;
2126}
2127_ACEOF
2128ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002129ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002130# Try to create an executable without -o first, disregard a.out.
2131# It will help us diagnose broken compilers, and finding out an intuition
2132# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002133{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2134echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2135ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2136#
2137# List of possible output files, starting from the most likely.
2138# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2139# only as a last resort. b.out is created by i960 compilers.
2140ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2141#
2142# The IRIX 6 linker writes into existing files which may not be
2143# executable, retaining their permissions. Remove them first so a
2144# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002145ac_rmfiles=
2146for ac_file in $ac_files
2147do
2148 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002150 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2151 esac
2152done
2153rm -f $ac_rmfiles
2154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002155if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002156case "(($ac_try" in
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2159esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002161 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002162 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002165 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2166# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2167# in a Makefile. We should not override ac_cv_exeext if it was cached,
2168# so that the user can short-circuit this test for compilers unknown to
2169# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002170for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002171do
2172 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002173 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002175 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002176 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002177 # We found the default executable, but exeext='' is most
2178 # certainly right.
2179 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002180 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002181 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002182 then :; else
2183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 fi
2185 # We set ac_cv_exeext here because the later test for it is not
2186 # safe: cross compilers may not add the suffix if given an `-o'
2187 # argument, so we may need to know it at that point already.
2188 # Even if this section looks crufty: it has the advantage of
2189 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002190 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002191 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002192 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002193 esac
2194done
Reid Spencera773bd52006-08-04 18:18:08 +00002195test "$ac_cv_exeext" = no && ac_cv_exeext=
2196
John Criswell7a73b802003-06-30 21:59:07 +00002197else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002199sed 's/^/| /' conftest.$ac_ext >&5
2200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002201{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2202See \`config.log' for more details." >&5
2203echo "$as_me: error: C compiler cannot create executables
2204See \`config.log' for more details." >&2;}
2205 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002206fi
John Criswell7a73b802003-06-30 21:59:07 +00002207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002208ac_exeext=$ac_cv_exeext
2209{ echo "$as_me:$LINENO: result: $ac_file" >&5
2210echo "${ECHO_T}$ac_file" >&6; }
2211
2212# Check that the compiler produces executables we can run. If not, either
2213# the compiler is broken, or we cross compile.
2214{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2216# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217# If not cross compiling, check that we can run a simple program.
2218if test "$cross_compiling" != yes; then
2219 if { ac_try='./$ac_file'
2220 { (case "(($ac_try" in
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2223esac
2224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2225 (eval "$ac_try") 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 cross_compiling=no
2230 else
2231 if test "$cross_compiling" = maybe; then
2232 cross_compiling=yes
2233 else
2234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: cannot run C compiled programs.
2238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2241 fi
2242 fi
2243fi
2244{ echo "$as_me:$LINENO: result: yes" >&5
2245echo "${ECHO_T}yes" >&6; }
2246
2247rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002248ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002249# Check that the compiler produces executables we can run. If not, either
2250# the compiler is broken, or we cross compile.
2251{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2253{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254echo "${ECHO_T}$cross_compiling" >&6; }
2255
2256{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2258if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002259case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2262esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002264 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002265 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002268 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2270# work properly (i.e., refer to `conftest.exe'), while it won't with
2271# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002272for ac_file in conftest.exe conftest conftest.*; do
2273 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002274 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002277 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002278 * ) break;;
2279 esac
2280done
2281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002282 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283See \`config.log' for more details." >&5
2284echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285See \`config.log' for more details." >&2;}
2286 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002288
2289rm -f conftest$ac_cv_exeext
2290{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002292
2293rm -f conftest.$ac_ext
2294EXEEXT=$ac_cv_exeext
2295ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002296{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2298if test "${ac_cv_objext+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002300else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002301 cat >conftest.$ac_ext <<_ACEOF
2302/* confdefs.h. */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002307
John Criswell7a73b802003-06-30 21:59:07 +00002308int
2309main ()
2310{
2311
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002317if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002318case "(($ac_try" in
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2321esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002323 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002324 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002327 for ac_file in conftest.o conftest.obj conftest.*; do
2328 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002329 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332 break;;
2333 esac
2334done
2335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002337sed 's/^/| /' conftest.$ac_ext >&5
2338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340See \`config.log' for more details." >&5
2341echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342See \`config.log' for more details." >&2;}
2343 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345
John Criswell7a73b802003-06-30 21:59:07 +00002346rm -f conftest.$ac_cv_objext conftest.$ac_ext
2347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002350OBJEXT=$ac_cv_objext
2351ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2354if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002356else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002357 cat >conftest.$ac_ext <<_ACEOF
2358/* confdefs.h. */
2359_ACEOF
2360cat confdefs.h >>conftest.$ac_ext
2361cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002363
John Criswell7a73b802003-06-30 21:59:07 +00002364int
2365main ()
2366{
2367#ifndef __GNUC__
2368 choke me
2369#endif
2370
2371 ;
2372 return 0;
2373}
2374_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002375rm -f conftest.$ac_objext
2376if { (ac_try="$ac_compile"
2377case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380esac
2381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_compile") 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
2389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2390 { (case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393esac
2394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_try") 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2403esac
2404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_try") 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002409 ac_compiler_gnu=yes
2410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002411 echo "$as_me: failed program was:" >&5
2412sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002416
Reid Spencera773bd52006-08-04 18:18:08 +00002417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002419
2420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002421{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2423GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424ac_test_CFLAGS=${CFLAGS+set}
2425ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002426{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2427echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2428if test "${ac_cv_prog_cc_g+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002430else
Reid Spencera773bd52006-08-04 18:18:08 +00002431 ac_save_c_werror_flag=$ac_c_werror_flag
2432 ac_c_werror_flag=yes
2433 ac_cv_prog_cc_g=no
2434 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002435 cat >conftest.$ac_ext <<_ACEOF
2436/* confdefs.h. */
2437_ACEOF
2438cat confdefs.h >>conftest.$ac_ext
2439cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002441
John Criswell7a73b802003-06-30 21:59:07 +00002442int
2443main ()
2444{
2445
2446 ;
2447 return 0;
2448}
2449_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002450rm -f conftest.$ac_objext
2451if { (ac_try="$ac_compile"
2452case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455esac
2456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457 (eval "$ac_compile") 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2465 { (case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2468esac
2469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_try") 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478esac
2479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_try") 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002486 echo "$as_me: failed program was:" >&5
2487sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 CFLAGS=""
2490 cat >conftest.$ac_ext <<_ACEOF
2491/* confdefs.h. */
2492_ACEOF
2493cat confdefs.h >>conftest.$ac_ext
2494cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002495/* end confdefs.h. */
2496
2497int
2498main ()
2499{
2500
2501 ;
2502 return 0;
2503}
2504_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002505rm -f conftest.$ac_objext
2506if { (ac_try="$ac_compile"
2507case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510esac
2511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_compile") 2>conftest.er1
2513 ac_status=$?
2514 grep -v '^ *+' conftest.er1 >conftest.err
2515 rm -f conftest.er1
2516 cat conftest.err >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } &&
2519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2520 { (case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523esac
2524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_try") 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2533esac
2534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_try") 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 :
Torok Edwin871384f2010-01-26 08:50:50 +00002540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002541 echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002545 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002546 cat >conftest.$ac_ext <<_ACEOF
2547/* confdefs.h. */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002551/* end confdefs.h. */
2552
2553int
2554main ()
2555{
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002561rm -f conftest.$ac_objext
2562if { (ac_try="$ac_compile"
2563case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566esac
2567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>conftest.er1
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2576 { (case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579esac
2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_try") 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589esac
2590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_try") 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002595 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002596else
2597 echo "$as_me: failed program was:" >&5
2598sed 's/^/| /' conftest.$ac_ext >&5
2599
2600
John Criswell7a73b802003-06-30 21:59:07 +00002601fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602
Reid Spencera773bd52006-08-04 18:18:08 +00002603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002605
Reid Spencera773bd52006-08-04 18:18:08 +00002606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608
Reid Spencera773bd52006-08-04 18:18:08 +00002609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 ac_c_werror_flag=$ac_save_c_werror_flag
2611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002612{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2613echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614if test "$ac_test_CFLAGS" = set; then
2615 CFLAGS=$ac_save_CFLAGS
2616elif test $ac_cv_prog_cc_g = yes; then
2617 if test "$GCC" = yes; then
2618 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002619 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002621 fi
2622else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623 if test "$GCC" = yes; then
2624 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002625 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002627 fi
2628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002629{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2630echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2631if test "${ac_cv_prog_cc_c89+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633else
Reid Spencera773bd52006-08-04 18:18:08 +00002634 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002635ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002636cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641/* end confdefs.h. */
2642#include <stdarg.h>
2643#include <stdio.h>
2644#include <sys/types.h>
2645#include <sys/stat.h>
2646/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2647struct buf { int x; };
2648FILE * (*rcsopen) (struct buf *, struct stat *, int);
2649static char *e (p, i)
2650 char **p;
2651 int i;
2652{
2653 return p[i];
2654}
2655static char *f (char * (*g) (char **, int), char **p, ...)
2656{
2657 char *s;
2658 va_list v;
2659 va_start (v,p);
2660 s = g (p, va_arg (v,int));
2661 va_end (v);
2662 return s;
2663}
2664
2665/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2666 function prototypes and stuff, but not '\xHH' hex character constants.
2667 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002668 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2670 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002671 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002672int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2673
Reid Spencera773bd52006-08-04 18:18:08 +00002674/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2675 inside strings and character constants. */
2676#define FOO(x) 'x'
2677int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2678
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002679int test (int i, double x);
2680struct s1 {int (*f) (int a);};
2681struct s2 {int (*f) (double a);};
2682int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2683int argc;
2684char **argv;
2685int
2686main ()
2687{
2688return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2689 ;
2690 return 0;
2691}
2692_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002693for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002695do
2696 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002697 rm -f conftest.$ac_objext
2698if { (ac_try="$ac_compile"
2699case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702esac
2703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
2705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2712 { (case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715esac
2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_try") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_try") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002731 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002732else
2733 echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002737fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002738
Reid Spencera773bd52006-08-04 18:18:08 +00002739rm -f core conftest.err conftest.$ac_objext
2740 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002741done
Reid Spencera773bd52006-08-04 18:18:08 +00002742rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002743CC=$ac_save_CC
2744
2745fi
Reid Spencera773bd52006-08-04 18:18:08 +00002746# AC_CACHE_VAL
2747case "x$ac_cv_prog_cc_c89" in
2748 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002749 { echo "$as_me:$LINENO: result: none needed" >&5
2750echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002751 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002752 { echo "$as_me:$LINENO: result: unsupported" >&5
2753echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002754 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002755 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002756 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2757echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002758esac
2759
John Criswell0c38eaf2003-09-10 15:17:25 +00002760
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002761ac_ext=c
2762ac_cpp='$CPP $CPPFLAGS'
2763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766
Eric Christopherffee5722011-09-16 20:36:25 +00002767ac_ext=cpp
2768ac_cpp='$CXXCPP $CPPFLAGS'
2769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2772if test -z "$CXX"; then
2773 if test -n "$CCC"; then
2774 CXX=$CCC
2775 else
2776 if test -n "$ac_tool_prefix"; then
2777 for ac_prog in clang++ llvm-g++ g++
2778 do
2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783if test "${ac_cv_prog_CXX+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785else
2786 if test -n "$CXX"; then
2787 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2788else
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800done
2801done
2802IFS=$as_save_IFS
2803
2804fi
2805fi
2806CXX=$ac_cv_prog_CXX
2807if test -n "$CXX"; then
2808 { echo "$as_me:$LINENO: result: $CXX" >&5
2809echo "${ECHO_T}$CXX" >&6; }
2810else
2811 { echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6; }
2813fi
2814
2815
2816 test -n "$CXX" && break
2817 done
2818fi
2819if test -z "$CXX"; then
2820 ac_ct_CXX=$CXX
2821 for ac_prog in clang++ llvm-g++ g++
2822do
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824set dummy $ac_prog; ac_word=$2
2825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
2830 if test -n "$ac_ct_CXX"; then
2831 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CXX="$ac_prog"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844done
2845done
2846IFS=$as_save_IFS
2847
2848fi
2849fi
2850ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2851if test -n "$ac_ct_CXX"; then
2852 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2853echo "${ECHO_T}$ac_ct_CXX" >&6; }
2854else
2855 { echo "$as_me:$LINENO: result: no" >&5
2856echo "${ECHO_T}no" >&6; }
2857fi
2858
2859
2860 test -n "$ac_ct_CXX" && break
2861done
2862
2863 if test "x$ac_ct_CXX" = x; then
2864 CXX="g++"
2865 else
2866 case $cross_compiling:$ac_tool_warned in
2867yes:)
2868{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2869whose name does not start with the host triplet. If you think this
2870configuration is useful to you, please write to autoconf@gnu.org." >&5
2871echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2872whose name does not start with the host triplet. If you think this
2873configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2874ac_tool_warned=yes ;;
2875esac
2876 CXX=$ac_ct_CXX
2877 fi
2878fi
2879
2880 fi
2881fi
2882# Provide some information about the compiler.
2883echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2884ac_compiler=`set X $ac_compile; echo $2`
2885{ (ac_try="$ac_compiler --version >&5"
2886case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889esac
2890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compiler --version >&5") 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }
2895{ (ac_try="$ac_compiler -v >&5"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compiler -v >&5") 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905{ (ac_try="$ac_compiler -V >&5"
2906case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909esac
2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compiler -V >&5") 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915
2916{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2917echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2918if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921 cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
2927
2928int
2929main ()
2930{
2931#ifndef __GNUC__
2932 choke me
2933#endif
2934
2935 ;
2936 return 0;
2937}
2938_ACEOF
2939rm -f conftest.$ac_objext
2940if { (ac_try="$ac_compile"
2941case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944esac
2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compile") 2>conftest.er1
2947 ac_status=$?
2948 grep -v '^ *+' conftest.er1 >conftest.err
2949 rm -f conftest.er1
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2954 { (case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_try") 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; } &&
2963 { ac_try='test -s conftest.$ac_objext'
2964 { (case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
2968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_try") 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2973 ac_compiler_gnu=yes
2974else
2975 echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 ac_compiler_gnu=no
2979fi
2980
2981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2983
2984fi
2985{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2986echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2987GXX=`test $ac_compiler_gnu = yes && echo yes`
2988ac_test_CXXFLAGS=${CXXFLAGS+set}
2989ac_save_CXXFLAGS=$CXXFLAGS
2990{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2991echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2992if test "${ac_cv_prog_cxx_g+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2996 ac_cxx_werror_flag=yes
2997 ac_cv_prog_cxx_g=no
2998 CXXFLAGS="-g"
2999 cat >conftest.$ac_ext <<_ACEOF
3000/* confdefs.h. */
3001_ACEOF
3002cat confdefs.h >>conftest.$ac_ext
3003cat >>conftest.$ac_ext <<_ACEOF
3004/* end confdefs.h. */
3005
3006int
3007main ()
3008{
3009
3010 ;
3011 return 0;
3012}
3013_ACEOF
3014rm -f conftest.$ac_objext
3015if { (ac_try="$ac_compile"
3016case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>conftest.er1
3022 ac_status=$?
3023 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3029 { (case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_try") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_cv_prog_cxx_g=yes
3049else
3050 echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 CXXFLAGS=""
3054 cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h. */
3060
3061int
3062main ()
3063{
3064
3065 ;
3066 return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext
3070if { (ac_try="$ac_compile"
3071case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 :
3104else
3105 echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3109 CXXFLAGS="-g"
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_prog_cxx_g=yes
3160else
3161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164
3165fi
3166
3167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168fi
3169
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3175fi
3176{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3177echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3178if test "$ac_test_CXXFLAGS" = set; then
3179 CXXFLAGS=$ac_save_CXXFLAGS
3180elif test $ac_cv_prog_cxx_g = yes; then
3181 if test "$GXX" = yes; then
3182 CXXFLAGS="-g -O2"
3183 else
3184 CXXFLAGS="-g"
3185 fi
3186else
3187 if test "$GXX" = yes; then
3188 CXXFLAGS="-O2"
3189 else
3190 CXXFLAGS=
3191 fi
3192fi
3193ac_ext=c
3194ac_cpp='$CPP $CPPFLAGS'
3195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003198
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003199ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003204{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3205echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003206# On Suns, sometimes $CPP names a directory.
3207if test -n "$CPP" && test -d "$CPP"; then
3208 CPP=
3209fi
3210if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003211 if test "${ac_cv_prog_CPP+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003213else
3214 # Double quotes because CPP needs to be expanded
3215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3216 do
3217 ac_preproc_ok=false
3218for ac_c_preproc_warn_flag in '' yes
3219do
3220 # Use a header file that comes with gcc, so configuring glibc
3221 # with a fresh cross-compiler works.
3222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3223 # <limits.h> exists even on freestanding compilers.
3224 # On the NeXT, cc -E runs the code through the compiler's parser,
3225 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003226 cat >conftest.$ac_ext <<_ACEOF
3227/* confdefs.h. */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003231/* end confdefs.h. */
3232#ifdef __STDC__
3233# include <limits.h>
3234#else
3235# include <assert.h>
3236#endif
3237 Syntax error
3238_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003239if { (ac_try="$ac_cpp conftest.$ac_ext"
3240case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243esac
3244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null; then
3252 if test -s conftest.err; then
3253 ac_cpp_err=$ac_c_preproc_warn_flag
3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255 else
3256 ac_cpp_err=
3257 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003259 ac_cpp_err=yes
3260fi
3261if test -z "$ac_cpp_err"; then
3262 :
3263else
3264 echo "$as_me: failed program was:" >&5
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003267 # Broken: fails on valid input.
3268continue
3269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003270
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271rm -f conftest.err conftest.$ac_ext
3272
Reid Spencera773bd52006-08-04 18:18:08 +00003273 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003274 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003275 cat >conftest.$ac_ext <<_ACEOF
3276/* confdefs.h. */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003280/* end confdefs.h. */
3281#include <ac_nonexistent.h>
3282_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003283if { (ac_try="$ac_cpp conftest.$ac_ext"
3284case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287esac
3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } >/dev/null; then
3296 if test -s conftest.err; then
3297 ac_cpp_err=$ac_c_preproc_warn_flag
3298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3299 else
3300 ac_cpp_err=
3301 fi
3302else
3303 ac_cpp_err=yes
3304fi
3305if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003306 # Broken: success on invalid input.
3307continue
3308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003309 echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312 # Passes both tests.
3313ac_preproc_ok=:
3314break
3315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003316
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317rm -f conftest.err conftest.$ac_ext
3318
3319done
3320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003322if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003323 break
3324fi
3325
3326 done
3327 ac_cv_prog_CPP=$CPP
3328
3329fi
3330 CPP=$ac_cv_prog_CPP
3331else
3332 ac_cv_prog_CPP=$CPP
3333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003334{ echo "$as_me:$LINENO: result: $CPP" >&5
3335echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336ac_preproc_ok=false
3337for ac_c_preproc_warn_flag in '' yes
3338do
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003345 cat >conftest.$ac_ext <<_ACEOF
3346/* confdefs.h. */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003350/* end confdefs.h. */
3351#ifdef __STDC__
3352# include <limits.h>
3353#else
3354# include <assert.h>
3355#endif
3356 Syntax error
3357_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003358if { (ac_try="$ac_cpp conftest.$ac_ext"
3359case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362esac
3363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3365 ac_status=$?
3366 grep -v '^ *+' conftest.er1 >conftest.err
3367 rm -f conftest.er1
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } >/dev/null; then
3371 if test -s conftest.err; then
3372 ac_cpp_err=$ac_c_preproc_warn_flag
3373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3374 else
3375 ac_cpp_err=
3376 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003377else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003378 ac_cpp_err=yes
3379fi
3380if test -z "$ac_cpp_err"; then
3381 :
3382else
3383 echo "$as_me: failed program was:" >&5
3384sed 's/^/| /' conftest.$ac_ext >&5
3385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386 # Broken: fails on valid input.
3387continue
3388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003389
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390rm -f conftest.err conftest.$ac_ext
3391
Reid Spencera773bd52006-08-04 18:18:08 +00003392 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003394 cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h. */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399/* end confdefs.h. */
3400#include <ac_nonexistent.h>
3401_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003402if { (ac_try="$ac_cpp conftest.$ac_ext"
3403case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406esac
3407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409 ac_status=$?
3410 grep -v '^ *+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null; then
3415 if test -s conftest.err; then
3416 ac_cpp_err=$ac_c_preproc_warn_flag
3417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418 else
3419 ac_cpp_err=
3420 fi
3421else
3422 ac_cpp_err=yes
3423fi
3424if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425 # Broken: success on invalid input.
3426continue
3427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003428 echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431 # Passes both tests.
3432ac_preproc_ok=:
3433break
3434fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003435
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003436rm -f conftest.err conftest.$ac_ext
3437
3438done
3439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003441if $ac_preproc_ok; then
3442 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003443else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003444 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3445See \`config.log' for more details." >&5
3446echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3447See \`config.log' for more details." >&2;}
3448 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449fi
3450
John Criswell7a73b802003-06-30 21:59:07 +00003451ac_ext=c
3452ac_cpp='$CPP $CPPFLAGS'
3453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
John Criswell7a73b802003-06-30 21:59:07 +00003457
Eric Christopherffee5722011-09-16 20:36:25 +00003458
3459
3460if test -d ${srcdir}/projects/llvm-gcc ; then
3461 subdirs="$subdirs projects/llvm-gcc"
3462
3463fi
3464
3465if test -d ${srcdir}/projects/test-suite ; then
3466 subdirs="$subdirs projects/test-suite"
3467
3468fi
3469
3470if test -d ${srcdir}/projects/llvm-test ; then
3471 subdirs="$subdirs projects/llvm-test"
3472
3473fi
3474
3475if test -d ${srcdir}/projects/poolalloc ; then
3476 subdirs="$subdirs projects/poolalloc"
3477
3478fi
3479
3480if test -d ${srcdir}/projects/llvm-poolalloc ; then
3481 subdirs="$subdirs projects/llvm-poolalloc"
3482
3483fi
3484
3485for i in `ls ${srcdir}/projects`
3486do
3487 if test -d ${srcdir}/projects/${i} ; then
3488 case ${i} in
3489 sample) subdirs="$subdirs projects/sample"
3490 ;;
3491 privbracket) subdirs="$subdirs projects/privbracket"
3492 ;;
3493 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3494 ;;
3495 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3496;;
3497 llvm-java) subdirs="$subdirs projects/llvm-java"
3498 ;;
3499 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3500 ;;
3501 safecode) subdirs="$subdirs projects/safecode"
3502 ;;
3503 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3504 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003505 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003506 llvm-gcc) ;;
3507 test-suite) ;;
3508 llvm-test) ;;
3509 poolalloc) ;;
3510 llvm-poolalloc) ;;
3511 *)
3512 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3513echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3514 ;;
3515 esac
3516 fi
3517done
3518
3519# Check whether --enable-polly was given.
3520if test "${enable_polly+set}" = set; then
3521 enableval=$enable_polly;
3522else
3523 enableval=default
3524fi
3525
3526case "$enableval" in
3527 yes) ENABLE_POLLY=1
3528 ;;
3529 no) ENABLE_POLLY=0
3530 ;;
3531 default) ENABLE_POLLY=1
3532 ;;
3533 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3534echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3535 { (exit 1); exit 1; }; } ;;
3536esac
3537
3538
3539if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3540 LLVM_HAS_POLLY=1
3541
3542 subdirs="$subdirs tools/polly"
3543
3544fi
3545
3546
3547# Make sure we can run config.sub.
3548$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3549 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3550echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3551 { (exit 1); exit 1; }; }
3552
3553{ echo "$as_me:$LINENO: checking build system type" >&5
3554echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3555if test "${ac_cv_build+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557else
3558 ac_build_alias=$build_alias
3559test "x$ac_build_alias" = x &&
3560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3561test "x$ac_build_alias" = x &&
3562 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3563echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3564 { (exit 1); exit 1; }; }
3565ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3566 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3567echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3568 { (exit 1); exit 1; }; }
3569
3570fi
3571{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3572echo "${ECHO_T}$ac_cv_build" >&6; }
3573case $ac_cv_build in
3574*-*-*) ;;
3575*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3576echo "$as_me: error: invalid value of canonical build" >&2;}
3577 { (exit 1); exit 1; }; };;
3578esac
3579build=$ac_cv_build
3580ac_save_IFS=$IFS; IFS='-'
3581set x $ac_cv_build
3582shift
3583build_cpu=$1
3584build_vendor=$2
3585shift; shift
3586# Remember, the first character of IFS is used to create $*,
3587# except with old shells:
3588build_os=$*
3589IFS=$ac_save_IFS
3590case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3591
3592
3593{ echo "$as_me:$LINENO: checking host system type" >&5
3594echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3595if test "${ac_cv_host+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597else
3598 if test "x$host_alias" = x; then
3599 ac_cv_host=$ac_cv_build
3600else
3601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3602 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3603echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3604 { (exit 1); exit 1; }; }
3605fi
3606
3607fi
3608{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3609echo "${ECHO_T}$ac_cv_host" >&6; }
3610case $ac_cv_host in
3611*-*-*) ;;
3612*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3613echo "$as_me: error: invalid value of canonical host" >&2;}
3614 { (exit 1); exit 1; }; };;
3615esac
3616host=$ac_cv_host
3617ac_save_IFS=$IFS; IFS='-'
3618set x $ac_cv_host
3619shift
3620host_cpu=$1
3621host_vendor=$2
3622shift; shift
3623# Remember, the first character of IFS is used to create $*,
3624# except with old shells:
3625host_os=$*
3626IFS=$ac_save_IFS
3627case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3628
3629
3630{ echo "$as_me:$LINENO: checking target system type" >&5
3631echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3632if test "${ac_cv_target+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634else
3635 if test "x$target_alias" = x; then
3636 ac_cv_target=$ac_cv_host
3637else
3638 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3639 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3640echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3641 { (exit 1); exit 1; }; }
3642fi
3643
3644fi
3645{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3646echo "${ECHO_T}$ac_cv_target" >&6; }
3647case $ac_cv_target in
3648*-*-*) ;;
3649*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3650echo "$as_me: error: invalid value of canonical target" >&2;}
3651 { (exit 1); exit 1; }; };;
3652esac
3653target=$ac_cv_target
3654ac_save_IFS=$IFS; IFS='-'
3655set x $ac_cv_target
3656shift
3657target_cpu=$1
3658target_vendor=$2
3659shift; shift
3660# Remember, the first character of IFS is used to create $*,
3661# except with old shells:
3662target_os=$*
3663IFS=$ac_save_IFS
3664case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3665
3666
3667# The aliases save the names the user supplied, while $host etc.
3668# will get canonicalized.
3669test -n "$target_alias" &&
3670 test "$program_prefix$program_suffix$program_transform_name" = \
3671 NONENONEs,x,x, &&
3672 program_prefix=${target_alias}-
3673
3674{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3675echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3676if test "${llvm_cv_os_type+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679 case $host in
3680 *-*-aix*)
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="AIX"
3684 llvm_cv_platform_type="Unix" ;;
3685 *-*-irix*)
3686 llvm_cv_link_all_option="-Wl,--whole-archive"
3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688 llvm_cv_os_type="IRIX"
3689 llvm_cv_platform_type="Unix" ;;
3690 *-*-cygwin*)
3691 llvm_cv_link_all_option="-Wl,--whole-archive"
3692 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693 llvm_cv_os_type="Cygwin"
3694 llvm_cv_platform_type="Unix" ;;
3695 *-*-darwin*)
3696 llvm_cv_link_all_option="-Wl,-all_load"
3697 llvm_cv_no_link_all_option="-Wl,-noall_load"
3698 llvm_cv_os_type="Darwin"
3699 llvm_cv_platform_type="Unix" ;;
3700 *-*-minix*)
3701 llvm_cv_link_all_option="-Wl,-all_load"
3702 llvm_cv_no_link_all_option="-Wl,-noall_load"
3703 llvm_cv_os_type="Minix"
3704 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003705 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="FreeBSD"
3709 llvm_cv_platform_type="Unix" ;;
3710 *-*-openbsd*)
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="OpenBSD"
3714 llvm_cv_platform_type="Unix" ;;
3715 *-*-netbsd*)
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="NetBSD"
3719 llvm_cv_platform_type="Unix" ;;
3720 *-*-dragonfly*)
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="DragonFly"
3724 llvm_cv_platform_type="Unix" ;;
3725 *-*-hpux*)
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="HP-UX"
3729 llvm_cv_platform_type="Unix" ;;
3730 *-*-interix*)
3731 llvm_cv_link_all_option="-Wl,--whole-archive"
3732 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733 llvm_cv_os_type="Interix"
3734 llvm_cv_platform_type="Unix" ;;
3735 *-*-linux*)
3736 llvm_cv_link_all_option="-Wl,--whole-archive"
3737 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738 llvm_cv_os_type="Linux"
3739 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003740 *-*-gnu*)
3741 llvm_cv_link_all_option="-Wl,--whole-archive"
3742 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743 llvm_cv_os_type="GNU"
3744 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003745 *-*-solaris*)
3746 llvm_cv_link_all_option="-Wl,-z,allextract"
3747 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3748 llvm_cv_os_type="SunOS"
3749 llvm_cv_platform_type="Unix" ;;
3750 *-*-auroraux*)
3751 llvm_cv_link_all_option="-Wl,-z,allextract"
3752 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3753 llvm_cv_os_type="AuroraUX"
3754 llvm_cv_platform_type="Unix" ;;
3755 *-*-win32*)
3756 llvm_cv_link_all_option="-Wl,--whole-archive"
3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758 llvm_cv_os_type="Win32"
3759 llvm_cv_platform_type="Win32" ;;
3760 *-*-mingw*)
3761 llvm_cv_link_all_option="-Wl,--whole-archive"
3762 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763 llvm_cv_os_type="MingW"
3764 llvm_cv_platform_type="Win32" ;;
3765 *-*-haiku*)
3766 llvm_cv_link_all_option="-Wl,--whole-archive"
3767 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768 llvm_cv_os_type="Haiku"
3769 llvm_cv_platform_type="Unix" ;;
3770 *-unknown-eabi*)
3771 llvm_cv_link_all_option="-Wl,--whole-archive"
3772 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3773 llvm_cv_os_type="Freestanding"
3774 llvm_cv_platform_type="Unix" ;;
3775 *-unknown-elf*)
3776 llvm_cv_link_all_option="-Wl,--whole-archive"
3777 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3778 llvm_cv_os_type="Freestanding"
3779 llvm_cv_platform_type="Unix" ;;
3780 *)
3781 llvm_cv_link_all_option=""
3782 llvm_cv_no_link_all_option=""
3783 llvm_cv_os_type="Unknown"
3784 llvm_cv_platform_type="Unknown" ;;
3785esac
3786fi
3787{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3788echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3789
3790{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3791echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3792if test "${llvm_cv_target_os_type+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 case $target in
3796 *-*-aix*)
3797 llvm_cv_target_os_type="AIX" ;;
3798 *-*-irix*)
3799 llvm_cv_target_os_type="IRIX" ;;
3800 *-*-cygwin*)
3801 llvm_cv_target_os_type="Cygwin" ;;
3802 *-*-darwin*)
3803 llvm_cv_target_os_type="Darwin" ;;
3804 *-*-minix*)
3805 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003806 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003807 llvm_cv_target_os_type="FreeBSD" ;;
3808 *-*-openbsd*)
3809 llvm_cv_target_os_type="OpenBSD" ;;
3810 *-*-netbsd*)
3811 llvm_cv_target_os_type="NetBSD" ;;
3812 *-*-dragonfly*)
3813 llvm_cv_target_os_type="DragonFly" ;;
3814 *-*-hpux*)
3815 llvm_cv_target_os_type="HP-UX" ;;
3816 *-*-interix*)
3817 llvm_cv_target_os_type="Interix" ;;
3818 *-*-linux*)
3819 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003820 *-*-gnu*)
3821 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003822 *-*-solaris*)
3823 llvm_cv_target_os_type="SunOS" ;;
3824 *-*-auroraux*)
3825 llvm_cv_target_os_type="AuroraUX" ;;
3826 *-*-win32*)
3827 llvm_cv_target_os_type="Win32" ;;
3828 *-*-mingw*)
3829 llvm_cv_target_os_type="MingW" ;;
3830 *-*-haiku*)
3831 llvm_cv_target_os_type="Haiku" ;;
3832 *-*-rtems*)
3833 llvm_cv_target_os_type="RTEMS" ;;
3834 *-*-nacl*)
3835 llvm_cv_target_os_type="NativeClient" ;;
3836 *-unknown-eabi*)
3837 llvm_cv_target_os_type="Freestanding" ;;
3838 *)
3839 llvm_cv_target_os_type="Unknown" ;;
3840esac
3841fi
3842{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3843echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3844
3845if test "$llvm_cv_os_type" = "Unknown" ; then
3846 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3847echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3848 { (exit 1); exit 1; }; }
3849fi
3850
3851OS=$llvm_cv_os_type
3852
3853HOST_OS=$llvm_cv_os_type
3854
3855TARGET_OS=$llvm_cv_target_os_type
3856
3857
3858LINKALL=$llvm_cv_link_all_option
3859
3860NOLINKALL=$llvm_cv_no_link_all_option
3861
3862
3863case $llvm_cv_platform_type in
3864 Unix)
3865
3866cat >>confdefs.h <<\_ACEOF
3867#define LLVM_ON_UNIX 1
3868_ACEOF
3869
3870 LLVM_ON_UNIX=1
3871
3872 LLVM_ON_WIN32=0
3873
3874 ;;
3875 Win32)
3876
3877cat >>confdefs.h <<\_ACEOF
3878#define LLVM_ON_WIN32 1
3879_ACEOF
3880
3881 LLVM_ON_UNIX=0
3882
3883 LLVM_ON_WIN32=1
3884
3885 ;;
3886esac
3887
3888{ echo "$as_me:$LINENO: checking target architecture" >&5
3889echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3890if test "${llvm_cv_target_arch+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892else
3893 case $target in
3894 i?86-*) llvm_cv_target_arch="x86" ;;
3895 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3896 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3897 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003898 arm*-*) llvm_cv_target_arch="ARM" ;;
3899 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003900 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003901 xcore-*) llvm_cv_target_arch="XCore" ;;
3902 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003903 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003904 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3905 ptx-*) llvm_cv_target_arch="PTX" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003906 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003907 *) llvm_cv_target_arch="Unknown" ;;
3908esac
3909fi
3910{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3911echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3912
3913if test "$llvm_cv_target_arch" = "Unknown" ; then
3914 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3915echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3916fi
3917
Eric Christopherffee5722011-09-16 20:36:25 +00003918case "$llvm_cv_target_arch" in
3919 x86) LLVM_NATIVE_ARCH="X86" ;;
3920 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3921 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3922esac
3923
3924ARCH=$llvm_cv_target_arch
3925
3926
3927
3928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003929{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3930echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3931if test "${ac_cv_path_GREP+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003934 # Extract the first word of "grep ggrep" to use in msg output
3935if test -z "$GREP"; then
3936set dummy grep ggrep; ac_prog_name=$2
3937if test "${ac_cv_path_GREP+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939else
Reid Spencera773bd52006-08-04 18:18:08 +00003940 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003941# Loop through the user's path and test for each of PROGNAME-LIST
3942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003943for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003944do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947 for ac_prog in grep ggrep; do
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3950 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3951 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003952 # Check for GNU $ac_path_GREP
3953case `"$ac_path_GREP" --version 2>&1` in
3954*GNU*)
3955 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3956*)
3957 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003958 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003959 while :
3960 do
3961 cat "conftest.in" "conftest.in" >"conftest.tmp"
3962 mv "conftest.tmp" "conftest.in"
3963 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003965 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003967 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003968 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3969 # Best one so far, save it but keep looking for a better one
3970 ac_cv_path_GREP="$ac_path_GREP"
3971 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003972 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003973 # 10*(2^10) chars as input seems more than enough
3974 test $ac_count -gt 10 && break
3975 done
3976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3977esac
3978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003979
3980 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003981 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982done
3983
3984done
Reid Spencera773bd52006-08-04 18:18:08 +00003985IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986
3987
3988fi
3989
3990GREP="$ac_cv_path_GREP"
3991if test -z "$GREP"; then
3992 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3993echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3994 { (exit 1); exit 1; }; }
3995fi
3996
Reid Spencera773bd52006-08-04 18:18:08 +00003997else
3998 ac_cv_path_GREP=$GREP
3999fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004001
Reid Spencera773bd52006-08-04 18:18:08 +00004002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004003{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4004echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004005 GREP="$ac_cv_path_GREP"
4006
4007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004008{ echo "$as_me:$LINENO: checking for egrep" >&5
4009echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4010if test "${ac_cv_path_EGREP+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004012else
4013 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4014 then ac_cv_path_EGREP="$GREP -E"
4015 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004016 # Extract the first word of "egrep" to use in msg output
4017if test -z "$EGREP"; then
4018set dummy egrep; ac_prog_name=$2
4019if test "${ac_cv_path_EGREP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
Reid Spencera773bd52006-08-04 18:18:08 +00004022 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004023# Loop through the user's path and test for each of PROGNAME-LIST
4024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004025for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004029 for ac_prog in egrep; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4032 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4033 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004034 # Check for GNU $ac_path_EGREP
4035case `"$ac_path_EGREP" --version 2>&1` in
4036*GNU*)
4037 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4038*)
4039 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004040 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004041 while :
4042 do
4043 cat "conftest.in" "conftest.in" >"conftest.tmp"
4044 mv "conftest.tmp" "conftest.in"
4045 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004047 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004049 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004050 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4051 # Best one so far, save it but keep looking for a better one
4052 ac_cv_path_EGREP="$ac_path_EGREP"
4053 ac_path_EGREP_max=$ac_count
4054 fi
4055 # 10*(2^10) chars as input seems more than enough
4056 test $ac_count -gt 10 && break
4057 done
4058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059esac
4060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004061
4062 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004063 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004064done
4065
4066done
Reid Spencera773bd52006-08-04 18:18:08 +00004067IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004068
4069
4070fi
4071
4072EGREP="$ac_cv_path_EGREP"
4073if test -z "$EGREP"; then
4074 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4075echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4076 { (exit 1); exit 1; }; }
4077fi
4078
Reid Spencera773bd52006-08-04 18:18:08 +00004079else
4080 ac_cv_path_EGREP=$EGREP
4081fi
4082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004083
Reid Spencera773bd52006-08-04 18:18:08 +00004084 fi
4085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004086{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4087echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004088 EGREP="$ac_cv_path_EGREP"
4089
4090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004091{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4092echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4093if test "${ac_cv_header_stdc+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004095else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004096 cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h. */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004101/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004102#include <stdlib.h>
4103#include <stdarg.h>
4104#include <string.h>
4105#include <float.h>
4106
John Criswell0c38eaf2003-09-10 15:17:25 +00004107int
4108main ()
4109{
4110
4111 ;
4112 return 0;
4113}
John Criswell7a73b802003-06-30 21:59:07 +00004114_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004115rm -f conftest.$ac_objext
4116if { (ac_try="$ac_compile"
4117case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4120esac
4121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122 (eval "$ac_compile") 2>conftest.er1
4123 ac_status=$?
4124 grep -v '^ *+' conftest.er1 >conftest.err
4125 rm -f conftest.er1
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4130 { (case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133esac
4134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_try") 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; } &&
4139 { ac_try='test -s conftest.$ac_objext'
4140 { (case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143esac
4144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_try") 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004149 ac_cv_header_stdc=yes
4150else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004151 echo "$as_me: failed program was:" >&5
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
4154 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004156
Reid Spencera773bd52006-08-04 18:18:08 +00004157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004158
4159if test $ac_cv_header_stdc = yes; then
4160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004161 cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h. */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004167#include <string.h>
4168
4169_ACEOF
4170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171 $EGREP "memchr" >/dev/null 2>&1; then
4172 :
John Criswell7a73b802003-06-30 21:59:07 +00004173else
4174 ac_cv_header_stdc=no
4175fi
4176rm -f conftest*
4177
4178fi
4179
4180if test $ac_cv_header_stdc = yes; then
4181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004182 cat >conftest.$ac_ext <<_ACEOF
4183/* confdefs.h. */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004188#include <stdlib.h>
4189
4190_ACEOF
4191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004192 $EGREP "free" >/dev/null 2>&1; then
4193 :
John Criswell7a73b802003-06-30 21:59:07 +00004194else
4195 ac_cv_header_stdc=no
4196fi
4197rm -f conftest*
4198
4199fi
4200
4201if test $ac_cv_header_stdc = yes; then
4202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004204 :
4205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004206 cat >conftest.$ac_ext <<_ACEOF
4207/* confdefs.h. */
4208_ACEOF
4209cat confdefs.h >>conftest.$ac_ext
4210cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004211/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004212#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004213#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004214#if ((' ' & 0x0FF) == 0x020)
4215# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4216# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4217#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004218# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004219 (('a' <= (c) && (c) <= 'i') \
4220 || ('j' <= (c) && (c) <= 'r') \
4221 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004222# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4223#endif
4224
4225#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4226int
4227main ()
4228{
4229 int i;
4230 for (i = 0; i < 256; i++)
4231 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004232 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004233 return 2;
4234 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004235}
4236_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004237rm -f conftest$ac_exeext
4238if { (ac_try="$ac_link"
4239case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_link") 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4248 { (case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251esac
4252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253 (eval "$ac_try") 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4257 :
John Criswell7a73b802003-06-30 21:59:07 +00004258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004259 echo "$as_me: program exited with status $ac_status" >&5
4260echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263( exit $ac_status )
4264ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004266rm -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 +00004267fi
4268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004269
John Criswell7a73b802003-06-30 21:59:07 +00004270fi
4271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4273echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004274if test $ac_cv_header_stdc = yes; then
4275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276cat >>confdefs.h <<\_ACEOF
4277#define STDC_HEADERS 1
4278_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004279
4280fi
4281
Reid Spencera773bd52006-08-04 18:18:08 +00004282# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004283
4284
4285
4286
4287
4288
4289
4290
4291
Reid Spencera773bd52006-08-04 18:18:08 +00004292for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4293 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004294do
4295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301 cat >conftest.$ac_ext <<_ACEOF
4302/* confdefs.h. */
4303_ACEOF
4304cat confdefs.h >>conftest.$ac_ext
4305cat >>conftest.$ac_ext <<_ACEOF
4306/* end confdefs.h. */
4307$ac_includes_default
4308
4309#include <$ac_header>
4310_ACEOF
4311rm -f conftest.$ac_objext
4312if { (ac_try="$ac_compile"
4313case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316esac
4317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_compile") 2>conftest.er1
4319 ac_status=$?
4320 grep -v '^ *+' conftest.er1 >conftest.err
4321 rm -f conftest.er1
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try='test -s conftest.$ac_objext'
4336 { (case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339esac
4340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_try") 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 eval "$as_ac_Header=yes"
4346else
4347 echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350 eval "$as_ac_Header=no"
4351fi
4352
4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354fi
4355ac_res=`eval echo '${'$as_ac_Header'}'`
4356 { echo "$as_me:$LINENO: result: $ac_res" >&5
4357echo "${ECHO_T}$ac_res" >&6; }
4358if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004359 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004361_ACEOF
4362
4363fi
4364
4365done
4366
4367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004368{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4369echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4370if test "${ac_cv_c_bigendian+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373 # See if sys/param.h defines the BYTE_ORDER macro.
4374cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004376_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004379/* end confdefs.h. */
4380#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004381#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004382
4383int
4384main ()
4385{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004386#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4387 bogus endian macros
4388#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004389
4390 ;
4391 return 0;
4392}
4393_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004394rm -f conftest.$ac_objext
4395if { (ac_try="$ac_compile"
4396case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4399esac
4400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_compile") 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409 { (case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412esac
4413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_try") 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_try") 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004428 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004429cat >conftest.$ac_ext <<_ACEOF
4430/* confdefs.h. */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004434/* end confdefs.h. */
4435#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004436#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004437
4438int
4439main ()
4440{
4441#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004442 not big endian
4443#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004444
4445 ;
4446 return 0;
4447}
4448_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004449rm -f conftest.$ac_objext
4450if { (ac_try="$ac_compile"
4451case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454esac
4455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_compile") 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4464 { (case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467esac
4468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469 (eval "$ac_try") 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try='test -s conftest.$ac_objext'
4474 { (case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477esac
4478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_try") 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004483 ac_cv_c_bigendian=yes
4484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004485 echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488 ac_cv_c_bigendian=no
4489fi
4490
4491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492else
4493 echo "$as_me: failed program was:" >&5
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 # It does not; compile a test program.
4497if test "$cross_compiling" = yes; then
4498 # try to guess the endianness by grepping values into an object file
4499 ac_cv_c_bigendian=unknown
4500 cat >conftest.$ac_ext <<_ACEOF
4501/* confdefs.h. */
4502_ACEOF
4503cat confdefs.h >>conftest.$ac_ext
4504cat >>conftest.$ac_ext <<_ACEOF
4505/* end confdefs.h. */
4506short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4507short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4508void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4509short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4510short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4511void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004512int
4513main ()
4514{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004515 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004516 ;
4517 return 0;
4518}
4519_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004520rm -f conftest.$ac_objext
4521if { (ac_try="$ac_compile"
4522case "(($ac_try" in
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4525esac
4526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_compile") 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4535 { (case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538esac
4539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_try") 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548esac
4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_try") 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004555 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004556fi
4557if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4558 if test "$ac_cv_c_bigendian" = unknown; then
4559 ac_cv_c_bigendian=no
4560 else
4561 # finding both strings is unlikely to happen, but who knows?
4562 ac_cv_c_bigendian=unknown
4563 fi
4564fi
Reid Spencera773bd52006-08-04 18:18:08 +00004565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566 echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569
Torok Edwin871384f2010-01-26 08:50:50 +00004570fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004571
Reid Spencera773bd52006-08-04 18:18:08 +00004572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574 cat >conftest.$ac_ext <<_ACEOF
4575/* confdefs.h. */
4576_ACEOF
4577cat confdefs.h >>conftest.$ac_ext
4578cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004579/* end confdefs.h. */
4580$ac_includes_default
4581int
4582main ()
4583{
4584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004585 /* Are we little or big endian? From Harbison&Steele. */
4586 union
4587 {
4588 long int l;
4589 char c[sizeof (long int)];
4590 } u;
4591 u.l = 1;
4592 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004593
4594 ;
4595 return 0;
4596}
4597_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004598rm -f conftest$ac_exeext
4599if { (ac_try="$ac_link"
4600case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603esac
4604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612esac
4613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004618 ac_cv_c_bigendian=no
4619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004620 echo "$as_me: program exited with status $ac_status" >&5
4621echo "$as_me: failed program was:" >&5
4622sed 's/^/| /' conftest.$ac_ext >&5
4623
4624( exit $ac_status )
4625ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004627rm -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 +00004628fi
4629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004630
Reid Spencera773bd52006-08-04 18:18:08 +00004631fi
4632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634fi
4635{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4636echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4637case $ac_cv_c_bigendian in
4638 yes)
4639 ENDIAN=big
4640 ;;
4641 no)
4642 ENDIAN=little
4643 ;;
4644 *)
4645 { { echo "$as_me:$LINENO: error: unknown endianness
4646presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4647echo "$as_me: error: unknown endianness
4648presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4649 { (exit 1); exit 1; }; } ;;
4650esac
Reid Spencera773bd52006-08-04 18:18:08 +00004651
4652
4653if test "$cross_compiling" = yes; then
4654 LLVM_CROSS_COMPILING=1
4655
4656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4658echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4659if test "${ac_cv_build_exeext+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004661else
4662 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4663 ac_cv_build_exeext=.exe
4664else
4665 ac_build_prefix=${build_alias}-
4666
4667 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4668set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4671if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004673else
4674 if test -n "$BUILD_CC"; then
4675 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4676else
4677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH
4679do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 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 +00004684 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004686 break 2
4687 fi
4688done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004689done
Reid Spencera773bd52006-08-04 18:18:08 +00004690IFS=$as_save_IFS
4691
4692fi
4693fi
4694BUILD_CC=$ac_cv_prog_BUILD_CC
4695if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004696 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4697echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699 { echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004701fi
4702
4703
4704 if test -z "$BUILD_CC"; then
4705 # Extract the first word of "gcc", so it can be a program name with args.
4706set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004711else
4712 if test -n "$BUILD_CC"; then
4713 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4714else
4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 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 +00004722 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004724 break 2
4725 fi
4726done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004727done
Reid Spencera773bd52006-08-04 18:18:08 +00004728IFS=$as_save_IFS
4729
4730fi
4731fi
4732BUILD_CC=$ac_cv_prog_BUILD_CC
4733if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004734 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004736else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004737 { echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004739fi
4740
4741
4742 if test -z "$BUILD_CC"; then
4743 # Extract the first word of "cc", so it can be a program name with args.
4744set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004749else
4750 if test -n "$BUILD_CC"; then
4751 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4752else
4753 ac_prog_rejected=no
4754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755for as_dir in $PATH
4756do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 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 +00004761 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4762 ac_prog_rejected=yes
4763 continue
4764 fi
4765 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004767 break 2
4768 fi
4769done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004770done
Reid Spencera773bd52006-08-04 18:18:08 +00004771IFS=$as_save_IFS
4772
4773if test $ac_prog_rejected = yes; then
4774 # We found a bogon in the path, so make sure we never use it.
4775 set dummy $ac_cv_prog_BUILD_CC
4776 shift
4777 if test $# != 0; then
4778 # We chose a different compiler from the bogus one.
4779 # However, it has the same basename, so the bogon will be chosen
4780 # first if we set BUILD_CC to just the basename; use the full file name.
4781 shift
4782 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4783 fi
4784fi
4785fi
4786fi
4787BUILD_CC=$ac_cv_prog_BUILD_CC
4788if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004789 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4790echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004792 { echo "$as_me:$LINENO: result: no" >&5
4793echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004794fi
4795
4796
4797 fi
4798 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004799 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4800echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4801 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004802 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4803 rm -f conftest*
4804 echo 'int main () { return 0; }' > conftest.$ac_ext
4805 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004806 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004807 (eval $ac_build_link) 2>&5
4808 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004811 for file in conftest.*; do
4812 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004813 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004814 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4815 esac
4816 done
4817 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004818 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4819echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4820 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004821 fi
4822 rm -f conftest*
4823 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4824fi
4825fi
4826
4827BUILD_EXEEXT=""
4828test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4830echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004831ac_build_exeext=$BUILD_EXEEXT
4832
Jim Grosbach673612e2008-10-02 22:56:44 +00004833 ac_build_prefix=${build_alias}-
4834 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4835set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4838if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004840else
4841 if test -n "$BUILD_CXX"; then
4842 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4843else
4844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845for as_dir in $PATH
4846do
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 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 +00004851 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004853 break 2
4854 fi
4855done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004856done
Jim Grosbach673612e2008-10-02 22:56:44 +00004857IFS=$as_save_IFS
4858
4859fi
4860fi
4861BUILD_CXX=$ac_cv_prog_BUILD_CXX
4862if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004863 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4864echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004865else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004866 { echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004868fi
4869
4870
4871 if test -z "$BUILD_CXX"; then
4872 # Extract the first word of "g++", so it can be a program name with args.
4873set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4876if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004878else
4879 if test -n "$BUILD_CXX"; then
4880 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4881else
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 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 +00004889 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004891 break 2
4892 fi
4893done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004894done
Jim Grosbach673612e2008-10-02 22:56:44 +00004895IFS=$as_save_IFS
4896
4897fi
4898fi
4899BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004901 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004904 { echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004906fi
4907
4908
4909 if test -z "$BUILD_CXX"; then
4910 # Extract the first word of "c++", so it can be a program name with args.
4911set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004916else
4917 if test -n "$BUILD_CXX"; then
4918 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4919else
4920 ac_prog_rejected=no
4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 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 +00004928 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4929 ac_prog_rejected=yes
4930 continue
4931 fi
4932 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004934 break 2
4935 fi
4936done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004937done
Jim Grosbach673612e2008-10-02 22:56:44 +00004938IFS=$as_save_IFS
4939
4940if test $ac_prog_rejected = yes; then
4941 # We found a bogon in the path, so make sure we never use it.
4942 set dummy $ac_cv_prog_BUILD_CXX
4943 shift
4944 if test $# != 0; then
4945 # We chose a different compiler from the bogus one.
4946 # However, it has the same basename, so the bogon will be chosen
4947 # first if we set BUILD_CXX to just the basename; use the full file name.
4948 shift
4949 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4950 fi
4951fi
4952fi
4953fi
4954BUILD_CXX=$ac_cv_prog_BUILD_CXX
4955if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004956 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4957echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004959 { echo "$as_me:$LINENO: result: no" >&5
4960echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004961fi
4962
4963
4964 fi
4965 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004966else
4967 LLVM_CROSS_COMPILING=0
4968
4969fi
4970
Dan Gohman56fb5f92010-08-04 16:25:01 +00004971if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004972 cvsbuild="yes"
4973 optimize="no"
4974 CVSBUILD=CVSBUILD=1
4975
4976else
4977 cvsbuild="no"
4978 optimize="yes"
4979fi
4980
4981
Eric Christopherbee515f2011-11-11 22:51:42 +00004982# Check whether --enable-libcpp was given.
4983if test "${enable_libcpp+set}" = set; then
4984 enableval=$enable_libcpp;
4985else
4986 enableval=default
4987fi
4988
4989case "$enableval" in
4990 yes) ENABLE_LIBCPP=1
4991 ;;
4992 no) ENABLE_LIBCPP=0
4993 ;;
4994 default) ENABLE_LIBCPP=0
4995;;
4996 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4997echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4998 { (exit 1); exit 1; }; } ;;
4999esac
5000
Reid Spencera773bd52006-08-04 18:18:08 +00005001# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005002if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005003 enableval=$enable_optimized;
5004else
5005 enableval=$optimize
5006fi
5007
5008if test ${enableval} = "no" ; then
5009 ENABLE_OPTIMIZED=
5010
5011else
5012 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5013
5014fi
5015
David Greene2a5a12c2009-04-17 14:50:39 +00005016# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005017if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005018 enableval=$enable_profiling;
5019else
5020 enableval="no"
5021fi
5022
5023if test ${enableval} = "no" ; then
5024 ENABLE_PROFILING=
5025
5026else
5027 ENABLE_PROFILING=ENABLE_PROFILING=1
5028
5029fi
5030
Reid Spencera773bd52006-08-04 18:18:08 +00005031# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005032if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005033 enableval=$enable_assertions;
5034else
5035 enableval="yes"
5036fi
5037
5038if test ${enableval} = "yes" ; then
5039 DISABLE_ASSERTIONS=
5040
5041else
5042 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5043
5044fi
5045
David Greenea696d242007-06-28 19:36:08 +00005046# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005047if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005048 enableval=$enable_expensive_checks;
5049else
5050 enableval="no"
5051fi
5052
5053if test ${enableval} = "yes" ; then
5054 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5055
5056 EXPENSIVE_CHECKS=yes
5057
5058else
5059 ENABLE_EXPENSIVE_CHECKS=
5060
5061 EXPENSIVE_CHECKS=no
5062
5063fi
5064
Reid Spencer8b2e1412006-11-17 03:32:33 +00005065# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005066if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005067 enableval=$enable_debug_runtime;
5068else
5069 enableval=no
5070fi
5071
5072if test ${enableval} = "no" ; then
5073 DEBUG_RUNTIME=
5074
5075else
5076 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5077
5078fi
5079
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005080# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005081if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005082 enableval=$enable_debug_symbols;
5083else
5084 enableval=no
5085fi
5086
5087if test ${enableval} = "no" ; then
5088 DEBUG_SYMBOLS=
5089
5090else
5091 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5092
5093fi
5094
Reid Spencera773bd52006-08-04 18:18:08 +00005095# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005096if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005097 enableval=$enable_jit;
5098else
5099 enableval=default
5100fi
5101
5102if test ${enableval} = "no"
5103then
5104 JIT=
5105
5106else
5107 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005108 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005109 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005110 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005111 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005112 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005113 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005114 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005115 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005116 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005117 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005118 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005119 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005120 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005121 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005122 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005123 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005124 Hexagon) TARGET_HAS_JIT=0
5125 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005126 MBlaze) TARGET_HAS_JIT=0
5127 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005128 PTX) TARGET_HAS_JIT=0
5129 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005130 NVPTX) TARGET_HAS_JIT=0
5131 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005132 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005133 ;;
5134 esac
5135fi
5136
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005137# Check whether --enable-docs was given.
5138if test "${enable_docs+set}" = set; then
5139 enableval=$enable_docs;
5140else
5141 enableval=default
5142fi
5143
5144case "$enableval" in
5145 yes) ENABLE_DOCS=1
5146 ;;
5147 no) ENABLE_DOCS=0
5148 ;;
5149 default) ENABLE_DOCS=1
5150 ;;
5151 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5152echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5154esac
5155
Reid Spencera773bd52006-08-04 18:18:08 +00005156# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005157if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005158 enableval=$enable_doxygen;
5159else
5160 enableval=default
5161fi
5162
5163case "$enableval" in
5164 yes) ENABLE_DOXYGEN=1
5165 ;;
5166 no) ENABLE_DOXYGEN=0
5167 ;;
5168 default) ENABLE_DOXYGEN=0
5169 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5171echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005173esac
5174
5175# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005176if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005177 enableval=$enable_threads;
5178else
Reid Spencer65c5d752006-11-05 17:08:18 +00005179 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005180fi
5181
5182case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005183 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005184 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005185 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005186 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005187 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005188 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5190echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005192esac
5193
Owen Andersona8603702009-05-19 22:18:56 +00005194cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005195#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005196_ACEOF
5197
5198
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005199# Check whether --enable-pthreads was given.
5200if test "${enable_pthreads+set}" = set; then
5201 enableval=$enable_pthreads;
5202else
5203 enableval=default
5204fi
5205
5206case "$enableval" in
5207 yes) ENABLE_PTHREADS=1
5208 ;;
5209 no) ENABLE_PTHREADS=0
5210 ;;
5211 default) ENABLE_PTHREADS=1
5212 ;;
5213 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5214echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5216esac
5217
Reid Spencer89b0d992006-12-16 22:07:52 +00005218# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005219if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005220 enableval=$enable_pic;
5221else
5222 enableval=default
5223fi
5224
5225case "$enableval" in
5226 yes) ENABLE_PIC=1
5227 ;;
5228 no) ENABLE_PIC=0
5229 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005230 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005231 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5233echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005235esac
5236
5237cat >>confdefs.h <<_ACEOF
5238#define ENABLE_PIC $ENABLE_PIC
5239_ACEOF
5240
5241
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005242# Check whether --enable-shared was given.
5243if test "${enable_shared+set}" = set; then
5244 enableval=$enable_shared;
5245else
5246 enableval=default
5247fi
5248
5249case "$enableval" in
5250 yes) ENABLE_SHARED=1
5251 ;;
5252 no) ENABLE_SHARED=0
5253 ;;
5254 default) ENABLE_SHARED=0
5255 ;;
5256 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5257echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5258 { (exit 1); exit 1; }; } ;;
5259esac
5260
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005261# Check whether --enable-embed-stdcxx was given.
5262if test "${enable_embed_stdcxx+set}" = set; then
5263 enableval=$enable_embed_stdcxx;
5264else
5265 enableval=default
5266fi
5267
5268case "$enableval" in
5269 yes) ENABLE_EMBED_STDCXX=1
5270 ;;
5271 no) ENABLE_EMBED_STDCXX=0
5272 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005273 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005274 ;;
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5276echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5278esac
5279
Daniel Dunbardd464df2010-05-10 20:11:56 +00005280# Check whether --enable-timestamps was given.
5281if test "${enable_timestamps+set}" = set; then
5282 enableval=$enable_timestamps;
5283else
5284 enableval=default
5285fi
5286
5287case "$enableval" in
5288 yes) ENABLE_TIMESTAMPS=1
5289 ;;
5290 no) ENABLE_TIMESTAMPS=0
5291 ;;
5292 default) ENABLE_TIMESTAMPS=1
5293 ;;
5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5295echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5297esac
5298
5299cat >>confdefs.h <<_ACEOF
5300#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5301_ACEOF
5302
5303
Reid Spencera773bd52006-08-04 18:18:08 +00005304TARGETS_TO_BUILD=""
5305# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005306if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005307 enableval=$enable_targets;
5308else
5309 enableval=all
5310fi
5311
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005312if test "$enableval" = host-only ; then
5313 enableval=host
5314fi
Reid Spencera773bd52006-08-04 18:18:08 +00005315case "$enableval" in
Justin Holewinski49683f32012-05-04 20:18:50 +00005316 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005317 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5318 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005319 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5320 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5321 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5322 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005323 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5324 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005325 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005326 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005327 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5328 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005329 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005330 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005331 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005332 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005333 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005334 host) case "$llvm_cv_target_arch" in
5335 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5336 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5338 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005339 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5340 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005341 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005342 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005343 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5344 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005345 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005346 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005347 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005348 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5349echo "$as_me: error: Can not set target to build" >&2;}
5350 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005351 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005352 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5353echo "$as_me: error: Unrecognized target $a_target" >&2;}
5354 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005355 esac
5356 done
5357 ;;
5358esac
Reid Spencera773bd52006-08-04 18:18:08 +00005359TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5360
5361
Douglas Gregor0711c302009-06-17 00:43:20 +00005362for a_target in $TARGETS_TO_BUILD; do
5363 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5364
5365cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005366#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5367_ACEOF
5368
5369 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5370 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005371 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005372 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005373 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5374 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5375 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005376 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5377 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5378 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005379
5380cat >>confdefs.h <<_ACEOF
5381#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005382_ACEOF
5383
5384
5385cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005386#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5387_ACEOF
5388
5389
5390cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005391#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005392_ACEOF
5393
5394
5395cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005396#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005397_ACEOF
5398
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005400
5401cat >>confdefs.h <<_ACEOF
5402#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5403_ACEOF
5404
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005405 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005406 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5407
5408cat >>confdefs.h <<_ACEOF
5409#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5410_ACEOF
5411
5412 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005413 fi
5414done
5415
Douglas Gregor1555a232009-06-16 20:12:29 +00005416LLVM_ENUM_TARGETS=""
5417LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005418LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005419LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005420for target_to_build in $TARGETS_TO_BUILD; do
5421 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005422 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005423 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5424 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005425 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5426 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5427 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005428 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5429 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5430 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005431done
5432
5433
5434
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005435
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005436
Reid Spencera773bd52006-08-04 18:18:08 +00005437
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005438# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005439if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005440 withval=$with_optimize_option;
5441else
5442 withval=default
5443fi
5444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005445{ echo "$as_me:$LINENO: checking optimization flags" >&5
5446echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005447case "$withval" in
5448 default)
5449 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005450 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005451 MingW) optimize_option=-O2 ;;
5452 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005453 esac ;;
5454 *) optimize_option="$withval" ;;
5455esac
5456OPTIMIZE_OPTION=$optimize_option
5457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005458{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5459echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005460
5461
Reid Spencera773bd52006-08-04 18:18:08 +00005462# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005463if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005464 withval=$with_extra_options;
5465else
5466 withval=default
5467fi
5468
5469case "$withval" in
5470 default) EXTRA_OPTIONS= ;;
5471 *) EXTRA_OPTIONS=$withval ;;
5472esac
5473EXTRA_OPTIONS=$EXTRA_OPTIONS
5474
5475
Daniel Dunbared344d22011-06-16 22:30:41 +00005476
5477# Check whether --with-extra-ld-options was given.
5478if test "${with_extra_ld_options+set}" = set; then
5479 withval=$with_extra_ld_options;
5480else
5481 withval=default
5482fi
5483
5484case "$withval" in
5485 default) EXTRA_LD_OPTIONS= ;;
5486 *) EXTRA_LD_OPTIONS=$withval ;;
5487esac
5488EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5489
5490
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005491# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005492if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005493 enableval=$enable_bindings;
5494else
5495 enableval=default
5496fi
5497
5498BINDINGS_TO_BUILD=""
5499case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005500 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005501 all ) BINDINGS_TO_BUILD="ocaml" ;;
5502 none | no) BINDINGS_TO_BUILD="" ;;
5503 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5504 case "$a_binding" in
5505 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005506 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5507echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5508 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005509 esac
5510 done
5511 ;;
5512esac
5513
Reid Spencera773bd52006-08-04 18:18:08 +00005514
Gordon Henriksenf0915682007-10-02 16:42:22 +00005515# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005516if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005517 withval=$with_ocaml_libdir;
5518else
5519 withval=auto
5520fi
5521
5522case "$withval" in
5523 auto) with_ocaml_libdir="$withval" ;;
5524 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005525 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5526echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5527 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005528esac
5529
5530
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005531# Check whether --with-clang-srcdir was given.
5532if test "${with_clang_srcdir+set}" = set; then
5533 withval=$with_clang_srcdir;
5534else
5535 withval="-"
5536fi
5537
5538case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005539 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005540 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5541 *) clang_src_root="$ac_pwd/$withval" ;;
5542esac
5543CLANG_SRC_ROOT=$clang_src_root
5544
5545
5546
Chandler Carruth6b241162010-10-19 08:21:25 +00005547# Check whether --with-clang-resource-dir was given.
5548if test "${with_clang_resource_dir+set}" = set; then
5549 withval=$with_clang_resource_dir;
5550else
5551 withval=""
5552fi
5553
5554
5555cat >>confdefs.h <<_ACEOF
5556#define CLANG_RESOURCE_DIR "$withval"
5557_ACEOF
5558
5559
5560
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005561# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005562if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005563 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005564else
5565 withval=""
5566fi
5567
5568
5569cat >>confdefs.h <<_ACEOF
5570#define C_INCLUDE_DIRS "$withval"
5571_ACEOF
5572
5573
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005574# Clang normally uses the system c++ headers and libraries. With this option,
5575# clang will use the ones provided by a gcc installation instead. This option should
5576# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005577
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005578# Check whether --with-gcc-toolchain was given.
5579if test "${with_gcc_toolchain+set}" = set; then
5580 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005581else
5582 withval=""
5583fi
5584
5585
5586cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005587#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005588_ACEOF
5589
5590
5591
Sebastian Pope4f1b372012-04-30 20:06:58 +00005592# Check whether --with-default-sysroot was given.
5593if test "${with_default_sysroot+set}" = set; then
5594 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005595else
5596 withval=""
5597fi
5598
5599
5600cat >>confdefs.h <<_ACEOF
5601#define DEFAULT_SYSROOT "$withval"
5602_ACEOF
5603
5604
5605
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005606# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005607if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005608 withval=$with_binutils_include;
5609else
5610 withval=default
5611fi
5612
5613case "$withval" in
5614 default) WITH_BINUTILS_INCDIR=default ;;
5615 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5617echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5618 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005619esac
5620if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5621 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5622
5623 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5624 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005625 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5626echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5627 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005628 fi
5629fi
5630
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005631
5632# Check whether --with-bug-report-url was given.
5633if test "${with_bug_report_url+set}" = set; then
5634 withval=$with_bug_report_url;
5635else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005636 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005637fi
5638
5639
5640cat >>confdefs.h <<_ACEOF
5641#define BUG_REPORT_URL "$withval"
5642_ACEOF
5643
5644
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005645# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005646if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005647 enableval=$enable_libffi; case "$enableval" in
5648 yes) llvm_cv_enable_libffi="yes" ;;
5649 no) llvm_cv_enable_libffi="no" ;;
5650 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005651echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5652 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005653 esac
5654else
5655 llvm_cv_enable_libffi=no
5656fi
5657
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005658
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005659
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005660# Check whether --with-internal-prefix was given.
5661if test "${with_internal_prefix+set}" = set; then
5662 withval=$with_internal_prefix;
5663else
5664 withval=""
5665fi
5666
5667INTERNAL_PREFIX=$withval
5668
5669
5670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005671{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5672echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5673if test "${lt_cv_path_NM+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005675else
5676 if test -n "$NM"; then
5677 # Let the user override the test.
5678 lt_cv_path_NM="$NM"
5679else
5680 lt_nm_to_check="${ac_tool_prefix}nm"
5681 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5682 lt_nm_to_check="$lt_nm_to_check nm"
5683 fi
5684 for lt_tmp_nm in $lt_nm_to_check; do
5685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5686 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5687 IFS="$lt_save_ifs"
5688 test -z "$ac_dir" && ac_dir=.
5689 tmp_nm="$ac_dir/$lt_tmp_nm"
5690 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5691 # Check to see if the nm accepts a BSD-compat flag.
5692 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5693 # nm: unknown option "B" ignored
5694 # Tru64's nm complains that /dev/null is an invalid object file
5695 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5696 */dev/null* | *'Invalid file or object type'*)
5697 lt_cv_path_NM="$tmp_nm -B"
5698 break
5699 ;;
5700 *)
5701 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5702 */dev/null*)
5703 lt_cv_path_NM="$tmp_nm -p"
5704 break
5705 ;;
5706 *)
5707 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5708 continue # so that we can try to find one that supports BSD flags
5709 ;;
5710 esac
5711 ;;
5712 esac
5713 fi
5714 done
5715 IFS="$lt_save_ifs"
5716 done
5717 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5718fi
5719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005720{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5721echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005722NM="$lt_cv_path_NM"
5723
5724
5725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005726{ echo "$as_me:$LINENO: checking for GNU make" >&5
5727echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5728if test "${llvm_cv_gnu_make_command+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005730else
5731 llvm_cv_gnu_make_command=''
5732 for a in "$MAKE" make gmake gnumake ; do
5733 if test -z "$a" ; then continue ; fi ;
5734 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5735 then
5736 llvm_cv_gnu_make_command=$a ;
5737 break;
5738 fi
5739 done
5740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005741{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5742echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005743 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5744 ifGNUmake='' ;
5745 else
5746 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5748echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005749 fi
5750
5751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005752{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5753echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005754LN_S=$as_ln_s
5755if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005756 { echo "$as_me:$LINENO: result: yes" >&5
5757echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005758else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005759 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5760echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005761fi
5762
5763# Extract the first word of "cmp", so it can be a program name with args.
5764set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5767if test "${ac_cv_path_CMP+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005769else
5770 case $CMP in
5771 [\\/]* | ?:[\\/]*)
5772 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5773 ;;
5774 *)
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 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 +00005782 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005784 break 2
5785 fi
5786done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787done
Reid Spencera773bd52006-08-04 18:18:08 +00005788IFS=$as_save_IFS
5789
5790 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5791 ;;
5792esac
5793fi
5794CMP=$ac_cv_path_CMP
5795if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005796 { echo "$as_me:$LINENO: result: $CMP" >&5
5797echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005798else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005799 { echo "$as_me:$LINENO: result: no" >&5
5800echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005801fi
5802
5803
5804# Extract the first word of "cp", so it can be a program name with args.
5805set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808if test "${ac_cv_path_CP+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005810else
5811 case $CP in
5812 [\\/]* | ?:[\\/]*)
5813 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5814 ;;
5815 *)
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 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 +00005823 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005825 break 2
5826 fi
5827done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828done
Reid Spencera773bd52006-08-04 18:18:08 +00005829IFS=$as_save_IFS
5830
5831 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5832 ;;
5833esac
5834fi
5835CP=$ac_cv_path_CP
5836if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005837 { echo "$as_me:$LINENO: result: $CP" >&5
5838echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005840 { echo "$as_me:$LINENO: result: no" >&5
5841echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005842fi
5843
5844
5845# Extract the first word of "date", so it can be a program name with args.
5846set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5849if test "${ac_cv_path_DATE+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005851else
5852 case $DATE in
5853 [\\/]* | ?:[\\/]*)
5854 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5855 ;;
5856 *)
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 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 +00005864 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005866 break 2
5867 fi
5868done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869done
Reid Spencera773bd52006-08-04 18:18:08 +00005870IFS=$as_save_IFS
5871
5872 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5873 ;;
5874esac
5875fi
5876DATE=$ac_cv_path_DATE
5877if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005878 { echo "$as_me:$LINENO: result: $DATE" >&5
5879echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005880else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881 { echo "$as_me:$LINENO: result: no" >&5
5882echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005883fi
5884
5885
5886# Extract the first word of "find", so it can be a program name with args.
5887set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5890if test "${ac_cv_path_FIND+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005892else
5893 case $FIND in
5894 [\\/]* | ?:[\\/]*)
5895 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5896 ;;
5897 *)
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 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 +00005905 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005907 break 2
5908 fi
5909done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005910done
Reid Spencera773bd52006-08-04 18:18:08 +00005911IFS=$as_save_IFS
5912
5913 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5914 ;;
5915esac
5916fi
5917FIND=$ac_cv_path_FIND
5918if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005919 { echo "$as_me:$LINENO: result: $FIND" >&5
5920echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005922 { echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005924fi
5925
5926
5927# Extract the first word of "grep", so it can be a program name with args.
5928set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5931if test "${ac_cv_path_GREP+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005933else
5934 case $GREP in
5935 [\\/]* | ?:[\\/]*)
5936 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5937 ;;
5938 *)
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 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 +00005946 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005948 break 2
5949 fi
5950done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005951done
Reid Spencera773bd52006-08-04 18:18:08 +00005952IFS=$as_save_IFS
5953
5954 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5955 ;;
5956esac
5957fi
5958GREP=$ac_cv_path_GREP
5959if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005960 { echo "$as_me:$LINENO: result: $GREP" >&5
5961echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005962else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005963 { echo "$as_me:$LINENO: result: no" >&5
5964echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005965fi
5966
5967
5968# Extract the first word of "mkdir", so it can be a program name with args.
5969set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972if test "${ac_cv_path_MKDIR+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005974else
5975 case $MKDIR in
5976 [\\/]* | ?:[\\/]*)
5977 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5978 ;;
5979 *)
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 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 +00005987 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005989 break 2
5990 fi
5991done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005992done
Reid Spencera773bd52006-08-04 18:18:08 +00005993IFS=$as_save_IFS
5994
5995 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5996 ;;
5997esac
5998fi
5999MKDIR=$ac_cv_path_MKDIR
6000if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006001 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6002echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006003else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004 { echo "$as_me:$LINENO: result: no" >&5
6005echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006006fi
6007
6008
6009# Extract the first word of "mv", so it can be a program name with args.
6010set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6013if test "${ac_cv_path_MV+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006015else
6016 case $MV in
6017 [\\/]* | ?:[\\/]*)
6018 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6019 ;;
6020 *)
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 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 +00006028 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006030 break 2
6031 fi
6032done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006033done
Reid Spencera773bd52006-08-04 18:18:08 +00006034IFS=$as_save_IFS
6035
6036 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6037 ;;
6038esac
6039fi
6040MV=$ac_cv_path_MV
6041if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006042 { echo "$as_me:$LINENO: result: $MV" >&5
6043echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006044else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045 { echo "$as_me:$LINENO: result: no" >&5
6046echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006047fi
6048
6049
6050if test -n "$ac_tool_prefix"; then
6051 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6052set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055if test "${ac_cv_prog_RANLIB+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006057else
6058 if test -n "$RANLIB"; then
6059 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 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 +00006068 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006070 break 2
6071 fi
6072done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006073done
Reid Spencera773bd52006-08-04 18:18:08 +00006074IFS=$as_save_IFS
6075
6076fi
6077fi
6078RANLIB=$ac_cv_prog_RANLIB
6079if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006080 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6081echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083 { echo "$as_me:$LINENO: result: no" >&5
6084echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006085fi
6086
6087
6088fi
6089if test -z "$ac_cv_prog_RANLIB"; then
6090 ac_ct_RANLIB=$RANLIB
6091 # Extract the first word of "ranlib", so it can be a program name with args.
6092set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006097else
6098 if test -n "$ac_ct_RANLIB"; then
6099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 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 +00006108 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006110 break 2
6111 fi
6112done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006113done
Reid Spencera773bd52006-08-04 18:18:08 +00006114IFS=$as_save_IFS
6115
6116fi
6117fi
6118ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6119if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006120 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6121echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006122else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006123 { echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006125fi
6126
6127 if test "x$ac_ct_RANLIB" = x; then
6128 RANLIB=":"
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006132{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133whose name does not start with the host triplet. If you think this
6134configuration is useful to you, please write to autoconf@gnu.org." >&5
6135echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136whose name does not start with the host triplet. If you think this
6137configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006138ac_tool_warned=yes ;;
6139esac
6140 RANLIB=$ac_ct_RANLIB
6141 fi
6142else
6143 RANLIB="$ac_cv_prog_RANLIB"
6144fi
6145
Torok Edwin871384f2010-01-26 08:50:50 +00006146if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6148set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151if test "${ac_cv_prog_AR+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006153else
6154 if test -n "$AR"; then
6155 ac_cv_prog_AR="$AR" # Let the user override the test.
6156else
6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 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 +00006164 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006166 break 2
6167 fi
6168done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006169done
Torok Edwin871384f2010-01-26 08:50:50 +00006170IFS=$as_save_IFS
6171
6172fi
6173fi
6174AR=$ac_cv_prog_AR
6175if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006176 { echo "$as_me:$LINENO: result: $AR" >&5
6177echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006178else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179 { echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006181fi
6182
6183
6184fi
6185if test -z "$ac_cv_prog_AR"; then
6186 ac_ct_AR=$AR
6187 # Extract the first word of "ar", so it can be a program name with args.
6188set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006193else
6194 if test -n "$ac_ct_AR"; then
6195 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 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 +00006204 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006206 break 2
6207 fi
6208done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006209done
Torok Edwin871384f2010-01-26 08:50:50 +00006210IFS=$as_save_IFS
6211
6212fi
6213fi
6214ac_ct_AR=$ac_cv_prog_ac_ct_AR
6215if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006216 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6217echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006218else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006219 { echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006221fi
6222
6223 if test "x$ac_ct_AR" = x; then
6224 AR="false"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229whose name does not start with the host triplet. If you think this
6230configuration is useful to you, please write to autoconf@gnu.org." >&5
6231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232whose name does not start with the host triplet. If you think this
6233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006234ac_tool_warned=yes ;;
6235esac
6236 AR=$ac_ct_AR
6237 fi
6238else
6239 AR="$ac_cv_prog_AR"
6240fi
6241
Reid Spencera773bd52006-08-04 18:18:08 +00006242# Extract the first word of "rm", so it can be a program name with args.
6243set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6246if test "${ac_cv_path_RM+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006248else
6249 case $RM in
6250 [\\/]* | ?:[\\/]*)
6251 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6252 ;;
6253 *)
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 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 +00006261 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006263 break 2
6264 fi
6265done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006266done
Reid Spencera773bd52006-08-04 18:18:08 +00006267IFS=$as_save_IFS
6268
6269 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6270 ;;
6271esac
6272fi
6273RM=$ac_cv_path_RM
6274if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006275 { echo "$as_me:$LINENO: result: $RM" >&5
6276echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006278 { echo "$as_me:$LINENO: result: no" >&5
6279echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006280fi
6281
6282
6283# Extract the first word of "sed", so it can be a program name with args.
6284set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287if test "${ac_cv_path_SED+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006289else
6290 case $SED in
6291 [\\/]* | ?:[\\/]*)
6292 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6293 ;;
6294 *)
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 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 +00006302 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006304 break 2
6305 fi
6306done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307done
Reid Spencera773bd52006-08-04 18:18:08 +00006308IFS=$as_save_IFS
6309
6310 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6311 ;;
6312esac
6313fi
6314SED=$ac_cv_path_SED
6315if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006316 { echo "$as_me:$LINENO: result: $SED" >&5
6317echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006318else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006319 { echo "$as_me:$LINENO: result: no" >&5
6320echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006321fi
6322
6323
6324# Extract the first word of "tar", so it can be a program name with args.
6325set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006326{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6328if test "${ac_cv_path_TAR+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006330else
6331 case $TAR in
6332 [\\/]* | ?:[\\/]*)
6333 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6334 ;;
6335 *)
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337for as_dir in $PATH
6338do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 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 +00006343 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006345 break 2
6346 fi
6347done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348done
Reid Spencera773bd52006-08-04 18:18:08 +00006349IFS=$as_save_IFS
6350
6351 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6352 ;;
6353esac
6354fi
6355TAR=$ac_cv_path_TAR
6356if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006357 { echo "$as_me:$LINENO: result: $TAR" >&5
6358echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006360 { echo "$as_me:$LINENO: result: no" >&5
6361echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006362fi
6363
6364
6365# Extract the first word of "pwd", so it can be a program name with args.
6366set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369if test "${ac_cv_path_BINPWD+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006371else
6372 case $BINPWD in
6373 [\\/]* | ?:[\\/]*)
6374 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6375 ;;
6376 *)
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 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 +00006384 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006386 break 2
6387 fi
6388done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389done
Reid Spencera773bd52006-08-04 18:18:08 +00006390IFS=$as_save_IFS
6391
6392 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6393 ;;
6394esac
6395fi
6396BINPWD=$ac_cv_path_BINPWD
6397if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006398 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6399echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006401 { echo "$as_me:$LINENO: result: no" >&5
6402echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006403fi
6404
6405
6406
6407# Extract the first word of "Graphviz", so it can be a program name with args.
6408set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6411if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006413else
6414 case $GRAPHVIZ in
6415 [\\/]* | ?:[\\/]*)
6416 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6417 ;;
6418 *)
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420for as_dir in $PATH
6421do
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 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 +00006426 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006428 break 2
6429 fi
6430done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006431done
Reid Spencera773bd52006-08-04 18:18:08 +00006432IFS=$as_save_IFS
6433
6434 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6435 ;;
6436esac
6437fi
6438GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6439if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006440 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6441echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006443 { echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006445fi
6446
6447
6448if test "$GRAPHVIZ" != "echo Graphviz" ; then
6449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006450cat >>confdefs.h <<\_ACEOF
6451#define HAVE_GRAPHVIZ 1
6452_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006453
Jeff Cohen28783c32007-01-12 18:22:38 +00006454 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006455 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6456 fi
6457
6458cat >>confdefs.h <<_ACEOF
6459#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6460_ACEOF
6461
6462fi
6463# Extract the first word of "dot", so it can be a program name with args.
6464set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6467if test "${ac_cv_path_DOT+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006469else
6470 case $DOT in
6471 [\\/]* | ?:[\\/]*)
6472 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6473 ;;
6474 *)
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 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 +00006482 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006484 break 2
6485 fi
6486done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006487done
Reid Spencera773bd52006-08-04 18:18:08 +00006488IFS=$as_save_IFS
6489
6490 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6491 ;;
6492esac
6493fi
6494DOT=$ac_cv_path_DOT
6495if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006496 { echo "$as_me:$LINENO: result: $DOT" >&5
6497echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006498else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006499 { echo "$as_me:$LINENO: result: no" >&5
6500echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006501fi
6502
6503
6504if test "$DOT" != "echo dot" ; then
6505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006506cat >>confdefs.h <<\_ACEOF
6507#define HAVE_DOT 1
6508_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006509
Jeff Cohen28783c32007-01-12 18:22:38 +00006510 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006511 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6512 fi
6513
6514cat >>confdefs.h <<_ACEOF
6515#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6516_ACEOF
6517
6518fi
David Greenef0b9eff2009-07-09 17:16:26 +00006519# Extract the first word of "fdp", so it can be a program name with args.
6520set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6523if test "${ac_cv_path_FDP+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006525else
6526 case $FDP in
6527 [\\/]* | ?:[\\/]*)
6528 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6529 ;;
6530 *)
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 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 +00006538 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006540 break 2
6541 fi
6542done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006543done
David Greenef0b9eff2009-07-09 17:16:26 +00006544IFS=$as_save_IFS
6545
6546 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6547 ;;
6548esac
6549fi
6550FDP=$ac_cv_path_FDP
6551if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006552 { echo "$as_me:$LINENO: result: $FDP" >&5
6553echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006555 { echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006557fi
6558
6559
6560if test "$FDP" != "echo fdp" ; then
6561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006562cat >>confdefs.h <<\_ACEOF
6563#define HAVE_FDP 1
6564_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006565
6566 if test "$llvm_cv_os_type" = "MingW" ; then
6567 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6568 fi
6569
6570cat >>confdefs.h <<_ACEOF
6571#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6572_ACEOF
6573
6574fi
6575# Extract the first word of "neato", so it can be a program name with args.
6576set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579if test "${ac_cv_path_NEATO+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006581else
6582 case $NEATO in
6583 [\\/]* | ?:[\\/]*)
6584 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6585 ;;
6586 *)
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 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 +00006594 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006596 break 2
6597 fi
6598done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599done
David Greenef0b9eff2009-07-09 17:16:26 +00006600IFS=$as_save_IFS
6601
6602 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6603 ;;
6604esac
6605fi
6606NEATO=$ac_cv_path_NEATO
6607if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608 { echo "$as_me:$LINENO: result: $NEATO" >&5
6609echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006610else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006611 { echo "$as_me:$LINENO: result: no" >&5
6612echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006613fi
6614
6615
6616if test "$NEATO" != "echo neato" ; then
6617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006618cat >>confdefs.h <<\_ACEOF
6619#define HAVE_NEATO 1
6620_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006621
6622 if test "$llvm_cv_os_type" = "MingW" ; then
6623 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6624 fi
6625
6626cat >>confdefs.h <<_ACEOF
6627#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6628_ACEOF
6629
6630fi
6631# Extract the first word of "twopi", so it can be a program name with args.
6632set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635if test "${ac_cv_path_TWOPI+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006637else
6638 case $TWOPI in
6639 [\\/]* | ?:[\\/]*)
6640 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6641 ;;
6642 *)
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 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 +00006650 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006652 break 2
6653 fi
6654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006655done
David Greenef0b9eff2009-07-09 17:16:26 +00006656IFS=$as_save_IFS
6657
6658 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6659 ;;
6660esac
6661fi
6662TWOPI=$ac_cv_path_TWOPI
6663if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006664 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6665echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006666else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006667 { echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006669fi
6670
6671
6672if test "$TWOPI" != "echo twopi" ; then
6673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006674cat >>confdefs.h <<\_ACEOF
6675#define HAVE_TWOPI 1
6676_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006677
6678 if test "$llvm_cv_os_type" = "MingW" ; then
6679 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6680 fi
6681
6682cat >>confdefs.h <<_ACEOF
6683#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6684_ACEOF
6685
6686fi
6687# Extract the first word of "circo", so it can be a program name with args.
6688set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691if test "${ac_cv_path_CIRCO+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006693else
6694 case $CIRCO in
6695 [\\/]* | ?:[\\/]*)
6696 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6697 ;;
6698 *)
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 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 +00006706 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006708 break 2
6709 fi
6710done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711done
David Greenef0b9eff2009-07-09 17:16:26 +00006712IFS=$as_save_IFS
6713
6714 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6715 ;;
6716esac
6717fi
6718CIRCO=$ac_cv_path_CIRCO
6719if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6721echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006722else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006723 { echo "$as_me:$LINENO: result: no" >&5
6724echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006725fi
6726
6727
6728if test "$CIRCO" != "echo circo" ; then
6729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006730cat >>confdefs.h <<\_ACEOF
6731#define HAVE_CIRCO 1
6732_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006733
6734 if test "$llvm_cv_os_type" = "MingW" ; then
6735 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6736 fi
6737
6738cat >>confdefs.h <<_ACEOF
6739#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6740_ACEOF
6741
6742fi
Reid Spencera773bd52006-08-04 18:18:08 +00006743for ac_prog in gv gsview32
6744do
6745 # Extract the first word of "$ac_prog", so it can be a program name with args.
6746set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749if test "${ac_cv_path_GV+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006751else
6752 case $GV in
6753 [\\/]* | ?:[\\/]*)
6754 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6755 ;;
6756 *)
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 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 +00006764 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006766 break 2
6767 fi
6768done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769done
Reid Spencera773bd52006-08-04 18:18:08 +00006770IFS=$as_save_IFS
6771
6772 ;;
6773esac
6774fi
6775GV=$ac_cv_path_GV
6776if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006777 { echo "$as_me:$LINENO: result: $GV" >&5
6778echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006779else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006780 { echo "$as_me:$LINENO: result: no" >&5
6781echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006782fi
6783
6784
6785 test -n "$GV" && break
6786done
6787test -n "$GV" || GV="echo gv"
6788
6789if test "$GV" != "echo gv" ; then
6790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006791cat >>confdefs.h <<\_ACEOF
6792#define HAVE_GV 1
6793_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006794
Jeff Cohen28783c32007-01-12 18:22:38 +00006795 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006796 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797 fi
6798
6799cat >>confdefs.h <<_ACEOF
6800#define LLVM_PATH_GV "$GV${EXEEXT}"
6801_ACEOF
6802
6803fi
6804# Extract the first word of "dotty", so it can be a program name with args.
6805set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808if test "${ac_cv_path_DOTTY+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006810else
6811 case $DOTTY in
6812 [\\/]* | ?:[\\/]*)
6813 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6814 ;;
6815 *)
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 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 +00006823 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006825 break 2
6826 fi
6827done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006828done
Reid Spencera773bd52006-08-04 18:18:08 +00006829IFS=$as_save_IFS
6830
6831 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6832 ;;
6833esac
6834fi
6835DOTTY=$ac_cv_path_DOTTY
6836if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006837 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6838echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006840 { echo "$as_me:$LINENO: result: no" >&5
6841echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006842fi
6843
6844
6845if test "$DOTTY" != "echo dotty" ; then
6846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006847cat >>confdefs.h <<\_ACEOF
6848#define HAVE_DOTTY 1
6849_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006850
Jeff Cohen28783c32007-01-12 18:22:38 +00006851 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006852 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853 fi
6854
6855cat >>confdefs.h <<_ACEOF
6856#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6857_ACEOF
6858
6859fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006860# Extract the first word of "xdot.py", so it can be a program name with args.
6861set dummy xdot.py; ac_word=$2
6862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864if test "${ac_cv_path_XDOT_PY+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867 case $XDOT_PY in
6868 [\\/]* | ?:[\\/]*)
6869 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6870 ;;
6871 *)
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883done
6884done
6885IFS=$as_save_IFS
6886
6887 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6888 ;;
6889esac
6890fi
6891XDOT_PY=$ac_cv_path_XDOT_PY
6892if test -n "$XDOT_PY"; then
6893 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6894echo "${ECHO_T}$XDOT_PY" >&6; }
6895else
6896 { echo "$as_me:$LINENO: result: no" >&5
6897echo "${ECHO_T}no" >&6; }
6898fi
6899
6900
6901if test "$XDOT_PY" != "echo xdot.py" ; then
6902
6903cat >>confdefs.h <<\_ACEOF
6904#define HAVE_XDOT_PY 1
6905_ACEOF
6906
6907 if test "$llvm_cv_os_type" = "MingW" ; then
6908 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6909 fi
6910
6911cat >>confdefs.h <<_ACEOF
6912#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6913_ACEOF
6914
6915fi
Reid Spencera773bd52006-08-04 18:18:08 +00006916
Reid Spencera773bd52006-08-04 18:18:08 +00006917# Find a good install program. We prefer a C program (faster),
6918# so one script is as good as another. But avoid the broken or
6919# incompatible versions:
6920# SysV /etc/install, /usr/sbin/install
6921# SunOS /usr/etc/install
6922# IRIX /sbin/install
6923# AIX /bin/install
6924# AmigaOS /C/install, which installs bootblocks on floppy discs
6925# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6926# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6927# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6928# OS/2's system install, which has a completely different semantic
6929# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006930{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6931echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006932if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933if test "${ac_cv_path_install+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006935else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 # Account for people who put trailing slashes in PATH elements.
6942case $as_dir/ in
6943 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006944 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006946 /usr/ucb/* ) ;;
6947 *)
6948 # OSF1 and SCO ODT 3.0 have their own names for install.
6949 # Don't use installbsd from OSF since it installs stuff as root
6950 # by default.
6951 for ac_prog in ginstall scoinst install; do
6952 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953 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 +00006954 if test $ac_prog = install &&
6955 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6956 # AIX install. It has an incompatible calling convention.
6957 :
6958 elif test $ac_prog = install &&
6959 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6960 # program-specific install script used by HP pwplus--don't use.
6961 :
6962 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6964 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00006965 fi
6966 fi
6967 done
6968 done
6969 ;;
6970esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006971done
Reid Spencera773bd52006-08-04 18:18:08 +00006972IFS=$as_save_IFS
6973
6974
6975fi
6976 if test "${ac_cv_path_install+set}" = set; then
6977 INSTALL=$ac_cv_path_install
6978 else
6979 # As a last resort, use the slow shell script. Don't cache a
6980 # value for INSTALL within a source directory, because that will
6981 # break other packages using the cache if that directory is
6982 # removed, or if the value is a relative name.
6983 INSTALL=$ac_install_sh
6984 fi
6985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006986{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6987echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006988
6989# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6990# It thinks the first close brace ends the variable substitution.
6991test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6992
6993test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6994
6995test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6996
Eric Christopher2a1a44f2010-07-22 21:13:48 +00006997case "$INSTALL" in
6998 [\\/$]* | ?:[\\/]* ) ;;
6999 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7000esac
Reid Spencera773bd52006-08-04 18:18:08 +00007001
7002# Extract the first word of "bzip2", so it can be a program name with args.
7003set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006if test "${ac_cv_path_BZIP2+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007008else
7009 case $BZIP2 in
7010 [\\/]* | ?:[\\/]*)
7011 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7012 ;;
7013 *)
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 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 +00007021 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007023 break 2
7024 fi
7025done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026done
Reid Spencera773bd52006-08-04 18:18:08 +00007027IFS=$as_save_IFS
7028
Reid Spencera773bd52006-08-04 18:18:08 +00007029 ;;
7030esac
7031fi
7032BZIP2=$ac_cv_path_BZIP2
7033if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7035echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007036else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007037 { echo "$as_me:$LINENO: result: no" >&5
7038echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007039fi
7040
7041
mike-m68cb3192010-05-06 23:45:43 +00007042# Extract the first word of "cat", so it can be a program name with args.
7043set dummy cat; ac_word=$2
7044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046if test "${ac_cv_path_CAT+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048else
7049 case $CAT in
7050 [\\/]* | ?:[\\/]*)
7051 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7052 ;;
7053 *)
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065done
7066done
7067IFS=$as_save_IFS
7068
7069 ;;
7070esac
7071fi
7072CAT=$ac_cv_path_CAT
7073if test -n "$CAT"; then
7074 { echo "$as_me:$LINENO: result: $CAT" >&5
7075echo "${ECHO_T}$CAT" >&6; }
7076else
7077 { echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6; }
7079fi
7080
7081
Reid Spencera773bd52006-08-04 18:18:08 +00007082# Extract the first word of "doxygen", so it can be a program name with args.
7083set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086if test "${ac_cv_path_DOXYGEN+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007088else
7089 case $DOXYGEN in
7090 [\\/]* | ?:[\\/]*)
7091 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7092 ;;
7093 *)
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 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 +00007101 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007103 break 2
7104 fi
7105done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007106done
Reid Spencera773bd52006-08-04 18:18:08 +00007107IFS=$as_save_IFS
7108
Reid Spencera773bd52006-08-04 18:18:08 +00007109 ;;
7110esac
7111fi
7112DOXYGEN=$ac_cv_path_DOXYGEN
7113if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007114 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7115echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117 { echo "$as_me:$LINENO: result: no" >&5
7118echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007119fi
7120
7121
Reid Spencera773bd52006-08-04 18:18:08 +00007122# Extract the first word of "groff", so it can be a program name with args.
7123set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126if test "${ac_cv_path_GROFF+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007128else
7129 case $GROFF in
7130 [\\/]* | ?:[\\/]*)
7131 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7132 ;;
7133 *)
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 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 +00007141 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007143 break 2
7144 fi
7145done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146done
Reid Spencera773bd52006-08-04 18:18:08 +00007147IFS=$as_save_IFS
7148
Reid Spencera773bd52006-08-04 18:18:08 +00007149 ;;
7150esac
7151fi
7152GROFF=$ac_cv_path_GROFF
7153if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007154 { echo "$as_me:$LINENO: result: $GROFF" >&5
7155echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007159fi
7160
7161
7162# Extract the first word of "gzip", so it can be a program name with args.
7163set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007166if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007167 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007168else
Eric Christopher031d3072010-12-10 01:31:51 +00007169 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007170 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007171 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007172 ;;
7173 *)
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 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 +00007181 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007183 break 2
7184 fi
7185done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007186done
Reid Spencera773bd52006-08-04 18:18:08 +00007187IFS=$as_save_IFS
7188
Reid Spencera773bd52006-08-04 18:18:08 +00007189 ;;
7190esac
7191fi
Eric Christopher031d3072010-12-10 01:31:51 +00007192GZIPBIN=$ac_cv_path_GZIPBIN
7193if test -n "$GZIPBIN"; then
7194 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7195echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 { echo "$as_me:$LINENO: result: no" >&5
7198echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007199fi
7200
7201
7202# Extract the first word of "pod2html", so it can be a program name with args.
7203set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_POD2HTML+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007208else
7209 case $POD2HTML in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 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 +00007221 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007223 break 2
7224 fi
7225done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226done
Reid Spencera773bd52006-08-04 18:18:08 +00007227IFS=$as_save_IFS
7228
Reid Spencera773bd52006-08-04 18:18:08 +00007229 ;;
7230esac
7231fi
7232POD2HTML=$ac_cv_path_POD2HTML
7233if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7235echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237 { echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007239fi
7240
7241
7242# Extract the first word of "pod2man", so it can be a program name with args.
7243set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246if test "${ac_cv_path_POD2MAN+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007248else
7249 case $POD2MAN in
7250 [\\/]* | ?:[\\/]*)
7251 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7252 ;;
7253 *)
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 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 +00007261 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007263 break 2
7264 fi
7265done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007266done
Reid Spencera773bd52006-08-04 18:18:08 +00007267IFS=$as_save_IFS
7268
Reid Spencera773bd52006-08-04 18:18:08 +00007269 ;;
7270esac
7271fi
7272POD2MAN=$ac_cv_path_POD2MAN
7273if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007274 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7275echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 { echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007279fi
7280
7281
mike-m68cb3192010-05-06 23:45:43 +00007282# Extract the first word of "pdfroff", so it can be a program name with args.
7283set dummy pdfroff; ac_word=$2
7284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286if test "${ac_cv_path_PDFROFF+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289 case $PDFROFF in
7290 [\\/]* | ?:[\\/]*)
7291 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7292 ;;
7293 *)
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7304 fi
7305done
7306done
7307IFS=$as_save_IFS
7308
7309 ;;
7310esac
7311fi
7312PDFROFF=$ac_cv_path_PDFROFF
7313if test -n "$PDFROFF"; then
7314 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7315echo "${ECHO_T}$PDFROFF" >&6; }
7316else
7317 { echo "$as_me:$LINENO: result: no" >&5
7318echo "${ECHO_T}no" >&6; }
7319fi
7320
7321
Reid Spencera773bd52006-08-04 18:18:08 +00007322# Extract the first word of "runtest", so it can be a program name with args.
7323set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326if test "${ac_cv_path_RUNTEST+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007328else
7329 case $RUNTEST in
7330 [\\/]* | ?:[\\/]*)
7331 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7332 ;;
7333 *)
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 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 +00007341 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007343 break 2
7344 fi
7345done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346done
Reid Spencera773bd52006-08-04 18:18:08 +00007347IFS=$as_save_IFS
7348
Reid Spencera773bd52006-08-04 18:18:08 +00007349 ;;
7350esac
7351fi
7352RUNTEST=$ac_cv_path_RUNTEST
7353if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7355echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007356else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357 { echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007359fi
7360
7361
7362
7363no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7365echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007366
7367# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007368if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007369 withval=$with_tclinclude; with_tclinclude=${withval}
7370else
7371 with_tclinclude=''
7372fi
7373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007374if test "${ac_cv_path_tclsh+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007376else
7377
7378if test x"${with_tclinclude}" != x ; then
7379 if test -f ${with_tclinclude}/tclsh ; then
7380 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7381 elif test -f ${with_tclinclude}/src/tclsh ; then
7382 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7383 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007384 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7385echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7386 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007387 fi
7388fi
Torok Edwin871384f2010-01-26 08:50:50 +00007389fi
7390
Reid Spencera773bd52006-08-04 18:18:08 +00007391
7392if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007393 { echo "$as_me:$LINENO: result: none" >&5
7394echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007395 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
7396do
7397 # Extract the first word of "$ac_prog", so it can be a program name with args.
7398set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401if test "${ac_cv_path_TCLSH+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007403else
7404 case $TCLSH in
7405 [\\/]* | ?:[\\/]*)
7406 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7407 ;;
7408 *)
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in $PATH
7411do
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 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 +00007416 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007418 break 2
7419 fi
7420done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421done
Reid Spencera773bd52006-08-04 18:18:08 +00007422IFS=$as_save_IFS
7423
7424 ;;
7425esac
7426fi
7427TCLSH=$ac_cv_path_TCLSH
7428if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7430echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007431else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007432 { echo "$as_me:$LINENO: result: no" >&5
7433echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007434fi
7435
7436
7437 test -n "$TCLSH" && break
7438done
7439
7440 if test x"${TCLSH}" = x ; then
7441 ac_cv_path_tclsh='';
7442 else
7443 ac_cv_path_tclsh="${TCLSH}";
7444 fi
7445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007446 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7447echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007448 TCLSH="${ac_cv_path_tclsh}"
7449
7450fi
7451
Reid Spencera773bd52006-08-04 18:18:08 +00007452# Extract the first word of "zip", so it can be a program name with args.
7453set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456if test "${ac_cv_path_ZIP+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007458else
7459 case $ZIP in
7460 [\\/]* | ?:[\\/]*)
7461 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7462 ;;
7463 *)
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 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 +00007471 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007473 break 2
7474 fi
7475done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476done
Reid Spencera773bd52006-08-04 18:18:08 +00007477IFS=$as_save_IFS
7478
Reid Spencera773bd52006-08-04 18:18:08 +00007479 ;;
7480esac
7481fi
7482ZIP=$ac_cv_path_ZIP
7483if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484 { echo "$as_me:$LINENO: result: $ZIP" >&5
7485echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007486else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007487 { echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007489fi
7490
7491
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007492for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007493do
7494 # Extract the first word of "$ac_prog", so it can be a program name with args.
7495set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498if test "${ac_cv_path_OCAMLC+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007500else
7501 case $OCAMLC in
7502 [\\/]* | ?:[\\/]*)
7503 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7504 ;;
7505 *)
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 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 +00007513 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007515 break 2
7516 fi
7517done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007518done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007519IFS=$as_save_IFS
7520
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007521 ;;
7522esac
7523fi
7524OCAMLC=$ac_cv_path_OCAMLC
7525if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7527echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 { echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007531fi
7532
7533
Gordon Henriksene7072162008-03-07 18:20:01 +00007534 test -n "$OCAMLC" && break
7535done
7536
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007537for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007538do
7539 # Extract the first word of "$ac_prog", so it can be a program name with args.
7540set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7543if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007545else
7546 case $OCAMLOPT in
7547 [\\/]* | ?:[\\/]*)
7548 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7549 ;;
7550 *)
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 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 +00007558 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007560 break 2
7561 fi
7562done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007564IFS=$as_save_IFS
7565
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007566 ;;
7567esac
7568fi
7569OCAMLOPT=$ac_cv_path_OCAMLOPT
7570if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7572echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007574 { echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007576fi
7577
7578
Gordon Henriksene7072162008-03-07 18:20:01 +00007579 test -n "$OCAMLOPT" && break
7580done
7581
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007582for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007583do
7584 # Extract the first word of "$ac_prog", so it can be a program name with args.
7585set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007590else
7591 case $OCAMLDEP in
7592 [\\/]* | ?:[\\/]*)
7593 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7594 ;;
7595 *)
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 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 +00007603 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007605 break 2
7606 fi
7607done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007608done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007609IFS=$as_save_IFS
7610
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007611 ;;
7612esac
7613fi
7614OCAMLDEP=$ac_cv_path_OCAMLDEP
7615if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7617echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007619 { echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007621fi
7622
7623
Gordon Henriksene7072162008-03-07 18:20:01 +00007624 test -n "$OCAMLDEP" && break
7625done
7626
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007627for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007628do
7629 # Extract the first word of "$ac_prog", so it can be a program name with args.
7630set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007635else
7636 case $OCAMLDOC in
7637 [\\/]* | ?:[\\/]*)
7638 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7639 ;;
7640 *)
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 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 +00007648 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007650 break 2
7651 fi
7652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007654IFS=$as_save_IFS
7655
7656 ;;
7657esac
7658fi
7659OCAMLDOC=$ac_cv_path_OCAMLDOC
7660if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7662echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007664 { echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007666fi
7667
7668
7669 test -n "$OCAMLDOC" && break
7670done
7671
Torok Edwincc499a42008-10-22 09:56:27 +00007672for ac_prog in gas as
7673do
7674 # Extract the first word of "$ac_prog", so it can be a program name with args.
7675set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7678if test "${ac_cv_path_GAS+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007680else
7681 case $GAS in
7682 [\\/]* | ?:[\\/]*)
7683 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7684 ;;
7685 *)
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 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 +00007693 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007695 break 2
7696 fi
7697done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007698done
Torok Edwincc499a42008-10-22 09:56:27 +00007699IFS=$as_save_IFS
7700
7701 ;;
7702esac
7703fi
7704GAS=$ac_cv_path_GAS
7705if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706 { echo "$as_me:$LINENO: result: $GAS" >&5
7707echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007708else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007709 { echo "$as_me:$LINENO: result: no" >&5
7710echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007711fi
7712
7713
7714 test -n "$GAS" && break
7715done
7716
Reid Spencera773bd52006-08-04 18:18:08 +00007717
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007718{ echo "$as_me:$LINENO: checking for linker version" >&5
7719echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7720if test "${llvm_cv_link_version+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722else
7723
7724 version_string="$(ld -v 2>&1 | head -1)"
7725
7726 # Check for ld64.
7727 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007728 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007729 else
7730 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7731 fi
7732
7733fi
7734{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7735echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7736
7737cat >>confdefs.h <<_ACEOF
7738#define HOST_LINK_VERSION "$llvm_cv_link_version"
7739_ACEOF
7740
7741
7742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007743{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7744echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7745if test "${llvm_cv_link_use_r+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007747else
7748 ac_ext=c
7749ac_cpp='$CPP $CPPFLAGS'
7750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752ac_compiler_gnu=$ac_cv_c_compiler_gnu
7753
7754 oldcflags="$CFLAGS"
7755 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756 cat >conftest.$ac_ext <<_ACEOF
7757/* confdefs.h. */
7758_ACEOF
7759cat confdefs.h >>conftest.$ac_ext
7760cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007761/* end confdefs.h. */
7762
7763int
7764main ()
7765{
Dan Gohman39ed6782010-04-25 00:12:20 +00007766
Reid Spencera773bd52006-08-04 18:18:08 +00007767 ;
7768 return 0;
7769}
7770_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007771rm -f conftest.$ac_objext conftest$ac_exeext
7772if { (ac_try="$ac_link"
7773case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776esac
7777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_link") 2>conftest.er1
7779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7786 { (case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789esac
7790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_try") 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; } &&
7795 { ac_try='test -s conftest$ac_exeext'
7796 { (case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799esac
7800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_try") 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007805 llvm_cv_link_use_r=yes
7806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007807 echo "$as_me: failed program was:" >&5
7808sed 's/^/| /' conftest.$ac_ext >&5
7809
7810 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007812
Bill Wendlingebcceee2009-04-18 11:20:33 +00007813rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007815 CFLAGS="$oldcflags"
7816 ac_ext=c
7817ac_cpp='$CPP $CPPFLAGS'
7818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822
7823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7825echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007826if test "$llvm_cv_link_use_r" = yes ; then
7827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007828cat >>confdefs.h <<\_ACEOF
7829#define HAVE_LINK_R 1
7830_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007831
7832 fi
7833
7834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7836echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7837if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007839else
7840 ac_ext=c
7841ac_cpp='$CPP $CPPFLAGS'
7842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845
7846 oldcflags="$CFLAGS"
7847 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007848 cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h. */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007853/* end confdefs.h. */
7854
7855int
7856main ()
7857{
Dan Gohman39ed6782010-04-25 00:12:20 +00007858
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007859 ;
7860 return 0;
7861}
7862_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863rm -f conftest.$ac_objext conftest$ac_exeext
7864if { (ac_try="$ac_link"
7865case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_link") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881esac
7882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7891esac
7892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_try") 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007897 llvm_cv_link_use_export_dynamic=yes
7898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007899 echo "$as_me: failed program was:" >&5
7900sed 's/^/| /' conftest.$ac_ext >&5
7901
7902 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007904
Bill Wendlingebcceee2009-04-18 11:20:33 +00007905rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007907 CFLAGS="$oldcflags"
7908 ac_ext=c
7909ac_cpp='$CPP $CPPFLAGS'
7910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913
7914
7915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007916{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7917echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007918if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007920cat >>confdefs.h <<\_ACEOF
7921#define HAVE_LINK_EXPORT_DYNAMIC 1
7922_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007923
7924 fi
7925
7926
Dan Gohmanda612d62010-06-01 14:56:56 +00007927{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7928echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7929if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007930 echo $ECHO_N "(cached) $ECHO_C" >&6
7931else
7932 ac_ext=c
7933ac_cpp='$CPP $CPPFLAGS'
7934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938 oldcflags="$CFLAGS"
7939
7940 # The following code is from the autoconf manual,
7941 # "11.13: Limitations of Usual Tools".
7942 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7943 # Use mktemp if possible; otherwise fall back on mkdir,
7944 # with $RANDOM to make collisions less likely.
7945 : ${TMPDIR=/tmp}
7946 {
7947 tmp=`
7948 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7949 ` &&
7950 test -n "$tmp" && test -d "$tmp"
7951 } || {
7952 tmp=$TMPDIR/foo$$-$RANDOM
7953 (umask 077 && mkdir "$tmp")
7954 } || exit $?
7955
Dan Gohmanda612d62010-06-01 14:56:56 +00007956 echo "{" > "$tmp/export.map"
7957 echo " global: main;" >> "$tmp/export.map"
7958 echo " local: *;" >> "$tmp/export.map"
7959 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007960
Dan Gohmanda612d62010-06-01 14:56:56 +00007961 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007962 cat >conftest.$ac_ext <<_ACEOF
7963/* confdefs.h. */
7964_ACEOF
7965cat confdefs.h >>conftest.$ac_ext
7966cat >>conftest.$ac_ext <<_ACEOF
7967/* end confdefs.h. */
7968
7969int
7970main ()
7971{
Dan Gohman39ed6782010-04-25 00:12:20 +00007972
Dan Gohman391569c2010-04-16 22:59:06 +00007973 ;
7974 return 0;
7975}
7976_ACEOF
7977rm -f conftest.$ac_objext conftest$ac_exeext
7978if { (ac_try="$ac_link"
7979case "(($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_link") 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7992 { (case "(($ac_try" in
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7995esac
7996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997 (eval "$ac_try") 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try='test -s conftest$ac_exeext'
8002 { (case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005esac
8006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_try") 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008011 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008012else
8013 echo "$as_me: failed program was:" >&5
8014sed 's/^/| /' conftest.$ac_ext >&5
8015
Dan Gohman943005e2010-06-01 16:22:27 +00008016 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008017fi
8018
8019rm -f core conftest.err conftest.$ac_objext \
8020 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008021 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008022 rmdir "$tmp"
8023 CFLAGS="$oldcflags"
8024 ac_ext=c
8025ac_cpp='$CPP $CPPFLAGS'
8026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029
8030
8031fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008032{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8033echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8034if test "$llvm_cv_link_use_version_script" = yes ; then
8035 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008036
8037 fi
8038
8039
Reid Spencera773bd52006-08-04 18:18:08 +00008040
8041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008042{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8043echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8044if test "${ac_cv_c_const+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008047 cat >conftest.$ac_ext <<_ACEOF
8048/* confdefs.h. */
8049_ACEOF
8050cat confdefs.h >>conftest.$ac_ext
8051cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008052/* end confdefs.h. */
8053
8054int
8055main ()
8056{
8057/* FIXME: Include the comments suggested by Paul. */
8058#ifndef __cplusplus
8059 /* Ultrix mips cc rejects this. */
8060 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008062 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008063 char const *const *ccp;
8064 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008065 /* NEC SVR4.0.2 mips cc rejects this. */
8066 struct point {int x, y;};
8067 static struct point const zero = {0,0};
8068 /* AIX XL C 1.02.0.0 rejects this.
8069 It does not let you subtract one const X* pointer from another in
8070 an arm of an if-expression whose if-part is not a constant
8071 expression */
8072 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008073 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008074 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008075 ++ccp;
8076 p = (char**) ccp;
8077 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008078 { /* SCO 3.2v4 cc rejects this. */
8079 char *t;
8080 char const *s = 0 ? (char *) 0 : (char const *) 0;
8081
8082 *t++ = 0;
8083 if (s) return 0;
8084 }
8085 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8086 int x[] = {25, 17};
8087 const int *foo = &x[0];
8088 ++foo;
8089 }
8090 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8091 typedef const int *iptr;
8092 iptr p = 0;
8093 ++p;
8094 }
8095 { /* AIX XL C 1.02.0.0 rejects this saying
8096 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8097 struct s { int j; const int *ap[3]; };
8098 struct s *b; b->j = 5;
8099 }
8100 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8101 const int foo = 10;
8102 if (!foo) return 0;
8103 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008104 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008105#endif
8106
8107 ;
8108 return 0;
8109}
8110_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008111rm -f conftest.$ac_objext
8112if { (ac_try="$ac_compile"
8113case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116esac
8117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_compile") 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8126 { (case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8129esac
8130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_try") 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest.$ac_objext'
8136 { (case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8139esac
8140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_try") 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008145 ac_cv_c_const=yes
8146else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008147 echo "$as_me: failed program was:" >&5
8148sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008151fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152
Reid Spencera773bd52006-08-04 18:18:08 +00008153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008155{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8156echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008157if test $ac_cv_c_const = no; then
8158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159cat >>confdefs.h <<\_ACEOF
8160#define const
8161_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008162
8163fi
8164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165
8166
8167
8168
8169
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008170ac_header_dirent=no
8171for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008172 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8173{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8174echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008177else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008178 cat >conftest.$ac_ext <<_ACEOF
8179/* confdefs.h. */
8180_ACEOF
8181cat confdefs.h >>conftest.$ac_ext
8182cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008183/* end confdefs.h. */
8184#include <sys/types.h>
8185#include <$ac_hdr>
8186
8187int
8188main ()
8189{
8190if ((DIR *) 0)
8191return 0;
8192 ;
8193 return 0;
8194}
8195_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196rm -f conftest.$ac_objext
8197if { (ac_try="$ac_compile"
8198case "(($ac_try" in
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8201esac
8202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_compile") 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8211 { (case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214esac
8215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_try") 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest.$ac_objext'
8221 { (case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8224esac
8225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_try") 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008230 eval "$as_ac_Header=yes"
8231else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232 echo "$as_me: failed program was:" >&5
8233sed 's/^/| /' conftest.$ac_ext >&5
8234
8235 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008237
Reid Spencera773bd52006-08-04 18:18:08 +00008238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240ac_res=`eval echo '${'$as_ac_Header'}'`
8241 { echo "$as_me:$LINENO: result: $ac_res" >&5
8242echo "${ECHO_T}$ac_res" >&6; }
8243if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008244 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008245#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008246_ACEOF
8247
8248ac_header_dirent=$ac_hdr; break
8249fi
8250
8251done
8252# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8253if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8255echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8256if test "${ac_cv_search_opendir+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008258else
8259 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008260cat >conftest.$ac_ext <<_ACEOF
8261/* confdefs.h. */
8262_ACEOF
8263cat confdefs.h >>conftest.$ac_ext
8264cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008265/* end confdefs.h. */
8266
Reid Spencera773bd52006-08-04 18:18:08 +00008267/* Override any GCC internal prototype to avoid an error.
8268 Use char because int might match the return type of a GCC
8269 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008270#ifdef __cplusplus
8271extern "C"
8272#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008273char opendir ();
8274int
8275main ()
8276{
Reid Spencera773bd52006-08-04 18:18:08 +00008277return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008278 ;
8279 return 0;
8280}
8281_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008282for ac_lib in '' dir; do
8283 if test -z "$ac_lib"; then
8284 ac_res="none required"
8285 else
8286 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008288 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008289 rm -f conftest.$ac_objext conftest$ac_exeext
8290if { (ac_try="$ac_link"
8291case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294esac
8295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_link") 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307esac
8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try='test -s conftest$ac_exeext'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317esac
8318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008323 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008324else
8325 echo "$as_me: failed program was:" >&5
8326sed 's/^/| /' conftest.$ac_ext >&5
8327
8328
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008330
Bill Wendlingebcceee2009-04-18 11:20:33 +00008331rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008332 conftest$ac_exeext
8333 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008334 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008335fi
John Criswell7a73b802003-06-30 21:59:07 +00008336done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337if test "${ac_cv_search_opendir+set}" = set; then
8338 :
Reid Spencera773bd52006-08-04 18:18:08 +00008339else
8340 ac_cv_search_opendir=no
8341fi
8342rm conftest.$ac_ext
8343LIBS=$ac_func_search_save_LIBS
8344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008345{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8346echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008347ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008348if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008350
Reid Spencera773bd52006-08-04 18:18:08 +00008351fi
8352
8353else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008354 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8355echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8356if test "${ac_cv_search_opendir+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008358else
8359 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008360cat >conftest.$ac_ext <<_ACEOF
8361/* confdefs.h. */
8362_ACEOF
8363cat confdefs.h >>conftest.$ac_ext
8364cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008365/* end confdefs.h. */
8366
8367/* Override any GCC internal prototype to avoid an error.
8368 Use char because int might match the return type of a GCC
8369 builtin and then its argument prototype would still apply. */
8370#ifdef __cplusplus
8371extern "C"
8372#endif
8373char opendir ();
8374int
8375main ()
8376{
8377return opendir ();
8378 ;
8379 return 0;
8380}
8381_ACEOF
8382for ac_lib in '' x; do
8383 if test -z "$ac_lib"; then
8384 ac_res="none required"
8385 else
8386 ac_res=-l$ac_lib
8387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8388 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008389 rm -f conftest.$ac_objext conftest$ac_exeext
8390if { (ac_try="$ac_link"
8391case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394esac
8395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_link") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8404 { (case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8407esac
8408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_try") 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8417esac
8418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_try") 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008423 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424else
8425 echo "$as_me: failed program was:" >&5
8426sed 's/^/| /' conftest.$ac_ext >&5
8427
8428
Reid Spencera773bd52006-08-04 18:18:08 +00008429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008430
Bill Wendlingebcceee2009-04-18 11:20:33 +00008431rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008432 conftest$ac_exeext
8433 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008434 break
8435fi
8436done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008437if test "${ac_cv_search_opendir+set}" = set; then
8438 :
Reid Spencera773bd52006-08-04 18:18:08 +00008439else
8440 ac_cv_search_opendir=no
8441fi
8442rm conftest.$ac_ext
8443LIBS=$ac_func_search_save_LIBS
8444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008445{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8446echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008447ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008448if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8450
8451fi
8452
8453fi
John Criswell7a73b802003-06-30 21:59:07 +00008454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008455
John Criswell7a73b802003-06-30 21:59:07 +00008456for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008457do
8458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464fi
8465ac_res=`eval echo '${'$as_ac_Header'}'`
8466 { echo "$as_me:$LINENO: result: $ac_res" >&5
8467echo "${ECHO_T}$ac_res" >&6; }
8468else
8469 # Is the header compilable?
8470{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8472cat >conftest.$ac_ext <<_ACEOF
8473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
8478$ac_includes_default
8479#include <$ac_header>
8480_ACEOF
8481rm -f conftest.$ac_objext
8482if { (ac_try="$ac_compile"
8483case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8486esac
8487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_compile") 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496 { (case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499esac
8500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_try") 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest.$ac_objext'
8506 { (case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509esac
8510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_try") 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_header_compiler=yes
8516else
8517 echo "$as_me: failed program was:" >&5
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520 ac_header_compiler=no
8521fi
8522
8523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8525echo "${ECHO_T}$ac_header_compiler" >&6; }
8526
8527# Is the header present?
8528{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8530cat >conftest.$ac_ext <<_ACEOF
8531/* confdefs.h. */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h. */
8536#include <$ac_header>
8537_ACEOF
8538if { (ac_try="$ac_cpp conftest.$ac_ext"
8539case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542esac
8543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8545 ac_status=$?
8546 grep -v '^ *+' conftest.er1 >conftest.err
8547 rm -f conftest.er1
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } >/dev/null; then
8551 if test -s conftest.err; then
8552 ac_cpp_err=$ac_c_preproc_warn_flag
8553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8554 else
8555 ac_cpp_err=
8556 fi
8557else
8558 ac_cpp_err=yes
8559fi
8560if test -z "$ac_cpp_err"; then
8561 ac_header_preproc=yes
8562else
8563 echo "$as_me: failed program was:" >&5
8564sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 ac_header_preproc=no
8567fi
8568
8569rm -f conftest.err conftest.$ac_ext
8570{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8571echo "${ECHO_T}$ac_header_preproc" >&6; }
8572
8573# So? What about this header?
8574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8575 yes:no: )
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8577echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8579echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8580 ac_header_preproc=yes
8581 ;;
8582 no:yes:* )
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8584echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8586echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8588echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8590echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8592echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8594echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8595 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008596## ------------------------------------ ##
8597## Report this to http://llvm.org/bugs/ ##
8598## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008599_ASBOX
8600 ) | sed "s/^/$as_me: WARNING: /" >&2
8601 ;;
8602esac
8603{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8607else
8608 eval "$as_ac_Header=\$ac_header_preproc"
8609fi
8610ac_res=`eval echo '${'$as_ac_Header'}'`
8611 { echo "$as_me:$LINENO: result: $ac_res" >&5
8612echo "${ECHO_T}$ac_res" >&6; }
8613
8614fi
8615if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008616 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008618_ACEOF
8619
8620fi
8621
8622done
8623
Reid Spencera773bd52006-08-04 18:18:08 +00008624# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008625if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008626 enableval=$enable_ltdl_install;
8627fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008628
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008630
8631
8632if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008633 INSTALL_LTDL_TRUE=
8634 INSTALL_LTDL_FALSE='#'
8635else
8636 INSTALL_LTDL_TRUE='#'
8637 INSTALL_LTDL_FALSE=
8638fi
8639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008640
8641
8642if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008643 CONVENIENCE_LTDL_TRUE=
8644 CONVENIENCE_LTDL_FALSE='#'
8645else
8646 CONVENIENCE_LTDL_TRUE='#'
8647 CONVENIENCE_LTDL_FALSE=
8648fi
8649
8650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008651{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8652echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008653library_names_spec=
8654libname_spec='lib$name'
8655soname_spec=
8656shrext_cmds=".so"
8657postinstall_cmds=
8658postuninstall_cmds=
8659finish_cmds=
8660finish_eval=
8661shlibpath_var=
8662shlibpath_overrides_runpath=unknown
8663version_type=none
8664dynamic_linker="$host_os ld.so"
8665sys_lib_dlsearch_path_spec="/lib /usr/lib"
8666if test "$GCC" = yes; then
8667 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8668 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8669 # if the path contains ";" then we assume it to be the separator
8670 # otherwise default to the standard path separator (i.e. ":") - it is
8671 # assumed that no part of a normal pathname contains ";" but that should
8672 # okay in the real world where ";" in dirpaths is itself problematic.
8673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8674 else
8675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8676 fi
8677else
8678 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8679fi
8680need_lib_prefix=unknown
8681hardcode_into_libs=no
8682
8683# when you set need_version to no, make sure it does not cause -set_version
8684# flags to be left without arguments
8685need_version=unknown
8686
8687case $host_os in
8688aix3*)
8689 version_type=linux
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8691 shlibpath_var=LIBPATH
8692
8693 # AIX 3 has no versioning support, so we append a major version to the name.
8694 soname_spec='${libname}${release}${shared_ext}$major'
8695 ;;
8696
8697aix4* | aix5*)
8698 version_type=linux
8699 need_lib_prefix=no
8700 need_version=no
8701 hardcode_into_libs=yes
8702 if test "$host_cpu" = ia64; then
8703 # AIX 5 supports IA64
8704 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8705 shlibpath_var=LD_LIBRARY_PATH
8706 else
8707 # With GCC up to 2.95.x, collect2 would create an import file
8708 # for dependence libraries. The import file would start with
8709 # the line `#! .'. This would cause the generated library to
8710 # depend on `.', always an invalid library. This was fixed in
8711 # development snapshots of GCC prior to 3.0.
8712 case $host_os in
8713 aix4 | aix4.[01] | aix4.[01].*)
8714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8715 echo ' yes '
8716 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8717 :
8718 else
8719 can_build_shared=no
8720 fi
8721 ;;
8722 esac
8723 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8724 # soname into executable. Probably we can add versioning support to
8725 # collect2, so additional links can be useful in future.
8726 if test "$aix_use_runtimelinking" = yes; then
8727 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8728 # instead of lib<name>.a to let people know that these are not
8729 # typical AIX shared libraries.
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731 else
8732 # We preserve .a as extension for shared libraries through AIX4.2
8733 # and later when we are not doing run time linking.
8734 library_names_spec='${libname}${release}.a $libname.a'
8735 soname_spec='${libname}${release}${shared_ext}$major'
8736 fi
8737 shlibpath_var=LIBPATH
8738 fi
8739 ;;
8740
8741amigaos*)
8742 library_names_spec='$libname.ixlibrary $libname.a'
8743 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8744 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'
8745 ;;
8746
8747beos*)
8748 library_names_spec='${libname}${shared_ext}'
8749 dynamic_linker="$host_os ld.so"
8750 shlibpath_var=LIBRARY_PATH
8751 ;;
8752
8753bsdi[45]*)
8754 version_type=linux
8755 need_version=no
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757 soname_spec='${libname}${release}${shared_ext}$major'
8758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8759 shlibpath_var=LD_LIBRARY_PATH
8760 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8761 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8762 # the default ld.so.conf also contains /usr/contrib/lib and
8763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8764 # libtool to hard-code these into programs
8765 ;;
8766
8767cygwin* | mingw* | pw32*)
8768 version_type=windows
8769 shrext_cmds=".dll"
8770 need_version=no
8771 need_lib_prefix=no
8772
8773 case $GCC,$host_os in
8774 yes,cygwin* | yes,mingw* | yes,pw32*)
8775 library_names_spec='$libname.dll.a'
8776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8777 postinstall_cmds='base_file=`basename \${file}`~
8778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8779 dldir=$destdir/`dirname \$dlpath`~
8780 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008781 $install_prog $dir/$dlname \$dldir/$dlname~
8782 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8784 dlpath=$dir/\$dldll~
8785 $rm \$dlpath'
8786 shlibpath_overrides_runpath=yes
8787
8788 case $host_os in
8789 cygwin*)
8790 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8791 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8792 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8793 ;;
8794 mingw*)
8795 # MinGW DLLs use traditional 'lib' prefix
8796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8798 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8799 # It is most probably a Windows format PATH printed by
8800 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8801 # path with ; separators, and with drive letters. We can handle the
8802 # drive letters (cygwin fileutils understands them), so leave them,
8803 # especially as we might pass files found there to a mingw objdump,
8804 # which wouldn't understand a cygwinified path. Ahh.
8805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8806 else
8807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8808 fi
8809 ;;
8810 pw32*)
8811 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008812 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 +00008813 ;;
8814 esac
8815 ;;
8816
8817 *)
8818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8819 ;;
8820 esac
8821 dynamic_linker='Win32 ld.exe'
8822 # FIXME: first we should search . and the directory the executable is in
8823 shlibpath_var=PATH
8824 ;;
8825
8826darwin* | rhapsody*)
8827 dynamic_linker="$host_os dyld"
8828 version_type=darwin
8829 need_lib_prefix=no
8830 need_version=no
8831 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8832 soname_spec='${libname}${release}${major}$shared_ext'
8833 shlibpath_overrides_runpath=yes
8834 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008835 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008836 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8837 if test "$GCC" = yes; then
8838 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"`
8839 else
8840 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8841 fi
8842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8843 ;;
8844
8845dgux*)
8846 version_type=linux
8847 need_lib_prefix=no
8848 need_version=no
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8850 soname_spec='${libname}${release}${shared_ext}$major'
8851 shlibpath_var=LD_LIBRARY_PATH
8852 ;;
8853
Eric Christopher360fa9a2011-10-26 00:42:12 +00008854freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008855 dynamic_linker=no
8856 ;;
8857
8858kfreebsd*-gnu)
8859 version_type=linux
8860 need_lib_prefix=no
8861 need_version=no
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 shlibpath_var=LD_LIBRARY_PATH
8865 shlibpath_overrides_runpath=no
8866 hardcode_into_libs=yes
8867 dynamic_linker='GNU ld.so'
8868 ;;
8869
Reid Spencera773bd52006-08-04 18:18:08 +00008870freebsd* | dragonfly*)
8871 # DragonFly does not have aout. When/if they implement a new
8872 # versioning mechanism, adjust this.
8873 if test -x /usr/bin/objformat; then
8874 objformat=`/usr/bin/objformat`
8875 else
8876 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008877 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008878 *) objformat=elf ;;
8879 esac
8880 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008881 version_type=freebsd-$objformat
8882 case $version_type in
8883 freebsd-elf*)
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8885 need_version=no
8886 need_lib_prefix=no
8887 ;;
8888 freebsd-*)
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8890 need_version=yes
8891 ;;
8892 esac
8893 shlibpath_var=LD_LIBRARY_PATH
8894 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008895 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008896 shlibpath_overrides_runpath=yes
8897 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008898 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008899 shlibpath_overrides_runpath=yes
8900 hardcode_into_libs=yes
8901 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008904 shlibpath_overrides_runpath=no
8905 hardcode_into_libs=yes
8906 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008907 freebsd*) # from 4.6 on
8908 shlibpath_overrides_runpath=yes
8909 hardcode_into_libs=yes
8910 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008911 esac
8912 ;;
8913
8914gnu*)
8915 version_type=linux
8916 need_lib_prefix=no
8917 need_version=no
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8919 soname_spec='${libname}${release}${shared_ext}$major'
8920 shlibpath_var=LD_LIBRARY_PATH
8921 hardcode_into_libs=yes
8922 ;;
8923
8924hpux9* | hpux10* | hpux11*)
8925 # Give a soname corresponding to the major version so that dld.sl refuses to
8926 # link against other versions.
8927 version_type=sunos
8928 need_lib_prefix=no
8929 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008930 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008931 ia64*)
8932 shrext_cmds='.so'
8933 hardcode_into_libs=yes
8934 dynamic_linker="$host_os dld.so"
8935 shlibpath_var=LD_LIBRARY_PATH
8936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 if test "X$HPUX_IA64_MODE" = X32; then
8940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8941 else
8942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8943 fi
8944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8945 ;;
8946 hppa*64*)
8947 shrext_cmds='.sl'
8948 hardcode_into_libs=yes
8949 dynamic_linker="$host_os dld.sl"
8950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8956 ;;
8957 *)
8958 shrext_cmds='.sl'
8959 dynamic_linker="$host_os dld.sl"
8960 shlibpath_var=SHLIB_PATH
8961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 ;;
8965 esac
8966 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8967 postinstall_cmds='chmod 555 $lib'
8968 ;;
8969
Reid Spencera773bd52006-08-04 18:18:08 +00008970interix3*)
8971 version_type=linux
8972 need_lib_prefix=no
8973 need_version=no
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8977 shlibpath_var=LD_LIBRARY_PATH
8978 shlibpath_overrides_runpath=no
8979 hardcode_into_libs=yes
8980 ;;
8981
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008982irix5* | irix6* | nonstopux*)
8983 case $host_os in
8984 nonstopux*) version_type=nonstopux ;;
8985 *)
8986 if test "$lt_cv_prog_gnu_ld" = yes; then
8987 version_type=linux
8988 else
8989 version_type=irix
8990 fi ;;
8991 esac
8992 need_lib_prefix=no
8993 need_version=no
8994 soname_spec='${libname}${release}${shared_ext}$major'
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8996 case $host_os in
8997 irix5* | nonstopux*)
8998 libsuff= shlibsuff=
8999 ;;
9000 *)
9001 case $LD in # libtool.m4 will add one of these switches to LD
9002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9003 libsuff= shlibsuff= libmagic=32-bit;;
9004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9005 libsuff=32 shlibsuff=N32 libmagic=N32;;
9006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9008 *) libsuff= shlibsuff= libmagic=never-match;;
9009 esac
9010 ;;
9011 esac
9012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9013 shlibpath_overrides_runpath=no
9014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9016 hardcode_into_libs=yes
9017 ;;
9018
9019# No shared lib support for Linux oldld, aout, or coff.
9020linux*oldld* | linux*aout* | linux*coff*)
9021 dynamic_linker=no
9022 ;;
9023
9024# This must be Linux ELF.
9025linux*)
9026 version_type=linux
9027 need_lib_prefix=no
9028 need_version=no
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 shlibpath_overrides_runpath=no
9034 # This implies no fast_install, which is unacceptable.
9035 # Some rework will be needed to allow for fast_install
9036 # before this can be enabled.
9037 hardcode_into_libs=yes
9038
9039 # Append ld.so.conf contents to the search path
9040 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009041 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 +00009042 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9043 fi
9044
9045 # We used to test for /lib/ld.so.1 and disable shared libraries on
9046 # powerpc, because MkLinux only supported shared libraries with the
9047 # GNU dynamic linker. Since this was broken with cross compilers,
9048 # most powerpc-linux boxes support dynamic linking these days and
9049 # people can always --disable-shared, the test was removed, and we
9050 # assume the GNU/Linux dynamic linker is in use.
9051 dynamic_linker='GNU/Linux ld.so'
9052 ;;
9053
9054knetbsd*-gnu)
9055 version_type=linux
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=no
9062 hardcode_into_libs=yes
9063 dynamic_linker='GNU ld.so'
9064 ;;
9065
9066netbsd*)
9067 version_type=sunos
9068 need_lib_prefix=no
9069 need_version=no
9070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9073 dynamic_linker='NetBSD (a.out) ld.so'
9074 else
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 dynamic_linker='NetBSD ld.elf_so'
9078 fi
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=yes
9081 hardcode_into_libs=yes
9082 ;;
9083
9084newsos6)
9085 version_type=linux
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9089 ;;
9090
9091nto-qnx*)
9092 version_type=linux
9093 need_lib_prefix=no
9094 need_version=no
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=yes
9099 ;;
9100
9101openbsd*)
9102 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009103 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009104 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009105 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9106 case $host_os in
9107 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9108 *) need_version=no ;;
9109 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9114 case $host_os in
9115 openbsd2.[89] | openbsd2.[89].*)
9116 shlibpath_overrides_runpath=no
9117 ;;
9118 *)
9119 shlibpath_overrides_runpath=yes
9120 ;;
9121 esac
9122 else
9123 shlibpath_overrides_runpath=yes
9124 fi
9125 ;;
9126
9127os2*)
9128 libname_spec='$name'
9129 shrext_cmds=".dll"
9130 need_lib_prefix=no
9131 library_names_spec='$libname${shared_ext} $libname.a'
9132 dynamic_linker='OS/2 ld.exe'
9133 shlibpath_var=LIBPATH
9134 ;;
9135
9136osf3* | osf4* | osf5*)
9137 version_type=osf
9138 need_lib_prefix=no
9139 need_version=no
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9145 ;;
9146
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009147solaris*)
9148 version_type=linux
9149 need_lib_prefix=no
9150 need_version=no
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=yes
9155 hardcode_into_libs=yes
9156 # ldd complains unless libraries are executable
9157 postinstall_cmds='chmod +x $lib'
9158 ;;
9159
9160sunos4*)
9161 version_type=sunos
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9164 shlibpath_var=LD_LIBRARY_PATH
9165 shlibpath_overrides_runpath=yes
9166 if test "$with_gnu_ld" = yes; then
9167 need_lib_prefix=no
9168 fi
9169 need_version=yes
9170 ;;
9171
Reid Spencera773bd52006-08-04 18:18:08 +00009172sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009173 version_type=linux
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 case $host_vendor in
9178 sni)
9179 shlibpath_overrides_runpath=no
9180 need_lib_prefix=no
9181 export_dynamic_flag_spec='${wl}-Blargedynsym'
9182 runpath_var=LD_RUN_PATH
9183 ;;
9184 siemens)
9185 need_lib_prefix=no
9186 ;;
9187 motorola)
9188 need_lib_prefix=no
9189 need_version=no
9190 shlibpath_overrides_runpath=no
9191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9192 ;;
9193 esac
9194 ;;
9195
9196sysv4*MP*)
9197 if test -d /usr/nec ;then
9198 version_type=linux
9199 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9200 soname_spec='$libname${shared_ext}.$major'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 fi
9203 ;;
9204
Reid Spencera773bd52006-08-04 18:18:08 +00009205sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9206 version_type=freebsd-elf
9207 need_lib_prefix=no
9208 need_version=no
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 hardcode_into_libs=yes
9213 if test "$with_gnu_ld" = yes; then
9214 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9215 shlibpath_overrides_runpath=no
9216 else
9217 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9218 shlibpath_overrides_runpath=yes
9219 case $host_os in
9220 sco3.2v5*)
9221 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9222 ;;
9223 esac
9224 fi
9225 sys_lib_dlsearch_path_spec='/usr/lib'
9226 ;;
9227
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009228uts4*)
9229 version_type=linux
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 ;;
9234
9235*)
9236 dynamic_linker=no
9237 ;;
9238esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009239{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9240echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009241test "$dynamic_linker" = no && can_build_shared=no
9242
Reid Spencera773bd52006-08-04 18:18:08 +00009243variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9244if test "$GCC" = yes; then
9245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9246fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009247
Reid Spencera773bd52006-08-04 18:18:08 +00009248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009249{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9250echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9251if test "${libltdl_cv_shlibext+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009253else
9254
9255module=yes
9256eval libltdl_cv_shlibext=$shrext_cmds
9257
9258fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009259{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9260echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261if test -n "$libltdl_cv_shlibext"; then
9262
9263cat >>confdefs.h <<_ACEOF
9264#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9265_ACEOF
9266
9267fi
9268
9269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009270{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9271echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9272if test "${libltdl_cv_shlibpath_var+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009274else
9275 libltdl_cv_shlibpath_var="$shlibpath_var"
9276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009277{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9278echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279if test -n "$libltdl_cv_shlibpath_var"; then
9280
9281cat >>confdefs.h <<_ACEOF
9282#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9283_ACEOF
9284
9285fi
9286
9287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009288{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9289echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9290if test "${libltdl_cv_sys_search_path+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009292else
9293 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009295{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9296echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009297if test -n "$libltdl_cv_sys_search_path"; then
9298 sys_search_path=
9299 for dir in $libltdl_cv_sys_search_path; do
9300 if test -z "$sys_search_path"; then
9301 sys_search_path="$dir"
9302 else
9303 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9304 fi
9305 done
9306
9307cat >>confdefs.h <<_ACEOF
9308#define LTDL_SYSSEARCHPATH "$sys_search_path"
9309_ACEOF
9310
9311fi
9312
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009313{ echo "$as_me:$LINENO: checking for objdir" >&5
9314echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9315if test "${libltdl_cv_objdir+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009317else
9318 libltdl_cv_objdir="$objdir"
9319 if test -n "$objdir"; then
9320 :
9321 else
9322 rm -f .libs 2>/dev/null
9323 mkdir .libs 2>/dev/null
9324 if test -d .libs; then
9325 libltdl_cv_objdir=.libs
9326 else
9327 # MS-DOS does not allow filenames that begin with a dot.
9328 libltdl_cv_objdir=_libs
9329 fi
9330 rmdir .libs 2>/dev/null
9331 fi
9332
9333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009334{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9335echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009336
9337cat >>confdefs.h <<_ACEOF
9338#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9339_ACEOF
9340
9341
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009342
9343
9344
9345
9346# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009347{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9348echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9349if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009351else
9352
9353# These are sane defaults that work on at least a few old systems.
9354# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9355
9356# Character class describing NM global symbol codes.
9357symcode='[BCDEGRST]'
9358
9359# Regexp to match symbols that can be accessed directly from C.
9360sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9361
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362# Transform an extracted symbol line into a proper C declaration
9363lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9364
9365# Transform an extracted symbol line into symbol name and symbol address
9366lt_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'"
9367
9368# Define system-specific variables.
9369case $host_os in
9370aix*)
9371 symcode='[BCDT]'
9372 ;;
9373cygwin* | mingw* | pw32*)
9374 symcode='[ABCDGISTW]'
9375 ;;
9376hpux*) # Its linker distinguishes data from code symbols
9377 if test "$host_cpu" = ia64; then
9378 symcode='[ABCDEGRST]'
9379 fi
9380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9381 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'"
9382 ;;
9383linux*)
9384 if test "$host_cpu" = ia64; then
9385 symcode='[ABCDGIRSTW]'
9386 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9387 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'"
9388 fi
9389 ;;
9390irix* | nonstopux*)
9391 symcode='[BCDEGRST]'
9392 ;;
9393osf*)
9394 symcode='[BCDEGQRST]'
9395 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009396solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009397 symcode='[BDRT]'
9398 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009399sco3.2v5*)
9400 symcode='[DT]'
9401 ;;
9402sysv4.2uw2*)
9403 symcode='[DT]'
9404 ;;
9405sysv5* | sco5v6* | unixware* | OpenUNIX*)
9406 symcode='[ABDT]'
9407 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009408sysv4)
9409 symcode='[DFNSTU]'
9410 ;;
9411esac
9412
9413# Handle CRLF in mingw tool chain
9414opt_cr=
9415case $build_os in
9416mingw*)
9417 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9418 ;;
9419esac
9420
9421# If we're using GNU nm, then use its standard symbol codes.
9422case `$NM -V 2>&1` in
9423*GNU* | *'with BFD'*)
9424 symcode='[ABCDGIRSTW]' ;;
9425esac
9426
9427# Try without a prefix undercore, then with it.
9428for ac_symprfx in "" "_"; do
9429
Reid Spencera773bd52006-08-04 18:18:08 +00009430 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9431 symxfrm="\\1 $ac_symprfx\\2 \\2"
9432
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009433 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009434 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 +00009435
9436 # Check to see that the pipe works correctly.
9437 pipe_works=no
9438
9439 rm -f conftest*
9440 cat > conftest.$ac_ext <<EOF
9441#ifdef __cplusplus
9442extern "C" {
9443#endif
9444char nm_test_var;
9445void nm_test_func(){}
9446#ifdef __cplusplus
9447}
9448#endif
9449int main(){nm_test_var='a';nm_test_func();return(0);}
9450EOF
9451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009453 (eval $ac_compile) 2>&5
9454 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009457 # Now try to grab the symbols.
9458 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009459 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 +00009460 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9461 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009464 # Try sorting and uniquifying the output.
9465 if sort "$nlist" | uniq > "$nlist"T; then
9466 mv -f "$nlist"T "$nlist"
9467 else
9468 rm -f "$nlist"T
9469 fi
9470
9471 # Make sure that we snagged all the symbols we need.
9472 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9473 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9474 cat <<EOF > conftest.$ac_ext
9475#ifdef __cplusplus
9476extern "C" {
9477#endif
9478
9479EOF
9480 # Now generate the symbol file.
9481 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9482
9483 cat <<EOF >> conftest.$ac_ext
9484#if defined (__STDC__) && __STDC__
9485# define lt_ptr_t void *
9486#else
9487# define lt_ptr_t char *
9488# define const
9489#endif
9490
9491/* The mapping between symbol names and symbols. */
9492const struct {
9493 const char *name;
9494 lt_ptr_t address;
9495}
9496lt_preloaded_symbols[] =
9497{
9498EOF
9499 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9500 cat <<\EOF >> conftest.$ac_ext
9501 {0, (lt_ptr_t) 0}
9502};
9503
9504#ifdef __cplusplus
9505}
9506#endif
9507EOF
9508 # Now try linking the two files.
9509 mv conftest.$ac_objext conftstm.$ac_objext
9510 lt_save_LIBS="$LIBS"
9511 lt_save_CFLAGS="$CFLAGS"
9512 LIBS="conftstm.$ac_objext"
9513 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009515 (eval $ac_link) 2>&5
9516 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009519 pipe_works=yes
9520 fi
9521 LIBS="$lt_save_LIBS"
9522 CFLAGS="$lt_save_CFLAGS"
9523 else
9524 echo "cannot find nm_test_func in $nlist" >&5
9525 fi
9526 else
9527 echo "cannot find nm_test_var in $nlist" >&5
9528 fi
9529 else
9530 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9531 fi
9532 else
9533 echo "$progname: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 fi
9536 rm -f conftest* conftst*
9537
9538 # Do not use the global_symbol_pipe unless it works.
9539 if test "$pipe_works" = yes; then
9540 break
9541 else
9542 lt_cv_sys_global_symbol_pipe=
9543 fi
9544done
9545
9546fi
9547
9548if test -z "$lt_cv_sys_global_symbol_pipe"; then
9549 lt_cv_sys_global_symbol_to_cdecl=
9550fi
9551if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009552 { echo "$as_me:$LINENO: result: failed" >&5
9553echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009555 { echo "$as_me:$LINENO: result: ok" >&5
9556echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009557fi
9558
9559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009560{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9561echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9562if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009564else
9565 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9566 libltdl_cv_preloaded_symbols=yes
9567 else
9568 libltdl_cv_preloaded_symbols=no
9569 fi
9570
9571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009572{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9573echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009574if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009576cat >>confdefs.h <<\_ACEOF
9577#define HAVE_PRELOADED_SYMBOLS 1
9578_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009579
9580fi
9581
9582LIBADD_DL=
9583
9584ac_ext=c
9585ac_cpp='$CPP $CPPFLAGS'
9586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9588ac_compiler_gnu=$ac_cv_c_compiler_gnu
9589
9590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009591{ echo "$as_me:$LINENO: checking for shl_load" >&5
9592echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9593if test "${ac_cv_func_shl_load+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595else
9596 cat >conftest.$ac_ext <<_ACEOF
9597/* confdefs.h. */
9598_ACEOF
9599cat confdefs.h >>conftest.$ac_ext
9600cat >>conftest.$ac_ext <<_ACEOF
9601/* end confdefs.h. */
9602/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9604#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009606/* System header to define __stub macros and hopefully few prototypes,
9607 which can conflict with char shl_load (); below.
9608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9609 <limits.h> exists even on freestanding compilers. */
9610
9611#ifdef __STDC__
9612# include <limits.h>
9613#else
9614# include <assert.h>
9615#endif
9616
9617#undef shl_load
9618
9619/* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
9622#ifdef __cplusplus
9623extern "C"
9624#endif
9625char shl_load ();
9626/* The GNU C library defines this for functions which it implements
9627 to always fail with ENOSYS. Some functions are actually named
9628 something starting with __ and the normal name is an alias. */
9629#if defined __stub_shl_load || defined __stub___shl_load
9630choke me
9631#endif
9632
9633int
9634main ()
9635{
9636return shl_load ();
9637 ;
9638 return 0;
9639}
9640_ACEOF
9641rm -f conftest.$ac_objext conftest$ac_exeext
9642if { (ac_try="$ac_link"
9643case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646esac
9647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_link") 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656 { (case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659esac
9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_try") 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; } &&
9665 { ac_try='test -s conftest$ac_exeext'
9666 { (case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669esac
9670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_try") 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_func_shl_load=yes
9676else
9677 echo "$as_me: failed program was:" >&5
9678sed 's/^/| /' conftest.$ac_ext >&5
9679
9680 ac_cv_func_shl_load=no
9681fi
9682
9683rm -f core conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9685fi
9686{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9687echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9688if test $ac_cv_func_shl_load = yes; then
9689
9690cat >>confdefs.h <<\_ACEOF
9691#define HAVE_SHL_LOAD 1
9692_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693
9694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009695 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9696echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9697if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009699else
9700 ac_check_lib_save_LIBS=$LIBS
9701LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009702cat >conftest.$ac_ext <<_ACEOF
9703/* confdefs.h. */
9704_ACEOF
9705cat confdefs.h >>conftest.$ac_ext
9706cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009707/* end confdefs.h. */
9708
Reid Spencera773bd52006-08-04 18:18:08 +00009709/* Override any GCC internal prototype to avoid an error.
9710 Use char because int might match the return type of a GCC
9711 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009712#ifdef __cplusplus
9713extern "C"
9714#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009715char shl_load ();
9716int
9717main ()
9718{
Reid Spencera773bd52006-08-04 18:18:08 +00009719return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009720 ;
9721 return 0;
9722}
9723_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009724rm -f conftest.$ac_objext conftest$ac_exeext
9725if { (ac_try="$ac_link"
9726case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729esac
9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_link") 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739 { (case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742esac
9743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_try") 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752esac
9753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_try") 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009758 ac_cv_lib_dld_shl_load=yes
9759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009760 echo "$as_me: failed program was:" >&5
9761sed 's/^/| /' conftest.$ac_ext >&5
9762
9763 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009765
Bill Wendlingebcceee2009-04-18 11:20:33 +00009766rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009767 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768LIBS=$ac_check_lib_save_LIBS
9769fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009770{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9771echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9772if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009774cat >>confdefs.h <<\_ACEOF
9775#define HAVE_SHL_LOAD 1
9776_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777
9778 LIBADD_DL="$LIBADD_DL -ldld"
9779else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009780 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9781echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9782if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784else
9785 ac_check_lib_save_LIBS=$LIBS
9786LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009787cat >conftest.$ac_ext <<_ACEOF
9788/* confdefs.h. */
9789_ACEOF
9790cat confdefs.h >>conftest.$ac_ext
9791cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009792/* end confdefs.h. */
9793
Reid Spencera773bd52006-08-04 18:18:08 +00009794/* Override any GCC internal prototype to avoid an error.
9795 Use char because int might match the return type of a GCC
9796 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009797#ifdef __cplusplus
9798extern "C"
9799#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009800char dlopen ();
9801int
9802main ()
9803{
Reid Spencera773bd52006-08-04 18:18:08 +00009804return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009805 ;
9806 return 0;
9807}
9808_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009809rm -f conftest.$ac_objext conftest$ac_exeext
9810if { (ac_try="$ac_link"
9811case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814esac
9815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_link") 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9824 { (case "(($ac_try" in
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9827esac
9828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_try") 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
9834 { (case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9837esac
9838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_try") 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009843 ac_cv_lib_dl_dlopen=yes
9844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009845 echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009850
Bill Wendlingebcceee2009-04-18 11:20:33 +00009851rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009852 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853LIBS=$ac_check_lib_save_LIBS
9854fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009855{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9856echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9857if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009859cat >>confdefs.h <<\_ACEOF
9860#define HAVE_LIBDL 1
9861_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862
9863 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009865 cat >conftest.$ac_ext <<_ACEOF
9866/* confdefs.h. */
9867_ACEOF
9868cat confdefs.h >>conftest.$ac_ext
9869cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009870/* end confdefs.h. */
9871#if HAVE_DLFCN_H
9872# include <dlfcn.h>
9873#endif
9874
9875int
9876main ()
9877{
9878dlopen(0, 0);
9879 ;
9880 return 0;
9881}
9882_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009883rm -f conftest.$ac_objext conftest$ac_exeext
9884if { (ac_try="$ac_link"
9885case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9888esac
9889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_link") 2>conftest.er1
9891 ac_status=$?
9892 grep -v '^ *+' conftest.er1 >conftest.err
9893 rm -f conftest.er1
9894 cat conftest.err >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } &&
9897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901esac
9902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try='test -s conftest$ac_exeext'
9908 { (case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911esac
9912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_try") 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009918cat >>confdefs.h <<\_ACEOF
9919#define HAVE_LIBDL 1
9920_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921 libltdl_cv_func_dlopen="yes"
9922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009923 echo "$as_me: failed program was:" >&5
9924sed 's/^/| /' conftest.$ac_ext >&5
9925
9926 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9927echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9928if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009930else
9931 ac_check_lib_save_LIBS=$LIBS
9932LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009933cat >conftest.$ac_ext <<_ACEOF
9934/* confdefs.h. */
9935_ACEOF
9936cat confdefs.h >>conftest.$ac_ext
9937cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938/* end confdefs.h. */
9939
Reid Spencera773bd52006-08-04 18:18:08 +00009940/* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943#ifdef __cplusplus
9944extern "C"
9945#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946char dlopen ();
9947int
9948main ()
9949{
Reid Spencera773bd52006-08-04 18:18:08 +00009950return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951 ;
9952 return 0;
9953}
9954_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009955rm -f conftest.$ac_objext conftest$ac_exeext
9956if { (ac_try="$ac_link"
9957case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960esac
9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9970 { (case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973esac
9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_try") 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try='test -s conftest$ac_exeext'
9980 { (case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983esac
9984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_try") 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009989 ac_cv_lib_svld_dlopen=yes
9990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009991 echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009996
Bill Wendlingebcceee2009-04-18 11:20:33 +00009997rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009998 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999LIBS=$ac_check_lib_save_LIBS
10000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010001{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10002echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10003if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010005cat >>confdefs.h <<\_ACEOF
10006#define HAVE_LIBDL 1
10007_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008
10009 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10010else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010011 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10012echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10013if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010015else
10016 ac_check_lib_save_LIBS=$LIBS
10017LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010018cat >conftest.$ac_ext <<_ACEOF
10019/* confdefs.h. */
10020_ACEOF
10021cat confdefs.h >>conftest.$ac_ext
10022cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023/* end confdefs.h. */
10024
Reid Spencera773bd52006-08-04 18:18:08 +000010025/* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010028#ifdef __cplusplus
10029extern "C"
10030#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010031char dld_link ();
10032int
10033main ()
10034{
Reid Spencera773bd52006-08-04 18:18:08 +000010035return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010036 ;
10037 return 0;
10038}
10039_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010040rm -f conftest.$ac_objext conftest$ac_exeext
10041if { (ac_try="$ac_link"
10042case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045esac
10046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10055 { (case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10058esac
10059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_try") 2>&5
10061 ac_status=$?
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; } &&
10064 { ac_try='test -s conftest$ac_exeext'
10065 { (case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068esac
10069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_try") 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010074 ac_cv_lib_dld_dld_link=yes
10075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010076 echo "$as_me: failed program was:" >&5
10077sed 's/^/| /' conftest.$ac_ext >&5
10078
10079 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010081
Bill Wendlingebcceee2009-04-18 11:20:33 +000010082rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010083 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010084LIBS=$ac_check_lib_save_LIBS
10085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010086{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10087echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10088if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010090cat >>confdefs.h <<\_ACEOF
10091#define HAVE_DLD 1
10092_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093
10094 LIBADD_DL="$LIBADD_DL -ldld"
10095else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010096 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10097echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10098if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10100else
10101 cat >conftest.$ac_ext <<_ACEOF
10102/* confdefs.h. */
10103_ACEOF
10104cat confdefs.h >>conftest.$ac_ext
10105cat >>conftest.$ac_ext <<_ACEOF
10106/* end confdefs.h. */
10107/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10109#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010111/* System header to define __stub macros and hopefully few prototypes,
10112 which can conflict with char _dyld_func_lookup (); below.
10113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10114 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010116#ifdef __STDC__
10117# include <limits.h>
10118#else
10119# include <assert.h>
10120#endif
10121
10122#undef _dyld_func_lookup
10123
10124/* Override any GCC internal prototype to avoid an error.
10125 Use char because int might match the return type of a GCC
10126 builtin and then its argument prototype would still apply. */
10127#ifdef __cplusplus
10128extern "C"
10129#endif
10130char _dyld_func_lookup ();
10131/* The GNU C library defines this for functions which it implements
10132 to always fail with ENOSYS. Some functions are actually named
10133 something starting with __ and the normal name is an alias. */
10134#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10135choke me
10136#endif
10137
10138int
10139main ()
10140{
10141return _dyld_func_lookup ();
10142 ;
10143 return 0;
10144}
10145_ACEOF
10146rm -f conftest.$ac_objext conftest$ac_exeext
10147if { (ac_try="$ac_link"
10148case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10151esac
10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_link") 2>conftest.er1
10154 ac_status=$?
10155 grep -v '^ *+' conftest.er1 >conftest.err
10156 rm -f conftest.er1
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10161 { (case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10164esac
10165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_try") 2>&5
10167 ac_status=$?
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; } &&
10170 { ac_try='test -s conftest$ac_exeext'
10171 { (case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174esac
10175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_try") 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_func__dyld_func_lookup=yes
10181else
10182 echo "$as_me: failed program was:" >&5
10183sed 's/^/| /' conftest.$ac_ext >&5
10184
10185 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186fi
Reid Spencera773bd52006-08-04 18:18:08 +000010187
Bill Wendlingebcceee2009-04-18 11:20:33 +000010188rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010189 conftest$ac_exeext conftest.$ac_ext
10190fi
10191{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10192echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10193if test $ac_cv_func__dyld_func_lookup = yes; then
10194
10195cat >>confdefs.h <<\_ACEOF
10196#define HAVE_DYLD 1
10197_ACEOF
10198
10199fi
10200
10201
10202fi
10203
10204
10205fi
10206
10207
10208fi
10209
10210rm -f core conftest.err conftest.$ac_objext \
10211 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212
10213fi
10214
10215
10216fi
10217
10218
10219fi
10220
10221
10222if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10223then
10224 lt_save_LIBS="$LIBS"
10225 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010226
10227for ac_func in dlerror
10228do
10229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10230{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10232if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235 cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h. */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h. */
10241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10243#define $ac_func innocuous_$ac_func
10244
10245/* System header to define __stub macros and hopefully few prototypes,
10246 which can conflict with char $ac_func (); below.
10247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248 <limits.h> exists even on freestanding compilers. */
10249
10250#ifdef __STDC__
10251# include <limits.h>
10252#else
10253# include <assert.h>
10254#endif
10255
10256#undef $ac_func
10257
10258/* Override any GCC internal prototype to avoid an error.
10259 Use char because int might match the return type of a GCC
10260 builtin and then its argument prototype would still apply. */
10261#ifdef __cplusplus
10262extern "C"
10263#endif
10264char $ac_func ();
10265/* The GNU C library defines this for functions which it implements
10266 to always fail with ENOSYS. Some functions are actually named
10267 something starting with __ and the normal name is an alias. */
10268#if defined __stub_$ac_func || defined __stub___$ac_func
10269choke me
10270#endif
10271
10272int
10273main ()
10274{
10275return $ac_func ();
10276 ;
10277 return 0;
10278}
10279_ACEOF
10280rm -f conftest.$ac_objext conftest$ac_exeext
10281if { (ac_try="$ac_link"
10282case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_link") 2>conftest.er1
10288 ac_status=$?
10289 grep -v '^ *+' conftest.er1 >conftest.err
10290 rm -f conftest.er1
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10295 { (case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10298esac
10299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_try") 2>&5
10301 ac_status=$?
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10308esac
10309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310 (eval "$ac_try") 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 eval "$as_ac_var=yes"
10315else
10316 echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 eval "$as_ac_var=no"
10320fi
10321
10322rm -f core conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10324fi
10325ac_res=`eval echo '${'$as_ac_var'}'`
10326 { echo "$as_me:$LINENO: result: $ac_res" >&5
10327echo "${ECHO_T}$ac_res" >&6; }
10328if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010329 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331_ACEOF
10332
10333fi
10334done
10335
10336 LIBS="$lt_save_LIBS"
10337fi
10338ac_ext=c
10339ac_cpp='$CPP $CPPFLAGS'
10340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10342ac_compiler_gnu=$ac_cv_c_compiler_gnu
10343
10344
10345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010346{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10347echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10348if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350else
10351 ac_cv_sys_symbol_underscore=no
10352 cat > conftest.$ac_ext <<EOF
10353void nm_test_func(){}
10354int main(){nm_test_func;return 0;}
10355EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357 (eval $ac_compile) 2>&5
10358 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010361 # Now try to grab the symbols.
10362 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010363 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 +000010364 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10365 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010368 # See whether the symbols have a leading underscore.
10369 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10370 ac_cv_sys_symbol_underscore=yes
10371 else
10372 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10373 :
10374 else
10375 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10376 fi
10377 fi
10378 else
10379 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10380 fi
10381 else
10382 echo "configure: failed program was:" >&5
10383 cat conftest.c >&5
10384 fi
10385 rm -rf conftest*
10386
10387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010388{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10389echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010390
10391
10392if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10393 if test x"$libltdl_cv_func_dlopen" = xyes ||
10394 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010395 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10396echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10397if test "${libltdl_cv_need_uscore+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399else
10400 libltdl_cv_need_uscore=unknown
10401 save_LIBS="$LIBS"
10402 LIBS="$LIBS $LIBADD_DL"
10403 if test "$cross_compiling" = yes; then :
10404 libltdl_cv_need_uscore=cross
10405else
10406 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10407 lt_status=$lt_dlunknown
10408 cat > conftest.$ac_ext <<EOF
Justin Holewinski49683f32012-05-04 20:18:50 +000010409#line 10409 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410#include "confdefs.h"
10411
10412#if HAVE_DLFCN_H
10413#include <dlfcn.h>
10414#endif
10415
10416#include <stdio.h>
10417
10418#ifdef RTLD_GLOBAL
10419# define LT_DLGLOBAL RTLD_GLOBAL
10420#else
10421# ifdef DL_GLOBAL
10422# define LT_DLGLOBAL DL_GLOBAL
10423# else
10424# define LT_DLGLOBAL 0
10425# endif
10426#endif
10427
10428/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10429 find out it does not work in some platform. */
10430#ifndef LT_DLLAZY_OR_NOW
10431# ifdef RTLD_LAZY
10432# define LT_DLLAZY_OR_NOW RTLD_LAZY
10433# else
10434# ifdef DL_LAZY
10435# define LT_DLLAZY_OR_NOW DL_LAZY
10436# else
10437# ifdef RTLD_NOW
10438# define LT_DLLAZY_OR_NOW RTLD_NOW
10439# else
10440# ifdef DL_NOW
10441# define LT_DLLAZY_OR_NOW DL_NOW
10442# else
10443# define LT_DLLAZY_OR_NOW 0
10444# endif
10445# endif
10446# endif
10447# endif
10448#endif
10449
10450#ifdef __cplusplus
10451extern "C" void exit (int);
10452#endif
10453
10454void fnord() { int i=42;}
10455int main ()
10456{
10457 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10458 int status = $lt_dlunknown;
10459
10460 if (self)
10461 {
10462 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10463 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10464 /* dlclose (self); */
10465 }
Reid Spencera773bd52006-08-04 18:18:08 +000010466 else
10467 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010468
10469 exit (status);
10470}
10471EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010473 (eval $ac_link) 2>&5
10474 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010477 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478 lt_status=$?
10479 case x$lt_status in
10480 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10481 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010482 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483 esac
10484 else :
10485 # compilation failed
10486
10487 fi
10488fi
10489rm -fr conftest*
10490
10491 LIBS="$save_LIBS"
10492
10493fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010494{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10495echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496 fi
10497fi
10498
10499if test x"$libltdl_cv_need_uscore" = xyes; then
10500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010501cat >>confdefs.h <<\_ACEOF
10502#define NEED_USCORE 1
10503_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504
10505fi
10506
10507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010508{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10509echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10510if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010512else
10513 # PORTME does your system automatically load deplibs for dlopen?
10514 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10515 # For now, we just catch OSes we know something about -- in the
10516 # future, we'll try test this programmatically.
10517 libltdl_cv_sys_dlopen_deplibs=unknown
10518 case "$host_os" in
10519 aix3*|aix4.1.*|aix4.2.*)
10520 # Unknown whether this is true for these versions of AIX, but
10521 # we want this `case' here to explicitly catch those versions.
10522 libltdl_cv_sys_dlopen_deplibs=unknown
10523 ;;
10524 aix[45]*)
10525 libltdl_cv_sys_dlopen_deplibs=yes
10526 ;;
10527 darwin*)
10528 # Assuming the user has installed a libdl from somewhere, this is true
10529 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10530 libltdl_cv_sys_dlopen_deplibs=yes
10531 ;;
10532 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10533 # GNU and its variants, using gnu ld.so (Glibc)
10534 libltdl_cv_sys_dlopen_deplibs=yes
10535 ;;
10536 hpux10*|hpux11*)
10537 libltdl_cv_sys_dlopen_deplibs=yes
10538 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010539 interix*)
10540 libltdl_cv_sys_dlopen_deplibs=yes
10541 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010542 irix[12345]*|irix6.[01]*)
10543 # Catch all versions of IRIX before 6.2, and indicate that we don't
10544 # know how it worked for any of those versions.
10545 libltdl_cv_sys_dlopen_deplibs=unknown
10546 ;;
10547 irix*)
10548 # The case above catches anything before 6.2, and it's known that
10549 # at 6.2 and later dlopen does load deplibs.
10550 libltdl_cv_sys_dlopen_deplibs=yes
10551 ;;
10552 netbsd*)
10553 libltdl_cv_sys_dlopen_deplibs=yes
10554 ;;
10555 openbsd*)
10556 libltdl_cv_sys_dlopen_deplibs=yes
10557 ;;
10558 osf[1234]*)
10559 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10560 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010561 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562 libltdl_cv_sys_dlopen_deplibs=no
10563 ;;
10564 osf5.0|osf5.0a|osf5.1)
10565 # dlopen *does* load deplibs and with the right loader patch applied
10566 # it even uses RPATH in a shared library to search for shared objects
10567 # that the library depends on, but there's no easy way to know if that
10568 # patch is installed. Since this is the case, all we can really
10569 # say is unknown -- it depends on the patch being installed. If
10570 # it is, this changes to `yes'. Without it, it would be `no'.
10571 libltdl_cv_sys_dlopen_deplibs=unknown
10572 ;;
10573 osf*)
10574 # the two cases above should catch all versions of osf <= 5.1. Read
10575 # the comments above for what we know about them.
10576 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10577 # is used to find them so we can finally say `yes'.
10578 libltdl_cv_sys_dlopen_deplibs=yes
10579 ;;
10580 solaris*)
10581 libltdl_cv_sys_dlopen_deplibs=yes
10582 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10584 libltdl_cv_sys_dlopen_deplibs=yes
10585 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010586 esac
10587
10588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010589{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10590echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010591if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010593cat >>confdefs.h <<\_ACEOF
10594#define LTDL_DLOPEN_DEPLIBS 1
10595_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010596
10597fi
10598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010599
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010601do
10602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10608fi
10609ac_res=`eval echo '${'$as_ac_Header'}'`
10610 { echo "$as_me:$LINENO: result: $ac_res" >&5
10611echo "${ECHO_T}$ac_res" >&6; }
10612else
10613 # Is the header compilable?
10614{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10615echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10616cat >conftest.$ac_ext <<_ACEOF
10617/* confdefs.h. */
10618_ACEOF
10619cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF
10621/* end confdefs.h. */
10622$ac_includes_default
10623#include <$ac_header>
10624_ACEOF
10625rm -f conftest.$ac_objext
10626if { (ac_try="$ac_compile"
10627case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630esac
10631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_compile") 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10640 { (case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10643esac
10644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_try") 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try='test -s conftest.$ac_objext'
10650 { (case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10653esac
10654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_try") 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 ac_header_compiler=yes
10660else
10661 echo "$as_me: failed program was:" >&5
10662sed 's/^/| /' conftest.$ac_ext >&5
10663
10664 ac_header_compiler=no
10665fi
10666
10667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10669echo "${ECHO_T}$ac_header_compiler" >&6; }
10670
10671# Is the header present?
10672{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
10680#include <$ac_header>
10681_ACEOF
10682if { (ac_try="$ac_cpp conftest.$ac_ext"
10683case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686esac
10687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } >/dev/null; then
10695 if test -s conftest.err; then
10696 ac_cpp_err=$ac_c_preproc_warn_flag
10697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10698 else
10699 ac_cpp_err=
10700 fi
10701else
10702 ac_cpp_err=yes
10703fi
10704if test -z "$ac_cpp_err"; then
10705 ac_header_preproc=yes
10706else
10707 echo "$as_me: failed program was:" >&5
10708sed 's/^/| /' conftest.$ac_ext >&5
10709
10710 ac_header_preproc=no
10711fi
10712
10713rm -f conftest.err conftest.$ac_ext
10714{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10715echo "${ECHO_T}$ac_header_preproc" >&6; }
10716
10717# So? What about this header?
10718case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10719 yes:no: )
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10721echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10723echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10724 ac_header_preproc=yes
10725 ;;
10726 no:yes:* )
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10728echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10730echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10732echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10734echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10736echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10738echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10739 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010740## ------------------------------------ ##
10741## Report this to http://llvm.org/bugs/ ##
10742## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010743_ASBOX
10744 ) | sed "s/^/$as_me: WARNING: /" >&2
10745 ;;
10746esac
10747{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751else
10752 eval "$as_ac_Header=\$ac_header_preproc"
10753fi
10754ac_res=`eval echo '${'$as_ac_Header'}'`
10755 { echo "$as_me:$LINENO: result: $ac_res" >&5
10756echo "${ECHO_T}$ac_res" >&6; }
10757
10758fi
10759if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762_ACEOF
10763
10764fi
10765
10766done
10767
10768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010769{ echo "$as_me:$LINENO: checking for error_t" >&5
10770echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10771if test "${ac_cv_type_error_t+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773else
10774 cat >conftest.$ac_ext <<_ACEOF
10775/* confdefs.h. */
10776_ACEOF
10777cat confdefs.h >>conftest.$ac_ext
10778cat >>conftest.$ac_ext <<_ACEOF
10779/* end confdefs.h. */
10780#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781# include <argz.h>
10782#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010783
10784typedef error_t ac__type_new_;
10785int
10786main ()
10787{
10788if ((ac__type_new_ *) 0)
10789 return 0;
10790if (sizeof (ac__type_new_))
10791 return 0;
10792 ;
10793 return 0;
10794}
10795_ACEOF
10796rm -f conftest.$ac_objext
10797if { (ac_try="$ac_compile"
10798case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801esac
10802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_compile") 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811 { (case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814esac
10815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_try") 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try='test -s conftest.$ac_objext'
10821 { (case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10824esac
10825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_try") 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_type_error_t=yes
10831else
10832 echo "$as_me: failed program was:" >&5
10833sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 ac_cv_type_error_t=no
10836fi
10837
10838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10839fi
10840{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10841echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10842if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843
10844cat >>confdefs.h <<_ACEOF
10845#define HAVE_ERROR_T 1
10846_ACEOF
10847
10848
10849else
10850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010851cat >>confdefs.h <<\_ACEOF
10852#define error_t int
10853_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010854
10855fi
10856
10857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010858
10859
10860
10861
10862
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010863for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010864do
10865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10866{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10868if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 cat >conftest.$ac_ext <<_ACEOF
10872/* confdefs.h. */
10873_ACEOF
10874cat confdefs.h >>conftest.$ac_ext
10875cat >>conftest.$ac_ext <<_ACEOF
10876/* end confdefs.h. */
10877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10879#define $ac_func innocuous_$ac_func
10880
10881/* System header to define __stub macros and hopefully few prototypes,
10882 which can conflict with char $ac_func (); below.
10883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10884 <limits.h> exists even on freestanding compilers. */
10885
10886#ifdef __STDC__
10887# include <limits.h>
10888#else
10889# include <assert.h>
10890#endif
10891
10892#undef $ac_func
10893
10894/* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10897#ifdef __cplusplus
10898extern "C"
10899#endif
10900char $ac_func ();
10901/* The GNU C library defines this for functions which it implements
10902 to always fail with ENOSYS. Some functions are actually named
10903 something starting with __ and the normal name is an alias. */
10904#if defined __stub_$ac_func || defined __stub___$ac_func
10905choke me
10906#endif
10907
10908int
10909main ()
10910{
10911return $ac_func ();
10912 ;
10913 return 0;
10914}
10915_ACEOF
10916rm -f conftest.$ac_objext conftest$ac_exeext
10917if { (ac_try="$ac_link"
10918case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921esac
10922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_link") 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934esac
10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest$ac_exeext'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10944esac
10945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 eval "$as_ac_var=yes"
10951else
10952 echo "$as_me: failed program was:" >&5
10953sed 's/^/| /' conftest.$ac_ext >&5
10954
10955 eval "$as_ac_var=no"
10956fi
10957
10958rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960fi
10961ac_res=`eval echo '${'$as_ac_var'}'`
10962 { echo "$as_me:$LINENO: result: $ac_res" >&5
10963echo "${ECHO_T}$ac_res" >&6; }
10964if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010965 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967_ACEOF
10968
10969fi
10970done
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010991
10992
10993
10994
10995
10996
10997
10998
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010999for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11000 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011001do
11002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008fi
11009ac_res=`eval echo '${'$as_ac_Header'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011echo "${ECHO_T}$ac_res" >&6; }
11012else
11013 # Is the header compilable?
11014{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11016cat >conftest.$ac_ext <<_ACEOF
11017/* confdefs.h. */
11018_ACEOF
11019cat confdefs.h >>conftest.$ac_ext
11020cat >>conftest.$ac_ext <<_ACEOF
11021/* end confdefs.h. */
11022$ac_includes_default
11023#include <$ac_header>
11024_ACEOF
11025rm -f conftest.$ac_objext
11026if { (ac_try="$ac_compile"
11027case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_compile") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043esac
11044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest.$ac_objext'
11050 { (case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053esac
11054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_try") 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 ac_header_compiler=yes
11060else
11061 echo "$as_me: failed program was:" >&5
11062sed 's/^/| /' conftest.$ac_ext >&5
11063
11064 ac_header_compiler=no
11065fi
11066
11067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11069echo "${ECHO_T}$ac_header_compiler" >&6; }
11070
11071# Is the header present?
11072{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11073echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11074cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
11080#include <$ac_header>
11081_ACEOF
11082if { (ac_try="$ac_cpp conftest.$ac_ext"
11083case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086esac
11087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11089 ac_status=$?
11090 grep -v '^ *+' conftest.er1 >conftest.err
11091 rm -f conftest.er1
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } >/dev/null; then
11095 if test -s conftest.err; then
11096 ac_cpp_err=$ac_c_preproc_warn_flag
11097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11098 else
11099 ac_cpp_err=
11100 fi
11101else
11102 ac_cpp_err=yes
11103fi
11104if test -z "$ac_cpp_err"; then
11105 ac_header_preproc=yes
11106else
11107 echo "$as_me: failed program was:" >&5
11108sed 's/^/| /' conftest.$ac_ext >&5
11109
11110 ac_header_preproc=no
11111fi
11112
11113rm -f conftest.err conftest.$ac_ext
11114{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11115echo "${ECHO_T}$ac_header_preproc" >&6; }
11116
11117# So? What about this header?
11118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11119 yes:no: )
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11123echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11124 ac_header_preproc=yes
11125 ;;
11126 no:yes:* )
11127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11128echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11130echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11132echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11134echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11138echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11139 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011140## ------------------------------------ ##
11141## Report this to http://llvm.org/bugs/ ##
11142## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011143_ASBOX
11144 ) | sed "s/^/$as_me: WARNING: /" >&2
11145 ;;
11146esac
11147{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151else
11152 eval "$as_ac_Header=\$ac_header_preproc"
11153fi
11154ac_res=`eval echo '${'$as_ac_Header'}'`
11155 { echo "$as_me:$LINENO: result: $ac_res" >&5
11156echo "${ECHO_T}$ac_res" >&6; }
11157
11158fi
11159if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011161#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011162_ACEOF
11163
11164fi
11165
11166done
11167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011168
11169
11170
11171
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011172for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011173do
11174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180fi
11181ac_res=`eval echo '${'$as_ac_Header'}'`
11182 { echo "$as_me:$LINENO: result: $ac_res" >&5
11183echo "${ECHO_T}$ac_res" >&6; }
11184else
11185 # Is the header compilable?
11186{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11188cat >conftest.$ac_ext <<_ACEOF
11189/* confdefs.h. */
11190_ACEOF
11191cat confdefs.h >>conftest.$ac_ext
11192cat >>conftest.$ac_ext <<_ACEOF
11193/* end confdefs.h. */
11194$ac_includes_default
11195#include <$ac_header>
11196_ACEOF
11197rm -f conftest.$ac_objext
11198if { (ac_try="$ac_compile"
11199case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202esac
11203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_compile") 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11212 { (case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11215esac
11216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_try") 2>&5
11218 ac_status=$?
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; } &&
11221 { ac_try='test -s conftest.$ac_objext'
11222 { (case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225esac
11226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_try") 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 ac_header_compiler=yes
11232else
11233 echo "$as_me: failed program was:" >&5
11234sed 's/^/| /' conftest.$ac_ext >&5
11235
11236 ac_header_compiler=no
11237fi
11238
11239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11241echo "${ECHO_T}$ac_header_compiler" >&6; }
11242
11243# Is the header present?
11244{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11246cat >conftest.$ac_ext <<_ACEOF
11247/* confdefs.h. */
11248_ACEOF
11249cat confdefs.h >>conftest.$ac_ext
11250cat >>conftest.$ac_ext <<_ACEOF
11251/* end confdefs.h. */
11252#include <$ac_header>
11253_ACEOF
11254if { (ac_try="$ac_cpp conftest.$ac_ext"
11255case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11258esac
11259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11261 ac_status=$?
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } >/dev/null; then
11267 if test -s conftest.err; then
11268 ac_cpp_err=$ac_c_preproc_warn_flag
11269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11270 else
11271 ac_cpp_err=
11272 fi
11273else
11274 ac_cpp_err=yes
11275fi
11276if test -z "$ac_cpp_err"; then
11277 ac_header_preproc=yes
11278else
11279 echo "$as_me: failed program was:" >&5
11280sed 's/^/| /' conftest.$ac_ext >&5
11281
11282 ac_header_preproc=no
11283fi
11284
11285rm -f conftest.err conftest.$ac_ext
11286{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11287echo "${ECHO_T}$ac_header_preproc" >&6; }
11288
11289# So? What about this header?
11290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11291 yes:no: )
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11295echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11296 ac_header_preproc=yes
11297 ;;
11298 no:yes:* )
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11300echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11302echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11304echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11306echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11308echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11310echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11311 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011312## ------------------------------------ ##
11313## Report this to http://llvm.org/bugs/ ##
11314## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011315_ASBOX
11316 ) | sed "s/^/$as_me: WARNING: /" >&2
11317 ;;
11318esac
11319{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11323else
11324 eval "$as_ac_Header=\$ac_header_preproc"
11325fi
11326ac_res=`eval echo '${'$as_ac_Header'}'`
11327 { echo "$as_me:$LINENO: result: $ac_res" >&5
11328echo "${ECHO_T}$ac_res" >&6; }
11329
11330fi
11331if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011334_ACEOF
11335
11336fi
11337
11338done
11339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011340
11341
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011342for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011343do
11344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350fi
11351ac_res=`eval echo '${'$as_ac_Header'}'`
11352 { echo "$as_me:$LINENO: result: $ac_res" >&5
11353echo "${ECHO_T}$ac_res" >&6; }
11354else
11355 # Is the header compilable?
11356{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11357echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11358cat >conftest.$ac_ext <<_ACEOF
11359/* confdefs.h. */
11360_ACEOF
11361cat confdefs.h >>conftest.$ac_ext
11362cat >>conftest.$ac_ext <<_ACEOF
11363/* end confdefs.h. */
11364$ac_includes_default
11365#include <$ac_header>
11366_ACEOF
11367rm -f conftest.$ac_objext
11368if { (ac_try="$ac_compile"
11369case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11372esac
11373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_compile") 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11382 { (case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11385esac
11386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387 (eval "$ac_try") 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; } &&
11391 { ac_try='test -s conftest.$ac_objext'
11392 { (case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395esac
11396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_try") 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 ac_header_compiler=yes
11402else
11403 echo "$as_me: failed program was:" >&5
11404sed 's/^/| /' conftest.$ac_ext >&5
11405
11406 ac_header_compiler=no
11407fi
11408
11409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11410{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11411echo "${ECHO_T}$ac_header_compiler" >&6; }
11412
11413# Is the header present?
11414{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11416cat >conftest.$ac_ext <<_ACEOF
11417/* confdefs.h. */
11418_ACEOF
11419cat confdefs.h >>conftest.$ac_ext
11420cat >>conftest.$ac_ext <<_ACEOF
11421/* end confdefs.h. */
11422#include <$ac_header>
11423_ACEOF
11424if { (ac_try="$ac_cpp conftest.$ac_ext"
11425case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428esac
11429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev/null; then
11437 if test -s conftest.err; then
11438 ac_cpp_err=$ac_c_preproc_warn_flag
11439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11440 else
11441 ac_cpp_err=
11442 fi
11443else
11444 ac_cpp_err=yes
11445fi
11446if test -z "$ac_cpp_err"; then
11447 ac_header_preproc=yes
11448else
11449 echo "$as_me: failed program was:" >&5
11450sed 's/^/| /' conftest.$ac_ext >&5
11451
11452 ac_header_preproc=no
11453fi
11454
11455rm -f conftest.err conftest.$ac_ext
11456{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11457echo "${ECHO_T}$ac_header_preproc" >&6; }
11458
11459# So? What about this header?
11460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11461 yes:no: )
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11466 ac_header_preproc=yes
11467 ;;
11468 no:yes:* )
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11481 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011482## ------------------------------------ ##
11483## Report this to http://llvm.org/bugs/ ##
11484## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011485_ASBOX
11486 ) | sed "s/^/$as_me: WARNING: /" >&2
11487 ;;
11488esac
11489{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11491if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493else
11494 eval "$as_ac_Header=\$ac_header_preproc"
11495fi
11496ac_res=`eval echo '${'$as_ac_Header'}'`
11497 { echo "$as_me:$LINENO: result: $ac_res" >&5
11498echo "${ECHO_T}$ac_res" >&6; }
11499
11500fi
11501if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011502 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011504_ACEOF
11505 break
11506fi
11507
11508done
11509
11510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011511
11512
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011513for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011514do
11515as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11516{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11518if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520else
11521 cat >conftest.$ac_ext <<_ACEOF
11522/* confdefs.h. */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h. */
11527/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11529#define $ac_func innocuous_$ac_func
11530
11531/* System header to define __stub macros and hopefully few prototypes,
11532 which can conflict with char $ac_func (); below.
11533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11534 <limits.h> exists even on freestanding compilers. */
11535
11536#ifdef __STDC__
11537# include <limits.h>
11538#else
11539# include <assert.h>
11540#endif
11541
11542#undef $ac_func
11543
11544/* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11547#ifdef __cplusplus
11548extern "C"
11549#endif
11550char $ac_func ();
11551/* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554#if defined __stub_$ac_func || defined __stub___$ac_func
11555choke me
11556#endif
11557
11558int
11559main ()
11560{
11561return $ac_func ();
11562 ;
11563 return 0;
11564}
11565_ACEOF
11566rm -f conftest.$ac_objext conftest$ac_exeext
11567if { (ac_try="$ac_link"
11568case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571esac
11572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_link") 2>conftest.er1
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11581 { (case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11584esac
11585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586 (eval "$ac_try") 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest$ac_exeext'
11591 { (case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11594esac
11595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_try") 2>&5
11597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 eval "$as_ac_var=yes"
11601else
11602 echo "$as_me: failed program was:" >&5
11603sed 's/^/| /' conftest.$ac_ext >&5
11604
11605 eval "$as_ac_var=no"
11606fi
11607
11608rm -f core conftest.err conftest.$ac_objext \
11609 conftest$ac_exeext conftest.$ac_ext
11610fi
11611ac_res=`eval echo '${'$as_ac_var'}'`
11612 { echo "$as_me:$LINENO: result: $ac_res" >&5
11613echo "${ECHO_T}$ac_res" >&6; }
11614if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011615 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011617_ACEOF
11618 break
11619fi
11620done
11621
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011622
11623
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011624for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011625do
11626as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11627{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11628echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11629if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632 cat >conftest.$ac_ext <<_ACEOF
11633/* confdefs.h. */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h. */
11638/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11640#define $ac_func innocuous_$ac_func
11641
11642/* System header to define __stub macros and hopefully few prototypes,
11643 which can conflict with char $ac_func (); below.
11644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645 <limits.h> exists even on freestanding compilers. */
11646
11647#ifdef __STDC__
11648# include <limits.h>
11649#else
11650# include <assert.h>
11651#endif
11652
11653#undef $ac_func
11654
11655/* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11658#ifdef __cplusplus
11659extern "C"
11660#endif
11661char $ac_func ();
11662/* The GNU C library defines this for functions which it implements
11663 to always fail with ENOSYS. Some functions are actually named
11664 something starting with __ and the normal name is an alias. */
11665#if defined __stub_$ac_func || defined __stub___$ac_func
11666choke me
11667#endif
11668
11669int
11670main ()
11671{
11672return $ac_func ();
11673 ;
11674 return 0;
11675}
11676_ACEOF
11677rm -f conftest.$ac_objext conftest$ac_exeext
11678if { (ac_try="$ac_link"
11679case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682esac
11683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_link") 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11692 { (case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695esac
11696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_try") 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest$ac_exeext'
11702 { (case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705esac
11706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707 (eval "$ac_try") 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 eval "$as_ac_var=yes"
11712else
11713 echo "$as_me: failed program was:" >&5
11714sed 's/^/| /' conftest.$ac_ext >&5
11715
11716 eval "$as_ac_var=no"
11717fi
11718
11719rm -f core conftest.err conftest.$ac_objext \
11720 conftest$ac_exeext conftest.$ac_ext
11721fi
11722ac_res=`eval echo '${'$as_ac_var'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724echo "${ECHO_T}$ac_res" >&6; }
11725if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011726 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011728_ACEOF
11729 break
11730fi
11731done
11732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011733
11734
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011735for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011736do
11737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11738{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11740if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742else
11743 cat >conftest.$ac_ext <<_ACEOF
11744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
11749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11751#define $ac_func innocuous_$ac_func
11752
11753/* System header to define __stub macros and hopefully few prototypes,
11754 which can conflict with char $ac_func (); below.
11755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 <limits.h> exists even on freestanding compilers. */
11757
11758#ifdef __STDC__
11759# include <limits.h>
11760#else
11761# include <assert.h>
11762#endif
11763
11764#undef $ac_func
11765
11766/* Override any GCC internal prototype to avoid an error.
11767 Use char because int might match the return type of a GCC
11768 builtin and then its argument prototype would still apply. */
11769#ifdef __cplusplus
11770extern "C"
11771#endif
11772char $ac_func ();
11773/* The GNU C library defines this for functions which it implements
11774 to always fail with ENOSYS. Some functions are actually named
11775 something starting with __ and the normal name is an alias. */
11776#if defined __stub_$ac_func || defined __stub___$ac_func
11777choke me
11778#endif
11779
11780int
11781main ()
11782{
11783return $ac_func ();
11784 ;
11785 return 0;
11786}
11787_ACEOF
11788rm -f conftest.$ac_objext conftest$ac_exeext
11789if { (ac_try="$ac_link"
11790case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793esac
11794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_link") 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803 { (case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806esac
11807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_try") 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest$ac_exeext'
11813 { (case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816esac
11817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_try") 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 eval "$as_ac_var=yes"
11823else
11824 echo "$as_me: failed program was:" >&5
11825sed 's/^/| /' conftest.$ac_ext >&5
11826
11827 eval "$as_ac_var=no"
11828fi
11829
11830rm -f core conftest.err conftest.$ac_objext \
11831 conftest$ac_exeext conftest.$ac_ext
11832fi
11833ac_res=`eval echo '${'$as_ac_var'}'`
11834 { echo "$as_me:$LINENO: result: $ac_res" >&5
11835echo "${ECHO_T}$ac_res" >&6; }
11836if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011837 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011839_ACEOF
11840 break
11841fi
11842done
11843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011844
11845
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011846for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011847do
11848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853else
11854 cat >conftest.$ac_ext <<_ACEOF
11855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862#define $ac_func innocuous_$ac_func
11863
11864/* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char $ac_func (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
11868
11869#ifdef __STDC__
11870# include <limits.h>
11871#else
11872# include <assert.h>
11873#endif
11874
11875#undef $ac_func
11876
11877/* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880#ifdef __cplusplus
11881extern "C"
11882#endif
11883char $ac_func ();
11884/* The GNU C library defines this for functions which it implements
11885 to always fail with ENOSYS. Some functions are actually named
11886 something starting with __ and the normal name is an alias. */
11887#if defined __stub_$ac_func || defined __stub___$ac_func
11888choke me
11889#endif
11890
11891int
11892main ()
11893{
11894return $ac_func ();
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899rm -f conftest.$ac_objext conftest$ac_exeext
11900if { (ac_try="$ac_link"
11901case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904esac
11905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_link") 2>conftest.er1
11907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914 { (case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917esac
11918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest$ac_exeext'
11924 { (case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927esac
11928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_try") 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 eval "$as_ac_var=yes"
11934else
11935 echo "$as_me: failed program was:" >&5
11936sed 's/^/| /' conftest.$ac_ext >&5
11937
11938 eval "$as_ac_var=no"
11939fi
11940
11941rm -f core conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11943fi
11944ac_res=`eval echo '${'$as_ac_var'}'`
11945 { echo "$as_me:$LINENO: result: $ac_res" >&5
11946echo "${ECHO_T}$ac_res" >&6; }
11947if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011949#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950_ACEOF
11951
11952fi
11953done
11954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011955
11956
11957
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011959do
11960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11963if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965else
11966 cat >conftest.$ac_ext <<_ACEOF
11967/* confdefs.h. */
11968_ACEOF
11969cat confdefs.h >>conftest.$ac_ext
11970cat >>conftest.$ac_ext <<_ACEOF
11971/* end confdefs.h. */
11972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11974#define $ac_func innocuous_$ac_func
11975
11976/* System header to define __stub macros and hopefully few prototypes,
11977 which can conflict with char $ac_func (); below.
11978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979 <limits.h> exists even on freestanding compilers. */
11980
11981#ifdef __STDC__
11982# include <limits.h>
11983#else
11984# include <assert.h>
11985#endif
11986
11987#undef $ac_func
11988
11989/* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
11992#ifdef __cplusplus
11993extern "C"
11994#endif
11995char $ac_func ();
11996/* The GNU C library defines this for functions which it implements
11997 to always fail with ENOSYS. Some functions are actually named
11998 something starting with __ and the normal name is an alias. */
11999#if defined __stub_$ac_func || defined __stub___$ac_func
12000choke me
12001#endif
12002
12003int
12004main ()
12005{
12006return $ac_func ();
12007 ;
12008 return 0;
12009}
12010_ACEOF
12011rm -f conftest.$ac_objext conftest$ac_exeext
12012if { (ac_try="$ac_link"
12013case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_link") 2>conftest.er1
12019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12029esac
12030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12039esac
12040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 eval "$as_ac_var=yes"
12046else
12047 echo "$as_me: failed program was:" >&5
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 eval "$as_ac_var=no"
12051fi
12052
12053rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12055fi
12056ac_res=`eval echo '${'$as_ac_var'}'`
12057 { echo "$as_me:$LINENO: result: $ac_res" >&5
12058echo "${ECHO_T}$ac_res" >&6; }
12059if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012060 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062_ACEOF
12063
12064fi
12065done
12066
12067
Douglas Gregor01746742009-05-11 18:05:52 +000012068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012069{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12070echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012071
Reid Spencer86901802004-12-08 23:07:27 +000012072ICC=no
12073IXX=no
12074case $CC in
12075 icc*|icpc*)
12076 ICC=yes
12077 IXX=yes
12078 ;;
12079 *)
12080 ;;
12081esac
12082
Duraid Madina937c60a2006-02-15 07:57:42 +000012083if test "$GCC" != "yes" && test "$ICC" != "yes"
12084then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012085 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12086echo "$as_me: error: gcc|icc required but not found" >&2;}
12087 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012088fi
12089
12090if test "$GXX" != "yes" && test "$IXX" != "yes"
12091then
Eric Christopher73e36da2010-12-08 02:02:14 +000012092 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12093echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012094 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012095fi
12096
Reid Spencer86901802004-12-08 23:07:27 +000012097if test "$GCC" = "yes"
12098then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012099 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012100#if !defined(__GNUC__) || __GNUC__ < 3
12101#error Unsupported GCC version
12102#endif
12103
12104_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012105rm -f conftest.$ac_objext
12106if { (ac_try="$ac_compile"
12107case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12110esac
12111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_compile") 2>conftest.er1
12113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123esac
12124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest.$ac_objext'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133esac
12134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012141 echo "$as_me: failed program was:" >&5
12142sed 's/^/| /' conftest.$ac_ext >&5
12143
12144 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12145echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12146 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012147fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012148
Chris Lattner399c7c72008-02-05 19:43:53 +000012149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012150fi
12151
12152if test -z "$llvm_cv_gnu_make_command"
12153then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012154 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12155echo "$as_me: error: GNU Make required but not found" >&2;}
12156 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012157fi
12158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012159{ echo "$as_me:$LINENO: result: ok" >&5
12160echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012162{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12163echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012164NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012165
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012166NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012167
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012168COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12169
12170{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12171echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012172
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012174
12175{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12176echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12177if test "${ac_cv_lib_m_sin+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012179else
12180 ac_check_lib_save_LIBS=$LIBS
12181LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012182cat >conftest.$ac_ext <<_ACEOF
12183/* confdefs.h. */
12184_ACEOF
12185cat confdefs.h >>conftest.$ac_ext
12186cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012187/* end confdefs.h. */
12188
Reid Spencera773bd52006-08-04 18:18:08 +000012189/* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012192#ifdef __cplusplus
12193extern "C"
12194#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012195char sin ();
12196int
12197main ()
12198{
Reid Spencera773bd52006-08-04 18:18:08 +000012199return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012200 ;
12201 return 0;
12202}
12203_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012204rm -f conftest.$ac_objext conftest$ac_exeext
12205if { (ac_try="$ac_link"
12206case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12209esac
12210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222esac
12223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232esac
12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012238 ac_cv_lib_m_sin=yes
12239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012240 echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012245
Bill Wendlingebcceee2009-04-18 11:20:33 +000012246rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012247 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012248LIBS=$ac_check_lib_save_LIBS
12249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012250{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12251echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12252if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012253 cat >>confdefs.h <<_ACEOF
12254#define HAVE_LIBM 1
12255_ACEOF
12256
12257 LIBS="-lm $LIBS"
12258
12259fi
12260
Jeff Cohen28783c32007-01-12 18:22:38 +000012261if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012262
12263{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12264echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12265if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012267else
12268 ac_check_lib_save_LIBS=$LIBS
12269LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012270cat >conftest.$ac_ext <<_ACEOF
12271/* confdefs.h. */
12272_ACEOF
12273cat confdefs.h >>conftest.$ac_ext
12274cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012275/* end confdefs.h. */
12276
Reid Spencer48fdf912006-06-01 19:03:21 +000012277
Reid Spencer484fc8e2006-06-01 16:55:59 +000012278int
12279main ()
12280{
Reid Spencera773bd52006-08-04 18:18:08 +000012281return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012282 ;
12283 return 0;
12284}
12285_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012286rm -f conftest.$ac_objext conftest$ac_exeext
12287if { (ac_try="$ac_link"
12288case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12291esac
12292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_link") 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12301 { (case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12304esac
12305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_try") 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest$ac_exeext'
12311 { (case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314esac
12315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_try") 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012320 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012322 echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012327
Bill Wendlingebcceee2009-04-18 11:20:33 +000012328rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012329 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012330LIBS=$ac_check_lib_save_LIBS
12331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012332{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12333echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12334if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012335 cat >>confdefs.h <<_ACEOF
12336#define HAVE_LIBIMAGEHLP 1
12337_ACEOF
12338
12339 LIBS="-limagehlp $LIBS"
12340
12341fi
12342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012343
12344{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12345echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12346if test "${ac_cv_lib_psapi_main+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012348else
12349 ac_check_lib_save_LIBS=$LIBS
12350LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012351cat >conftest.$ac_ext <<_ACEOF
12352/* confdefs.h. */
12353_ACEOF
12354cat confdefs.h >>conftest.$ac_ext
12355cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012356/* end confdefs.h. */
12357
Reid Spencer48fdf912006-06-01 19:03:21 +000012358
Reid Spencer484fc8e2006-06-01 16:55:59 +000012359int
12360main ()
12361{
Reid Spencera773bd52006-08-04 18:18:08 +000012362return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012363 ;
12364 return 0;
12365}
12366_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012367rm -f conftest.$ac_objext conftest$ac_exeext
12368if { (ac_try="$ac_link"
12369case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_link") 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12382 { (case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12385esac
12386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387 (eval "$ac_try") 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest$ac_exeext'
12392 { (case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395esac
12396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_try") 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012401 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012402else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012403 echo "$as_me: failed program was:" >&5
12404sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012407fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012408
Bill Wendlingebcceee2009-04-18 11:20:33 +000012409rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012410 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012411LIBS=$ac_check_lib_save_LIBS
12412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012413{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12414echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12415if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012416 cat >>confdefs.h <<_ACEOF
12417#define HAVE_LIBPSAPI 1
12418_ACEOF
12419
12420 LIBS="-lpsapi $LIBS"
12421
12422fi
12423
12424fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012426{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12427echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12428if test "${ac_cv_search_dlopen+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012430else
12431 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012432cat >conftest.$ac_ext <<_ACEOF
12433/* confdefs.h. */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012438
Reid Spencera773bd52006-08-04 18:18:08 +000012439/* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012442#ifdef __cplusplus
12443extern "C"
12444#endif
John Criswell7a73b802003-06-30 21:59:07 +000012445char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012446int
12447main ()
12448{
Reid Spencera773bd52006-08-04 18:18:08 +000012449return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012450 ;
12451 return 0;
12452}
12453_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012454for ac_lib in '' dl; do
12455 if test -z "$ac_lib"; then
12456 ac_res="none required"
12457 else
12458 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012460 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012461 rm -f conftest.$ac_objext conftest$ac_exeext
12462if { (ac_try="$ac_link"
12463case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466esac
12467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_link") 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12476 { (case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12479esac
12480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481 (eval "$ac_try") 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12489esac
12490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_try") 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012495 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012496else
12497 echo "$as_me: failed program was:" >&5
12498sed 's/^/| /' conftest.$ac_ext >&5
12499
12500
John Criswell7a73b802003-06-30 21:59:07 +000012501fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012502
Bill Wendlingebcceee2009-04-18 11:20:33 +000012503rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012504 conftest$ac_exeext
12505 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012506 break
John Criswell7a73b802003-06-30 21:59:07 +000012507fi
Reid Spencera773bd52006-08-04 18:18:08 +000012508done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012509if test "${ac_cv_search_dlopen+set}" = set; then
12510 :
Reid Spencera773bd52006-08-04 18:18:08 +000012511else
12512 ac_cv_search_dlopen=no
12513fi
12514rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012515LIBS=$ac_func_search_save_LIBS
12516fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012517{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12518echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012519ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012520if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012523cat >>confdefs.h <<\_ACEOF
12524#define HAVE_DLOPEN 1
12525_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012526
12527else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012528 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12529echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012530fi
12531
12532
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012533if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012534 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12535echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12536if test "${ac_cv_search_ffi_call+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012538else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012539 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012540cat >conftest.$ac_ext <<_ACEOF
12541/* confdefs.h. */
12542_ACEOF
12543cat confdefs.h >>conftest.$ac_ext
12544cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012545/* end confdefs.h. */
12546
12547/* Override any GCC internal prototype to avoid an error.
12548 Use char because int might match the return type of a GCC
12549 builtin and then its argument prototype would still apply. */
12550#ifdef __cplusplus
12551extern "C"
12552#endif
12553char ffi_call ();
12554int
12555main ()
12556{
12557return ffi_call ();
12558 ;
12559 return 0;
12560}
12561_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012562for ac_lib in '' ffi; do
12563 if test -z "$ac_lib"; then
12564 ac_res="none required"
12565 else
12566 ac_res=-l$ac_lib
12567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12568 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012569 rm -f conftest.$ac_objext conftest$ac_exeext
12570if { (ac_try="$ac_link"
12571case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574esac
12575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_link") 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584 { (case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587esac
12588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_try") 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest$ac_exeext'
12594 { (case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12597esac
12598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_try") 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012603 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012604else
12605 echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
12608
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012610
Bill Wendlingebcceee2009-04-18 11:20:33 +000012611rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012612 conftest$ac_exeext
12613 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012614 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012615fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012616done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012617if test "${ac_cv_search_ffi_call+set}" = set; then
12618 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012619else
12620 ac_cv_search_ffi_call=no
12621fi
12622rm conftest.$ac_ext
12623LIBS=$ac_func_search_save_LIBS
12624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012625{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12626echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012627ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012628if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012631cat >>confdefs.h <<\_ACEOF
12632#define HAVE_FFI_CALL 1
12633_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012634
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012635else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012636 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12637echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12638 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012639fi
12640
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012641fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012643{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12644echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12645if test "${ac_cv_search_mallinfo+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012647else
12648 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012649cat >conftest.$ac_ext <<_ACEOF
12650/* confdefs.h. */
12651_ACEOF
12652cat confdefs.h >>conftest.$ac_ext
12653cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012654/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012655
Reid Spencera773bd52006-08-04 18:18:08 +000012656/* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012659#ifdef __cplusplus
12660extern "C"
12661#endif
John Criswell7a73b802003-06-30 21:59:07 +000012662char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012663int
12664main ()
12665{
Reid Spencera773bd52006-08-04 18:18:08 +000012666return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012667 ;
12668 return 0;
12669}
12670_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012671for ac_lib in '' malloc; do
12672 if test -z "$ac_lib"; then
12673 ac_res="none required"
12674 else
12675 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012677 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012678 rm -f conftest.$ac_objext conftest$ac_exeext
12679if { (ac_try="$ac_link"
12680case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683esac
12684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_link") 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12693 { (case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12696esac
12697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_try") 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest$ac_exeext'
12703 { (case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706esac
12707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012712 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012713else
12714 echo "$as_me: failed program was:" >&5
12715sed 's/^/| /' conftest.$ac_ext >&5
12716
12717
John Criswell7a73b802003-06-30 21:59:07 +000012718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012719
Bill Wendlingebcceee2009-04-18 11:20:33 +000012720rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012721 conftest$ac_exeext
12722 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012723 break
John Criswell7a73b802003-06-30 21:59:07 +000012724fi
Reid Spencera773bd52006-08-04 18:18:08 +000012725done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012726if test "${ac_cv_search_mallinfo+set}" = set; then
12727 :
Reid Spencera773bd52006-08-04 18:18:08 +000012728else
12729 ac_cv_search_mallinfo=no
12730fi
12731rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012732LIBS=$ac_func_search_save_LIBS
12733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012734{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12735echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012736ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012737if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012740cat >>confdefs.h <<\_ACEOF
12741#define HAVE_MALLINFO 1
12742_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012743
12744fi
12745
12746
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012747if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012748
12749{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12750echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12751if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012753else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012754 ac_check_lib_save_LIBS=$LIBS
12755LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012756cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012761/* end confdefs.h. */
12762
Reid Spencera773bd52006-08-04 18:18:08 +000012763/* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012766#ifdef __cplusplus
12767extern "C"
12768#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012769char pthread_mutex_init ();
12770int
12771main ()
12772{
Reid Spencera773bd52006-08-04 18:18:08 +000012773return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012774 ;
12775 return 0;
12776}
12777_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012778rm -f conftest.$ac_objext conftest$ac_exeext
12779if { (ac_try="$ac_link"
12780case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783esac
12784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796esac
12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806esac
12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012812 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012814 echo "$as_me: failed program was:" >&5
12815sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012819
Bill Wendlingebcceee2009-04-18 11:20:33 +000012820rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012822LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12825echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12826if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012827 cat >>confdefs.h <<_ACEOF
12828#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012829_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012830
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012831 LIBS="-lpthread $LIBS"
12832
Reid Spencer22177fe2005-07-12 15:24:20 +000012833fi
12834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012835 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12836echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12837if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012839else
12840 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012841cat >conftest.$ac_ext <<_ACEOF
12842/* confdefs.h. */
12843_ACEOF
12844cat confdefs.h >>conftest.$ac_ext
12845cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012846/* end confdefs.h. */
12847
Reid Spencera773bd52006-08-04 18:18:08 +000012848/* Override any GCC internal prototype to avoid an error.
12849 Use char because int might match the return type of a GCC
12850 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012851#ifdef __cplusplus
12852extern "C"
12853#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012854char pthread_mutex_lock ();
12855int
12856main ()
12857{
Reid Spencera773bd52006-08-04 18:18:08 +000012858return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012859 ;
12860 return 0;
12861}
12862_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012863for ac_lib in '' pthread; do
12864 if test -z "$ac_lib"; then
12865 ac_res="none required"
12866 else
12867 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012869 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012870 rm -f conftest.$ac_objext conftest$ac_exeext
12871if { (ac_try="$ac_link"
12872case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12875esac
12876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_link") 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12885 { (case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888esac
12889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_try") 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest$ac_exeext'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898esac
12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012904 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012905else
12906 echo "$as_me: failed program was:" >&5
12907sed 's/^/| /' conftest.$ac_ext >&5
12908
12909
Brian Gaeke5f268f72003-12-05 19:29:01 +000012910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012911
Bill Wendlingebcceee2009-04-18 11:20:33 +000012912rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012913 conftest$ac_exeext
12914 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012915 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012916fi
Reid Spencera773bd52006-08-04 18:18:08 +000012917done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012918if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12919 :
Reid Spencera773bd52006-08-04 18:18:08 +000012920else
12921 ac_cv_search_pthread_mutex_lock=no
12922fi
12923rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012924LIBS=$ac_func_search_save_LIBS
12925fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012926{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12927echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012928ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012929if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012931
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012932cat >>confdefs.h <<\_ACEOF
12933#define HAVE_PTHREAD_MUTEX_LOCK 1
12934_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012935
12936fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012938 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12939echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12940if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012942else
12943 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012944cat >conftest.$ac_ext <<_ACEOF
12945/* confdefs.h. */
12946_ACEOF
12947cat confdefs.h >>conftest.$ac_ext
12948cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012949/* end confdefs.h. */
12950
12951/* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12954#ifdef __cplusplus
12955extern "C"
12956#endif
12957char pthread_rwlock_init ();
12958int
12959main ()
12960{
12961return pthread_rwlock_init ();
12962 ;
12963 return 0;
12964}
12965_ACEOF
12966for ac_lib in '' pthread; do
12967 if test -z "$ac_lib"; then
12968 ac_res="none required"
12969 else
12970 ac_res=-l$ac_lib
12971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12972 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012973 rm -f conftest.$ac_objext conftest$ac_exeext
12974if { (ac_try="$ac_link"
12975case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12978esac
12979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_link") 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
12987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12988 { (case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12991esac
12992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_try") 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; } &&
12997 { ac_try='test -s conftest$ac_exeext'
12998 { (case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_try") 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013007 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013008else
13009 echo "$as_me: failed program was:" >&5
13010sed 's/^/| /' conftest.$ac_ext >&5
13011
13012
Owen Andersonde8aed22009-06-16 18:20:20 +000013013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013014
Owen Andersonde8aed22009-06-16 18:20:20 +000013015rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013016 conftest$ac_exeext
13017 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013018 break
13019fi
13020done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013021if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13022 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013023else
13024 ac_cv_search_pthread_rwlock_init=no
13025fi
13026rm conftest.$ac_ext
13027LIBS=$ac_func_search_save_LIBS
13028fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013029{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13030echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013031ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013032if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013035cat >>confdefs.h <<\_ACEOF
13036#define HAVE_PTHREAD_RWLOCK_INIT 1
13037_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013038
13039fi
13040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013041 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13042echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13043if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013045else
13046 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013047cat >conftest.$ac_ext <<_ACEOF
13048/* confdefs.h. */
13049_ACEOF
13050cat confdefs.h >>conftest.$ac_ext
13051cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013052/* end confdefs.h. */
13053
13054/* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13057#ifdef __cplusplus
13058extern "C"
13059#endif
13060char pthread_getspecific ();
13061int
13062main ()
13063{
13064return pthread_getspecific ();
13065 ;
13066 return 0;
13067}
13068_ACEOF
13069for ac_lib in '' pthread; do
13070 if test -z "$ac_lib"; then
13071 ac_res="none required"
13072 else
13073 ac_res=-l$ac_lib
13074 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13075 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013076 rm -f conftest.$ac_objext conftest$ac_exeext
13077if { (ac_try="$ac_link"
13078case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081esac
13082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_link") 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } &&
13090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13091 { (case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13094esac
13095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_try") 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest$ac_exeext'
13101 { (case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13104esac
13105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_try") 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013110 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013111else
13112 echo "$as_me: failed program was:" >&5
13113sed 's/^/| /' conftest.$ac_ext >&5
13114
13115
Owen Anderson27fcfe12009-06-25 23:10:26 +000013116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013117
Owen Anderson27fcfe12009-06-25 23:10:26 +000013118rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013119 conftest$ac_exeext
13120 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013121 break
13122fi
13123done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013124if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13125 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013126else
13127 ac_cv_search_pthread_getspecific=no
13128fi
13129rm conftest.$ac_ext
13130LIBS=$ac_func_search_save_LIBS
13131fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013132{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13133echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013134ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013135if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013138cat >>confdefs.h <<\_ACEOF
13139#define HAVE_PTHREAD_GETSPECIFIC 1
13140_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013141
13142fi
13143
Reid Spencer0a262ba2005-08-24 10:07:20 +000013144fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013145
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013146
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013147# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013148if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013149 withval=$with_udis86;
13150 USE_UDIS86=1
13151
13152 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013153 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013154 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13155 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013156
13157{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13158echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13159if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013161else
13162 ac_check_lib_save_LIBS=$LIBS
13163LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013164cat >conftest.$ac_ext <<_ACEOF
13165/* confdefs.h. */
13166_ACEOF
13167cat confdefs.h >>conftest.$ac_ext
13168cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013169/* end confdefs.h. */
13170
13171/* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174#ifdef __cplusplus
13175extern "C"
13176#endif
13177char ud_init ();
13178int
13179main ()
13180{
13181return ud_init ();
13182 ;
13183 return 0;
13184}
13185_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013186rm -f conftest.$ac_objext conftest$ac_exeext
13187if { (ac_try="$ac_link"
13188case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13191esac
13192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_link") 2>conftest.er1
13194 ac_status=$?
13195 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1
13197 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } &&
13200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13201 { (case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13204esac
13205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_try") 2>&5
13207 ac_status=$?
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; } &&
13210 { ac_try='test -s conftest$ac_exeext'
13211 { (case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214esac
13215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_try") 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013220 ac_cv_lib_udis86_ud_init=yes
13221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013222 echo "$as_me: failed program was:" >&5
13223sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013227
Bill Wendlingebcceee2009-04-18 11:20:33 +000013228rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013229 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013230LIBS=$ac_check_lib_save_LIBS
13231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013232{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13233echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13234if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013235 cat >>confdefs.h <<_ACEOF
13236#define HAVE_LIBUDIS86 1
13237_ACEOF
13238
13239 LIBS="-ludis86 $LIBS"
13240
13241else
13242
13243 echo "Error! You need to have libudis86 around."
13244 exit -1
13245
13246fi
13247
13248
13249else
13250 USE_UDIS86=0
13251
13252fi
13253
13254
13255cat >>confdefs.h <<_ACEOF
13256#define USE_UDIS86 $USE_UDIS86
13257_ACEOF
13258
13259
13260
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013261# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013262if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013263 withval=$with_oprofile;
13264 USE_OPROFILE=1
13265
13266 case "$withval" in
13267 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013268 no) llvm_cv_oppath=
13269 USE_OPROFILE=0
13270 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013271 *) llvm_cv_oppath="${withval}/lib/oprofile"
13272 CPPFLAGS="-I${withval}/include";;
13273 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013274 case $llvm_cv_os_type in
13275 Linux)
13276 if test -n "$llvm_cv_oppath" ; then
13277 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13278 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013279echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13280if test "${ac_cv_search_bfd_init+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013282else
13283 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013284cat >conftest.$ac_ext <<_ACEOF
13285/* confdefs.h. */
13286_ACEOF
13287cat confdefs.h >>conftest.$ac_ext
13288cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013289/* end confdefs.h. */
13290
13291/* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13294#ifdef __cplusplus
13295extern "C"
13296#endif
13297char bfd_init ();
13298int
13299main ()
13300{
13301return bfd_init ();
13302 ;
13303 return 0;
13304}
13305_ACEOF
13306for ac_lib in '' bfd; do
13307 if test -z "$ac_lib"; then
13308 ac_res="none required"
13309 else
13310 ac_res=-l$ac_lib
13311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13312 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013313 rm -f conftest.$ac_objext conftest$ac_exeext
13314if { (ac_try="$ac_link"
13315case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318esac
13319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_link") 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13328 { (case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331esac
13332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_try") 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; } &&
13337 { ac_try='test -s conftest$ac_exeext'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341esac
13342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013347 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013348else
13349 echo "$as_me: failed program was:" >&5
13350sed 's/^/| /' conftest.$ac_ext >&5
13351
13352
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013354
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013355rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013356 conftest$ac_exeext
13357 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013358 break
13359fi
13360done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013361if test "${ac_cv_search_bfd_init+set}" = set; then
13362 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013363else
13364 ac_cv_search_bfd_init=no
13365fi
13366rm conftest.$ac_ext
13367LIBS=$ac_func_search_save_LIBS
13368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013369{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13370echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013371ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013372if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13374
13375fi
13376
Eli Bendersky61b18512012-03-13 08:33:15 +000013377 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013378echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13379if test "${ac_cv_search_op_open_agent+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013381else
13382 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013383cat >conftest.$ac_ext <<_ACEOF
13384/* confdefs.h. */
13385_ACEOF
13386cat confdefs.h >>conftest.$ac_ext
13387cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013388/* end confdefs.h. */
13389
13390/* Override any GCC internal prototype to avoid an error.
13391 Use char because int might match the return type of a GCC
13392 builtin and then its argument prototype would still apply. */
13393#ifdef __cplusplus
13394extern "C"
13395#endif
13396char op_open_agent ();
13397int
13398main ()
13399{
13400return op_open_agent ();
13401 ;
13402 return 0;
13403}
13404_ACEOF
13405for ac_lib in '' opagent; do
13406 if test -z "$ac_lib"; then
13407 ac_res="none required"
13408 else
13409 ac_res=-l$ac_lib
13410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13411 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013412 rm -f conftest.$ac_objext conftest$ac_exeext
13413if { (ac_try="$ac_link"
13414case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417esac
13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430esac
13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440esac
13441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013446 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013447else
13448 echo "$as_me: failed program was:" >&5
13449sed 's/^/| /' conftest.$ac_ext >&5
13450
13451
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013453
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013454rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013455 conftest$ac_exeext
13456 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013457 break
13458fi
13459done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013460if test "${ac_cv_search_op_open_agent+set}" = set; then
13461 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013462else
13463 ac_cv_search_op_open_agent=no
13464fi
13465rm conftest.$ac_ext
13466LIBS=$ac_func_search_save_LIBS
13467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013468{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13469echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013470ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013471if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13473
13474else
13475
Eli Bendersky61b18512012-03-13 08:33:15 +000013476 echo "Error! You need to have libopagent around."
13477 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013478
13479fi
13480
Eli Bendersky61b18512012-03-13 08:33:15 +000013481 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013482 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13483echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13484if test "${ac_cv_header_opagent_h+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486fi
13487{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13488echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13489else
13490 # Is the header compilable?
13491{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13492echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13493cat >conftest.$ac_ext <<_ACEOF
13494/* confdefs.h. */
13495_ACEOF
13496cat confdefs.h >>conftest.$ac_ext
13497cat >>conftest.$ac_ext <<_ACEOF
13498/* end confdefs.h. */
13499$ac_includes_default
13500#include <opagent.h>
13501_ACEOF
13502rm -f conftest.$ac_objext
13503if { (ac_try="$ac_compile"
13504case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13507esac
13508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_compile") 2>conftest.er1
13510 ac_status=$?
13511 grep -v '^ *+' conftest.er1 >conftest.err
13512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13517 { (case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520esac
13521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_try") 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest.$ac_objext'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13530esac
13531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_header_compiler=yes
13537else
13538 echo "$as_me: failed program was:" >&5
13539sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013541 ac_header_compiler=no
13542fi
13543
13544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13546echo "${ECHO_T}$ac_header_compiler" >&6; }
13547
13548# Is the header present?
13549{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13550echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13551cat >conftest.$ac_ext <<_ACEOF
13552/* confdefs.h. */
13553_ACEOF
13554cat confdefs.h >>conftest.$ac_ext
13555cat >>conftest.$ac_ext <<_ACEOF
13556/* end confdefs.h. */
13557#include <opagent.h>
13558_ACEOF
13559if { (ac_try="$ac_cpp conftest.$ac_ext"
13560case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13563esac
13564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13566 ac_status=$?
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } >/dev/null; then
13572 if test -s conftest.err; then
13573 ac_cpp_err=$ac_c_preproc_warn_flag
13574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13575 else
13576 ac_cpp_err=
13577 fi
13578else
13579 ac_cpp_err=yes
13580fi
13581if test -z "$ac_cpp_err"; then
13582 ac_header_preproc=yes
13583else
13584 echo "$as_me: failed program was:" >&5
13585sed 's/^/| /' conftest.$ac_ext >&5
13586
13587 ac_header_preproc=no
13588fi
13589
13590rm -f conftest.err conftest.$ac_ext
13591{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13592echo "${ECHO_T}$ac_header_preproc" >&6; }
13593
13594# So? What about this header?
13595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13596 yes:no: )
13597 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13598echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13600echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13601 ac_header_preproc=yes
13602 ;;
13603 no:yes:* )
13604 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13605echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13607echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13608 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13609echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13610 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13611echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13612 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13613echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13614 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13615echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13616 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013617## ------------------------------------ ##
13618## Report this to http://llvm.org/bugs/ ##
13619## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013620_ASBOX
13621 ) | sed "s/^/$as_me: WARNING: /" >&2
13622 ;;
13623esac
13624{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13625echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13626if test "${ac_cv_header_opagent_h+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13628else
13629 ac_cv_header_opagent_h=$ac_header_preproc
13630fi
13631{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13632echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13633
13634fi
13635if test $ac_cv_header_opagent_h = yes; then
13636 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013637else
13638
Eli Bendersky61b18512012-03-13 08:33:15 +000013639 echo "Error! You need to have opagent.h around."
13640 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013641
13642fi
13643
13644
Eli Bendersky61b18512012-03-13 08:33:15 +000013645 fi ;;
13646 *)
13647 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13648echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13649 { (exit 1); exit 1; }; } ;;
13650 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013651
13652else
13653
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013654 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013655
13656
13657fi
13658
13659
13660cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013661#define LLVM_USE_OPROFILE $USE_OPROFILE
13662_ACEOF
13663
13664
13665
13666# Check whether --with-intel-jitevents was given.
13667if test "${with_intel_jitevents+set}" = set; then
13668 withval=$with_intel_jitevents;
13669 case $llvm_cv_os_type in
13670 Linux|Win32|Cygwin|MingW) ;;
13671 *)
13672 { { echo "$as_me:$LINENO: error:
13673 Intel JIT API support is available on Linux and Windows only.\"" >&5
13674echo "$as_me: error:
13675 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13676 { (exit 1); exit 1; }; } ;;
13677 esac
13678
13679 USE_INTEL_JITEVENTS=1
13680
13681 case "$llvm_cv_target_arch" in
13682 x86) llvm_intel_jitevents_archdir="lib32";;
13683 x86_64) llvm_intel_jitevents_archdir="lib64";;
13684 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13685 exit -1;;
13686 esac
13687 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13688 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13689 case "$withval" in
13690 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13691 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13692 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013693 esac
13694
13695
13696
13697
13698 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13699 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13700
13701 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13702echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13703if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13705else
13706 ac_func_search_save_LIBS=$LIBS
13707cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713
13714/* Override any GCC internal prototype to avoid an error.
13715 Use char because int might match the return type of a GCC
13716 builtin and then its argument prototype would still apply. */
13717#ifdef __cplusplus
13718extern "C"
13719#endif
13720char iJIT_IsProfilingActive ();
13721int
13722main ()
13723{
13724return iJIT_IsProfilingActive ();
13725 ;
13726 return 0;
13727}
13728_ACEOF
13729for ac_lib in '' jitprofiling; do
13730 if test -z "$ac_lib"; then
13731 ac_res="none required"
13732 else
13733 ac_res=-l$ac_lib
13734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13735 fi
13736 rm -f conftest.$ac_objext conftest$ac_exeext
13737if { (ac_try="$ac_link"
13738case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13741esac
13742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_link") 2>conftest.er1
13744 ac_status=$?
13745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
13750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13751 { (case "(($ac_try" in
13752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753 *) ac_try_echo=$ac_try;;
13754esac
13755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_try") 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest$ac_exeext'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764esac
13765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13770 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13771else
13772 echo "$as_me: failed program was:" >&5
13773sed 's/^/| /' conftest.$ac_ext >&5
13774
13775
13776fi
13777
13778rm -f core conftest.err conftest.$ac_objext \
13779 conftest$ac_exeext
13780 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13781 break
13782fi
13783done
13784if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13785 :
13786else
13787 ac_cv_search_iJIT_IsProfilingActive=no
13788fi
13789rm conftest.$ac_ext
13790LIBS=$ac_func_search_save_LIBS
13791fi
13792{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13793echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13794ac_res=$ac_cv_search_iJIT_IsProfilingActive
13795if test "$ac_res" != no; then
13796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13797
13798else
13799
13800 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13801 exit -1
13802
13803fi
13804
13805 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13806 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13807echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13808if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810fi
13811{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13812echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13813else
13814 # Is the header compilable?
13815{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13816echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13817cat >conftest.$ac_ext <<_ACEOF
13818/* confdefs.h. */
13819_ACEOF
13820cat confdefs.h >>conftest.$ac_ext
13821cat >>conftest.$ac_ext <<_ACEOF
13822/* end confdefs.h. */
13823$ac_includes_default
13824#include <jitprofiling.h>
13825_ACEOF
13826rm -f conftest.$ac_objext
13827if { (ac_try="$ac_compile"
13828case "(($ac_try" in
13829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13830 *) ac_try_echo=$ac_try;;
13831esac
13832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13833 (eval "$ac_compile") 2>conftest.er1
13834 ac_status=$?
13835 grep -v '^ *+' conftest.er1 >conftest.err
13836 rm -f conftest.er1
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13841 { (case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844esac
13845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_try") 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest.$ac_objext'
13851 { (case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13854esac
13855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_try") 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }; then
13860 ac_header_compiler=yes
13861else
13862 echo "$as_me: failed program was:" >&5
13863sed 's/^/| /' conftest.$ac_ext >&5
13864
13865 ac_header_compiler=no
13866fi
13867
13868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13869{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13870echo "${ECHO_T}$ac_header_compiler" >&6; }
13871
13872# Is the header present?
13873{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13874echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13875cat >conftest.$ac_ext <<_ACEOF
13876/* confdefs.h. */
13877_ACEOF
13878cat confdefs.h >>conftest.$ac_ext
13879cat >>conftest.$ac_ext <<_ACEOF
13880/* end confdefs.h. */
13881#include <jitprofiling.h>
13882_ACEOF
13883if { (ac_try="$ac_cpp conftest.$ac_ext"
13884case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13887esac
13888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } >/dev/null; then
13896 if test -s conftest.err; then
13897 ac_cpp_err=$ac_c_preproc_warn_flag
13898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13899 else
13900 ac_cpp_err=
13901 fi
13902else
13903 ac_cpp_err=yes
13904fi
13905if test -z "$ac_cpp_err"; then
13906 ac_header_preproc=yes
13907else
13908 echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911 ac_header_preproc=no
13912fi
13913
13914rm -f conftest.err conftest.$ac_ext
13915{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13916echo "${ECHO_T}$ac_header_preproc" >&6; }
13917
13918# So? What about this header?
13919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13920 yes:no: )
13921 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13922echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13924echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13925 ac_header_preproc=yes
13926 ;;
13927 no:yes:* )
13928 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13929echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13930 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13931echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13932 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13933echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13934 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13935echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13937echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13938 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13939echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13940 ( cat <<\_ASBOX
13941## ------------------------------------ ##
13942## Report this to http://llvm.org/bugs/ ##
13943## ------------------------------------ ##
13944_ASBOX
13945 ) | sed "s/^/$as_me: WARNING: /" >&2
13946 ;;
13947esac
13948{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13949echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13950if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952else
13953 ac_cv_header_jitprofiling_h=$ac_header_preproc
13954fi
13955{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13956echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13957
13958fi
13959if test $ac_cv_header_jitprofiling_h = yes; then
13960 :
13961else
13962
13963 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13964 exit -1
13965
13966fi
13967
13968
13969
13970
13971else
13972
13973 USE_INTEL_JITEVENTS=0
13974
13975
13976fi
13977
13978
13979cat >>confdefs.h <<_ACEOF
13980#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013981_ACEOF
13982
13983
13984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013985
13986
13987
13988
13989
Reid Spencer59473af2004-12-25 07:31:29 +000013990ac_header_dirent=no
13991for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013992 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13993{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13994echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013998 cat >conftest.$ac_ext <<_ACEOF
13999/* confdefs.h. */
14000_ACEOF
14001cat confdefs.h >>conftest.$ac_ext
14002cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014003/* end confdefs.h. */
14004#include <sys/types.h>
14005#include <$ac_hdr>
14006
14007int
14008main ()
14009{
14010if ((DIR *) 0)
14011return 0;
14012 ;
14013 return 0;
14014}
14015_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014016rm -f conftest.$ac_objext
14017if { (ac_try="$ac_compile"
14018case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14021esac
14022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_compile") 2>conftest.er1
14024 ac_status=$?
14025 grep -v '^ *+' conftest.er1 >conftest.err
14026 rm -f conftest.er1
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14031 { (case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034esac
14035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_try") 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; } &&
14040 { ac_try='test -s conftest.$ac_objext'
14041 { (case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14044esac
14045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046 (eval "$ac_try") 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014050 eval "$as_ac_Header=yes"
14051else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014052 echo "$as_me: failed program was:" >&5
14053sed 's/^/| /' conftest.$ac_ext >&5
14054
14055 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014057
Reid Spencera773bd52006-08-04 18:18:08 +000014058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014060ac_res=`eval echo '${'$as_ac_Header'}'`
14061 { echo "$as_me:$LINENO: result: $ac_res" >&5
14062echo "${ECHO_T}$ac_res" >&6; }
14063if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014064 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014066_ACEOF
14067
14068ac_header_dirent=$ac_hdr; break
14069fi
14070
14071done
14072# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14073if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014074 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14075echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14076if test "${ac_cv_search_opendir+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014078else
14079 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014080cat >conftest.$ac_ext <<_ACEOF
14081/* confdefs.h. */
14082_ACEOF
14083cat confdefs.h >>conftest.$ac_ext
14084cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014085/* end confdefs.h. */
14086
Reid Spencera773bd52006-08-04 18:18:08 +000014087/* Override any GCC internal prototype to avoid an error.
14088 Use char because int might match the return type of a GCC
14089 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014090#ifdef __cplusplus
14091extern "C"
14092#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014093char opendir ();
14094int
14095main ()
14096{
Reid Spencera773bd52006-08-04 18:18:08 +000014097return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014098 ;
14099 return 0;
14100}
14101_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014102for ac_lib in '' dir; do
14103 if test -z "$ac_lib"; then
14104 ac_res="none required"
14105 else
14106 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014108 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014109 rm -f conftest.$ac_objext conftest$ac_exeext
14110if { (ac_try="$ac_link"
14111case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14114esac
14115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116 (eval "$ac_link") 2>conftest.er1
14117 ac_status=$?
14118 grep -v '^ *+' conftest.er1 >conftest.err
14119 rm -f conftest.er1
14120 cat conftest.err >&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
14123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14124 { (case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14127esac
14128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_try") 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; } &&
14133 { ac_try='test -s conftest$ac_exeext'
14134 { (case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14137esac
14138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_try") 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014143 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014144else
14145 echo "$as_me: failed program was:" >&5
14146sed 's/^/| /' conftest.$ac_ext >&5
14147
14148
Reid Spencer59473af2004-12-25 07:31:29 +000014149fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014150
Bill Wendlingebcceee2009-04-18 11:20:33 +000014151rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014152 conftest$ac_exeext
14153 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014154 break
Reid Spencer59473af2004-12-25 07:31:29 +000014155fi
Reid Spencera773bd52006-08-04 18:18:08 +000014156done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014157if test "${ac_cv_search_opendir+set}" = set; then
14158 :
Reid Spencera773bd52006-08-04 18:18:08 +000014159else
14160 ac_cv_search_opendir=no
14161fi
14162rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014163LIBS=$ac_func_search_save_LIBS
14164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14166echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014167ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014168if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014170
14171fi
14172
14173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014174 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14175echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14176if test "${ac_cv_search_opendir+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014178else
14179 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014180cat >conftest.$ac_ext <<_ACEOF
14181/* confdefs.h. */
14182_ACEOF
14183cat confdefs.h >>conftest.$ac_ext
14184cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014185/* end confdefs.h. */
14186
Reid Spencera773bd52006-08-04 18:18:08 +000014187/* Override any GCC internal prototype to avoid an error.
14188 Use char because int might match the return type of a GCC
14189 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014190#ifdef __cplusplus
14191extern "C"
14192#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014193char opendir ();
14194int
14195main ()
14196{
Reid Spencera773bd52006-08-04 18:18:08 +000014197return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014198 ;
14199 return 0;
14200}
14201_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014202for ac_lib in '' x; do
14203 if test -z "$ac_lib"; then
14204 ac_res="none required"
14205 else
14206 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014208 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014209 rm -f conftest.$ac_objext conftest$ac_exeext
14210if { (ac_try="$ac_link"
14211case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14214esac
14215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_link") 2>conftest.er1
14217 ac_status=$?
14218 grep -v '^ *+' conftest.er1 >conftest.err
14219 rm -f conftest.er1
14220 cat conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } &&
14223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14224 { (case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14227esac
14228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_try") 2>&5
14230 ac_status=$?
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; } &&
14233 { ac_try='test -s conftest$ac_exeext'
14234 { (case "(($ac_try" in
14235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14237esac
14238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14239 (eval "$ac_try") 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014243 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014244else
14245 echo "$as_me: failed program was:" >&5
14246sed 's/^/| /' conftest.$ac_ext >&5
14247
14248
Reid Spencer59473af2004-12-25 07:31:29 +000014249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014250
Bill Wendlingebcceee2009-04-18 11:20:33 +000014251rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014252 conftest$ac_exeext
14253 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014254 break
Reid Spencer59473af2004-12-25 07:31:29 +000014255fi
Reid Spencera773bd52006-08-04 18:18:08 +000014256done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014257if test "${ac_cv_search_opendir+set}" = set; then
14258 :
Reid Spencera773bd52006-08-04 18:18:08 +000014259else
14260 ac_cv_search_opendir=no
14261fi
14262rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014263LIBS=$ac_func_search_save_LIBS
14264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014265{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14266echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014267ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014268if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014270
14271fi
14272
14273fi
14274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014275{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14276echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14277if test "${ac_cv_header_mmap_anon+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014279else
14280 ac_ext=c
14281ac_cpp='$CPP $CPPFLAGS'
14282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284ac_compiler_gnu=$ac_cv_c_compiler_gnu
14285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014286 cat >conftest.$ac_ext <<_ACEOF
14287/* confdefs.h. */
14288_ACEOF
14289cat confdefs.h >>conftest.$ac_ext
14290cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014291/* end confdefs.h. */
14292#include <sys/mman.h>
14293#include <unistd.h>
14294#include <fcntl.h>
14295int
14296main ()
14297{
14298mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14299 ;
14300 return 0;
14301}
14302_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014303rm -f conftest.$ac_objext
14304if { (ac_try="$ac_compile"
14305case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14308esac
14309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_compile") 2>conftest.er1
14311 ac_status=$?
14312 grep -v '^ *+' conftest.er1 >conftest.err
14313 rm -f conftest.er1
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
14317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14331esac
14332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_try") 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014337 ac_cv_header_mmap_anon=yes
14338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014339 echo "$as_me: failed program was:" >&5
14340sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014344
Reid Spencera773bd52006-08-04 18:18:08 +000014345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014346 ac_ext=c
14347ac_cpp='$CPP $CPPFLAGS'
14348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14350ac_compiler_gnu=$ac_cv_c_compiler_gnu
14351
14352
14353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014354{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14355echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014356if test "$ac_cv_header_mmap_anon" = yes; then
14357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014358cat >>confdefs.h <<\_ACEOF
14359#define HAVE_MMAP_ANONYMOUS 1
14360_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014361
14362fi
14363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014364{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14365echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14366if test "${ac_cv_header_stat_broken+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014369 cat >conftest.$ac_ext <<_ACEOF
14370/* confdefs.h. */
14371_ACEOF
14372cat confdefs.h >>conftest.$ac_ext
14373cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014374/* end confdefs.h. */
14375#include <sys/types.h>
14376#include <sys/stat.h>
14377
Reid Spencera773bd52006-08-04 18:18:08 +000014378#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014379# if S_ISBLK (S_IFDIR)
14380You lose.
14381# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014382#endif
14383
Reid Spencera773bd52006-08-04 18:18:08 +000014384#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014385# if S_ISBLK (S_IFCHR)
14386You lose.
14387# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014388#endif
14389
Reid Spencera773bd52006-08-04 18:18:08 +000014390#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014391# if S_ISLNK (S_IFREG)
14392You lose.
14393# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014394#endif
14395
Reid Spencera773bd52006-08-04 18:18:08 +000014396#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014397# if S_ISSOCK (S_IFREG)
14398You lose.
14399# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014400#endif
14401
14402_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14404 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014405 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014406else
14407 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014409rm -f conftest*
14410
Reid Spencer59473af2004-12-25 07:31:29 +000014411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014412{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14413echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014414if test $ac_cv_header_stat_broken = yes; then
14415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014416cat >>confdefs.h <<\_ACEOF
14417#define STAT_MACROS_BROKEN 1
14418_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014419
14420fi
14421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014422{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14423echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14424if test "${ac_cv_header_sys_wait_h+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014427 cat >conftest.$ac_ext <<_ACEOF
14428/* confdefs.h. */
14429_ACEOF
14430cat confdefs.h >>conftest.$ac_ext
14431cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014433#include <sys/types.h>
14434#include <sys/wait.h>
14435#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014436# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014437#endif
14438#ifndef WIFEXITED
14439# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14440#endif
14441
John Criswell7a73b802003-06-30 21:59:07 +000014442int
14443main ()
14444{
14445 int s;
14446 wait (&s);
14447 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14448 ;
14449 return 0;
14450}
14451_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014452rm -f conftest.$ac_objext
14453if { (ac_try="$ac_compile"
14454case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14457esac
14458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459 (eval "$ac_compile") 2>conftest.er1
14460 ac_status=$?
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
14466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14467 { (case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14470esac
14471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_try") 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
14477 { (case "(($ac_try" in
14478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479 *) ac_try_echo=$ac_try;;
14480esac
14481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482 (eval "$ac_try") 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014486 ac_cv_header_sys_wait_h=yes
14487else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014488 echo "$as_me: failed program was:" >&5
14489sed 's/^/| /' conftest.$ac_ext >&5
14490
14491 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014493
Reid Spencera773bd52006-08-04 18:18:08 +000014494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014495fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014496{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14497echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014498if test $ac_cv_header_sys_wait_h = yes; then
14499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014500cat >>confdefs.h <<\_ACEOF
14501#define HAVE_SYS_WAIT_H 1
14502_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014503
14504fi
14505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014506{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14507echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14508if test "${ac_cv_header_time+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014510else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014511 cat >conftest.$ac_ext <<_ACEOF
14512/* confdefs.h. */
14513_ACEOF
14514cat confdefs.h >>conftest.$ac_ext
14515cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014516/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014517#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014518#include <sys/time.h>
14519#include <time.h>
14520
14521int
14522main ()
14523{
14524if ((struct tm *) 0)
14525return 0;
14526 ;
14527 return 0;
14528}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014529_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014530rm -f conftest.$ac_objext
14531if { (ac_try="$ac_compile"
14532case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14535esac
14536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_compile") 2>conftest.er1
14538 ac_status=$?
14539 grep -v '^ *+' conftest.er1 >conftest.err
14540 rm -f conftest.er1
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548esac
14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; } &&
14554 { ac_try='test -s conftest.$ac_objext'
14555 { (case "(($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_try") 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014564 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014566 echo "$as_me: failed program was:" >&5
14567sed 's/^/| /' conftest.$ac_ext >&5
14568
14569 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014570fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014571
Reid Spencera773bd52006-08-04 18:18:08 +000014572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014574{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14575echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014576if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014578cat >>confdefs.h <<\_ACEOF
14579#define TIME_WITH_SYS_TIME 1
14580_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014581
14582fi
14583
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014585
14586
14587
14588
14589
14590
Reid Spencer59473af2004-12-25 07:31:29 +000014591for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014592do
14593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14599fi
14600ac_res=`eval echo '${'$as_ac_Header'}'`
14601 { echo "$as_me:$LINENO: result: $ac_res" >&5
14602echo "${ECHO_T}$ac_res" >&6; }
14603else
14604 # Is the header compilable?
14605{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14606echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14607cat >conftest.$ac_ext <<_ACEOF
14608/* confdefs.h. */
14609_ACEOF
14610cat confdefs.h >>conftest.$ac_ext
14611cat >>conftest.$ac_ext <<_ACEOF
14612/* end confdefs.h. */
14613$ac_includes_default
14614#include <$ac_header>
14615_ACEOF
14616rm -f conftest.$ac_objext
14617if { (ac_try="$ac_compile"
14618case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14621esac
14622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_compile") 2>conftest.er1
14624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14631 { (case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14634esac
14635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_try") 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; } &&
14640 { ac_try='test -s conftest.$ac_objext'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644esac
14645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14650 ac_header_compiler=yes
14651else
14652 echo "$as_me: failed program was:" >&5
14653sed 's/^/| /' conftest.$ac_ext >&5
14654
14655 ac_header_compiler=no
14656fi
14657
14658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14660echo "${ECHO_T}$ac_header_compiler" >&6; }
14661
14662# Is the header present?
14663{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14664echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14665cat >conftest.$ac_ext <<_ACEOF
14666/* confdefs.h. */
14667_ACEOF
14668cat confdefs.h >>conftest.$ac_ext
14669cat >>conftest.$ac_ext <<_ACEOF
14670/* end confdefs.h. */
14671#include <$ac_header>
14672_ACEOF
14673if { (ac_try="$ac_cpp conftest.$ac_ext"
14674case "(($ac_try" in
14675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676 *) ac_try_echo=$ac_try;;
14677esac
14678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14680 ac_status=$?
14681 grep -v '^ *+' conftest.er1 >conftest.err
14682 rm -f conftest.er1
14683 cat conftest.err >&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } >/dev/null; then
14686 if test -s conftest.err; then
14687 ac_cpp_err=$ac_c_preproc_warn_flag
14688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14689 else
14690 ac_cpp_err=
14691 fi
14692else
14693 ac_cpp_err=yes
14694fi
14695if test -z "$ac_cpp_err"; then
14696 ac_header_preproc=yes
14697else
14698 echo "$as_me: failed program was:" >&5
14699sed 's/^/| /' conftest.$ac_ext >&5
14700
14701 ac_header_preproc=no
14702fi
14703
14704rm -f conftest.err conftest.$ac_ext
14705{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14706echo "${ECHO_T}$ac_header_preproc" >&6; }
14707
14708# So? What about this header?
14709case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14710 yes:no: )
14711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14712echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14714echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14715 ac_header_preproc=yes
14716 ;;
14717 no:yes:* )
14718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14719echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14721echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14723echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14725echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14727echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14729echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14730 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014731## ------------------------------------ ##
14732## Report this to http://llvm.org/bugs/ ##
14733## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014734_ASBOX
14735 ) | sed "s/^/$as_me: WARNING: /" >&2
14736 ;;
14737esac
14738{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742else
14743 eval "$as_ac_Header=\$ac_header_preproc"
14744fi
14745ac_res=`eval echo '${'$as_ac_Header'}'`
14746 { echo "$as_me:$LINENO: result: $ac_res" >&5
14747echo "${ECHO_T}$ac_res" >&6; }
14748
14749fi
14750if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014751 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014752#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014753_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014754
14755fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014756
Reid Spencer59473af2004-12-25 07:31:29 +000014757done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014759
14760
14761
14762
14763
14764
Douglas Gregor071d73d2009-05-18 17:21:34 +000014765for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014766do
14767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773fi
14774ac_res=`eval echo '${'$as_ac_Header'}'`
14775 { echo "$as_me:$LINENO: result: $ac_res" >&5
14776echo "${ECHO_T}$ac_res" >&6; }
14777else
14778 # Is the header compilable?
14779{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14780echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14781cat >conftest.$ac_ext <<_ACEOF
14782/* confdefs.h. */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
14786/* end confdefs.h. */
14787$ac_includes_default
14788#include <$ac_header>
14789_ACEOF
14790rm -f conftest.$ac_objext
14791if { (ac_try="$ac_compile"
14792case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14795esac
14796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_compile") 2>conftest.er1
14798 ac_status=$?
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14805 { (case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14808esac
14809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_try") 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818esac
14819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_try") 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 ac_header_compiler=yes
14825else
14826 echo "$as_me: failed program was:" >&5
14827sed 's/^/| /' conftest.$ac_ext >&5
14828
14829 ac_header_compiler=no
14830fi
14831
14832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14834echo "${ECHO_T}$ac_header_compiler" >&6; }
14835
14836# Is the header present?
14837{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14838echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14839cat >conftest.$ac_ext <<_ACEOF
14840/* confdefs.h. */
14841_ACEOF
14842cat confdefs.h >>conftest.$ac_ext
14843cat >>conftest.$ac_ext <<_ACEOF
14844/* end confdefs.h. */
14845#include <$ac_header>
14846_ACEOF
14847if { (ac_try="$ac_cpp conftest.$ac_ext"
14848case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14851esac
14852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } >/dev/null; then
14860 if test -s conftest.err; then
14861 ac_cpp_err=$ac_c_preproc_warn_flag
14862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14863 else
14864 ac_cpp_err=
14865 fi
14866else
14867 ac_cpp_err=yes
14868fi
14869if test -z "$ac_cpp_err"; then
14870 ac_header_preproc=yes
14871else
14872 echo "$as_me: failed program was:" >&5
14873sed 's/^/| /' conftest.$ac_ext >&5
14874
14875 ac_header_preproc=no
14876fi
14877
14878rm -f conftest.err conftest.$ac_ext
14879{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14880echo "${ECHO_T}$ac_header_preproc" >&6; }
14881
14882# So? What about this header?
14883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14884 yes:no: )
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14889 ac_header_preproc=yes
14890 ;;
14891 no:yes:* )
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14904 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014905## ------------------------------------ ##
14906## Report this to http://llvm.org/bugs/ ##
14907## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014908_ASBOX
14909 ) | sed "s/^/$as_me: WARNING: /" >&2
14910 ;;
14911esac
14912{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14916else
14917 eval "$as_ac_Header=\$ac_header_preproc"
14918fi
14919ac_res=`eval echo '${'$as_ac_Header'}'`
14920 { echo "$as_me:$LINENO: result: $ac_res" >&5
14921echo "${ECHO_T}$ac_res" >&6; }
14922
14923fi
14924if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014925 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014926#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014927_ACEOF
14928
14929fi
14930
14931done
14932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014933
14934
Douglas Gregor071d73d2009-05-18 17:21:34 +000014935for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014936do
14937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943fi
14944ac_res=`eval echo '${'$as_ac_Header'}'`
14945 { echo "$as_me:$LINENO: result: $ac_res" >&5
14946echo "${ECHO_T}$ac_res" >&6; }
14947else
14948 # Is the header compilable?
14949{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14951cat >conftest.$ac_ext <<_ACEOF
14952/* confdefs.h. */
14953_ACEOF
14954cat confdefs.h >>conftest.$ac_ext
14955cat >>conftest.$ac_ext <<_ACEOF
14956/* end confdefs.h. */
14957$ac_includes_default
14958#include <$ac_header>
14959_ACEOF
14960rm -f conftest.$ac_objext
14961if { (ac_try="$ac_compile"
14962case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14965esac
14966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 (eval "$ac_compile") 2>conftest.er1
14968 ac_status=$?
14969 grep -v '^ *+' conftest.er1 >conftest.err
14970 rm -f conftest.er1
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14975 { (case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14978esac
14979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_try") 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; } &&
14984 { ac_try='test -s conftest.$ac_objext'
14985 { (case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988esac
14989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_try") 2>&5
14991 ac_status=$?
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_header_compiler=yes
14995else
14996 echo "$as_me: failed program was:" >&5
14997sed 's/^/| /' conftest.$ac_ext >&5
14998
14999 ac_header_compiler=no
15000fi
15001
15002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15004echo "${ECHO_T}$ac_header_compiler" >&6; }
15005
15006# Is the header present?
15007{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15009cat >conftest.$ac_ext <<_ACEOF
15010/* confdefs.h. */
15011_ACEOF
15012cat confdefs.h >>conftest.$ac_ext
15013cat >>conftest.$ac_ext <<_ACEOF
15014/* end confdefs.h. */
15015#include <$ac_header>
15016_ACEOF
15017if { (ac_try="$ac_cpp conftest.$ac_ext"
15018case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021esac
15022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15024 ac_status=$?
15025 grep -v '^ *+' conftest.er1 >conftest.err
15026 rm -f conftest.er1
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } >/dev/null; then
15030 if test -s conftest.err; then
15031 ac_cpp_err=$ac_c_preproc_warn_flag
15032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15033 else
15034 ac_cpp_err=
15035 fi
15036else
15037 ac_cpp_err=yes
15038fi
15039if test -z "$ac_cpp_err"; then
15040 ac_header_preproc=yes
15041else
15042 echo "$as_me: failed program was:" >&5
15043sed 's/^/| /' conftest.$ac_ext >&5
15044
15045 ac_header_preproc=no
15046fi
15047
15048rm -f conftest.err conftest.$ac_ext
15049{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15050echo "${ECHO_T}$ac_header_preproc" >&6; }
15051
15052# So? What about this header?
15053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15054 yes:no: )
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15059 ac_header_preproc=yes
15060 ;;
15061 no:yes:* )
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15074 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015075## ------------------------------------ ##
15076## Report this to http://llvm.org/bugs/ ##
15077## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015078_ASBOX
15079 ) | sed "s/^/$as_me: WARNING: /" >&2
15080 ;;
15081esac
15082{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15086else
15087 eval "$as_ac_Header=\$ac_header_preproc"
15088fi
15089ac_res=`eval echo '${'$as_ac_Header'}'`
15090 { echo "$as_me:$LINENO: result: $ac_res" >&5
15091echo "${ECHO_T}$ac_res" >&6; }
15092
15093fi
15094if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015095 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015097_ACEOF
15098
15099fi
15100
15101done
Reid Spencer59473af2004-12-25 07:31:29 +000015102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015103
15104
15105
15106
Daniel Dunbar3e462932011-02-03 02:40:02 +000015107
15108for 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 +000015109do
15110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15116fi
15117ac_res=`eval echo '${'$as_ac_Header'}'`
15118 { echo "$as_me:$LINENO: result: $ac_res" >&5
15119echo "${ECHO_T}$ac_res" >&6; }
15120else
15121 # Is the header compilable?
15122{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15123echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15124cat >conftest.$ac_ext <<_ACEOF
15125/* confdefs.h. */
15126_ACEOF
15127cat confdefs.h >>conftest.$ac_ext
15128cat >>conftest.$ac_ext <<_ACEOF
15129/* end confdefs.h. */
15130$ac_includes_default
15131#include <$ac_header>
15132_ACEOF
15133rm -f conftest.$ac_objext
15134if { (ac_try="$ac_compile"
15135case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15138esac
15139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_compile") 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148 { (case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15151esac
15152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_try") 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; } &&
15157 { ac_try='test -s conftest.$ac_objext'
15158 { (case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15161esac
15162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_try") 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_header_compiler=yes
15168else
15169 echo "$as_me: failed program was:" >&5
15170sed 's/^/| /' conftest.$ac_ext >&5
15171
15172 ac_header_compiler=no
15173fi
15174
15175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15177echo "${ECHO_T}$ac_header_compiler" >&6; }
15178
15179# Is the header present?
15180{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15182cat >conftest.$ac_ext <<_ACEOF
15183/* confdefs.h. */
15184_ACEOF
15185cat confdefs.h >>conftest.$ac_ext
15186cat >>conftest.$ac_ext <<_ACEOF
15187/* end confdefs.h. */
15188#include <$ac_header>
15189_ACEOF
15190if { (ac_try="$ac_cpp conftest.$ac_ext"
15191case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15194esac
15195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15197 ac_status=$?
15198 grep -v '^ *+' conftest.er1 >conftest.err
15199 rm -f conftest.er1
15200 cat conftest.err >&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } >/dev/null; then
15203 if test -s conftest.err; then
15204 ac_cpp_err=$ac_c_preproc_warn_flag
15205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15206 else
15207 ac_cpp_err=
15208 fi
15209else
15210 ac_cpp_err=yes
15211fi
15212if test -z "$ac_cpp_err"; then
15213 ac_header_preproc=yes
15214else
15215 echo "$as_me: failed program was:" >&5
15216sed 's/^/| /' conftest.$ac_ext >&5
15217
15218 ac_header_preproc=no
15219fi
15220
15221rm -f conftest.err conftest.$ac_ext
15222{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15223echo "${ECHO_T}$ac_header_preproc" >&6; }
15224
15225# So? What about this header?
15226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15227 yes:no: )
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15232 ac_header_preproc=yes
15233 ;;
15234 no:yes:* )
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15247 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015248## ------------------------------------ ##
15249## Report this to http://llvm.org/bugs/ ##
15250## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015251_ASBOX
15252 ) | sed "s/^/$as_me: WARNING: /" >&2
15253 ;;
15254esac
15255{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15259else
15260 eval "$as_ac_Header=\$ac_header_preproc"
15261fi
15262ac_res=`eval echo '${'$as_ac_Header'}'`
15263 { echo "$as_me:$LINENO: result: $ac_res" >&5
15264echo "${ECHO_T}$ac_res" >&6; }
15265
15266fi
15267if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015268 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015270_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015271
15272fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015273
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015274done
15275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015276
15277
15278
15279
Douglas Gregor01746742009-05-11 18:05:52 +000015280for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015281do
15282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15288fi
15289ac_res=`eval echo '${'$as_ac_Header'}'`
15290 { echo "$as_me:$LINENO: result: $ac_res" >&5
15291echo "${ECHO_T}$ac_res" >&6; }
15292else
15293 # Is the header compilable?
15294{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15295echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15296cat >conftest.$ac_ext <<_ACEOF
15297/* confdefs.h. */
15298_ACEOF
15299cat confdefs.h >>conftest.$ac_ext
15300cat >>conftest.$ac_ext <<_ACEOF
15301/* end confdefs.h. */
15302$ac_includes_default
15303#include <$ac_header>
15304_ACEOF
15305rm -f conftest.$ac_objext
15306if { (ac_try="$ac_compile"
15307case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15310esac
15311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312 (eval "$ac_compile") 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15323esac
15324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_try") 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try='test -s conftest.$ac_objext'
15330 { (case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15333esac
15334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_try") 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 ac_header_compiler=yes
15340else
15341 echo "$as_me: failed program was:" >&5
15342sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 ac_header_compiler=no
15345fi
15346
15347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15349echo "${ECHO_T}$ac_header_compiler" >&6; }
15350
15351# Is the header present?
15352{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15353echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15354cat >conftest.$ac_ext <<_ACEOF
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
15359/* end confdefs.h. */
15360#include <$ac_header>
15361_ACEOF
15362if { (ac_try="$ac_cpp conftest.$ac_ext"
15363case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366esac
15367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15369 ac_status=$?
15370 grep -v '^ *+' conftest.er1 >conftest.err
15371 rm -f conftest.er1
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } >/dev/null; then
15375 if test -s conftest.err; then
15376 ac_cpp_err=$ac_c_preproc_warn_flag
15377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15378 else
15379 ac_cpp_err=
15380 fi
15381else
15382 ac_cpp_err=yes
15383fi
15384if test -z "$ac_cpp_err"; then
15385 ac_header_preproc=yes
15386else
15387 echo "$as_me: failed program was:" >&5
15388sed 's/^/| /' conftest.$ac_ext >&5
15389
15390 ac_header_preproc=no
15391fi
15392
15393rm -f conftest.err conftest.$ac_ext
15394{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15395echo "${ECHO_T}$ac_header_preproc" >&6; }
15396
15397# So? What about this header?
15398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15399 yes:no: )
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15401echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15403echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15404 ac_header_preproc=yes
15405 ;;
15406 no:yes:* )
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15408echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15410echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15412echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15414echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15416echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15418echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15419 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015420## ------------------------------------ ##
15421## Report this to http://llvm.org/bugs/ ##
15422## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015423_ASBOX
15424 ) | sed "s/^/$as_me: WARNING: /" >&2
15425 ;;
15426esac
15427{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15431else
15432 eval "$as_ac_Header=\$ac_header_preproc"
15433fi
15434ac_res=`eval echo '${'$as_ac_Header'}'`
15435 { echo "$as_me:$LINENO: result: $ac_res" >&5
15436echo "${ECHO_T}$ac_res" >&6; }
15437
15438fi
15439if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015440 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015441#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015442_ACEOF
15443
15444fi
15445
15446done
15447
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015448
15449for ac_header in valgrind/valgrind.h
15450do
15451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457fi
15458ac_res=`eval echo '${'$as_ac_Header'}'`
15459 { echo "$as_me:$LINENO: result: $ac_res" >&5
15460echo "${ECHO_T}$ac_res" >&6; }
15461else
15462 # Is the header compilable?
15463{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15465cat >conftest.$ac_ext <<_ACEOF
15466/* confdefs.h. */
15467_ACEOF
15468cat confdefs.h >>conftest.$ac_ext
15469cat >>conftest.$ac_ext <<_ACEOF
15470/* end confdefs.h. */
15471$ac_includes_default
15472#include <$ac_header>
15473_ACEOF
15474rm -f conftest.$ac_objext
15475if { (ac_try="$ac_compile"
15476case "(($ac_try" in
15477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478 *) ac_try_echo=$ac_try;;
15479esac
15480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481 (eval "$ac_compile") 2>conftest.er1
15482 ac_status=$?
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
15488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15489 { (case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15492esac
15493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_try") 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest.$ac_objext'
15499 { (case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15502esac
15503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_try") 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 ac_header_compiler=yes
15509else
15510 echo "$as_me: failed program was:" >&5
15511sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 ac_header_compiler=no
15514fi
15515
15516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518echo "${ECHO_T}$ac_header_compiler" >&6; }
15519
15520# Is the header present?
15521{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15523cat >conftest.$ac_ext <<_ACEOF
15524/* confdefs.h. */
15525_ACEOF
15526cat confdefs.h >>conftest.$ac_ext
15527cat >>conftest.$ac_ext <<_ACEOF
15528/* end confdefs.h. */
15529#include <$ac_header>
15530_ACEOF
15531if { (ac_try="$ac_cpp conftest.$ac_ext"
15532case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15535esac
15536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15538 ac_status=$?
15539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } >/dev/null; then
15544 if test -s conftest.err; then
15545 ac_cpp_err=$ac_c_preproc_warn_flag
15546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15547 else
15548 ac_cpp_err=
15549 fi
15550else
15551 ac_cpp_err=yes
15552fi
15553if test -z "$ac_cpp_err"; then
15554 ac_header_preproc=yes
15555else
15556 echo "$as_me: failed program was:" >&5
15557sed 's/^/| /' conftest.$ac_ext >&5
15558
15559 ac_header_preproc=no
15560fi
15561
15562rm -f conftest.err conftest.$ac_ext
15563{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15564echo "${ECHO_T}$ac_header_preproc" >&6; }
15565
15566# So? What about this header?
15567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15568 yes:no: )
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15570echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15572echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15573 ac_header_preproc=yes
15574 ;;
15575 no:yes:* )
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15579echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15581echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15583echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15587echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15588 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015589## ------------------------------------ ##
15590## Report this to http://llvm.org/bugs/ ##
15591## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015592_ASBOX
15593 ) | sed "s/^/$as_me: WARNING: /" >&2
15594 ;;
15595esac
15596{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600else
15601 eval "$as_ac_Header=\$ac_header_preproc"
15602fi
15603ac_res=`eval echo '${'$as_ac_Header'}'`
15604 { echo "$as_me:$LINENO: result: $ac_res" >&5
15605echo "${ECHO_T}$ac_res" >&6; }
15606
15607fi
15608if test `eval echo '${'$as_ac_Header'}'` = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15611_ACEOF
15612
15613fi
15614
15615done
15616
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015617
15618for ac_header in fenv.h
15619do
15620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626fi
15627ac_res=`eval echo '${'$as_ac_Header'}'`
15628 { echo "$as_me:$LINENO: result: $ac_res" >&5
15629echo "${ECHO_T}$ac_res" >&6; }
15630else
15631 # Is the header compilable?
15632{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15633echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15634cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */
15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
15640$ac_includes_default
15641#include <$ac_header>
15642_ACEOF
15643rm -f conftest.$ac_objext
15644if { (ac_try="$ac_compile"
15645case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15648esac
15649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_compile") 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15658 { (case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15661esac
15662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_try") 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; } &&
15667 { ac_try='test -s conftest.$ac_objext'
15668 { (case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15671esac
15672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_try") 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 ac_header_compiler=yes
15678else
15679 echo "$as_me: failed program was:" >&5
15680sed 's/^/| /' conftest.$ac_ext >&5
15681
15682 ac_header_compiler=no
15683fi
15684
15685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15687echo "${ECHO_T}$ac_header_compiler" >&6; }
15688
15689# Is the header present?
15690{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15692cat >conftest.$ac_ext <<_ACEOF
15693/* confdefs.h. */
15694_ACEOF
15695cat confdefs.h >>conftest.$ac_ext
15696cat >>conftest.$ac_ext <<_ACEOF
15697/* end confdefs.h. */
15698#include <$ac_header>
15699_ACEOF
15700if { (ac_try="$ac_cpp conftest.$ac_ext"
15701case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704esac
15705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } >/dev/null; then
15713 if test -s conftest.err; then
15714 ac_cpp_err=$ac_c_preproc_warn_flag
15715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15716 else
15717 ac_cpp_err=
15718 fi
15719else
15720 ac_cpp_err=yes
15721fi
15722if test -z "$ac_cpp_err"; then
15723 ac_header_preproc=yes
15724else
15725 echo "$as_me: failed program was:" >&5
15726sed 's/^/| /' conftest.$ac_ext >&5
15727
15728 ac_header_preproc=no
15729fi
15730
15731rm -f conftest.err conftest.$ac_ext
15732{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15733echo "${ECHO_T}$ac_header_preproc" >&6; }
15734
15735# So? What about this header?
15736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15737 yes:no: )
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15741echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15742 ac_header_preproc=yes
15743 ;;
15744 no:yes:* )
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15746echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15748echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15750echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15752echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15756echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15757 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015758## ------------------------------------ ##
15759## Report this to http://llvm.org/bugs/ ##
15760## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015761_ASBOX
15762 ) | sed "s/^/$as_me: WARNING: /" >&2
15763 ;;
15764esac
15765{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15769else
15770 eval "$as_ac_Header=\$ac_header_preproc"
15771fi
15772ac_res=`eval echo '${'$as_ac_Header'}'`
15773 { echo "$as_me:$LINENO: result: $ac_res" >&5
15774echo "${ECHO_T}$ac_res" >&6; }
15775
15776fi
15777if test `eval echo '${'$as_ac_Header'}'` = yes; then
15778 cat >>confdefs.h <<_ACEOF
15779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15780_ACEOF
15781
15782fi
15783
15784done
15785
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015786if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015787
15788for ac_header in pthread.h
15789do
15790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795 echo $ECHO_N "(cached) $ECHO_C" >&6
15796fi
15797ac_res=`eval echo '${'$as_ac_Header'}'`
15798 { echo "$as_me:$LINENO: result: $ac_res" >&5
15799echo "${ECHO_T}$ac_res" >&6; }
15800else
15801 # Is the header compilable?
15802{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15804cat >conftest.$ac_ext <<_ACEOF
15805/* confdefs.h. */
15806_ACEOF
15807cat confdefs.h >>conftest.$ac_ext
15808cat >>conftest.$ac_ext <<_ACEOF
15809/* end confdefs.h. */
15810$ac_includes_default
15811#include <$ac_header>
15812_ACEOF
15813rm -f conftest.$ac_objext
15814if { (ac_try="$ac_compile"
15815case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15818esac
15819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_compile") 2>conftest.er1
15821 ac_status=$?
15822 grep -v '^ *+' conftest.er1 >conftest.err
15823 rm -f conftest.er1
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15828 { (case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15831esac
15832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_try") 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15841esac
15842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_try") 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 ac_header_compiler=yes
15848else
15849 echo "$as_me: failed program was:" >&5
15850sed 's/^/| /' conftest.$ac_ext >&5
15851
15852 ac_header_compiler=no
15853fi
15854
15855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15857echo "${ECHO_T}$ac_header_compiler" >&6; }
15858
15859# Is the header present?
15860{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15861echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15862cat >conftest.$ac_ext <<_ACEOF
15863/* confdefs.h. */
15864_ACEOF
15865cat confdefs.h >>conftest.$ac_ext
15866cat >>conftest.$ac_ext <<_ACEOF
15867/* end confdefs.h. */
15868#include <$ac_header>
15869_ACEOF
15870if { (ac_try="$ac_cpp conftest.$ac_ext"
15871case "(($ac_try" in
15872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873 *) ac_try_echo=$ac_try;;
15874esac
15875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15877 ac_status=$?
15878 grep -v '^ *+' conftest.er1 >conftest.err
15879 rm -f conftest.er1
15880 cat conftest.err >&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } >/dev/null; then
15883 if test -s conftest.err; then
15884 ac_cpp_err=$ac_c_preproc_warn_flag
15885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15886 else
15887 ac_cpp_err=
15888 fi
15889else
15890 ac_cpp_err=yes
15891fi
15892if test -z "$ac_cpp_err"; then
15893 ac_header_preproc=yes
15894else
15895 echo "$as_me: failed program was:" >&5
15896sed 's/^/| /' conftest.$ac_ext >&5
15897
15898 ac_header_preproc=no
15899fi
15900
15901rm -f conftest.err conftest.$ac_ext
15902{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15903echo "${ECHO_T}$ac_header_preproc" >&6; }
15904
15905# So? What about this header?
15906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15907 yes:no: )
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15909echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15911echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15912 ac_header_preproc=yes
15913 ;;
15914 no:yes:* )
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15916echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15918echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15920echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15922echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15926echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15927 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015928## ------------------------------------ ##
15929## Report this to http://llvm.org/bugs/ ##
15930## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015931_ASBOX
15932 ) | sed "s/^/$as_me: WARNING: /" >&2
15933 ;;
15934esac
15935{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15938 echo $ECHO_N "(cached) $ECHO_C" >&6
15939else
15940 eval "$as_ac_Header=\$ac_header_preproc"
15941fi
15942ac_res=`eval echo '${'$as_ac_Header'}'`
15943 { echo "$as_me:$LINENO: result: $ac_res" >&5
15944echo "${ECHO_T}$ac_res" >&6; }
15945
15946fi
15947if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015948 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015950_ACEOF
15951 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015952
15953else
15954 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015955
15956fi
15957
Reid Spencerbe3e4192007-08-17 05:45:26 +000015958done
Reid Spencer1000b732006-12-01 00:37:14 +000015959
15960else
15961 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015962
15963fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015964
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015965if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015966
15967
15968for ac_header in ffi.h ffi/ffi.h
15969do
15970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15976fi
15977ac_res=`eval echo '${'$as_ac_Header'}'`
15978 { echo "$as_me:$LINENO: result: $ac_res" >&5
15979echo "${ECHO_T}$ac_res" >&6; }
15980else
15981 # Is the header compilable?
15982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15984cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
15990$ac_includes_default
15991#include <$ac_header>
15992_ACEOF
15993rm -f conftest.$ac_objext
15994if { (ac_try="$ac_compile"
15995case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998esac
15999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_compile") 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } &&
16007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16008 { (case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16011esac
16012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_try") 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
16017 { ac_try='test -s conftest.$ac_objext'
16018 { (case "(($ac_try" in
16019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020 *) ac_try_echo=$ac_try;;
16021esac
16022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023 (eval "$ac_try") 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; }; then
16027 ac_header_compiler=yes
16028else
16029 echo "$as_me: failed program was:" >&5
16030sed 's/^/| /' conftest.$ac_ext >&5
16031
16032 ac_header_compiler=no
16033fi
16034
16035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16036{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16037echo "${ECHO_T}$ac_header_compiler" >&6; }
16038
16039# Is the header present?
16040{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16042cat >conftest.$ac_ext <<_ACEOF
16043/* confdefs.h. */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h. */
16048#include <$ac_header>
16049_ACEOF
16050if { (ac_try="$ac_cpp conftest.$ac_ext"
16051case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16054esac
16055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16057 ac_status=$?
16058 grep -v '^ *+' conftest.er1 >conftest.err
16059 rm -f conftest.er1
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } >/dev/null; then
16063 if test -s conftest.err; then
16064 ac_cpp_err=$ac_c_preproc_warn_flag
16065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16066 else
16067 ac_cpp_err=
16068 fi
16069else
16070 ac_cpp_err=yes
16071fi
16072if test -z "$ac_cpp_err"; then
16073 ac_header_preproc=yes
16074else
16075 echo "$as_me: failed program was:" >&5
16076sed 's/^/| /' conftest.$ac_ext >&5
16077
16078 ac_header_preproc=no
16079fi
16080
16081rm -f conftest.err conftest.$ac_ext
16082{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16083echo "${ECHO_T}$ac_header_preproc" >&6; }
16084
16085# So? What about this header?
16086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16087 yes:no: )
16088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16092 ac_header_preproc=yes
16093 ;;
16094 no:yes:* )
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16098echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16102echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16107 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016108## ------------------------------------ ##
16109## Report this to http://llvm.org/bugs/ ##
16110## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016111_ASBOX
16112 ) | sed "s/^/$as_me: WARNING: /" >&2
16113 ;;
16114esac
16115{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16119else
16120 eval "$as_ac_Header=\$ac_header_preproc"
16121fi
16122ac_res=`eval echo '${'$as_ac_Header'}'`
16123 { echo "$as_me:$LINENO: result: $ac_res" >&5
16124echo "${ECHO_T}$ac_res" >&6; }
16125
16126fi
16127if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016128 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016130_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016131
16132fi
16133
16134done
16135
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016136fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016137
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016138
Eric Christopher654dee42010-06-22 21:01:04 +000016139for ac_header in CrashReporterClient.h
16140do
16141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16147fi
16148ac_res=`eval echo '${'$as_ac_Header'}'`
16149 { echo "$as_me:$LINENO: result: $ac_res" >&5
16150echo "${ECHO_T}$ac_res" >&6; }
16151else
16152 # Is the header compilable?
16153{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16154echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16155cat >conftest.$ac_ext <<_ACEOF
16156/* confdefs.h. */
16157_ACEOF
16158cat confdefs.h >>conftest.$ac_ext
16159cat >>conftest.$ac_ext <<_ACEOF
16160/* end confdefs.h. */
16161$ac_includes_default
16162#include <$ac_header>
16163_ACEOF
16164rm -f conftest.$ac_objext
16165if { (ac_try="$ac_compile"
16166case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16169esac
16170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_compile") 2>conftest.er1
16172 ac_status=$?
16173 grep -v '^ *+' conftest.er1 >conftest.err
16174 rm -f conftest.er1
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16179 { (case "(($ac_try" in
16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181 *) ac_try_echo=$ac_try;;
16182esac
16183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184 (eval "$ac_try") 2>&5
16185 ac_status=$?
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest.$ac_objext'
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
16198 ac_header_compiler=yes
16199else
16200 echo "$as_me: failed program was:" >&5
16201sed 's/^/| /' conftest.$ac_ext >&5
16202
16203 ac_header_compiler=no
16204fi
16205
16206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16208echo "${ECHO_T}$ac_header_compiler" >&6; }
16209
16210# Is the header present?
16211{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16212echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16213cat >conftest.$ac_ext <<_ACEOF
16214/* confdefs.h. */
16215_ACEOF
16216cat confdefs.h >>conftest.$ac_ext
16217cat >>conftest.$ac_ext <<_ACEOF
16218/* end confdefs.h. */
16219#include <$ac_header>
16220_ACEOF
16221if { (ac_try="$ac_cpp conftest.$ac_ext"
16222case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16225esac
16226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16228 ac_status=$?
16229 grep -v '^ *+' conftest.er1 >conftest.err
16230 rm -f conftest.er1
16231 cat conftest.err >&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } >/dev/null; then
16234 if test -s conftest.err; then
16235 ac_cpp_err=$ac_c_preproc_warn_flag
16236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16237 else
16238 ac_cpp_err=
16239 fi
16240else
16241 ac_cpp_err=yes
16242fi
16243if test -z "$ac_cpp_err"; then
16244 ac_header_preproc=yes
16245else
16246 echo "$as_me: failed program was:" >&5
16247sed 's/^/| /' conftest.$ac_ext >&5
16248
16249 ac_header_preproc=no
16250fi
16251
16252rm -f conftest.err conftest.$ac_ext
16253{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254echo "${ECHO_T}$ac_header_preproc" >&6; }
16255
16256# So? What about this header?
16257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16258 yes:no: )
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16263 ac_header_preproc=yes
16264 ;;
16265 no:yes:* )
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16269echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16273echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16278 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016279## ------------------------------------ ##
16280## Report this to http://llvm.org/bugs/ ##
16281## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016282_ASBOX
16283 ) | sed "s/^/$as_me: WARNING: /" >&2
16284 ;;
16285esac
16286{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16290else
16291 eval "$as_ac_Header=\$ac_header_preproc"
16292fi
16293ac_res=`eval echo '${'$as_ac_Header'}'`
16294 { echo "$as_me:$LINENO: result: $ac_res" >&5
16295echo "${ECHO_T}$ac_res" >&6; }
16296
16297fi
16298if test `eval echo '${'$as_ac_Header'}'` = yes; then
16299 cat >>confdefs.h <<_ACEOF
16300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16301_ACEOF
16302
16303fi
16304
16305done
16306
16307
Eric Christopher51e57132010-12-07 02:05:42 +000016308{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16309echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016310cat >conftest.$ac_ext <<_ACEOF
16311/* confdefs.h. */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
16315/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016316extern const char *__crashreporter_info__;
16317 int main() {
16318 __crashreporter_info__ = "test";
16319 return 0;
16320 }
Eric Christopher481d4022010-12-03 07:45:22 +000016321
Eric Christopher481d4022010-12-03 07:45:22 +000016322_ACEOF
16323rm -f conftest.$ac_objext conftest$ac_exeext
16324if { (ac_try="$ac_link"
16325case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16328esac
16329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330 (eval "$ac_link") 2>conftest.er1
16331 ac_status=$?
16332 grep -v '^ *+' conftest.er1 >conftest.err
16333 rm -f conftest.er1
16334 cat conftest.err >&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } &&
16337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16338 { (case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341esac
16342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_try") 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; } &&
16347 { ac_try='test -s conftest$ac_exeext'
16348 { (case "(($ac_try" in
16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350 *) ac_try_echo=$ac_try;;
16351esac
16352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353 (eval "$ac_try") 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016357 { echo "$as_me:$LINENO: result: yes" >&5
16358echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016359
16360cat >>confdefs.h <<\_ACEOF
16361#define HAVE_CRASHREPORTER_INFO 1
16362_ACEOF
16363
Eric Christopher51e57132010-12-07 02:05:42 +000016364else
16365 echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
16367
16368 { echo "$as_me:$LINENO: result: no" >&5
16369echo "${ECHO_T}no" >&6; }
16370
16371cat >>confdefs.h <<\_ACEOF
16372#define HAVE_CRASHREPORTER_INFO 0
16373_ACEOF
16374
Eric Christopher481d4022010-12-03 07:45:22 +000016375fi
Eric Christopher654dee42010-06-22 21:01:04 +000016376
Eric Christopher51e57132010-12-07 02:05:42 +000016377rm -f core conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext conftest.$ac_ext
16379
16380
Reid Spencer8085cff2005-01-16 02:58:39 +000016381
Torok Edwin871384f2010-01-26 08:50:50 +000016382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016383 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16384echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16385if test "${ac_cv_huge_val_sanity+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016387else
16388
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016389 ac_ext=cpp
16390ac_cpp='$CXXCPP $CPPFLAGS'
16391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016394
Eric Christopherc7718502010-03-02 05:06:54 +000016395 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016396 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016397 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016398 ac_cv_huge_val_sanity=yes
16399else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016400 cat >conftest.$ac_ext <<_ACEOF
16401/* confdefs.h. */
16402_ACEOF
16403cat confdefs.h >>conftest.$ac_ext
16404cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016405/* end confdefs.h. */
16406#include <math.h>
16407int
16408main ()
16409{
16410double x = HUGE_VAL; return x != x;
16411 ;
16412 return 0;
16413}
16414_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016415rm -f conftest$ac_exeext
16416if { (ac_try="$ac_link"
16417case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16420esac
16421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_link") 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16426 { (case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16429esac
16430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_try") 2>&5
16432 ac_status=$?
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016435 ac_cv_huge_val_sanity=yes
16436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016437 echo "$as_me: program exited with status $ac_status" >&5
16438echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
16441( exit $ac_status )
16442ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016443fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016444rm -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 +000016445fi
16446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016447
Eric Christopherc7718502010-03-02 05:06:54 +000016448 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016449 ac_ext=c
16450ac_cpp='$CPP $CPPFLAGS'
16451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16453ac_compiler_gnu=$ac_cv_c_compiler_gnu
16454
16455
16456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016457{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16458echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016459 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16460
16461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016462{ echo "$as_me:$LINENO: checking for pid_t" >&5
16463echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16464if test "${ac_cv_type_pid_t+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466else
16467 cat >conftest.$ac_ext <<_ACEOF
16468/* confdefs.h. */
16469_ACEOF
16470cat confdefs.h >>conftest.$ac_ext
16471cat >>conftest.$ac_ext <<_ACEOF
16472/* end confdefs.h. */
16473$ac_includes_default
16474typedef pid_t ac__type_new_;
16475int
16476main ()
16477{
16478if ((ac__type_new_ *) 0)
16479 return 0;
16480if (sizeof (ac__type_new_))
16481 return 0;
16482 ;
16483 return 0;
16484}
16485_ACEOF
16486rm -f conftest.$ac_objext
16487if { (ac_try="$ac_compile"
16488case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16491esac
16492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_compile") 2>conftest.er1
16494 ac_status=$?
16495 grep -v '^ *+' conftest.er1 >conftest.err
16496 rm -f conftest.er1
16497 cat conftest.err >&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } &&
16500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16501 { (case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16504esac
16505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_try") 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; } &&
16510 { ac_try='test -s conftest.$ac_objext'
16511 { (case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16514esac
16515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_try") 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_cv_type_pid_t=yes
16521else
16522 echo "$as_me: failed program was:" >&5
16523sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016525 ac_cv_type_pid_t=no
16526fi
16527
16528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529fi
16530{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16531echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16532if test $ac_cv_type_pid_t = yes; then
16533 :
John Criswell7a73b802003-06-30 21:59:07 +000016534else
16535
16536cat >>confdefs.h <<_ACEOF
16537#define pid_t int
16538_ACEOF
16539
16540fi
16541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016542{ echo "$as_me:$LINENO: checking for size_t" >&5
16543echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16544if test "${ac_cv_type_size_t+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16546else
16547 cat >conftest.$ac_ext <<_ACEOF
16548/* confdefs.h. */
16549_ACEOF
16550cat confdefs.h >>conftest.$ac_ext
16551cat >>conftest.$ac_ext <<_ACEOF
16552/* end confdefs.h. */
16553$ac_includes_default
16554typedef size_t ac__type_new_;
16555int
16556main ()
16557{
16558if ((ac__type_new_ *) 0)
16559 return 0;
16560if (sizeof (ac__type_new_))
16561 return 0;
16562 ;
16563 return 0;
16564}
16565_ACEOF
16566rm -f conftest.$ac_objext
16567if { (ac_try="$ac_compile"
16568case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16571esac
16572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_compile") 2>conftest.er1
16574 ac_status=$?
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581 { (case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16584esac
16585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_try") 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; } &&
16590 { ac_try='test -s conftest.$ac_objext'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16594esac
16595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 ac_cv_type_size_t=yes
16601else
16602 echo "$as_me: failed program was:" >&5
16603sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016605 ac_cv_type_size_t=no
16606fi
16607
16608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609fi
16610{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16611echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16612if test $ac_cv_type_size_t = yes; then
16613 :
John Criswell7a73b802003-06-30 21:59:07 +000016614else
16615
16616cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016617#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016618_ACEOF
16619
16620fi
16621
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016622
16623cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016624#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016625_ACEOF
16626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016627{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16628echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16629if test "${ac_cv_struct_tm+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016632 cat >conftest.$ac_ext <<_ACEOF
16633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016637/* end confdefs.h. */
16638#include <sys/types.h>
16639#include <time.h>
16640
16641int
16642main ()
16643{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016644struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016645 ;
16646 return 0;
16647}
16648_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016649rm -f conftest.$ac_objext
16650if { (ac_try="$ac_compile"
16651case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16654esac
16655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_compile") 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16664 { (case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16667esac
16668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_try") 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; } &&
16673 { ac_try='test -s conftest.$ac_objext'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16677esac
16678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016683 ac_cv_struct_tm=time.h
16684else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016685 echo "$as_me: failed program was:" >&5
16686sed 's/^/| /' conftest.$ac_ext >&5
16687
16688 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016690
Reid Spencera773bd52006-08-04 18:18:08 +000016691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016692fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016693{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16694echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016695if test $ac_cv_struct_tm = sys/time.h; then
16696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016697cat >>confdefs.h <<\_ACEOF
16698#define TM_IN_SYS_TIME 1
16699_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016700
16701fi
16702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016703{ echo "$as_me:$LINENO: checking for int64_t" >&5
16704echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16705if test "${ac_cv_type_int64_t+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16707else
16708 cat >conftest.$ac_ext <<_ACEOF
16709/* confdefs.h. */
16710_ACEOF
16711cat confdefs.h >>conftest.$ac_ext
16712cat >>conftest.$ac_ext <<_ACEOF
16713/* end confdefs.h. */
16714$ac_includes_default
16715typedef int64_t ac__type_new_;
16716int
16717main ()
16718{
16719if ((ac__type_new_ *) 0)
16720 return 0;
16721if (sizeof (ac__type_new_))
16722 return 0;
16723 ;
16724 return 0;
16725}
16726_ACEOF
16727rm -f conftest.$ac_objext
16728if { (ac_try="$ac_compile"
16729case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16732esac
16733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_compile") 2>conftest.er1
16735 ac_status=$?
16736 grep -v '^ *+' conftest.er1 >conftest.err
16737 rm -f conftest.er1
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16742 { (case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16745esac
16746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_try") 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try='test -s conftest.$ac_objext'
16752 { (case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755esac
16756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_try") 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16761 ac_cv_type_int64_t=yes
16762else
16763 echo "$as_me: failed program was:" >&5
16764sed 's/^/| /' conftest.$ac_ext >&5
16765
16766 ac_cv_type_int64_t=no
16767fi
16768
16769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16770fi
16771{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16772echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16773if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016774
16775cat >>confdefs.h <<_ACEOF
16776#define HAVE_INT64_T 1
16777_ACEOF
16778
16779
16780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016781 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16782echo "$as_me: error: Type int64_t required but not found" >&2;}
16783 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016784fi
16785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016786{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16787echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16788if test "${ac_cv_type_uint64_t+set}" = set; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16790else
16791 cat >conftest.$ac_ext <<_ACEOF
16792/* confdefs.h. */
16793_ACEOF
16794cat confdefs.h >>conftest.$ac_ext
16795cat >>conftest.$ac_ext <<_ACEOF
16796/* end confdefs.h. */
16797$ac_includes_default
16798typedef uint64_t ac__type_new_;
16799int
16800main ()
16801{
16802if ((ac__type_new_ *) 0)
16803 return 0;
16804if (sizeof (ac__type_new_))
16805 return 0;
16806 ;
16807 return 0;
16808}
16809_ACEOF
16810rm -f conftest.$ac_objext
16811if { (ac_try="$ac_compile"
16812case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815esac
16816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_compile") 2>conftest.er1
16818 ac_status=$?
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828esac
16829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; } &&
16834 { ac_try='test -s conftest.$ac_objext'
16835 { (case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16838esac
16839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_try") 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_cv_type_uint64_t=yes
16845else
16846 echo "$as_me: failed program was:" >&5
16847sed 's/^/| /' conftest.$ac_ext >&5
16848
16849 ac_cv_type_uint64_t=no
16850fi
16851
16852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853fi
16854{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16855echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16856if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016857
16858cat >>confdefs.h <<_ACEOF
16859#define HAVE_UINT64_T 1
16860_ACEOF
16861
16862
16863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016864 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16865echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16866if test "${ac_cv_type_u_int64_t+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868else
16869 cat >conftest.$ac_ext <<_ACEOF
16870/* confdefs.h. */
16871_ACEOF
16872cat confdefs.h >>conftest.$ac_ext
16873cat >>conftest.$ac_ext <<_ACEOF
16874/* end confdefs.h. */
16875$ac_includes_default
16876typedef u_int64_t ac__type_new_;
16877int
16878main ()
16879{
16880if ((ac__type_new_ *) 0)
16881 return 0;
16882if (sizeof (ac__type_new_))
16883 return 0;
16884 ;
16885 return 0;
16886}
16887_ACEOF
16888rm -f conftest.$ac_objext
16889if { (ac_try="$ac_compile"
16890case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16893esac
16894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_compile") 2>conftest.er1
16896 ac_status=$?
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903 { (case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16906esac
16907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_try") 2>&5
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest.$ac_objext'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16916esac
16917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_try") 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_cv_type_u_int64_t=yes
16923else
16924 echo "$as_me: failed program was:" >&5
16925sed 's/^/| /' conftest.$ac_ext >&5
16926
16927 ac_cv_type_u_int64_t=no
16928fi
16929
16930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16931fi
16932{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16933echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16934if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016935
16936cat >>confdefs.h <<_ACEOF
16937#define HAVE_U_INT64_T 1
16938_ACEOF
16939
16940
Misha Brukmanceca9042004-09-02 23:02:30 +000016941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016942 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16943echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16944 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016945fi
16946
John Criswell679ff312004-09-02 18:44:44 +000016947fi
16948
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016949
16950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016951
16952
16953
16954
16955
16956
16957
Reid Spencerdf3be822006-01-23 08:15:53 +000016958for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016959do
16960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16961{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16963if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16965else
16966 cat >conftest.$ac_ext <<_ACEOF
16967/* confdefs.h. */
16968_ACEOF
16969cat confdefs.h >>conftest.$ac_ext
16970cat >>conftest.$ac_ext <<_ACEOF
16971/* end confdefs.h. */
16972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16974#define $ac_func innocuous_$ac_func
16975
16976/* System header to define __stub macros and hopefully few prototypes,
16977 which can conflict with char $ac_func (); below.
16978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16979 <limits.h> exists even on freestanding compilers. */
16980
16981#ifdef __STDC__
16982# include <limits.h>
16983#else
16984# include <assert.h>
16985#endif
16986
16987#undef $ac_func
16988
16989/* Override any GCC internal prototype to avoid an error.
16990 Use char because int might match the return type of a GCC
16991 builtin and then its argument prototype would still apply. */
16992#ifdef __cplusplus
16993extern "C"
16994#endif
16995char $ac_func ();
16996/* The GNU C library defines this for functions which it implements
16997 to always fail with ENOSYS. Some functions are actually named
16998 something starting with __ and the normal name is an alias. */
16999#if defined __stub_$ac_func || defined __stub___$ac_func
17000choke me
17001#endif
17002
17003int
17004main ()
17005{
17006return $ac_func ();
17007 ;
17008 return 0;
17009}
17010_ACEOF
17011rm -f conftest.$ac_objext conftest$ac_exeext
17012if { (ac_try="$ac_link"
17013case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016esac
17017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
17019 ac_status=$?
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
17025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17035 { ac_try='test -s conftest$ac_exeext'
17036 { (case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039esac
17040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_try") 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 eval "$as_ac_var=yes"
17046else
17047 echo "$as_me: failed program was:" >&5
17048sed 's/^/| /' conftest.$ac_ext >&5
17049
17050 eval "$as_ac_var=no"
17051fi
17052
17053rm -f core conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17055fi
17056ac_res=`eval echo '${'$as_ac_var'}'`
17057 { echo "$as_me:$LINENO: result: $ac_res" >&5
17058echo "${ECHO_T}$ac_res" >&6; }
17059if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017060 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017062_ACEOF
17063
17064fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017065done
John Criswell7a73b802003-06-30 21:59:07 +000017066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017067
17068
17069
17070
Reid Spencer96cf5872007-07-13 10:05:30 +000017071for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017072do
17073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17074{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17076if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078else
17079 cat >conftest.$ac_ext <<_ACEOF
17080/* confdefs.h. */
17081_ACEOF
17082cat confdefs.h >>conftest.$ac_ext
17083cat >>conftest.$ac_ext <<_ACEOF
17084/* end confdefs.h. */
17085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17087#define $ac_func innocuous_$ac_func
17088
17089/* System header to define __stub macros and hopefully few prototypes,
17090 which can conflict with char $ac_func (); below.
17091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092 <limits.h> exists even on freestanding compilers. */
17093
17094#ifdef __STDC__
17095# include <limits.h>
17096#else
17097# include <assert.h>
17098#endif
17099
17100#undef $ac_func
17101
17102/* Override any GCC internal prototype to avoid an error.
17103 Use char because int might match the return type of a GCC
17104 builtin and then its argument prototype would still apply. */
17105#ifdef __cplusplus
17106extern "C"
17107#endif
17108char $ac_func ();
17109/* The GNU C library defines this for functions which it implements
17110 to always fail with ENOSYS. Some functions are actually named
17111 something starting with __ and the normal name is an alias. */
17112#if defined __stub_$ac_func || defined __stub___$ac_func
17113choke me
17114#endif
17115
17116int
17117main ()
17118{
17119return $ac_func ();
17120 ;
17121 return 0;
17122}
17123_ACEOF
17124rm -f conftest.$ac_objext conftest$ac_exeext
17125if { (ac_try="$ac_link"
17126case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17129esac
17130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_link") 2>conftest.er1
17132 ac_status=$?
17133 grep -v '^ *+' conftest.er1 >conftest.err
17134 rm -f conftest.er1
17135 cat conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
17138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17139 { (case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17142esac
17143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144 (eval "$ac_try") 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try='test -s conftest$ac_exeext'
17149 { (case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152esac
17153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_try") 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 eval "$as_ac_var=yes"
17159else
17160 echo "$as_me: failed program was:" >&5
17161sed 's/^/| /' conftest.$ac_ext >&5
17162
17163 eval "$as_ac_var=no"
17164fi
17165
17166rm -f core conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17168fi
17169ac_res=`eval echo '${'$as_ac_var'}'`
17170 { echo "$as_me:$LINENO: result: $ac_res" >&5
17171echo "${ECHO_T}$ac_res" >&6; }
17172if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017173 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017175_ACEOF
17176
17177fi
17178done
17179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017180
17181
17182
17183
17184
Reid Spencerb90645c2007-02-16 19:17:20 +000017185for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017186do
17187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17188{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17190if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17192else
17193 cat >conftest.$ac_ext <<_ACEOF
17194/* confdefs.h. */
17195_ACEOF
17196cat confdefs.h >>conftest.$ac_ext
17197cat >>conftest.$ac_ext <<_ACEOF
17198/* end confdefs.h. */
17199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17201#define $ac_func innocuous_$ac_func
17202
17203/* System header to define __stub macros and hopefully few prototypes,
17204 which can conflict with char $ac_func (); below.
17205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17206 <limits.h> exists even on freestanding compilers. */
17207
17208#ifdef __STDC__
17209# include <limits.h>
17210#else
17211# include <assert.h>
17212#endif
17213
17214#undef $ac_func
17215
17216/* Override any GCC internal prototype to avoid an error.
17217 Use char because int might match the return type of a GCC
17218 builtin and then its argument prototype would still apply. */
17219#ifdef __cplusplus
17220extern "C"
17221#endif
17222char $ac_func ();
17223/* The GNU C library defines this for functions which it implements
17224 to always fail with ENOSYS. Some functions are actually named
17225 something starting with __ and the normal name is an alias. */
17226#if defined __stub_$ac_func || defined __stub___$ac_func
17227choke me
17228#endif
17229
17230int
17231main ()
17232{
17233return $ac_func ();
17234 ;
17235 return 0;
17236}
17237_ACEOF
17238rm -f conftest.$ac_objext conftest$ac_exeext
17239if { (ac_try="$ac_link"
17240case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17243esac
17244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_link") 2>conftest.er1
17246 ac_status=$?
17247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
17252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253 { (case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17256esac
17257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_try") 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest$ac_exeext'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266esac
17267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 eval "$as_ac_var=yes"
17273else
17274 echo "$as_me: failed program was:" >&5
17275sed 's/^/| /' conftest.$ac_ext >&5
17276
17277 eval "$as_ac_var=no"
17278fi
17279
17280rm -f core conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext conftest.$ac_ext
17282fi
17283ac_res=`eval echo '${'$as_ac_var'}'`
17284 { echo "$as_me:$LINENO: result: $ac_res" >&5
17285echo "${ECHO_T}$ac_res" >&6; }
17286if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017287 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017289_ACEOF
17290
17291fi
17292done
17293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017294
17295
17296
Reid Spencerb90645c2007-02-16 19:17:20 +000017297for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017298do
17299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17300{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17302if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304else
17305 cat >conftest.$ac_ext <<_ACEOF
17306/* confdefs.h. */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h. */
17311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17313#define $ac_func innocuous_$ac_func
17314
17315/* System header to define __stub macros and hopefully few prototypes,
17316 which can conflict with char $ac_func (); below.
17317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17318 <limits.h> exists even on freestanding compilers. */
17319
17320#ifdef __STDC__
17321# include <limits.h>
17322#else
17323# include <assert.h>
17324#endif
17325
17326#undef $ac_func
17327
17328/* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
17331#ifdef __cplusplus
17332extern "C"
17333#endif
17334char $ac_func ();
17335/* The GNU C library defines this for functions which it implements
17336 to always fail with ENOSYS. Some functions are actually named
17337 something starting with __ and the normal name is an alias. */
17338#if defined __stub_$ac_func || defined __stub___$ac_func
17339choke me
17340#endif
17341
17342int
17343main ()
17344{
17345return $ac_func ();
17346 ;
17347 return 0;
17348}
17349_ACEOF
17350rm -f conftest.$ac_objext conftest$ac_exeext
17351if { (ac_try="$ac_link"
17352case "(($ac_try" in
17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17355esac
17356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357 (eval "$ac_link") 2>conftest.er1
17358 ac_status=$?
17359 grep -v '^ *+' conftest.er1 >conftest.err
17360 rm -f conftest.er1
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365 { (case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17368esac
17369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_try") 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try='test -s conftest$ac_exeext'
17375 { (case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378esac
17379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_try") 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 eval "$as_ac_var=yes"
17385else
17386 echo "$as_me: failed program was:" >&5
17387sed 's/^/| /' conftest.$ac_ext >&5
17388
17389 eval "$as_ac_var=no"
17390fi
17391
17392rm -f core conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
17394fi
17395ac_res=`eval echo '${'$as_ac_var'}'`
17396 { echo "$as_me:$LINENO: result: $ac_res" >&5
17397echo "${ECHO_T}$ac_res" >&6; }
17398if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017399 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017400#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017401_ACEOF
17402
17403fi
17404done
17405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017406
17407
17408
17409
17410
Eric Christophere4291822010-04-16 05:14:21 +000017411
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017412
17413for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017414do
17415as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17416{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17417echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17418if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420else
17421 cat >conftest.$ac_ext <<_ACEOF
17422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
17427/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17429#define $ac_func innocuous_$ac_func
17430
17431/* System header to define __stub macros and hopefully few prototypes,
17432 which can conflict with char $ac_func (); below.
17433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434 <limits.h> exists even on freestanding compilers. */
17435
17436#ifdef __STDC__
17437# include <limits.h>
17438#else
17439# include <assert.h>
17440#endif
17441
17442#undef $ac_func
17443
17444/* Override any GCC internal prototype to avoid an error.
17445 Use char because int might match the return type of a GCC
17446 builtin and then its argument prototype would still apply. */
17447#ifdef __cplusplus
17448extern "C"
17449#endif
17450char $ac_func ();
17451/* The GNU C library defines this for functions which it implements
17452 to always fail with ENOSYS. Some functions are actually named
17453 something starting with __ and the normal name is an alias. */
17454#if defined __stub_$ac_func || defined __stub___$ac_func
17455choke me
17456#endif
17457
17458int
17459main ()
17460{
17461return $ac_func ();
17462 ;
17463 return 0;
17464}
17465_ACEOF
17466rm -f conftest.$ac_objext conftest$ac_exeext
17467if { (ac_try="$ac_link"
17468case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471esac
17472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_link") 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17481 { (case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484esac
17485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_try") 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; } &&
17490 { ac_try='test -s conftest$ac_exeext'
17491 { (case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17494esac
17495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 eval "$as_ac_var=yes"
17501else
17502 echo "$as_me: failed program was:" >&5
17503sed 's/^/| /' conftest.$ac_ext >&5
17504
17505 eval "$as_ac_var=no"
17506fi
17507
17508rm -f core conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17510fi
17511ac_res=`eval echo '${'$as_ac_var'}'`
17512 { echo "$as_me:$LINENO: result: $ac_res" >&5
17513echo "${ECHO_T}$ac_res" >&6; }
17514if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017515 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017517_ACEOF
17518
17519fi
17520done
Reid Spencerdf3be822006-01-23 08:15:53 +000017521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017522
17523
17524
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017525
17526for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017527do
17528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17529{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17533else
17534 cat >conftest.$ac_ext <<_ACEOF
17535/* confdefs.h. */
17536_ACEOF
17537cat confdefs.h >>conftest.$ac_ext
17538cat >>conftest.$ac_ext <<_ACEOF
17539/* end confdefs.h. */
17540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17542#define $ac_func innocuous_$ac_func
17543
17544/* System header to define __stub macros and hopefully few prototypes,
17545 which can conflict with char $ac_func (); below.
17546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547 <limits.h> exists even on freestanding compilers. */
17548
17549#ifdef __STDC__
17550# include <limits.h>
17551#else
17552# include <assert.h>
17553#endif
17554
17555#undef $ac_func
17556
17557/* Override any GCC internal prototype to avoid an error.
17558 Use char because int might match the return type of a GCC
17559 builtin and then its argument prototype would still apply. */
17560#ifdef __cplusplus
17561extern "C"
17562#endif
17563char $ac_func ();
17564/* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567#if defined __stub_$ac_func || defined __stub___$ac_func
17568choke me
17569#endif
17570
17571int
17572main ()
17573{
17574return $ac_func ();
17575 ;
17576 return 0;
17577}
17578_ACEOF
17579rm -f conftest.$ac_objext conftest$ac_exeext
17580if { (ac_try="$ac_link"
17581case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584esac
17585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597esac
17598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest$ac_exeext'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607esac
17608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 eval "$as_ac_var=yes"
17614else
17615 echo "$as_me: failed program was:" >&5
17616sed 's/^/| /' conftest.$ac_ext >&5
17617
17618 eval "$as_ac_var=no"
17619fi
17620
17621rm -f core conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17623fi
17624ac_res=`eval echo '${'$as_ac_var'}'`
17625 { echo "$as_me:$LINENO: result: $ac_res" >&5
17626echo "${ECHO_T}$ac_res" >&6; }
17627if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017628 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017630_ACEOF
17631
17632fi
17633done
17634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017635
17636
17637
17638
Chris Lattner511f11d2005-11-14 07:25:50 +000017639for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017640do
17641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17642{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17644if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17645 echo $ECHO_N "(cached) $ECHO_C" >&6
17646else
17647 cat >conftest.$ac_ext <<_ACEOF
17648/* confdefs.h. */
17649_ACEOF
17650cat confdefs.h >>conftest.$ac_ext
17651cat >>conftest.$ac_ext <<_ACEOF
17652/* end confdefs.h. */
17653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17655#define $ac_func innocuous_$ac_func
17656
17657/* System header to define __stub macros and hopefully few prototypes,
17658 which can conflict with char $ac_func (); below.
17659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17660 <limits.h> exists even on freestanding compilers. */
17661
17662#ifdef __STDC__
17663# include <limits.h>
17664#else
17665# include <assert.h>
17666#endif
17667
17668#undef $ac_func
17669
17670/* Override any GCC internal prototype to avoid an error.
17671 Use char because int might match the return type of a GCC
17672 builtin and then its argument prototype would still apply. */
17673#ifdef __cplusplus
17674extern "C"
17675#endif
17676char $ac_func ();
17677/* The GNU C library defines this for functions which it implements
17678 to always fail with ENOSYS. Some functions are actually named
17679 something starting with __ and the normal name is an alias. */
17680#if defined __stub_$ac_func || defined __stub___$ac_func
17681choke me
17682#endif
17683
17684int
17685main ()
17686{
17687return $ac_func ();
17688 ;
17689 return 0;
17690}
17691_ACEOF
17692rm -f conftest.$ac_objext conftest$ac_exeext
17693if { (ac_try="$ac_link"
17694case "(($ac_try" in
17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696 *) ac_try_echo=$ac_try;;
17697esac
17698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699 (eval "$ac_link") 2>conftest.er1
17700 ac_status=$?
17701 grep -v '^ *+' conftest.er1 >conftest.err
17702 rm -f conftest.er1
17703 cat conftest.err >&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } &&
17706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17707 { (case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17710esac
17711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_try") 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; } &&
17716 { ac_try='test -s conftest$ac_exeext'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720esac
17721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_try") 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 eval "$as_ac_var=yes"
17727else
17728 echo "$as_me: failed program was:" >&5
17729sed 's/^/| /' conftest.$ac_ext >&5
17730
17731 eval "$as_ac_var=no"
17732fi
17733
17734rm -f core conftest.err conftest.$ac_objext \
17735 conftest$ac_exeext conftest.$ac_ext
17736fi
17737ac_res=`eval echo '${'$as_ac_var'}'`
17738 { echo "$as_me:$LINENO: result: $ac_res" >&5
17739echo "${ECHO_T}$ac_res" >&6; }
17740if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017741 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017743_ACEOF
17744
17745fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017746done
John Criswell7a73b802003-06-30 21:59:07 +000017747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017748
17749
17750
17751
Daniel Dunbar3e462932011-02-03 02:40:02 +000017752
17753for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017754do
17755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17756{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17758if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17759 echo $ECHO_N "(cached) $ECHO_C" >&6
17760else
17761 cat >conftest.$ac_ext <<_ACEOF
17762/* confdefs.h. */
17763_ACEOF
17764cat confdefs.h >>conftest.$ac_ext
17765cat >>conftest.$ac_ext <<_ACEOF
17766/* end confdefs.h. */
17767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17769#define $ac_func innocuous_$ac_func
17770
17771/* System header to define __stub macros and hopefully few prototypes,
17772 which can conflict with char $ac_func (); below.
17773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17774 <limits.h> exists even on freestanding compilers. */
17775
17776#ifdef __STDC__
17777# include <limits.h>
17778#else
17779# include <assert.h>
17780#endif
17781
17782#undef $ac_func
17783
17784/* Override any GCC internal prototype to avoid an error.
17785 Use char because int might match the return type of a GCC
17786 builtin and then its argument prototype would still apply. */
17787#ifdef __cplusplus
17788extern "C"
17789#endif
17790char $ac_func ();
17791/* The GNU C library defines this for functions which it implements
17792 to always fail with ENOSYS. Some functions are actually named
17793 something starting with __ and the normal name is an alias. */
17794#if defined __stub_$ac_func || defined __stub___$ac_func
17795choke me
17796#endif
17797
17798int
17799main ()
17800{
17801return $ac_func ();
17802 ;
17803 return 0;
17804}
17805_ACEOF
17806rm -f conftest.$ac_objext conftest$ac_exeext
17807if { (ac_try="$ac_link"
17808case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17811esac
17812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_link") 2>conftest.er1
17814 ac_status=$?
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821 { (case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17824esac
17825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_try") 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest$ac_exeext'
17831 { (case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17834esac
17835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_try") 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 eval "$as_ac_var=yes"
17841else
17842 echo "$as_me: failed program was:" >&5
17843sed 's/^/| /' conftest.$ac_ext >&5
17844
17845 eval "$as_ac_var=no"
17846fi
17847
17848rm -f core conftest.err conftest.$ac_objext \
17849 conftest$ac_exeext conftest.$ac_ext
17850fi
17851ac_res=`eval echo '${'$as_ac_var'}'`
17852 { echo "$as_me:$LINENO: result: $ac_res" >&5
17853echo "${ECHO_T}$ac_res" >&6; }
17854if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017855 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017857_ACEOF
17858
17859fi
17860done
17861
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017862{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17863echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17864if test "${llvm_cv_c_printf_a+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017866else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017867 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017868ac_cpp='$CPP $CPPFLAGS'
17869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17871ac_compiler_gnu=$ac_cv_c_compiler_gnu
17872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017873 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017874 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017875else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017876 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017878 /* confdefs.h. */
17879_ACEOF
17880cat confdefs.h >>conftest.$ac_ext
17881cat >>conftest.$ac_ext <<_ACEOF
17882/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017883
John Criswella0137d32003-10-13 16:22:01 +000017884#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017885#include <stdlib.h>
17886
John Criswella0137d32003-10-13 16:22:01 +000017887int
17888main ()
17889{
17890
Reid Spencer2706f8c2004-09-19 23:53:36 +000017891volatile double A, B;
17892char Buffer[100];
17893A = 1;
17894A /= 10.0;
17895sprintf(Buffer, "%a", A);
17896B = atof(Buffer);
17897if (A != B)
17898 return (1);
17899if (A != 0x1.999999999999ap-4)
17900 return (1);
17901return (0);
John Criswella0137d32003-10-13 16:22:01 +000017902 ;
17903 return 0;
17904}
17905_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017906rm -f conftest$ac_exeext
17907if { (ac_try="$ac_link"
17908case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911esac
17912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_link") 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17917 { (case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17920esac
17921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_try") 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017926 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017928 echo "$as_me: program exited with status $ac_status" >&5
17929echo "$as_me: failed program was:" >&5
17930sed 's/^/| /' conftest.$ac_ext >&5
17931
17932( exit $ac_status )
17933llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017934fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017935rm -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 +000017936fi
Reid Spencera773bd52006-08-04 18:18:08 +000017937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017938
Reid Spencer2706f8c2004-09-19 23:53:36 +000017939 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017940ac_cpp='$CPP $CPPFLAGS'
17941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943ac_compiler_gnu=$ac_cv_c_compiler_gnu
17944
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017945fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017946{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17947echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017948 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017950cat >>confdefs.h <<\_ACEOF
17951#define HAVE_PRINTF_A 1
17952_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017953
Reid Spencer2706f8c2004-09-19 23:53:36 +000017954 fi
John Criswella0137d32003-10-13 16:22:01 +000017955
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017957{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17958echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17959if test "${ac_cv_func_rand48+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017961else
Reid Spencera773bd52006-08-04 18:18:08 +000017962 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017963ac_cpp='$CXXCPP $CPPFLAGS'
17964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017968 cat >conftest.$ac_ext <<_ACEOF
17969/* confdefs.h. */
17970_ACEOF
17971cat confdefs.h >>conftest.$ac_ext
17972cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017973/* end confdefs.h. */
17974#include <stdlib.h>
17975int
17976main ()
17977{
17978srand48(0);lrand48();drand48();
17979 ;
17980 return 0;
17981}
17982_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017983rm -f conftest.$ac_objext
17984if { (ac_try="$ac_compile"
17985case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17988esac
17989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_compile") 2>conftest.er1
17991 ac_status=$?
17992 grep -v '^ *+' conftest.er1 >conftest.err
17993 rm -f conftest.er1
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17998 { (case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18001esac
18002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_try") 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest.$ac_objext'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18011esac
18012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018017 ac_cv_func_rand48=yes
18018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018019 echo "$as_me: failed program was:" >&5
18020sed 's/^/| /' conftest.$ac_ext >&5
18021
18022 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018024
Reid Spencera773bd52006-08-04 18:18:08 +000018025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018026 ac_ext=c
18027ac_cpp='$CPP $CPPFLAGS'
18028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18030ac_compiler_gnu=$ac_cv_c_compiler_gnu
18031
18032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018033{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18034echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018035
18036if test "$ac_cv_func_rand48" = "yes" ; then
18037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018038cat >>confdefs.h <<\_ACEOF
18039#define HAVE_RAND48 1
18040_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018041
18042fi
John Criswell0021c312004-02-13 21:57:29 +000018043
18044
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018045{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18046echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18047if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18049else
18050 cat >conftest.$ac_ext <<_ACEOF
18051/* confdefs.h. */
18052_ACEOF
18053cat confdefs.h >>conftest.$ac_ext
18054cat >>conftest.$ac_ext <<_ACEOF
18055/* end confdefs.h. */
18056$ac_includes_default
18057int
18058main ()
18059{
18060#ifndef strerror_s
18061 char *p = (char *) strerror_s;
18062 return !p;
18063#endif
18064
18065 ;
18066 return 0;
18067}
18068_ACEOF
18069rm -f conftest.$ac_objext
18070if { (ac_try="$ac_compile"
18071case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074esac
18075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_compile") 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } &&
18083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18084 { (case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18087esac
18088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_try") 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; } &&
18093 { ac_try='test -s conftest.$ac_objext'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18097esac
18098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 ac_cv_have_decl_strerror_s=yes
18104else
18105 echo "$as_me: failed program was:" >&5
18106sed 's/^/| /' conftest.$ac_ext >&5
18107
18108 ac_cv_have_decl_strerror_s=no
18109fi
18110
18111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112fi
18113{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18114echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18115if test $ac_cv_have_decl_strerror_s = yes; then
18116
18117cat >>confdefs.h <<_ACEOF
18118#define HAVE_DECL_STRERROR_S 1
18119_ACEOF
18120
18121
18122else
18123 cat >>confdefs.h <<_ACEOF
18124#define HAVE_DECL_STRERROR_S 0
18125_ACEOF
18126
18127
18128fi
18129
18130
18131
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018132if test "$llvm_cv_os_type" = "MingW" ; then
18133 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18134echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18135if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18137else
18138 ac_check_lib_save_LIBS=$LIBS
18139LIBS="-lgcc $LIBS"
18140cat >conftest.$ac_ext <<_ACEOF
18141/* confdefs.h. */
18142_ACEOF
18143cat confdefs.h >>conftest.$ac_ext
18144cat >>conftest.$ac_ext <<_ACEOF
18145/* end confdefs.h. */
18146
18147/* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18150#ifdef __cplusplus
18151extern "C"
18152#endif
18153char _alloca ();
18154int
18155main ()
18156{
18157return _alloca ();
18158 ;
18159 return 0;
18160}
18161_ACEOF
18162rm -f conftest.$ac_objext conftest$ac_exeext
18163if { (ac_try="$ac_link"
18164case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167esac
18168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_link") 2>conftest.er1
18170 ac_status=$?
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
18176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18177 { (case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18180esac
18181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_try") 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest$ac_exeext'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18190esac
18191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_cv_lib_gcc__alloca=yes
18197else
18198 echo "$as_me: failed program was:" >&5
18199sed 's/^/| /' conftest.$ac_ext >&5
18200
18201 ac_cv_lib_gcc__alloca=no
18202fi
18203
18204rm -f core conftest.err conftest.$ac_objext \
18205 conftest$ac_exeext conftest.$ac_ext
18206LIBS=$ac_check_lib_save_LIBS
18207fi
18208{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18209echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18210if test $ac_cv_lib_gcc__alloca = yes; then
18211
18212cat >>confdefs.h <<\_ACEOF
18213#define HAVE__ALLOCA 1
18214_ACEOF
18215
18216fi
18217
18218 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18219echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18220if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18222else
18223 ac_check_lib_save_LIBS=$LIBS
18224LIBS="-lgcc $LIBS"
18225cat >conftest.$ac_ext <<_ACEOF
18226/* confdefs.h. */
18227_ACEOF
18228cat confdefs.h >>conftest.$ac_ext
18229cat >>conftest.$ac_ext <<_ACEOF
18230/* end confdefs.h. */
18231
18232/* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18235#ifdef __cplusplus
18236extern "C"
18237#endif
18238char __alloca ();
18239int
18240main ()
18241{
18242return __alloca ();
18243 ;
18244 return 0;
18245}
18246_ACEOF
18247rm -f conftest.$ac_objext conftest$ac_exeext
18248if { (ac_try="$ac_link"
18249case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252esac
18253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_link") 2>conftest.er1
18255 ac_status=$?
18256 grep -v '^ *+' conftest.er1 >conftest.err
18257 rm -f conftest.er1
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } &&
18261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18262 { (case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265esac
18266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_try") 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; } &&
18271 { ac_try='test -s conftest$ac_exeext'
18272 { (case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18275esac
18276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_try") 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_lib_gcc___alloca=yes
18282else
18283 echo "$as_me: failed program was:" >&5
18284sed 's/^/| /' conftest.$ac_ext >&5
18285
18286 ac_cv_lib_gcc___alloca=no
18287fi
18288
18289rm -f core conftest.err conftest.$ac_objext \
18290 conftest$ac_exeext conftest.$ac_ext
18291LIBS=$ac_check_lib_save_LIBS
18292fi
18293{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18294echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18295if test $ac_cv_lib_gcc___alloca = yes; then
18296
18297cat >>confdefs.h <<\_ACEOF
18298#define HAVE___ALLOCA 1
18299_ACEOF
18300
18301fi
18302
18303 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18304echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18305if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18307else
18308 ac_check_lib_save_LIBS=$LIBS
18309LIBS="-lgcc $LIBS"
18310cat >conftest.$ac_ext <<_ACEOF
18311/* confdefs.h. */
18312_ACEOF
18313cat confdefs.h >>conftest.$ac_ext
18314cat >>conftest.$ac_ext <<_ACEOF
18315/* end confdefs.h. */
18316
18317/* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18320#ifdef __cplusplus
18321extern "C"
18322#endif
18323char __chkstk ();
18324int
18325main ()
18326{
18327return __chkstk ();
18328 ;
18329 return 0;
18330}
18331_ACEOF
18332rm -f conftest.$ac_objext conftest$ac_exeext
18333if { (ac_try="$ac_link"
18334case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18337esac
18338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_link") 2>conftest.er1
18340 ac_status=$?
18341 grep -v '^ *+' conftest.er1 >conftest.err
18342 rm -f conftest.er1
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } &&
18346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18347 { (case "(($ac_try" in
18348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349 *) ac_try_echo=$ac_try;;
18350esac
18351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352 (eval "$ac_try") 2>&5
18353 ac_status=$?
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; } &&
18356 { ac_try='test -s conftest$ac_exeext'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18360esac
18361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 ac_cv_lib_gcc___chkstk=yes
18367else
18368 echo "$as_me: failed program was:" >&5
18369sed 's/^/| /' conftest.$ac_ext >&5
18370
18371 ac_cv_lib_gcc___chkstk=no
18372fi
18373
18374rm -f core conftest.err conftest.$ac_objext \
18375 conftest$ac_exeext conftest.$ac_ext
18376LIBS=$ac_check_lib_save_LIBS
18377fi
18378{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18379echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18380if test $ac_cv_lib_gcc___chkstk = yes; then
18381
18382cat >>confdefs.h <<\_ACEOF
18383#define HAVE___CHKSTK 1
18384_ACEOF
18385
18386fi
18387
18388 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18389echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18390if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18392else
18393 ac_check_lib_save_LIBS=$LIBS
18394LIBS="-lgcc $LIBS"
18395cat >conftest.$ac_ext <<_ACEOF
18396/* confdefs.h. */
18397_ACEOF
18398cat confdefs.h >>conftest.$ac_ext
18399cat >>conftest.$ac_ext <<_ACEOF
18400/* end confdefs.h. */
18401
18402/* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18405#ifdef __cplusplus
18406extern "C"
18407#endif
18408char ___chkstk ();
18409int
18410main ()
18411{
18412return ___chkstk ();
18413 ;
18414 return 0;
18415}
18416_ACEOF
18417rm -f conftest.$ac_objext conftest$ac_exeext
18418if { (ac_try="$ac_link"
18419case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18422esac
18423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_link") 2>conftest.er1
18425 ac_status=$?
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18432 { (case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18435esac
18436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_try") 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest$ac_exeext'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_lib_gcc____chkstk=yes
18452else
18453 echo "$as_me: failed program was:" >&5
18454sed 's/^/| /' conftest.$ac_ext >&5
18455
18456 ac_cv_lib_gcc____chkstk=no
18457fi
18458
18459rm -f core conftest.err conftest.$ac_objext \
18460 conftest$ac_exeext conftest.$ac_ext
18461LIBS=$ac_check_lib_save_LIBS
18462fi
18463{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18464echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18465if test $ac_cv_lib_gcc____chkstk = yes; then
18466
18467cat >>confdefs.h <<\_ACEOF
18468#define HAVE____CHKSTK 1
18469_ACEOF
18470
18471fi
18472
18473
18474 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18475echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18476if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18478else
18479 ac_check_lib_save_LIBS=$LIBS
18480LIBS="-lgcc $LIBS"
18481cat >conftest.$ac_ext <<_ACEOF
18482/* confdefs.h. */
18483_ACEOF
18484cat confdefs.h >>conftest.$ac_ext
18485cat >>conftest.$ac_ext <<_ACEOF
18486/* end confdefs.h. */
18487
18488/* Override any GCC internal prototype to avoid an error.
18489 Use char because int might match the return type of a GCC
18490 builtin and then its argument prototype would still apply. */
18491#ifdef __cplusplus
18492extern "C"
18493#endif
18494char __ashldi3 ();
18495int
18496main ()
18497{
18498return __ashldi3 ();
18499 ;
18500 return 0;
18501}
18502_ACEOF
18503rm -f conftest.$ac_objext conftest$ac_exeext
18504if { (ac_try="$ac_link"
18505case "(($ac_try" in
18506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507 *) ac_try_echo=$ac_try;;
18508esac
18509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510 (eval "$ac_link") 2>conftest.er1
18511 ac_status=$?
18512 grep -v '^ *+' conftest.er1 >conftest.err
18513 rm -f conftest.er1
18514 cat conftest.err >&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } &&
18517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18518 { (case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521esac
18522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_try") 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest$ac_exeext'
18528 { (case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531esac
18532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_try") 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_cv_lib_gcc___ashldi3=yes
18538else
18539 echo "$as_me: failed program was:" >&5
18540sed 's/^/| /' conftest.$ac_ext >&5
18541
18542 ac_cv_lib_gcc___ashldi3=no
18543fi
18544
18545rm -f core conftest.err conftest.$ac_objext \
18546 conftest$ac_exeext conftest.$ac_ext
18547LIBS=$ac_check_lib_save_LIBS
18548fi
18549{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18550echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18551if test $ac_cv_lib_gcc___ashldi3 = yes; then
18552
18553cat >>confdefs.h <<\_ACEOF
18554#define HAVE___ASHLDI3 1
18555_ACEOF
18556
18557fi
18558
18559 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18560echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18561if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563else
18564 ac_check_lib_save_LIBS=$LIBS
18565LIBS="-lgcc $LIBS"
18566cat >conftest.$ac_ext <<_ACEOF
18567/* confdefs.h. */
18568_ACEOF
18569cat confdefs.h >>conftest.$ac_ext
18570cat >>conftest.$ac_ext <<_ACEOF
18571/* end confdefs.h. */
18572
18573/* Override any GCC internal prototype to avoid an error.
18574 Use char because int might match the return type of a GCC
18575 builtin and then its argument prototype would still apply. */
18576#ifdef __cplusplus
18577extern "C"
18578#endif
18579char __ashrdi3 ();
18580int
18581main ()
18582{
18583return __ashrdi3 ();
18584 ;
18585 return 0;
18586}
18587_ACEOF
18588rm -f conftest.$ac_objext conftest$ac_exeext
18589if { (ac_try="$ac_link"
18590case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18593esac
18594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_link") 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
18602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18603 { (case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18606esac
18607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_try") 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest$ac_exeext'
18613 { (case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18616esac
18617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_try") 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; }; then
18622 ac_cv_lib_gcc___ashrdi3=yes
18623else
18624 echo "$as_me: failed program was:" >&5
18625sed 's/^/| /' conftest.$ac_ext >&5
18626
18627 ac_cv_lib_gcc___ashrdi3=no
18628fi
18629
18630rm -f core conftest.err conftest.$ac_objext \
18631 conftest$ac_exeext conftest.$ac_ext
18632LIBS=$ac_check_lib_save_LIBS
18633fi
18634{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18635echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18636if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18637
18638cat >>confdefs.h <<\_ACEOF
18639#define HAVE___ASHRDI3 1
18640_ACEOF
18641
18642fi
18643
18644 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18645echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18646if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18648else
18649 ac_check_lib_save_LIBS=$LIBS
18650LIBS="-lgcc $LIBS"
18651cat >conftest.$ac_ext <<_ACEOF
18652/* confdefs.h. */
18653_ACEOF
18654cat confdefs.h >>conftest.$ac_ext
18655cat >>conftest.$ac_ext <<_ACEOF
18656/* end confdefs.h. */
18657
18658/* Override any GCC internal prototype to avoid an error.
18659 Use char because int might match the return type of a GCC
18660 builtin and then its argument prototype would still apply. */
18661#ifdef __cplusplus
18662extern "C"
18663#endif
18664char __divdi3 ();
18665int
18666main ()
18667{
18668return __divdi3 ();
18669 ;
18670 return 0;
18671}
18672_ACEOF
18673rm -f conftest.$ac_objext conftest$ac_exeext
18674if { (ac_try="$ac_link"
18675case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18678esac
18679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_link") 2>conftest.er1
18681 ac_status=$?
18682 grep -v '^ *+' conftest.er1 >conftest.err
18683 rm -f conftest.er1
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } &&
18687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18688 { (case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691esac
18692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_try") 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest$ac_exeext'
18698 { (case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18701esac
18702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_try") 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 ac_cv_lib_gcc___divdi3=yes
18708else
18709 echo "$as_me: failed program was:" >&5
18710sed 's/^/| /' conftest.$ac_ext >&5
18711
18712 ac_cv_lib_gcc___divdi3=no
18713fi
18714
18715rm -f core conftest.err conftest.$ac_objext \
18716 conftest$ac_exeext conftest.$ac_ext
18717LIBS=$ac_check_lib_save_LIBS
18718fi
18719{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18720echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18721if test $ac_cv_lib_gcc___divdi3 = yes; then
18722
18723cat >>confdefs.h <<\_ACEOF
18724#define HAVE___DIVDI3 1
18725_ACEOF
18726
18727fi
18728
18729 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18730echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18731if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18733else
18734 ac_check_lib_save_LIBS=$LIBS
18735LIBS="-lgcc $LIBS"
18736cat >conftest.$ac_ext <<_ACEOF
18737/* confdefs.h. */
18738_ACEOF
18739cat confdefs.h >>conftest.$ac_ext
18740cat >>conftest.$ac_ext <<_ACEOF
18741/* end confdefs.h. */
18742
18743/* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18746#ifdef __cplusplus
18747extern "C"
18748#endif
18749char __fixdfdi ();
18750int
18751main ()
18752{
18753return __fixdfdi ();
18754 ;
18755 return 0;
18756}
18757_ACEOF
18758rm -f conftest.$ac_objext conftest$ac_exeext
18759if { (ac_try="$ac_link"
18760case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763esac
18764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_link") 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
18772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18773 { (case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18776esac
18777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_try") 2>&5
18779 ac_status=$?
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; } &&
18782 { ac_try='test -s conftest$ac_exeext'
18783 { (case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18786esac
18787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_try") 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; }; then
18792 ac_cv_lib_gcc___fixdfdi=yes
18793else
18794 echo "$as_me: failed program was:" >&5
18795sed 's/^/| /' conftest.$ac_ext >&5
18796
18797 ac_cv_lib_gcc___fixdfdi=no
18798fi
18799
18800rm -f core conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802LIBS=$ac_check_lib_save_LIBS
18803fi
18804{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18805echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18806if test $ac_cv_lib_gcc___fixdfdi = yes; then
18807
18808cat >>confdefs.h <<\_ACEOF
18809#define HAVE___FIXDFDI 1
18810_ACEOF
18811
18812fi
18813
18814 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18815echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18816if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18818else
18819 ac_check_lib_save_LIBS=$LIBS
18820LIBS="-lgcc $LIBS"
18821cat >conftest.$ac_ext <<_ACEOF
18822/* confdefs.h. */
18823_ACEOF
18824cat confdefs.h >>conftest.$ac_ext
18825cat >>conftest.$ac_ext <<_ACEOF
18826/* end confdefs.h. */
18827
18828/* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18831#ifdef __cplusplus
18832extern "C"
18833#endif
18834char __fixsfdi ();
18835int
18836main ()
18837{
18838return __fixsfdi ();
18839 ;
18840 return 0;
18841}
18842_ACEOF
18843rm -f conftest.$ac_objext conftest$ac_exeext
18844if { (ac_try="$ac_link"
18845case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18848esac
18849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850 (eval "$ac_link") 2>conftest.er1
18851 ac_status=$?
18852 grep -v '^ *+' conftest.er1 >conftest.err
18853 rm -f conftest.er1
18854 cat conftest.err >&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } &&
18857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18858 { (case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18861esac
18862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863 (eval "$ac_try") 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; } &&
18867 { ac_try='test -s conftest$ac_exeext'
18868 { (case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18871esac
18872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_try") 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; }; then
18877 ac_cv_lib_gcc___fixsfdi=yes
18878else
18879 echo "$as_me: failed program was:" >&5
18880sed 's/^/| /' conftest.$ac_ext >&5
18881
18882 ac_cv_lib_gcc___fixsfdi=no
18883fi
18884
18885rm -f core conftest.err conftest.$ac_objext \
18886 conftest$ac_exeext conftest.$ac_ext
18887LIBS=$ac_check_lib_save_LIBS
18888fi
18889{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18890echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18891if test $ac_cv_lib_gcc___fixsfdi = yes; then
18892
18893cat >>confdefs.h <<\_ACEOF
18894#define HAVE___FIXSFDI 1
18895_ACEOF
18896
18897fi
18898
18899 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18900echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18901if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18903else
18904 ac_check_lib_save_LIBS=$LIBS
18905LIBS="-lgcc $LIBS"
18906cat >conftest.$ac_ext <<_ACEOF
18907/* confdefs.h. */
18908_ACEOF
18909cat confdefs.h >>conftest.$ac_ext
18910cat >>conftest.$ac_ext <<_ACEOF
18911/* end confdefs.h. */
18912
18913/* Override any GCC internal prototype to avoid an error.
18914 Use char because int might match the return type of a GCC
18915 builtin and then its argument prototype would still apply. */
18916#ifdef __cplusplus
18917extern "C"
18918#endif
18919char __floatdidf ();
18920int
18921main ()
18922{
18923return __floatdidf ();
18924 ;
18925 return 0;
18926}
18927_ACEOF
18928rm -f conftest.$ac_objext conftest$ac_exeext
18929if { (ac_try="$ac_link"
18930case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18933esac
18934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_link") 2>conftest.er1
18936 ac_status=$?
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -f conftest.er1
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18943 { (case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18946esac
18947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_try") 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; } &&
18952 { ac_try='test -s conftest$ac_exeext'
18953 { (case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18956esac
18957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_try") 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_cv_lib_gcc___floatdidf=yes
18963else
18964 echo "$as_me: failed program was:" >&5
18965sed 's/^/| /' conftest.$ac_ext >&5
18966
18967 ac_cv_lib_gcc___floatdidf=no
18968fi
18969
18970rm -f core conftest.err conftest.$ac_objext \
18971 conftest$ac_exeext conftest.$ac_ext
18972LIBS=$ac_check_lib_save_LIBS
18973fi
18974{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18975echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18976if test $ac_cv_lib_gcc___floatdidf = yes; then
18977
18978cat >>confdefs.h <<\_ACEOF
18979#define HAVE___FLOATDIDF 1
18980_ACEOF
18981
18982fi
18983
18984 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18985echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18986if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18988else
18989 ac_check_lib_save_LIBS=$LIBS
18990LIBS="-lgcc $LIBS"
18991cat >conftest.$ac_ext <<_ACEOF
18992/* confdefs.h. */
18993_ACEOF
18994cat confdefs.h >>conftest.$ac_ext
18995cat >>conftest.$ac_ext <<_ACEOF
18996/* end confdefs.h. */
18997
18998/* Override any GCC internal prototype to avoid an error.
18999 Use char because int might match the return type of a GCC
19000 builtin and then its argument prototype would still apply. */
19001#ifdef __cplusplus
19002extern "C"
19003#endif
19004char __lshrdi3 ();
19005int
19006main ()
19007{
19008return __lshrdi3 ();
19009 ;
19010 return 0;
19011}
19012_ACEOF
19013rm -f conftest.$ac_objext conftest$ac_exeext
19014if { (ac_try="$ac_link"
19015case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018esac
19019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_link") 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031esac
19032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest$ac_exeext'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19041esac
19042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; }; then
19047 ac_cv_lib_gcc___lshrdi3=yes
19048else
19049 echo "$as_me: failed program was:" >&5
19050sed 's/^/| /' conftest.$ac_ext >&5
19051
19052 ac_cv_lib_gcc___lshrdi3=no
19053fi
19054
19055rm -f core conftest.err conftest.$ac_objext \
19056 conftest$ac_exeext conftest.$ac_ext
19057LIBS=$ac_check_lib_save_LIBS
19058fi
19059{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19060echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19061if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19062
19063cat >>confdefs.h <<\_ACEOF
19064#define HAVE___LSHRDI3 1
19065_ACEOF
19066
19067fi
19068
19069 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19070echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19071if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19073else
19074 ac_check_lib_save_LIBS=$LIBS
19075LIBS="-lgcc $LIBS"
19076cat >conftest.$ac_ext <<_ACEOF
19077/* confdefs.h. */
19078_ACEOF
19079cat confdefs.h >>conftest.$ac_ext
19080cat >>conftest.$ac_ext <<_ACEOF
19081/* end confdefs.h. */
19082
19083/* Override any GCC internal prototype to avoid an error.
19084 Use char because int might match the return type of a GCC
19085 builtin and then its argument prototype would still apply. */
19086#ifdef __cplusplus
19087extern "C"
19088#endif
19089char __moddi3 ();
19090int
19091main ()
19092{
19093return __moddi3 ();
19094 ;
19095 return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext conftest$ac_exeext
19099if { (ac_try="$ac_link"
19100case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_link") 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19113 { (case "(($ac_try" in
19114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115 *) ac_try_echo=$ac_try;;
19116esac
19117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118 (eval "$ac_try") 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; } &&
19122 { ac_try='test -s conftest$ac_exeext'
19123 { (case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126esac
19127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_try") 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 ac_cv_lib_gcc___moddi3=yes
19133else
19134 echo "$as_me: failed program was:" >&5
19135sed 's/^/| /' conftest.$ac_ext >&5
19136
19137 ac_cv_lib_gcc___moddi3=no
19138fi
19139
19140rm -f core conftest.err conftest.$ac_objext \
19141 conftest$ac_exeext conftest.$ac_ext
19142LIBS=$ac_check_lib_save_LIBS
19143fi
19144{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19145echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19146if test $ac_cv_lib_gcc___moddi3 = yes; then
19147
19148cat >>confdefs.h <<\_ACEOF
19149#define HAVE___MODDI3 1
19150_ACEOF
19151
19152fi
19153
19154 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19155echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19156if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19158else
19159 ac_check_lib_save_LIBS=$LIBS
19160LIBS="-lgcc $LIBS"
19161cat >conftest.$ac_ext <<_ACEOF
19162/* confdefs.h. */
19163_ACEOF
19164cat confdefs.h >>conftest.$ac_ext
19165cat >>conftest.$ac_ext <<_ACEOF
19166/* end confdefs.h. */
19167
19168/* Override any GCC internal prototype to avoid an error.
19169 Use char because int might match the return type of a GCC
19170 builtin and then its argument prototype would still apply. */
19171#ifdef __cplusplus
19172extern "C"
19173#endif
19174char __udivdi3 ();
19175int
19176main ()
19177{
19178return __udivdi3 ();
19179 ;
19180 return 0;
19181}
19182_ACEOF
19183rm -f conftest.$ac_objext conftest$ac_exeext
19184if { (ac_try="$ac_link"
19185case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19188esac
19189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_link") 2>conftest.er1
19191 ac_status=$?
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19198 { (case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19201esac
19202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_try") 2>&5
19204 ac_status=$?
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; } &&
19207 { ac_try='test -s conftest$ac_exeext'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19211esac
19212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
19217 ac_cv_lib_gcc___udivdi3=yes
19218else
19219 echo "$as_me: failed program was:" >&5
19220sed 's/^/| /' conftest.$ac_ext >&5
19221
19222 ac_cv_lib_gcc___udivdi3=no
19223fi
19224
19225rm -f core conftest.err conftest.$ac_objext \
19226 conftest$ac_exeext conftest.$ac_ext
19227LIBS=$ac_check_lib_save_LIBS
19228fi
19229{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19230echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19231if test $ac_cv_lib_gcc___udivdi3 = yes; then
19232
19233cat >>confdefs.h <<\_ACEOF
19234#define HAVE___UDIVDI3 1
19235_ACEOF
19236
19237fi
19238
19239 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19240echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19241if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19243else
19244 ac_check_lib_save_LIBS=$LIBS
19245LIBS="-lgcc $LIBS"
19246cat >conftest.$ac_ext <<_ACEOF
19247/* confdefs.h. */
19248_ACEOF
19249cat confdefs.h >>conftest.$ac_ext
19250cat >>conftest.$ac_ext <<_ACEOF
19251/* end confdefs.h. */
19252
19253/* Override any GCC internal prototype to avoid an error.
19254 Use char because int might match the return type of a GCC
19255 builtin and then its argument prototype would still apply. */
19256#ifdef __cplusplus
19257extern "C"
19258#endif
19259char __umoddi3 ();
19260int
19261main ()
19262{
19263return __umoddi3 ();
19264 ;
19265 return 0;
19266}
19267_ACEOF
19268rm -f conftest.$ac_objext conftest$ac_exeext
19269if { (ac_try="$ac_link"
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_link") 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_exeext'
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 ac_cv_lib_gcc___umoddi3=yes
19303else
19304 echo "$as_me: failed program was:" >&5
19305sed 's/^/| /' conftest.$ac_ext >&5
19306
19307 ac_cv_lib_gcc___umoddi3=no
19308fi
19309
19310rm -f core conftest.err conftest.$ac_objext \
19311 conftest$ac_exeext conftest.$ac_ext
19312LIBS=$ac_check_lib_save_LIBS
19313fi
19314{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19315echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19316if test $ac_cv_lib_gcc___umoddi3 = yes; then
19317
19318cat >>confdefs.h <<\_ACEOF
19319#define HAVE___UMODDI3 1
19320_ACEOF
19321
19322fi
19323
19324
19325 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19326echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19327if test "${ac_cv_lib_gcc___main+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19329else
19330 ac_check_lib_save_LIBS=$LIBS
19331LIBS="-lgcc $LIBS"
19332cat >conftest.$ac_ext <<_ACEOF
19333/* confdefs.h. */
19334_ACEOF
19335cat confdefs.h >>conftest.$ac_ext
19336cat >>conftest.$ac_ext <<_ACEOF
19337/* end confdefs.h. */
19338
19339/* Override any GCC internal prototype to avoid an error.
19340 Use char because int might match the return type of a GCC
19341 builtin and then its argument prototype would still apply. */
19342#ifdef __cplusplus
19343extern "C"
19344#endif
19345char __main ();
19346int
19347main ()
19348{
19349return __main ();
19350 ;
19351 return 0;
19352}
19353_ACEOF
19354rm -f conftest.$ac_objext conftest$ac_exeext
19355if { (ac_try="$ac_link"
19356case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19359esac
19360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_link") 2>conftest.er1
19362 ac_status=$?
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
19368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19369 { (case "(($ac_try" in
19370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371 *) ac_try_echo=$ac_try;;
19372esac
19373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374 (eval "$ac_try") 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest$ac_exeext'
19379 { (case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19382esac
19383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_try") 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_cv_lib_gcc___main=yes
19389else
19390 echo "$as_me: failed program was:" >&5
19391sed 's/^/| /' conftest.$ac_ext >&5
19392
19393 ac_cv_lib_gcc___main=no
19394fi
19395
19396rm -f core conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19398LIBS=$ac_check_lib_save_LIBS
19399fi
19400{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19401echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19402if test $ac_cv_lib_gcc___main = yes; then
19403
19404cat >>confdefs.h <<\_ACEOF
19405#define HAVE___MAIN 1
19406_ACEOF
19407
19408fi
19409
19410 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19411echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19412if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19414else
19415 ac_check_lib_save_LIBS=$LIBS
19416LIBS="-lgcc $LIBS"
19417cat >conftest.$ac_ext <<_ACEOF
19418/* confdefs.h. */
19419_ACEOF
19420cat confdefs.h >>conftest.$ac_ext
19421cat >>conftest.$ac_ext <<_ACEOF
19422/* end confdefs.h. */
19423
19424/* Override any GCC internal prototype to avoid an error.
19425 Use char because int might match the return type of a GCC
19426 builtin and then its argument prototype would still apply. */
19427#ifdef __cplusplus
19428extern "C"
19429#endif
19430char __cmpdi2 ();
19431int
19432main ()
19433{
19434return __cmpdi2 ();
19435 ;
19436 return 0;
19437}
19438_ACEOF
19439rm -f conftest.$ac_objext conftest$ac_exeext
19440if { (ac_try="$ac_link"
19441case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444esac
19445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_link") 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19454 { (case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457esac
19458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_try") 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest$ac_exeext'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19467esac
19468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; }; then
19473 ac_cv_lib_gcc___cmpdi2=yes
19474else
19475 echo "$as_me: failed program was:" >&5
19476sed 's/^/| /' conftest.$ac_ext >&5
19477
19478 ac_cv_lib_gcc___cmpdi2=no
19479fi
19480
19481rm -f core conftest.err conftest.$ac_objext \
19482 conftest$ac_exeext conftest.$ac_ext
19483LIBS=$ac_check_lib_save_LIBS
19484fi
19485{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19486echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19487if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19488
19489cat >>confdefs.h <<\_ACEOF
19490#define HAVE___CMPDI2 1
19491_ACEOF
19492
19493fi
19494
19495fi
19496
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019497if test "$llvm_cv_os_type" = "MingW" ; then
19498 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19499echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19500 cat >conftest.$ac_ext <<_ACEOF
19501#include <windows.h>
19502#include <imagehlp.h>
19503extern void foo(PENUMLOADED_MODULES_CALLBACK);
19504extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19505_ACEOF
19506rm -f conftest.$ac_objext
19507if { (ac_try="$ac_compile"
19508case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19511esac
19512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_compile") 2>conftest.er1
19514 ac_status=$?
19515 grep -v '^ *+' conftest.er1 >conftest.err
19516 rm -f conftest.er1
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } &&
19520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19521 { (case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19524esac
19525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526 (eval "$ac_try") 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; } &&
19530 { ac_try='test -s conftest.$ac_objext'
19531 { (case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19534esac
19535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_try") 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19540
19541 { echo "$as_me:$LINENO: result: yes" >&5
19542echo "${ECHO_T}yes" >&6; }
19543 llvm_cv_win32_elmcb_pcstr="PCSTR"
19544
19545else
19546 echo "$as_me: failed program was:" >&5
19547sed 's/^/| /' conftest.$ac_ext >&5
19548
19549
19550 { echo "$as_me:$LINENO: result: no" >&5
19551echo "${ECHO_T}no" >&6; }
19552 llvm_cv_win32_elmcb_pcstr="PSTR"
19553
19554fi
19555
19556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19557
19558cat >>confdefs.h <<_ACEOF
19559#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19560_ACEOF
19561
19562fi
19563
Torok Edwin871384f2010-01-26 08:50:50 +000019564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019565{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19566echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19567if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019569else
Reid Spencera773bd52006-08-04 18:18:08 +000019570 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019571ac_cpp='$CXXCPP $CPPFLAGS'
19572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019576 cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019581/* end confdefs.h. */
19582#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019583int
19584main ()
19585{
19586float f; isnan(f);
19587 ;
19588 return 0;
19589}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019590_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019591rm -f conftest.$ac_objext
19592if { (ac_try="$ac_compile"
19593case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19596esac
19597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_compile") 2>conftest.er1
19599 ac_status=$?
19600 grep -v '^ *+' conftest.er1 >conftest.err
19601 rm -f conftest.er1
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
19605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19606 { (case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19609esac
19610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_try") 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619esac
19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019625 ac_cv_func_isnan_in_math_h=yes
19626else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019627 echo "$as_me: failed program was:" >&5
19628sed 's/^/| /' conftest.$ac_ext >&5
19629
19630 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019632
Reid Spencera773bd52006-08-04 18:18:08 +000019633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019634 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019635ac_cpp='$CPP $CPPFLAGS'
19636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638ac_compiler_gnu=$ac_cv_c_compiler_gnu
19639
19640fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019641{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19642echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019643
19644
19645if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019647cat >>confdefs.h <<\_ACEOF
19648#define HAVE_ISNAN_IN_MATH_H 1
19649_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019650
Reid Spencerabec8f92004-10-27 23:03:44 +000019651fi
19652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019653{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19654echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19655if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019657else
Reid Spencera773bd52006-08-04 18:18:08 +000019658 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019659ac_cpp='$CXXCPP $CPPFLAGS'
19660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019664 cat >conftest.$ac_ext <<_ACEOF
19665/* confdefs.h. */
19666_ACEOF
19667cat confdefs.h >>conftest.$ac_ext
19668cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019669/* end confdefs.h. */
19670#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019671int
19672main ()
19673{
19674float f; isnan(f);
19675 ;
19676 return 0;
19677}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019678_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019679rm -f conftest.$ac_objext
19680if { (ac_try="$ac_compile"
19681case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19684esac
19685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_compile") 2>conftest.er1
19687 ac_status=$?
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19697esac
19698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try='test -s conftest.$ac_objext'
19704 { (case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19707esac
19708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_try") 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019713 ac_cv_func_isnan_in_cmath=yes
19714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019715 echo "$as_me: failed program was:" >&5
19716sed 's/^/| /' conftest.$ac_ext >&5
19717
19718 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019720
Reid Spencera773bd52006-08-04 18:18:08 +000019721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019722 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019723ac_cpp='$CPP $CPPFLAGS'
19724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726ac_compiler_gnu=$ac_cv_c_compiler_gnu
19727
19728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019729{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19730echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019731
19732if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019734cat >>confdefs.h <<\_ACEOF
19735#define HAVE_ISNAN_IN_CMATH 1
19736_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019737
Reid Spencerabec8f92004-10-27 23:03:44 +000019738fi
19739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019740{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19741echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19742if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019744else
Reid Spencera773bd52006-08-04 18:18:08 +000019745 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019746ac_cpp='$CXXCPP $CPPFLAGS'
19747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019751 cat >conftest.$ac_ext <<_ACEOF
19752/* confdefs.h. */
19753_ACEOF
19754cat confdefs.h >>conftest.$ac_ext
19755cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019756/* end confdefs.h. */
19757#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019758int
19759main ()
19760{
19761float f; std::isnan(f);
19762 ;
19763 return 0;
19764}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019765_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019766rm -f conftest.$ac_objext
19767if { (ac_try="$ac_compile"
19768case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19771esac
19772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_compile") 2>conftest.er1
19774 ac_status=$?
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19784esac
19785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; } &&
19790 { ac_try='test -s conftest.$ac_objext'
19791 { (case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19794esac
19795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_try") 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019800 ac_cv_func_std_isnan_in_cmath=yes
19801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019802 echo "$as_me: failed program was:" >&5
19803sed 's/^/| /' conftest.$ac_ext >&5
19804
19805 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019807
Reid Spencera773bd52006-08-04 18:18:08 +000019808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019809 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019810ac_cpp='$CPP $CPPFLAGS'
19811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813ac_compiler_gnu=$ac_cv_c_compiler_gnu
19814
19815fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019816{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19817echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019818
19819if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019821cat >>confdefs.h <<\_ACEOF
19822#define HAVE_STD_ISNAN_IN_CMATH 1
19823_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019824
Reid Spencerabec8f92004-10-27 23:03:44 +000019825fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019826
19827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019828{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19829echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19830if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019832else
Reid Spencera773bd52006-08-04 18:18:08 +000019833 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019834ac_cpp='$CXXCPP $CPPFLAGS'
19835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019839 cat >conftest.$ac_ext <<_ACEOF
19840/* confdefs.h. */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019844/* end confdefs.h. */
19845#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019846int
19847main ()
19848{
19849float f; isinf(f);
19850 ;
19851 return 0;
19852}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019853_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019854rm -f conftest.$ac_objext
19855if { (ac_try="$ac_compile"
19856case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19859esac
19860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_compile") 2>conftest.er1
19862 ac_status=$?
19863 grep -v '^ *+' conftest.er1 >conftest.err
19864 rm -f conftest.er1
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } &&
19868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19869 { (case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19872esac
19873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_try") 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (case "(($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_try") 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019888 ac_cv_func_isinf_in_math_h=yes
19889else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019890 echo "$as_me: failed program was:" >&5
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019895
Reid Spencera773bd52006-08-04 18:18:08 +000019896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019897 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019898ac_cpp='$CPP $CPPFLAGS'
19899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19901ac_compiler_gnu=$ac_cv_c_compiler_gnu
19902
19903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019904{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19905echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019906
19907if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019909cat >>confdefs.h <<\_ACEOF
19910#define HAVE_ISINF_IN_MATH_H 1
19911_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019912
Reid Spencerabec8f92004-10-27 23:03:44 +000019913fi
19914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019915{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19916echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19917if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019919else
Reid Spencera773bd52006-08-04 18:18:08 +000019920 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019921ac_cpp='$CXXCPP $CPPFLAGS'
19922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019926 cat >conftest.$ac_ext <<_ACEOF
19927/* confdefs.h. */
19928_ACEOF
19929cat confdefs.h >>conftest.$ac_ext
19930cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019931/* end confdefs.h. */
19932#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019933int
19934main ()
19935{
19936float f; isinf(f);
19937 ;
19938 return 0;
19939}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019940_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019941rm -f conftest.$ac_objext
19942if { (ac_try="$ac_compile"
19943case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946esac
19947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_compile") 2>conftest.er1
19949 ac_status=$?
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19956 { (case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19959esac
19960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_try") 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try='test -s conftest.$ac_objext'
19966 { (case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19969esac
19970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_try") 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019975 ac_cv_func_isinf_in_cmath=yes
19976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019977 echo "$as_me: failed program was:" >&5
19978sed 's/^/| /' conftest.$ac_ext >&5
19979
19980 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019982
Reid Spencera773bd52006-08-04 18:18:08 +000019983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019984 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019985ac_cpp='$CPP $CPPFLAGS'
19986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19988ac_compiler_gnu=$ac_cv_c_compiler_gnu
19989
19990fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019991{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19992echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019993
19994if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019996cat >>confdefs.h <<\_ACEOF
19997#define HAVE_ISINF_IN_CMATH 1
19998_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019999
Reid Spencerabec8f92004-10-27 23:03:44 +000020000fi
20001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020002{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20003echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20004if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020006else
Reid Spencera773bd52006-08-04 18:18:08 +000020007 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020008ac_cpp='$CXXCPP $CPPFLAGS'
20009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020013 cat >conftest.$ac_ext <<_ACEOF
20014/* confdefs.h. */
20015_ACEOF
20016cat confdefs.h >>conftest.$ac_ext
20017cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020018/* end confdefs.h. */
20019#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020020int
20021main ()
20022{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000020023float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000020024 ;
20025 return 0;
20026}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020027_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020028rm -f conftest.$ac_objext
20029if { (ac_try="$ac_compile"
20030case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20033esac
20034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_compile") 2>conftest.er1
20036 ac_status=$?
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
20042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20043 { (case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046esac
20047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_try") 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest.$ac_objext'
20053 { (case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056esac
20057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_try") 2>&5
20059 ac_status=$?
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020062 ac_cv_func_std_isinf_in_cmath=yes
20063else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020064 echo "$as_me: failed program was:" >&5
20065sed 's/^/| /' conftest.$ac_ext >&5
20066
20067 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020069
Reid Spencera773bd52006-08-04 18:18:08 +000020070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020071 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020072ac_cpp='$CPP $CPPFLAGS'
20073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075ac_compiler_gnu=$ac_cv_c_compiler_gnu
20076
20077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020078{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20079echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020080
20081if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020083cat >>confdefs.h <<\_ACEOF
20084#define HAVE_STD_ISINF_IN_CMATH 1
20085_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020086
Reid Spencerabec8f92004-10-27 23:03:44 +000020087fi
20088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020089{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20090echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20091if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020093else
Reid Spencera773bd52006-08-04 18:18:08 +000020094 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020095ac_cpp='$CXXCPP $CPPFLAGS'
20096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020100 cat >conftest.$ac_ext <<_ACEOF
20101/* confdefs.h. */
20102_ACEOF
20103cat confdefs.h >>conftest.$ac_ext
20104cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020105/* end confdefs.h. */
20106#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020107int
20108main ()
20109{
20110float f; finite(f);
20111 ;
20112 return 0;
20113}
Brian Gaeked59a6472004-07-21 03:33:58 +000020114_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020115rm -f conftest.$ac_objext
20116if { (ac_try="$ac_compile"
20117case "(($ac_try" in
20118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119 *) ac_try_echo=$ac_try;;
20120esac
20121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122 (eval "$ac_compile") 2>conftest.er1
20123 ac_status=$?
20124 grep -v '^ *+' conftest.er1 >conftest.err
20125 rm -f conftest.er1
20126 cat conftest.err >&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } &&
20129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20130 { (case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20133esac
20134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_try") 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; } &&
20139 { ac_try='test -s conftest.$ac_objext'
20140 { (case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143esac
20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_try") 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020149 ac_cv_func_finite_in_ieeefp_h=yes
20150else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020151 echo "$as_me: failed program was:" >&5
20152sed 's/^/| /' conftest.$ac_ext >&5
20153
20154 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020156
Reid Spencera773bd52006-08-04 18:18:08 +000020157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020158 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020159ac_cpp='$CPP $CPPFLAGS'
20160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20162ac_compiler_gnu=$ac_cv_c_compiler_gnu
20163
20164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020165{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20166echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020167
Brian Gaeke6802b552004-10-28 05:06:45 +000020168if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020170cat >>confdefs.h <<\_ACEOF
20171#define HAVE_FINITE_IN_IEEEFP_H 1
20172_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020173
Reid Spencerabec8f92004-10-27 23:03:44 +000020174fi
20175
20176
20177
Reid Spencer30fe5262007-01-20 07:48:49 +000020178if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020179
20180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020181for ac_header in stdlib.h unistd.h
20182do
20183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20189fi
20190ac_res=`eval echo '${'$as_ac_Header'}'`
20191 { echo "$as_me:$LINENO: result: $ac_res" >&5
20192echo "${ECHO_T}$ac_res" >&6; }
20193else
20194 # Is the header compilable?
20195{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20197cat >conftest.$ac_ext <<_ACEOF
20198/* confdefs.h. */
20199_ACEOF
20200cat confdefs.h >>conftest.$ac_ext
20201cat >>conftest.$ac_ext <<_ACEOF
20202/* end confdefs.h. */
20203$ac_includes_default
20204#include <$ac_header>
20205_ACEOF
20206rm -f conftest.$ac_objext
20207if { (ac_try="$ac_compile"
20208case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211esac
20212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_compile") 2>conftest.er1
20214 ac_status=$?
20215 grep -v '^ *+' conftest.er1 >conftest.err
20216 rm -f conftest.er1
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } &&
20220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20221 { (case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224esac
20225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; } &&
20230 { ac_try='test -s conftest.$ac_objext'
20231 { (case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234esac
20235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_try") 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 ac_header_compiler=yes
20241else
20242 echo "$as_me: failed program was:" >&5
20243sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020245 ac_header_compiler=no
20246fi
20247
20248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20249{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20250echo "${ECHO_T}$ac_header_compiler" >&6; }
20251
20252# Is the header present?
20253{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20255cat >conftest.$ac_ext <<_ACEOF
20256/* confdefs.h. */
20257_ACEOF
20258cat confdefs.h >>conftest.$ac_ext
20259cat >>conftest.$ac_ext <<_ACEOF
20260/* end confdefs.h. */
20261#include <$ac_header>
20262_ACEOF
20263if { (ac_try="$ac_cpp conftest.$ac_ext"
20264case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20267esac
20268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20270 ac_status=$?
20271 grep -v '^ *+' conftest.er1 >conftest.err
20272 rm -f conftest.er1
20273 cat conftest.err >&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } >/dev/null; then
20276 if test -s conftest.err; then
20277 ac_cpp_err=$ac_c_preproc_warn_flag
20278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20279 else
20280 ac_cpp_err=
20281 fi
20282else
20283 ac_cpp_err=yes
20284fi
20285if test -z "$ac_cpp_err"; then
20286 ac_header_preproc=yes
20287else
20288 echo "$as_me: failed program was:" >&5
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
20291 ac_header_preproc=no
20292fi
20293
20294rm -f conftest.err conftest.$ac_ext
20295{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20296echo "${ECHO_T}$ac_header_preproc" >&6; }
20297
20298# So? What about this header?
20299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20300 yes:no: )
20301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20305 ac_header_preproc=yes
20306 ;;
20307 no:yes:* )
20308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20315echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20320 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020321## ------------------------------------ ##
20322## Report this to http://llvm.org/bugs/ ##
20323## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020324_ASBOX
20325 ) | sed "s/^/$as_me: WARNING: /" >&2
20326 ;;
20327esac
20328{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20332else
20333 eval "$as_ac_Header=\$ac_header_preproc"
20334fi
20335ac_res=`eval echo '${'$as_ac_Header'}'`
20336 { echo "$as_me:$LINENO: result: $ac_res" >&5
20337echo "${ECHO_T}$ac_res" >&6; }
20338
20339fi
20340if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020341 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020343_ACEOF
20344
20345fi
20346
20347done
20348
20349
20350for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020351do
20352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20353{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20355if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20357else
20358 cat >conftest.$ac_ext <<_ACEOF
20359/* confdefs.h. */
20360_ACEOF
20361cat confdefs.h >>conftest.$ac_ext
20362cat >>conftest.$ac_ext <<_ACEOF
20363/* end confdefs.h. */
20364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20366#define $ac_func innocuous_$ac_func
20367
20368/* System header to define __stub macros and hopefully few prototypes,
20369 which can conflict with char $ac_func (); below.
20370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20371 <limits.h> exists even on freestanding compilers. */
20372
20373#ifdef __STDC__
20374# include <limits.h>
20375#else
20376# include <assert.h>
20377#endif
20378
20379#undef $ac_func
20380
20381/* Override any GCC internal prototype to avoid an error.
20382 Use char because int might match the return type of a GCC
20383 builtin and then its argument prototype would still apply. */
20384#ifdef __cplusplus
20385extern "C"
20386#endif
20387char $ac_func ();
20388/* The GNU C library defines this for functions which it implements
20389 to always fail with ENOSYS. Some functions are actually named
20390 something starting with __ and the normal name is an alias. */
20391#if defined __stub_$ac_func || defined __stub___$ac_func
20392choke me
20393#endif
20394
20395int
20396main ()
20397{
20398return $ac_func ();
20399 ;
20400 return 0;
20401}
20402_ACEOF
20403rm -f conftest.$ac_objext conftest$ac_exeext
20404if { (ac_try="$ac_link"
20405case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408esac
20409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_link") 2>conftest.er1
20411 ac_status=$?
20412 grep -v '^ *+' conftest.er1 >conftest.err
20413 rm -f conftest.er1
20414 cat conftest.err >&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); } &&
20417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20418 { (case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421esac
20422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_try") 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; } &&
20427 { ac_try='test -s conftest$ac_exeext'
20428 { (case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20431esac
20432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_try") 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437 eval "$as_ac_var=yes"
20438else
20439 echo "$as_me: failed program was:" >&5
20440sed 's/^/| /' conftest.$ac_ext >&5
20441
20442 eval "$as_ac_var=no"
20443fi
20444
20445rm -f core conftest.err conftest.$ac_objext \
20446 conftest$ac_exeext conftest.$ac_ext
20447fi
20448ac_res=`eval echo '${'$as_ac_var'}'`
20449 { echo "$as_me:$LINENO: result: $ac_res" >&5
20450echo "${ECHO_T}$ac_res" >&6; }
20451if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020452 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020453#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020454_ACEOF
20455
20456fi
20457done
20458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020459{ echo "$as_me:$LINENO: checking for working mmap" >&5
20460echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20461if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020464 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020465 ac_cv_func_mmap_fixed_mapped=no
20466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020467 cat >conftest.$ac_ext <<_ACEOF
20468/* confdefs.h. */
20469_ACEOF
20470cat confdefs.h >>conftest.$ac_ext
20471cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020473$ac_includes_default
20474/* malloc might have been renamed as rpl_malloc. */
20475#undef malloc
20476
20477/* Thanks to Mike Haertel and Jim Avera for this test.
20478 Here is a matrix of mmap possibilities:
20479 mmap private not fixed
20480 mmap private fixed at somewhere currently unmapped
20481 mmap private fixed at somewhere already mapped
20482 mmap shared not fixed
20483 mmap shared fixed at somewhere currently unmapped
20484 mmap shared fixed at somewhere already mapped
20485 For private mappings, we should verify that changes cannot be read()
20486 back from the file, nor mmap's back from the file at a different
20487 address. (There have been systems where private was not correctly
20488 implemented like the infamous i386 svr4.0, and systems where the
20489 VM page cache was not coherent with the file system buffer cache
20490 like early versions of FreeBSD and possibly contemporary NetBSD.)
20491 For shared mappings, we should conversely verify that changes get
20492 propagated back to all the places they're supposed to be.
20493
20494 Grep wants private fixed already mapped.
20495 The main things grep needs to know about mmap are:
20496 * does it exist and is it safe to write into the mmap'd area
20497 * how to use it (BSD variants) */
20498
20499#include <fcntl.h>
20500#include <sys/mman.h>
20501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020502#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020503char *malloc ();
20504#endif
20505
20506/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020507#if !HAVE_GETPAGESIZE
20508/* Assume that all systems that can run configure have sys/param.h. */
20509# if !HAVE_SYS_PARAM_H
20510# define HAVE_SYS_PARAM_H 1
20511# endif
20512
John Criswell7a73b802003-06-30 21:59:07 +000020513# ifdef _SC_PAGESIZE
20514# define getpagesize() sysconf(_SC_PAGESIZE)
20515# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020516# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020517# include <sys/param.h>
20518# ifdef EXEC_PAGESIZE
20519# define getpagesize() EXEC_PAGESIZE
20520# else /* no EXEC_PAGESIZE */
20521# ifdef NBPG
20522# define getpagesize() NBPG * CLSIZE
20523# ifndef CLSIZE
20524# define CLSIZE 1
20525# endif /* no CLSIZE */
20526# else /* no NBPG */
20527# ifdef NBPC
20528# define getpagesize() NBPC
20529# else /* no NBPC */
20530# ifdef PAGESIZE
20531# define getpagesize() PAGESIZE
20532# endif /* PAGESIZE */
20533# endif /* no NBPC */
20534# endif /* no NBPG */
20535# endif /* no EXEC_PAGESIZE */
20536# else /* no HAVE_SYS_PARAM_H */
20537# define getpagesize() 8192 /* punt totally */
20538# endif /* no HAVE_SYS_PARAM_H */
20539# endif /* no _SC_PAGESIZE */
20540
20541#endif /* no HAVE_GETPAGESIZE */
20542
20543int
20544main ()
20545{
20546 char *data, *data2, *data3;
20547 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020548 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020549
20550 pagesize = getpagesize ();
20551
20552 /* First, make a file with some known garbage in it. */
20553 data = (char *) malloc (pagesize);
20554 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020555 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020556 for (i = 0; i < pagesize; ++i)
20557 *(data + i) = rand ();
20558 umask (0);
20559 fd = creat ("conftest.mmap", 0600);
20560 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020561 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020562 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020563 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020564 close (fd);
20565
20566 /* Next, try to mmap the file at a fixed address which already has
20567 something else allocated at it. If we can, also make sure that
20568 we see the same garbage. */
20569 fd = open ("conftest.mmap", O_RDWR);
20570 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571 return 1;
20572 data2 = (char *) malloc (2 * pagesize);
20573 if (!data2)
20574 return 1;
20575 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020576 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020577 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020578 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020579 for (i = 0; i < pagesize; ++i)
20580 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020581 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020582
20583 /* Finally, make sure that changes to the mapped area do not
20584 percolate back to the file as seen by read(). (This is a bug on
20585 some variants of i386 svr4.0.) */
20586 for (i = 0; i < pagesize; ++i)
20587 *(data2 + i) = *(data2 + i) + 1;
20588 data3 = (char *) malloc (pagesize);
20589 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020590 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020591 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020592 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020593 for (i = 0; i < pagesize; ++i)
20594 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020595 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020596 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020597 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020598}
20599_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020600rm -f conftest$ac_exeext
20601if { (ac_try="$ac_link"
20602case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605esac
20606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>&5
20608 ac_status=$?
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20611 { (case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614esac
20615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_try") 2>&5
20617 ac_status=$?
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020620 ac_cv_func_mmap_fixed_mapped=yes
20621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020622 echo "$as_me: program exited with status $ac_status" >&5
20623echo "$as_me: failed program was:" >&5
20624sed 's/^/| /' conftest.$ac_ext >&5
20625
20626( exit $ac_status )
20627ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020629rm -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 +000020630fi
Reid Spencera773bd52006-08-04 18:18:08 +000020631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020632
John Criswell7a73b802003-06-30 21:59:07 +000020633fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020634{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20635echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020636if test $ac_cv_func_mmap_fixed_mapped = yes; then
20637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020638cat >>confdefs.h <<\_ACEOF
20639#define HAVE_MMAP 1
20640_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020641
20642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020643rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020645 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20646echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20647if test "${ac_cv_func_mmap_file+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020649else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020650 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020651ac_cpp='$CPP $CPPFLAGS'
20652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654ac_compiler_gnu=$ac_cv_c_compiler_gnu
20655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020656 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020657 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020658else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020659 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020661 /* confdefs.h. */
20662_ACEOF
20663cat confdefs.h >>conftest.$ac_ext
20664cat >>conftest.$ac_ext <<_ACEOF
20665/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020666
John Criswell7a73b802003-06-30 21:59:07 +000020667#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020668#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020669#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020670
20671int
20672main ()
20673{
John Criswell7a73b802003-06-30 21:59:07 +000020674
20675 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020676 fd = creat ("foo",0777);
20677 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20678 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020679 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020680 ;
20681 return 0;
20682}
John Criswell7a73b802003-06-30 21:59:07 +000020683_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020684rm -f conftest$ac_exeext
20685if { (ac_try="$ac_link"
20686case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20689esac
20690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_link") 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20695 { (case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20698esac
20699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_try") 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020704 ac_cv_func_mmap_file=yes
20705else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020706 echo "$as_me: program exited with status $ac_status" >&5
20707echo "$as_me: failed program was:" >&5
20708sed 's/^/| /' conftest.$ac_ext >&5
20709
20710( exit $ac_status )
20711ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020712fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020713rm -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 +000020714fi
Reid Spencera773bd52006-08-04 18:18:08 +000020715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020716
John Criswell7a73b802003-06-30 21:59:07 +000020717 ac_ext=c
20718ac_cpp='$CPP $CPPFLAGS'
20719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20721ac_compiler_gnu=$ac_cv_c_compiler_gnu
20722
20723
20724fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020725{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20726echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020727if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020729cat >>confdefs.h <<\_ACEOF
20730#define HAVE_MMAP_FILE
20731_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020732
20733 MMAP_FILE=yes
20734
20735fi
20736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020737 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20738echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20739if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020741else
Reid Spencer582a23c2004-12-29 07:07:57 +000020742 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020743 ac_cv_need_dev_zero_for_mmap=yes
20744 else
20745 ac_cv_need_dev_zero_for_mmap=no
20746 fi
20747
20748fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020749{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20750echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020751if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020753cat >>confdefs.h <<\_ACEOF
20754#define NEED_DEV_ZERO_FOR_MMAP 1
20755_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020756
20757fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020758
Reid Spencer30fe5262007-01-20 07:48:49 +000020759 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20760 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020761 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20762echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020763 fi
20764 if test "$ac_cv_func_mmap_file" = "no"
20765 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020766 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20767echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020768 fi
John Criswellb13092b2003-07-22 21:00:24 +000020769fi
John Criswell7a73b802003-06-30 21:59:07 +000020770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020771{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20772echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020773ac_ext=cpp
20774ac_cpp='$CXXCPP $CPPFLAGS'
20775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020779cat >conftest.$ac_ext <<_ACEOF
20780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020784/* end confdefs.h. */
20785int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020786 volatile unsigned long val = 1;
20787 __sync_synchronize();
20788 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020789 __sync_add_and_fetch(&val, 1);
20790 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020791 return 0;
20792 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020793
20794_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020795rm -f conftest.$ac_objext conftest$ac_exeext
20796if { (ac_try="$ac_link"
20797case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20800esac
20801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_link") 2>conftest.er1
20803 ac_status=$?
20804 grep -v '^ *+' conftest.er1 >conftest.err
20805 rm -f conftest.er1
20806 cat conftest.err >&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); } &&
20809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20810 { (case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20813esac
20814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_try") 2>&5
20816 ac_status=$?
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; } &&
20819 { ac_try='test -s conftest$ac_exeext'
20820 { (case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20823esac
20824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_try") 2>&5
20826 ac_status=$?
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020829 ac_ext=c
20830ac_cpp='$CPP $CPPFLAGS'
20831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833ac_compiler_gnu=$ac_cv_c_compiler_gnu
20834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020835 { echo "$as_me:$LINENO: result: yes" >&5
20836echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020838cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020839#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020840_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020841
Owen Andersond4b272b2009-05-18 23:58:51 +000020842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020843 echo "$as_me: failed program was:" >&5
20844sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020846 { echo "$as_me:$LINENO: result: no" >&5
20847echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020849cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020850#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020851_ACEOF
20852
20853 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20854echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020855fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020856
Owen Andersond4b272b2009-05-18 23:58:51 +000020857rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020858 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020859
John Criswell7a73b802003-06-30 21:59:07 +000020860
Nick Lewycky4372e692009-09-29 06:18:23 +000020861if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020862 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20863echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20864if test "${llvm_cv_linux_mixed+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020866else
20867 ac_ext=c
20868ac_cpp='$CPP $CPPFLAGS'
20869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20871ac_compiler_gnu=$ac_cv_c_compiler_gnu
20872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020873 cat >conftest.$ac_ext <<_ACEOF
20874/* confdefs.h. */
20875_ACEOF
20876cat confdefs.h >>conftest.$ac_ext
20877cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020878/* end confdefs.h. */
20879#ifndef __x86_64__
20880 error: Not x86-64 even if uname says so!
20881 #endif
20882
20883int
20884main ()
20885{
20886
20887 ;
20888 return 0;
20889}
20890_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020891rm -f conftest.$ac_objext
20892if { (ac_try="$ac_compile"
20893case "(($ac_try" in
20894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895 *) ac_try_echo=$ac_try;;
20896esac
20897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898 (eval "$ac_compile") 2>conftest.er1
20899 ac_status=$?
20900 grep -v '^ *+' conftest.er1 >conftest.err
20901 rm -f conftest.er1
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } &&
20905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20906 { (case "(($ac_try" in
20907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908 *) ac_try_echo=$ac_try;;
20909esac
20910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911 (eval "$ac_try") 2>&5
20912 ac_status=$?
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; } &&
20915 { ac_try='test -s conftest.$ac_objext'
20916 { (case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20919esac
20920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_try") 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020925 llvm_cv_linux_mixed=no
20926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020927 echo "$as_me: failed program was:" >&5
20928sed 's/^/| /' conftest.$ac_ext >&5
20929
20930 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020932
Nick Lewycky4372e692009-09-29 06:18:23 +000020933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934 ac_ext=c
20935ac_cpp='$CPP $CPPFLAGS'
20936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938ac_compiler_gnu=$ac_cv_c_compiler_gnu
20939
20940
20941fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020942{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20943echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020944
20945 if test "$llvm_cv_linux_mixed" = "yes"; then
20946 llvm_cv_target_arch="x86"
20947 ARCH="x86"
20948 fi
20949fi
20950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020951
Reid Spencer9372f152007-07-30 20:13:24 +000020952for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020953do
20954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20959else
20960 cat >conftest.$ac_ext <<_ACEOF
20961/* confdefs.h. */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h. */
20966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20968#define $ac_func innocuous_$ac_func
20969
20970/* System header to define __stub macros and hopefully few prototypes,
20971 which can conflict with char $ac_func (); below.
20972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20973 <limits.h> exists even on freestanding compilers. */
20974
20975#ifdef __STDC__
20976# include <limits.h>
20977#else
20978# include <assert.h>
20979#endif
20980
20981#undef $ac_func
20982
20983/* Override any GCC internal prototype to avoid an error.
20984 Use char because int might match the return type of a GCC
20985 builtin and then its argument prototype would still apply. */
20986#ifdef __cplusplus
20987extern "C"
20988#endif
20989char $ac_func ();
20990/* The GNU C library defines this for functions which it implements
20991 to always fail with ENOSYS. Some functions are actually named
20992 something starting with __ and the normal name is an alias. */
20993#if defined __stub_$ac_func || defined __stub___$ac_func
20994choke me
20995#endif
20996
20997int
20998main ()
20999{
21000return $ac_func ();
21001 ;
21002 return 0;
21003}
21004_ACEOF
21005rm -f conftest.$ac_objext conftest$ac_exeext
21006if { (ac_try="$ac_link"
21007case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21010esac
21011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_link") 2>conftest.er1
21013 ac_status=$?
21014 grep -v '^ *+' conftest.er1 >conftest.err
21015 rm -f conftest.er1
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21023esac
21024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest$ac_exeext'
21030 { (case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21033esac
21034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_try") 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21039 eval "$as_ac_var=yes"
21040else
21041 echo "$as_me: failed program was:" >&5
21042sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 eval "$as_ac_var=no"
21045fi
21046
21047rm -f core conftest.err conftest.$ac_objext \
21048 conftest$ac_exeext conftest.$ac_ext
21049fi
21050ac_res=`eval echo '${'$as_ac_var'}'`
21051 { echo "$as_me:$LINENO: result: $ac_res" >&5
21052echo "${ECHO_T}$ac_res" >&6; }
21053if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021054 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021056_ACEOF
21057
21058fi
21059done
21060
21061
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021062SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021063
21064
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021065SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21066
21067
Jeff Cohen28783c32007-01-12 18:22:38 +000021068if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021069 prefix="/usr/local"
21070fi
Reid Spencere9de0912004-08-20 09:03:57 +000021071eval LLVM_PREFIX="${prefix}";
21072eval LLVM_BINDIR="${prefix}/bin";
21073eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021074eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021075eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021076eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021077eval LLVM_INCLUDEDIR="${prefix}/include";
21078eval LLVM_INFODIR="${prefix}/info";
21079eval LLVM_MANDIR="${prefix}/man";
21080LLVM_CONFIGTIME=`date`
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021092if test "${ENABLE_TIMESTAMPS}" = "0"; then
21093 LLVM_CONFIGTIME="(timestamp not enabled)"
21094fi
21095
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021096
Reid Spencere9de0912004-08-20 09:03:57 +000021097cat >>confdefs.h <<_ACEOF
21098#define LLVM_PREFIX "$LLVM_PREFIX"
21099_ACEOF
21100
21101
21102cat >>confdefs.h <<_ACEOF
21103#define LLVM_BINDIR "$LLVM_BINDIR"
21104_ACEOF
21105
21106
21107cat >>confdefs.h <<_ACEOF
21108#define LLVM_LIBDIR "$LLVM_LIBDIR"
21109_ACEOF
21110
21111
21112cat >>confdefs.h <<_ACEOF
21113#define LLVM_DATADIR "$LLVM_DATADIR"
21114_ACEOF
21115
21116
21117cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021118#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021119_ACEOF
21120
21121
21122cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021123#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021124_ACEOF
21125
21126
21127cat >>confdefs.h <<_ACEOF
21128#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21129_ACEOF
21130
21131
21132cat >>confdefs.h <<_ACEOF
21133#define LLVM_INFODIR "$LLVM_INFODIR"
21134_ACEOF
21135
21136
21137cat >>confdefs.h <<_ACEOF
21138#define LLVM_MANDIR "$LLVM_MANDIR"
21139_ACEOF
21140
21141
21142cat >>confdefs.h <<_ACEOF
21143#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21144_ACEOF
21145
21146
Eric Christopher790e11c2007-12-01 00:34:39 +000021147cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021148#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021149_ACEOF
21150
21151
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021152if test "$BINDINGS_TO_BUILD" = auto ; then
21153 BINDINGS_TO_BUILD=""
21154 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21155 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21156 fi
21157fi
21158BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21159
21160
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021161ALL_BINDINGS=ocaml
21162
21163
Gordon Henriksenf0915682007-10-02 16:42:22 +000021164binding_prereqs_failed=0
21165for a_binding in $BINDINGS_TO_BUILD ; do
21166 case "$a_binding" in
21167 ocaml)
21168 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021169 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21170echo "$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 +000021171 binding_prereqs_failed=1
21172 fi
21173 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021174 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21175echo "$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 +000021176 binding_prereqs_failed=1
21177 fi
21178 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021179 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21180echo "$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 +000021181 fi
21182 if test "x$with_ocaml_libdir" != xauto ; then
21183 OCAML_LIBDIR=$with_ocaml_libdir
21184
21185 else
21186 ocaml_stdlib="`"$OCAMLC" -where`"
21187 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21188 then
21189 # ocaml stdlib is beneath our prefix; use stdlib
21190 OCAML_LIBDIR=$ocaml_stdlib
21191
21192 else
21193 # ocaml stdlib is outside our prefix; use libdir/ocaml
21194 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21195
21196 fi
21197 fi
21198 ;;
21199 esac
21200done
21201if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021202 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21203echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21204 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021205fi
21206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021207{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21208echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21209if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021211else
21212 ac_ext=cpp
21213ac_cpp='$CXXCPP $CPPFLAGS'
21214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21217
21218 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021219 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021220 cat >conftest.$ac_ext <<_ACEOF
21221/* confdefs.h. */
21222_ACEOF
21223cat confdefs.h >>conftest.$ac_ext
21224cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021225/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021226template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021227int
21228main ()
21229{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021230X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021231 ;
21232 return 0;
21233}
21234_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021235rm -f conftest.$ac_objext
21236if { (ac_try="$ac_compile"
21237case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240esac
21241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21250 { (case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21253esac
21254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_try") 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; } &&
21259 { ac_try='test -s conftest.$ac_objext'
21260 { (case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21263esac
21264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265 (eval "$ac_try") 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021269 llvm_cv_cxx_visibility_inlines_hidden=yes
21270else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021271 echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
21274 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021276
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278 CXXFLAGS="$oldcxxflags"
21279 ac_ext=c
21280ac_cpp='$CPP $CPPFLAGS'
21281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283ac_compiler_gnu=$ac_cv_c_compiler_gnu
21284
21285
21286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021287{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21288echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021289if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21290 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21291
21292else
21293 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21294
21295fi
21296
Gordon Henriksenf0915682007-10-02 16:42:22 +000021297
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021298if test "$llvm_cv_link_use_r" = "yes" ; then
21299 RPATH="-Wl,-R"
21300else
21301 RPATH="-Wl,-rpath"
21302fi
21303
21304
21305if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21306 RDYNAMIC="-Wl,-export-dynamic"
21307else
21308 RDYNAMIC=""
21309fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021310
21311
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021312
Eric Christophera1cba682010-08-08 02:44:25 +000021313ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021314
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021315
21316
21317
21318
21319
Douglas Gregor1555a232009-06-16 20:12:29 +000021320ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21321
21322ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21323
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021324ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21325
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021326ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21327
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021328ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021329
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021330
Reid Spencera773bd52006-08-04 18:18:08 +000021331ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021332
Eric Christopher360fa9a2011-10-26 00:42:12 +000021333
Reid Spencerea949cf2006-08-16 00:45:38 +000021334ac_config_files="$ac_config_files llvm.spec"
21335
21336
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021337ac_config_files="$ac_config_files docs/doxygen.cfg"
21338
Eric Christopher63c09512012-02-02 00:16:55 +000021339
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021340if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021341 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021342fi
Eric Christopher63c09512012-02-02 00:16:55 +000021343if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021344 configh="include/clang/Config/config.h"
21345 doxy="docs/doxygen.cfg"
21346 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021347
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021348 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021349
21350fi
21351
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021352ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021353
Eric Christopher360fa9a2011-10-26 00:42:12 +000021354
Reid Spencera773bd52006-08-04 18:18:08 +000021355ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021356
Reid Spencera773bd52006-08-04 18:18:08 +000021357ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021358
21359
Reid Spencera773bd52006-08-04 18:18:08 +000021360ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021361
21362
Reid Spencera773bd52006-08-04 18:18:08 +000021363ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021364
21365
Reid Spencera773bd52006-08-04 18:18:08 +000021366ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021367
21368
Reid Spencer8b2e1412006-11-17 03:32:33 +000021369ac_config_commands="$ac_config_commands runtime/Makefile"
21370
21371
Reid Spencera773bd52006-08-04 18:18:08 +000021372ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021373
21374
Reid Spencera773bd52006-08-04 18:18:08 +000021375ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021376
21377
Bill Wendlingf24eb392009-01-04 23:12:30 +000021378ac_config_commands="$ac_config_commands unittests/Makefile"
21379
21380
Reid Spencera773bd52006-08-04 18:18:08 +000021381ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021382
21383
Reid Spencera773bd52006-08-04 18:18:08 +000021384ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021385
21386
Reid Spencera773bd52006-08-04 18:18:08 +000021387ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021388
21389
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021390ac_config_commands="$ac_config_commands bindings/Makefile"
21391
21392
21393ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21394
21395
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021396
John Criswell7a73b802003-06-30 21:59:07 +000021397cat >confcache <<\_ACEOF
21398# This file is a shell script that caches the results of configure
21399# tests run on this system so they can be shared between configure
21400# scripts and configure runs, see configure's option --config-cache.
21401# It is not useful on other systems. If it contains results you don't
21402# want to keep, you may remove or edit it.
21403#
21404# config.status only pays attention to the cache file if you give it
21405# the --recheck option to rerun configure.
21406#
John Criswell0c38eaf2003-09-10 15:17:25 +000021407# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021408# loading this file, other *unset* `ac_cv_foo' will be assigned the
21409# following values.
21410
21411_ACEOF
21412
21413# The following way of writing the cache mishandles newlines in values,
21414# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021415# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021416# Ultrix sh set writes to stderr and can't be redirected directly,
21417# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021418(
21419 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21420 eval ac_val=\$$ac_var
21421 case $ac_val in #(
21422 *${as_nl}*)
21423 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021424 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21425echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021426 esac
21427 case $ac_var in #(
21428 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021430 esac ;;
21431 esac
21432 done
21433
John Criswell7a73b802003-06-30 21:59:07 +000021434 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021435 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21436 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021437 # `set' does not quote correctly, so add quotes (double-quote
21438 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021439 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021440 "s/'/'\\\\''/g;
21441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021442 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021443 *)
21444 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021445 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021446 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021447 esac |
21448 sort
21449) |
John Criswell7a73b802003-06-30 21:59:07 +000021450 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021451 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021452 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021453 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021454 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21455 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021456 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21457 :end' >>confcache
21458if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21459 if test -w "$cache_file"; then
21460 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021461 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21462echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021463 cat confcache >$cache_file
21464 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021465 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21466echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021467 fi
21468fi
21469rm -f confcache
21470
21471test "x$prefix" = xNONE && prefix=$ac_default_prefix
21472# Let make expand exec_prefix.
21473test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21474
John Criswell7a73b802003-06-30 21:59:07 +000021475DEFS=-DHAVE_CONFIG_H
21476
John Criswell0c38eaf2003-09-10 15:17:25 +000021477ac_libobjs=
21478ac_ltlibobjs=
21479for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21480 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021481 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021482 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021483 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21484 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21486 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021487done
21488LIBOBJS=$ac_libobjs
21489
21490LTLIBOBJS=$ac_ltlibobjs
21491
21492
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021493if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021494 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21495Usually this means the macro was only invoked conditionally." >&5
21496echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21497Usually this means the macro was only invoked conditionally." >&2;}
21498 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021499fi
21500if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021501 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21502Usually this means the macro was only invoked conditionally." >&5
21503echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21504Usually this means the macro was only invoked conditionally." >&2;}
21505 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021506fi
John Criswell7a73b802003-06-30 21:59:07 +000021507
21508: ${CONFIG_STATUS=./config.status}
21509ac_clean_files_save=$ac_clean_files
21510ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021511{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21512echo "$as_me: creating $CONFIG_STATUS" >&6;}
21513cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021514#! $SHELL
21515# Generated by $as_me.
21516# Run this file to recreate the current configuration.
21517# Compiler output produced by configure, useful for debugging
21518# configure, is in config.log if it exists.
21519
21520debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021521ac_cs_recheck=false
21522ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021523SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021524_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021526cat >>$CONFIG_STATUS <<\_ACEOF
21527## --------------------- ##
21528## M4sh Initialization. ##
21529## --------------------- ##
21530
21531# Be Bourne compatible
21532if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021533 emulate sh
21534 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021535 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021536 # is contrary to our usage. Disable this feature.
21537 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021538 setopt NO_GLOB_SUBST
21539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021540 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542BIN_SH=xpg4; export BIN_SH # for Tru64
21543DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021544
John Criswell7a73b802003-06-30 21:59:07 +000021545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021546# PATH needs CR
21547# Avoid depending upon Character Ranges.
21548as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21549as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21550as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21551as_cr_digits='0123456789'
21552as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021553
21554# The user is always right.
21555if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021556 echo "#! /bin/sh" >conf$$.sh
21557 echo "exit 0" >>conf$$.sh
21558 chmod +x conf$$.sh
21559 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21560 PATH_SEPARATOR=';'
21561 else
21562 PATH_SEPARATOR=:
21563 fi
21564 rm -f conf$$.sh
21565fi
21566
21567# Support unset when possible.
21568if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21569 as_unset=unset
21570else
21571 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021572fi
John Criswell7a73b802003-06-30 21:59:07 +000021573
Reid Spencera773bd52006-08-04 18:18:08 +000021574
21575# IFS
21576# We need space, tab and new line, in precisely that order. Quoting is
21577# there to prevent editors from complaining about space-tab.
21578# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21579# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021580as_nl='
21581'
Reid Spencera773bd52006-08-04 18:18:08 +000021582IFS=" "" $as_nl"
21583
21584# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021585case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021586 *[\\/]* ) as_myself=$0 ;;
21587 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021588for as_dir in $PATH
21589do
21590 IFS=$as_save_IFS
21591 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021592 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21593done
Reid Spencera773bd52006-08-04 18:18:08 +000021594IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021595
Reid Spencera773bd52006-08-04 18:18:08 +000021596 ;;
21597esac
21598# We did not find ourselves, most probably we were run as `sh COMMAND'
21599# in which case we are not to be found in the path.
21600if test "x$as_myself" = x; then
21601 as_myself=$0
21602fi
21603if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021604 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21605 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021606fi
21607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021608# Work around bugs in pre-3.0 UWIN ksh.
21609for as_var in ENV MAIL MAILPATH
21610do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021611done
21612PS1='$ '
21613PS2='> '
21614PS4='+ '
21615
21616# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021617for as_var in \
21618 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21619 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21620 LC_TELEPHONE LC_TIME
21621do
21622 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21623 eval $as_var=C; export $as_var
21624 else
21625 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021626 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021627done
Torok Edwin871384f2010-01-26 08:50:50 +000021628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021629# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021630if expr a : '\(a\)' >/dev/null 2>&1 &&
21631 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21632 as_expr=expr
21633else
21634 as_expr=false
21635fi
21636
21637if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21638 as_basename=basename
21639else
21640 as_basename=false
21641fi
21642
21643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021644# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021645as_me=`$as_basename -- "$0" ||
21646$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21647 X"$0" : 'X\(//\)$' \| \
21648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021649echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021650 sed '/^.*\/\([^/][^/]*\)\/*$/{
21651 s//\1/
21652 q
21653 }
21654 /^X\/\(\/\/\)$/{
21655 s//\1/
21656 q
21657 }
21658 /^X\/\(\/\).*/{
21659 s//\1/
21660 q
21661 }
21662 s/.*/./; q'`
21663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664# CDPATH.
21665$as_unset CDPATH
21666
21667
21668
21669 as_lineno_1=$LINENO
21670 as_lineno_2=$LINENO
21671 test "x$as_lineno_1" != "x$as_lineno_2" &&
21672 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21673
21674 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21675 # uniformly replaced by the line number. The first 'sed' inserts a
21676 # line-number line after each line using $LINENO; the second 'sed'
21677 # does the real work. The second script uses 'N' to pair each
21678 # line-number line with the line containing $LINENO, and appends
21679 # trailing '-' during substitution so that $LINENO is not a special
21680 # case at line end.
21681 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21682 # scripts with optimization help from Paolo Bonzini. Blame Lee
21683 # E. McMahon (1931-1989) for sed's syntax. :-)
21684 sed -n '
21685 p
21686 /[$]LINENO/=
21687 ' <$as_myself |
21688 sed '
21689 s/[$]LINENO.*/&-/
21690 t lineno
21691 b
21692 :lineno
21693 N
21694 :loop
21695 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21696 t loop
21697 s/-\n.*//
21698 ' >$as_me.lineno &&
21699 chmod +x "$as_me.lineno" ||
21700 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21701 { (exit 1); exit 1; }; }
21702
21703 # Don't try to exec as it changes $[0], causing all sort of problems
21704 # (the dirname of $[0] is not the place where we might find the
21705 # original and so on. Autoconf is especially sensitive to this).
21706 . "./$as_me.lineno"
21707 # Exit status is that of the last command.
21708 exit
21709}
21710
21711
21712if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21713 as_dirname=dirname
21714else
21715 as_dirname=false
21716fi
Reid Spencera773bd52006-08-04 18:18:08 +000021717
21718ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021719case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021720-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021721 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021722 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021723 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021724 esac;;
21725*)
21726 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021727esac
21728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021729if expr a : '\(a\)' >/dev/null 2>&1 &&
21730 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21731 as_expr=expr
21732else
21733 as_expr=false
21734fi
21735
John Criswell7a73b802003-06-30 21:59:07 +000021736rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021737if test -d conf$$.dir; then
21738 rm -f conf$$.dir/conf$$.file
21739else
21740 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021741 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021742fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021743echo >conf$$.file
21744if ln -s conf$$.file conf$$ 2>/dev/null; then
21745 as_ln_s='ln -s'
21746 # ... but there are two gotchas:
21747 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21748 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21749 # In both cases, we have to default to `cp -p'.
21750 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021751 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752elif ln conf$$.file conf$$ 2>/dev/null; then
21753 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021754else
21755 as_ln_s='cp -p'
21756fi
Reid Spencera773bd52006-08-04 18:18:08 +000021757rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21758rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021759
John Criswell0c38eaf2003-09-10 15:17:25 +000021760if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021761 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021762else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021763 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021764 as_mkdir_p=false
21765fi
21766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021767# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21768# systems may use methods other than mode bits to determine executability.
21769cat >conf$$.file <<_ASEOF
21770#! /bin/sh
21771exit 0
21772_ASEOF
21773chmod +x conf$$.file
21774if test -x conf$$.file >/dev/null 2>&1; then
21775 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021776else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021777 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021779rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021780
21781# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021782as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021783
21784# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021785as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021786
21787
John Criswell7a73b802003-06-30 21:59:07 +000021788exec 6>&1
21789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021790# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021791# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021792# values after options handling.
21793ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021794This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021795generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021796
21797 CONFIG_FILES = $CONFIG_FILES
21798 CONFIG_HEADERS = $CONFIG_HEADERS
21799 CONFIG_LINKS = $CONFIG_LINKS
21800 CONFIG_COMMANDS = $CONFIG_COMMANDS
21801 $ $0 $@
21802
Reid Spencera773bd52006-08-04 18:18:08 +000021803on `(hostname || uname -n) 2>/dev/null | sed 1q`
21804"
21805
John Criswell7a73b802003-06-30 21:59:07 +000021806_ACEOF
21807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021808cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021809# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021810config_files="$ac_config_files"
21811config_headers="$ac_config_headers"
21812config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021813
Reid Spencera773bd52006-08-04 18:18:08 +000021814_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021816cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021817ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021818\`$as_me' instantiates files from templates according to the
21819current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021821Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021822
21823 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021824 -V, --version print version number, then exit
21825 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021826 -d, --debug don't remove temporary files
21827 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021828 --file=FILE[:TEMPLATE]
21829 instantiate the configuration file FILE
21830 --header=FILE[:TEMPLATE]
21831 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021832
21833Configuration files:
21834$config_files
21835
21836Configuration headers:
21837$config_headers
21838
John Criswellc764fbc2003-09-06 15:17:13 +000021839Configuration commands:
21840$config_commands
21841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021842Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021843
Reid Spencera773bd52006-08-04 18:18:08 +000021844_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021845cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021846ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021847LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021848configured by $0, generated by GNU Autoconf 2.60,
21849 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021851Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021852This config.status script is free software; the Free Software Foundation
21853gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021854
21855ac_pwd='$ac_pwd'
21856srcdir='$srcdir'
21857INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021858_ACEOF
21859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021860cat >>$CONFIG_STATUS <<\_ACEOF
21861# If no file are specified by the user, then we need to provide default
21862# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021863ac_need_defaults=:
21864while test $# != 0
21865do
21866 case $1 in
21867 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21869 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021870 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021871 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021872 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021873 ac_option=$1
21874 ac_optarg=$2
21875 ac_shift=shift
21876 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021877 esac
21878
John Criswell0c38eaf2003-09-10 15:17:25 +000021879 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021880 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21882 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021884 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021885 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021886 debug=: ;;
21887 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021888 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021889 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021890 ac_need_defaults=false;;
21891 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021892 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021894 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021895 --he | --h)
21896 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897 { echo "$as_me: error: ambiguous option: $1
21898Try \`$0 --help' for more information." >&2
21899 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021900 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021901 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21903 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21904 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021905
21906 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907 -*) { echo "$as_me: error: unrecognized option: $1
21908Try \`$0 --help' for more information." >&2
21909 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021911 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021912 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021913
21914 esac
21915 shift
21916done
21917
John Criswell0c38eaf2003-09-10 15:17:25 +000021918ac_configure_extra_args=
21919
21920if $ac_cs_silent; then
21921 exec 6>/dev/null
21922 ac_configure_extra_args="$ac_configure_extra_args --silent"
21923fi
21924
21925_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021926cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021927if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021928 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21929 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021930 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021931 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021932fi
21933
John Criswell7a73b802003-06-30 21:59:07 +000021934_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021935cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021936exec 5>>config.log
21937{
21938 echo
21939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21940## Running $as_me. ##
21941_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021942 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021943} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021944
Reid Spencera773bd52006-08-04 18:18:08 +000021945_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021946cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021947#
Reid Spencera773bd52006-08-04 18:18:08 +000021948# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021949#
Reid Spencerc0682832005-02-24 19:05:19 +000021950llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021951
21952_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021954cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021955
21956# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021957for ac_config_target in $ac_config_targets
21958do
Reid Spencera773bd52006-08-04 18:18:08 +000021959 case $ac_config_target in
21960 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021961 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021962 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21963 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021964 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021965 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021966 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021967 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021968 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021969 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021970 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21971 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021972 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021973 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21974 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21975 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21976 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21977 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021978 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021979 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21980 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021981 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021982 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21983 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21984 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021985 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21986 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21989echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21990 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021991 esac
21992done
21993
Reid Spencera773bd52006-08-04 18:18:08 +000021994
John Criswell7a73b802003-06-30 21:59:07 +000021995# If the user did not use the arguments to specify the items to instantiate,
21996# then the envvar interface is used. Set only those that are not.
21997# We use the long form for the default assignment because of an extremely
21998# bizarre bug on SunOS 4.1.3.
21999if $ac_need_defaults; then
22000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022002 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022003fi
22004
John Criswell0c38eaf2003-09-10 15:17:25 +000022005# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022006# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022007# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022008# Hook for its removal unless debugging.
22009# Note that there is a small window in which the directory will not be cleaned:
22010# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022011$debug ||
22012{
Reid Spencera773bd52006-08-04 18:18:08 +000022013 tmp=
22014 trap 'exit_status=$?
22015 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22016' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022017 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022018}
John Criswell7a73b802003-06-30 21:59:07 +000022019# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022020
John Criswell7a73b802003-06-30 21:59:07 +000022021{
Reid Spencera773bd52006-08-04 18:18:08 +000022022 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022023 test -n "$tmp" && test -d "$tmp"
22024} ||
22025{
Reid Spencera773bd52006-08-04 18:18:08 +000022026 tmp=./conf$$-$RANDOM
22027 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022028} ||
22029{
22030 echo "$me: cannot create a temporary directory in ." >&2
22031 { (exit 1); exit 1; }
22032}
John Criswell7a73b802003-06-30 21:59:07 +000022033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022034#
22035# Set up the sed scripts for CONFIG_FILES section.
22036#
22037
22038# No need to generate the scripts if there are no CONFIG_FILES.
22039# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022040if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022041
22042_ACEOF
22043
Reid Spencera773bd52006-08-04 18:18:08 +000022044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022045
Reid Spencera773bd52006-08-04 18:18:08 +000022046ac_delim='%!_!# '
22047for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022048 cat >conf$$subs.sed <<_ACEOF
22049SHELL!$SHELL$ac_delim
22050PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22051PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22052PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22053PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22054PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22055PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22056exec_prefix!$exec_prefix$ac_delim
22057prefix!$prefix$ac_delim
22058program_transform_name!$program_transform_name$ac_delim
22059bindir!$bindir$ac_delim
22060sbindir!$sbindir$ac_delim
22061libexecdir!$libexecdir$ac_delim
22062datarootdir!$datarootdir$ac_delim
22063datadir!$datadir$ac_delim
22064sysconfdir!$sysconfdir$ac_delim
22065sharedstatedir!$sharedstatedir$ac_delim
22066localstatedir!$localstatedir$ac_delim
22067includedir!$includedir$ac_delim
22068oldincludedir!$oldincludedir$ac_delim
22069docdir!$docdir$ac_delim
22070infodir!$infodir$ac_delim
22071htmldir!$htmldir$ac_delim
22072dvidir!$dvidir$ac_delim
22073pdfdir!$pdfdir$ac_delim
22074psdir!$psdir$ac_delim
22075libdir!$libdir$ac_delim
22076localedir!$localedir$ac_delim
22077mandir!$mandir$ac_delim
22078DEFS!$DEFS$ac_delim
22079ECHO_C!$ECHO_C$ac_delim
22080ECHO_N!$ECHO_N$ac_delim
22081ECHO_T!$ECHO_T$ac_delim
22082LIBS!$LIBS$ac_delim
22083build_alias!$build_alias$ac_delim
22084host_alias!$host_alias$ac_delim
22085target_alias!$target_alias$ac_delim
22086LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022087CC!$CC$ac_delim
22088CFLAGS!$CFLAGS$ac_delim
22089LDFLAGS!$LDFLAGS$ac_delim
22090CPPFLAGS!$CPPFLAGS$ac_delim
22091ac_ct_CC!$ac_ct_CC$ac_delim
22092EXEEXT!$EXEEXT$ac_delim
22093OBJEXT!$OBJEXT$ac_delim
22094CXX!$CXX$ac_delim
22095CXXFLAGS!$CXXFLAGS$ac_delim
22096ac_ct_CXX!$ac_ct_CXX$ac_delim
22097CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022098subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022099ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22100LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022101build!$build$ac_delim
22102build_cpu!$build_cpu$ac_delim
22103build_vendor!$build_vendor$ac_delim
22104build_os!$build_os$ac_delim
22105host!$host$ac_delim
22106host_cpu!$host_cpu$ac_delim
22107host_vendor!$host_vendor$ac_delim
22108host_os!$host_os$ac_delim
22109target!$target$ac_delim
22110target_cpu!$target_cpu$ac_delim
22111target_vendor!$target_vendor$ac_delim
22112target_os!$target_os$ac_delim
22113OS!$OS$ac_delim
22114HOST_OS!$HOST_OS$ac_delim
22115TARGET_OS!$TARGET_OS$ac_delim
22116LINKALL!$LINKALL$ac_delim
22117NOLINKALL!$NOLINKALL$ac_delim
22118LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22119LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22120ARCH!$ARCH$ac_delim
22121ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022122GREP!$GREP$ac_delim
22123EGREP!$EGREP$ac_delim
22124LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22125BUILD_CC!$BUILD_CC$ac_delim
22126BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22127BUILD_CXX!$BUILD_CXX$ac_delim
22128CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022129ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022130ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22131ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22132DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22133ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22134EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22135DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22136DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22137JIT!$JIT$ac_delim
22138TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022139ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022140ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000022141LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022142ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022143ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022144ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022145ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022146_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022148 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022149 break
22150 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022151 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22152echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22153 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022154 else
22155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022156 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022157done
22158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022159ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22160if test -n "$ac_eof"; then
22161 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22162 ac_eof=`expr $ac_eof + 1`
22163fi
22164
22165cat >>$CONFIG_STATUS <<_ACEOF
22166cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22167/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022169sed '
22170s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22171s/^/s,@/; s/!/@,|#_!!_#|/
22172:n
22173t n
22174s/'"$ac_delim"'$/,g/; t
22175s/$/\\/; p
22176N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22177' >>$CONFIG_STATUS <conf$$subs.sed
22178rm -f conf$$subs.sed
22179cat >>$CONFIG_STATUS <<_ACEOF
22180CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022181_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022182
22183
22184ac_delim='%!_!# '
22185for ac_last_try in false false false false false :; do
22186 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000022187ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022188TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22189LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22190LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022191LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022192LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022193OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022194EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022195EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022196CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022197BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022198INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022199NM!$NM$ac_delim
22200ifGNUmake!$ifGNUmake$ac_delim
22201LN_S!$LN_S$ac_delim
22202CMP!$CMP$ac_delim
22203CP!$CP$ac_delim
22204DATE!$DATE$ac_delim
22205FIND!$FIND$ac_delim
22206MKDIR!$MKDIR$ac_delim
22207MV!$MV$ac_delim
22208RANLIB!$RANLIB$ac_delim
22209AR!$AR$ac_delim
22210RM!$RM$ac_delim
22211SED!$SED$ac_delim
22212TAR!$TAR$ac_delim
22213BINPWD!$BINPWD$ac_delim
22214GRAPHVIZ!$GRAPHVIZ$ac_delim
22215DOT!$DOT$ac_delim
22216FDP!$FDP$ac_delim
22217NEATO!$NEATO$ac_delim
22218TWOPI!$TWOPI$ac_delim
22219CIRCO!$CIRCO$ac_delim
22220GV!$GV$ac_delim
22221DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022222XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022223INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22224INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22225INSTALL_DATA!$INSTALL_DATA$ac_delim
22226BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022227CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022228DOXYGEN!$DOXYGEN$ac_delim
22229GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022230GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022231POD2HTML!$POD2HTML$ac_delim
22232POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022233PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022234RUNTEST!$RUNTEST$ac_delim
22235TCLSH!$TCLSH$ac_delim
22236ZIP!$ZIP$ac_delim
22237OCAMLC!$OCAMLC$ac_delim
22238OCAMLOPT!$OCAMLOPT$ac_delim
22239OCAMLDEP!$OCAMLDEP$ac_delim
22240OCAMLDOC!$OCAMLDOC$ac_delim
22241GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022242HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022243INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22244INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22245CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22246CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22247LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022248NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22249NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022250COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022251USE_UDIS86!$USE_UDIS86$ac_delim
22252USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022253USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22254INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22255INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022256HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22257HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22258MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022259SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022260SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022261LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22262LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22263LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22264LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22265LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22266LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22267LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22268LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22269LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22270LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22271BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22272ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022273OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22274ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22275RPATH!$RPATH$ac_delim
22276RDYNAMIC!$RDYNAMIC$ac_delim
22277LIBOBJS!$LIBOBJS$ac_delim
22278LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022279_ACEOF
22280
Eric Christophera443e5b2012-03-23 05:50:46 +000022281 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022282 break
22283 elif $ac_last_try; then
22284 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22285echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22286 { (exit 1); exit 1; }; }
22287 else
22288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22289 fi
22290done
22291
22292ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22293if test -n "$ac_eof"; then
22294 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22295 ac_eof=`expr $ac_eof + 1`
22296fi
22297
22298cat >>$CONFIG_STATUS <<_ACEOF
22299cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022300/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22301_ACEOF
22302sed '
22303s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22304s/^/s,@/; s/!/@,|#_!!_#|/
22305:n
22306t n
22307s/'"$ac_delim"'$/,g/; t
22308s/$/\\/; p
22309N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22310' >>$CONFIG_STATUS <conf$$subs.sed
22311rm -f conf$$subs.sed
22312cat >>$CONFIG_STATUS <<_ACEOF
22313:end
22314s/|#_!!_#|//g
22315CEOF$ac_eof
22316_ACEOF
22317
22318
Reid Spencera773bd52006-08-04 18:18:08 +000022319# VPATH may cause trouble with some makes, so we remove $(srcdir),
22320# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22321# trailing colons and then remove the whole line if VPATH becomes empty
22322# (actually we leave an empty line to preserve line numbers).
22323if test "x$srcdir" = x.; then
22324 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22325s/:*\$(srcdir):*/:/
22326s/:*\${srcdir}:*/:/
22327s/:*@srcdir@:*/:/
22328s/^\([^=]*=[ ]*\):*/\1/
22329s/:*$//
22330s/^[^=]*=[ ]*$//
22331}'
22332fi
22333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022334cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022335fi # test -n "$CONFIG_FILES"
22336
Reid Spencera773bd52006-08-04 18:18:08 +000022337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022338for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022339do
22340 case $ac_tag in
22341 :[FHLC]) ac_mode=$ac_tag; continue;;
22342 esac
22343 case $ac_mode$ac_tag in
22344 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022345 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22346echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22347 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022348 :[FH]-) ac_tag=-:-;;
22349 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22350 esac
22351 ac_save_IFS=$IFS
22352 IFS=:
22353 set x $ac_tag
22354 IFS=$ac_save_IFS
22355 shift
22356 ac_file=$1
22357 shift
22358
22359 case $ac_mode in
22360 :L) ac_source=$1;;
22361 :[FH])
22362 ac_file_inputs=
22363 for ac_f
22364 do
22365 case $ac_f in
22366 -) ac_f="$tmp/stdin";;
22367 *) # Look for the file first in the build tree, then in the source tree
22368 # (if the path is not absolute). The absolute path cannot be DOS-style,
22369 # because $ac_f cannot contain `:'.
22370 test -f "$ac_f" ||
22371 case $ac_f in
22372 [\\/$]*) false;;
22373 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22374 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022375 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22376echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22377 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022378 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022379 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022380 done
22381
22382 # Let's still pretend it is `configure' which instantiates (i.e., don't
22383 # use $as_me), people would be surprised to read:
22384 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022385 configure_input="Generated from "`IFS=:
22386 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022387 if test x"$ac_file" != x-; then
22388 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022389 { echo "$as_me:$LINENO: creating $ac_file" >&5
22390echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022391 fi
22392
22393 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022394 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022395 esac
22396 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022397 esac
22398
Reid Spencera773bd52006-08-04 18:18:08 +000022399 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022400$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022401 X"$ac_file" : 'X\(//\)[^/]' \| \
22402 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022403 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022404echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22406 s//\1/
22407 q
22408 }
22409 /^X\(\/\/\)[^/].*/{
22410 s//\1/
22411 q
22412 }
22413 /^X\(\/\/\)$/{
22414 s//\1/
22415 q
22416 }
22417 /^X\(\/\).*/{
22418 s//\1/
22419 q
22420 }
22421 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022422 { as_dir="$ac_dir"
22423 case $as_dir in #(
22424 -*) as_dir=./$as_dir;;
22425 esac
22426 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22427 as_dirs=
22428 while :; do
22429 case $as_dir in #(
22430 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22431 *) as_qdir=$as_dir;;
22432 esac
22433 as_dirs="'$as_qdir' $as_dirs"
22434 as_dir=`$as_dirname -- "$as_dir" ||
22435$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22436 X"$as_dir" : 'X\(//\)[^/]' \| \
22437 X"$as_dir" : 'X\(//\)$' \| \
22438 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22439echo X"$as_dir" |
22440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22441 s//\1/
22442 q
22443 }
22444 /^X\(\/\/\)[^/].*/{
22445 s//\1/
22446 q
22447 }
22448 /^X\(\/\/\)$/{
22449 s//\1/
22450 q
22451 }
22452 /^X\(\/\).*/{
22453 s//\1/
22454 q
22455 }
22456 s/.*/./; q'`
22457 test -d "$as_dir" && break
22458 done
22459 test -z "$as_dirs" || eval "mkdir $as_dirs"
22460 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22461echo "$as_me: error: cannot create directory $as_dir" >&2;}
22462 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022463 ac_builddir=.
22464
Reid Spencera773bd52006-08-04 18:18:08 +000022465case "$ac_dir" in
22466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22467*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022469 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022470 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022471 case $ac_top_builddir_sub in
22472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22474 esac ;;
22475esac
22476ac_abs_top_builddir=$ac_pwd
22477ac_abs_builddir=$ac_pwd$ac_dir_suffix
22478# for backward compatibility:
22479ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022480
22481case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022482 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022483 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022484 ac_top_srcdir=$ac_top_builddir_sub
22485 ac_abs_top_srcdir=$ac_pwd ;;
22486 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022487 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022488 ac_top_srcdir=$srcdir
22489 ac_abs_top_srcdir=$srcdir ;;
22490 *) # Relative name.
22491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22492 ac_top_srcdir=$ac_top_build_prefix$srcdir
22493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022494esac
Reid Spencera773bd52006-08-04 18:18:08 +000022495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022496
John Criswell7a73b802003-06-30 21:59:07 +000022497
Reid Spencera773bd52006-08-04 18:18:08 +000022498 case $ac_mode in
22499 :F)
22500 #
22501 # CONFIG_FILE
22502 #
John Criswell7a73b802003-06-30 21:59:07 +000022503
22504 case $INSTALL in
22505 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022506 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022507 esac
John Criswell7a73b802003-06-30 21:59:07 +000022508_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022510cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022511# If the template does not know about datarootdir, expand it.
22512# FIXME: This hack should be removed a few years after 2.60.
22513ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022514
22515case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022516 p
22517 q
22518}
22519/@datadir@/p
22520/@docdir@/p
22521/@infodir@/p
22522/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022523/@mandir@/p
22524' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022525*datarootdir*) ac_datarootdir_seen=yes;;
22526*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022527 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22528echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022529_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022530cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022531 ac_datarootdir_hack='
22532 s&@datadir@&$datadir&g
22533 s&@docdir@&$docdir&g
22534 s&@infodir@&$infodir&g
22535 s&@localedir@&$localedir&g
22536 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022537 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022538esac
22539_ACEOF
22540
22541# Neutralize VPATH when `$srcdir' = `.'.
22542# Shell code in configure.ac might set extrasub.
22543# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022544cat >>$CONFIG_STATUS <<_ACEOF
22545 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022546$extrasub
22547_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022548cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022549:t
22550/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022551s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022552s&@top_builddir@&$ac_top_builddir_sub&;t t
22553s&@srcdir@&$ac_srcdir&;t t
22554s&@abs_srcdir@&$ac_abs_srcdir&;t t
22555s&@top_srcdir@&$ac_top_srcdir&;t t
22556s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22557s&@builddir@&$ac_builddir&;t t
22558s&@abs_builddir@&$ac_abs_builddir&;t t
22559s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22560s&@INSTALL@&$ac_INSTALL&;t t
22561$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022562" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022563
Reid Spencera773bd52006-08-04 18:18:08 +000022564test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22565 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22566 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022567 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022568which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022569echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022570which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022571
Reid Spencera773bd52006-08-04 18:18:08 +000022572 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022573 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022574 -) cat "$tmp/out"; rm -f "$tmp/out";;
22575 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22576 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022577 ;;
22578 :H)
22579 #
22580 # CONFIG_HEADER
22581 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022582_ACEOF
22583
22584# Transform confdefs.h into a sed script `conftest.defines', that
22585# substitutes the proper values into config.h.in to produce config.h.
22586rm -f conftest.defines conftest.tail
22587# First, append a space to every undef/define line, to ease matching.
22588echo 's/$/ /' >conftest.defines
22589# Then, protect against being on the right side of a sed subst, or in
22590# an unquoted here document, in config.status. If some macros were
22591# called several times there might be several #defines for the same
22592# symbol, which is useless. But do not sort them, since the last
22593# AC_DEFINE must be honored.
22594ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22595# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22596# NAME is the cpp macro being defined, VALUE is the value it is being given.
22597# PARAMS is the parameter list in the macro definition--in most cases, it's
22598# just an empty string.
22599ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22600ac_dB='\\)[ (].*,\\1define\\2'
22601ac_dC=' '
22602ac_dD=' ,'
22603
22604uniq confdefs.h |
22605 sed -n '
22606 t rset
22607 :rset
22608 s/^[ ]*#[ ]*define[ ][ ]*//
22609 t ok
22610 d
22611 :ok
22612 s/[\\&,]/\\&/g
22613 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22614 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22615 ' >>conftest.defines
22616
22617# Remove the space that was appended to ease matching.
22618# Then replace #undef with comments. This is necessary, for
22619# example, in the case of _POSIX_SOURCE, which is predefined and required
22620# on some systems where configure will not decide to define it.
22621# (The regexp can be short, since the line contains either #define or #undef.)
22622echo 's/ $//
22623s,^[ #]*u.*,/* & */,' >>conftest.defines
22624
22625# Break up conftest.defines:
22626ac_max_sed_lines=50
22627
22628# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22629# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22630# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22631# et cetera.
22632ac_in='$ac_file_inputs'
22633ac_out='"$tmp/out1"'
22634ac_nxt='"$tmp/out2"'
22635
22636while :
22637do
22638 # Write a here document:
22639 cat >>$CONFIG_STATUS <<_ACEOF
22640 # First, check the format of the line:
22641 cat >"\$tmp/defines.sed" <<\\CEOF
22642/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22643/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22644b
22645:def
22646_ACEOF
22647 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22648 echo 'CEOF
22649 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22650 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22651 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22652 grep . conftest.tail >/dev/null || break
22653 rm -f conftest.defines
22654 mv conftest.tail conftest.defines
22655done
22656rm -f conftest.defines conftest.tail
22657
22658echo "ac_result=$ac_in" >>$CONFIG_STATUS
22659cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022660 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022661 echo "/* $configure_input */" >"$tmp/config.h"
22662 cat "$ac_result" >>"$tmp/config.h"
22663 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22664 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22665echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022666 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022667 rm -f $ac_file
22668 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022669 fi
22670 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022671 echo "/* $configure_input */"
22672 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022673 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022674 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022675 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022677 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22678echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022679 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022680 esac
John Criswell7a73b802003-06-30 21:59:07 +000022681
Reid Spencera773bd52006-08-04 18:18:08 +000022682
22683 case $ac_file$ac_mode in
22684 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022685 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022686 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022687 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022688 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022689 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022690 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022691 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022692 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022693 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022694 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022695 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022696 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022697 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022698 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022699 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022700 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022701 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022702 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022703 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022704 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022705 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022706 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022707 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022708 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022709 ${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 +000022710
22711 esac
22712done # for ac_tag
22713
John Criswell7a73b802003-06-30 21:59:07 +000022714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022715{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022716_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022717chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022718ac_clean_files=$ac_clean_files_save
22719
22720
22721# configure is writing to config.log, and then calls config.status.
22722# config.status does its own redirection, appending to config.log.
22723# Unfortunately, on DOS this fails, as config.log is still kept open
22724# by configure, so config.status won't be able to write to it; its
22725# output is simply discarded. So we exec the FD to /dev/null,
22726# effectively closing config.log, so it can be properly (re)opened and
22727# appended to by config.status. When coming back to configure, we
22728# need to make the FD available again.
22729if test "$no_create" != yes; then
22730 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022731 ac_config_status_args=
22732 test "$silent" = yes &&
22733 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022734 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022735 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022736 exec 5>>config.log
22737 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22738 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022739 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022740fi
22741
John Criswell12399a12003-09-30 15:55:44 +000022742#
22743# CONFIG_SUBDIRS section.
22744#
22745if test "$no_recursion" != yes; then
22746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022747 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022748 ac_sub_configure_args=
22749 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022750 eval "set x $ac_configure_args"
22751 shift
22752 for ac_arg
22753 do
John Criswell12399a12003-09-30 15:55:44 +000022754 if test -n "$ac_prev"; then
22755 ac_prev=
22756 continue
22757 fi
22758 case $ac_arg in
22759 -cache-file | --cache-file | --cache-fil | --cache-fi \
22760 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22761 ac_prev=cache_file ;;
22762 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22763 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22764 | --c=*)
22765 ;;
22766 --config-cache | -C)
22767 ;;
22768 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22769 ac_prev=srcdir ;;
22770 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22771 ;;
22772 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22773 ac_prev=prefix ;;
22774 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22775 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022776 *)
22777 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022778 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022779 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022780 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022781 esac
22782 done
22783
22784 # Always prepend --prefix to ensure using the same prefix
22785 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022786 ac_arg="--prefix=$prefix"
22787 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022788 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022789 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022790 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022791
22792 ac_popdir=`pwd`
22793 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22794
22795 # Do not complain, so a configure script can configure whichever
22796 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022797 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022798
Reid Spencera773bd52006-08-04 18:18:08 +000022799 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022800 echo "$as_me:$LINENO: $ac_msg" >&5
22801 echo "$ac_msg" >&6
22802 { as_dir="$ac_dir"
22803 case $as_dir in #(
22804 -*) as_dir=./$as_dir;;
22805 esac
22806 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22807 as_dirs=
22808 while :; do
22809 case $as_dir in #(
22810 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22811 *) as_qdir=$as_dir;;
22812 esac
22813 as_dirs="'$as_qdir' $as_dirs"
22814 as_dir=`$as_dirname -- "$as_dir" ||
22815$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22816 X"$as_dir" : 'X\(//\)[^/]' \| \
22817 X"$as_dir" : 'X\(//\)$' \| \
22818 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22819echo X"$as_dir" |
22820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22821 s//\1/
22822 q
22823 }
22824 /^X\(\/\/\)[^/].*/{
22825 s//\1/
22826 q
22827 }
22828 /^X\(\/\/\)$/{
22829 s//\1/
22830 q
22831 }
22832 /^X\(\/\).*/{
22833 s//\1/
22834 q
22835 }
22836 s/.*/./; q'`
22837 test -d "$as_dir" && break
22838 done
22839 test -z "$as_dirs" || eval "mkdir $as_dirs"
22840 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22841echo "$as_me: error: cannot create directory $as_dir" >&2;}
22842 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022843 ac_builddir=.
22844
Reid Spencera773bd52006-08-04 18:18:08 +000022845case "$ac_dir" in
22846.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22847*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022849 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022850 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022851 case $ac_top_builddir_sub in
22852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22854 esac ;;
22855esac
22856ac_abs_top_builddir=$ac_pwd
22857ac_abs_builddir=$ac_pwd$ac_dir_suffix
22858# for backward compatibility:
22859ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022860
22861case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022862 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022863 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022864 ac_top_srcdir=$ac_top_builddir_sub
22865 ac_abs_top_srcdir=$ac_pwd ;;
22866 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022867 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022868 ac_top_srcdir=$srcdir
22869 ac_abs_top_srcdir=$srcdir ;;
22870 *) # Relative name.
22871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22872 ac_top_srcdir=$ac_top_build_prefix$srcdir
22873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022874esac
Reid Spencera773bd52006-08-04 18:18:08 +000022875ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022876
22877
Reid Spencera773bd52006-08-04 18:18:08 +000022878 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022879
22880 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022881 if test -f "$ac_srcdir/configure.gnu"; then
22882 ac_sub_configure=$ac_srcdir/configure.gnu
22883 elif test -f "$ac_srcdir/configure"; then
22884 ac_sub_configure=$ac_srcdir/configure
22885 elif test -f "$ac_srcdir/configure.in"; then
22886 # This should be Cygnus configure.
22887 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022888 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022889 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22890echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022891 ac_sub_configure=
22892 fi
22893
22894 # The recursion is here.
22895 if test -n "$ac_sub_configure"; then
22896 # Make the cache file name correct relative to the subdirectory.
22897 case $cache_file in
22898 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022899 *) # Relative name.
22900 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022901 esac
22902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022903 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22904echo "$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 +000022905 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022906 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22907 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022908 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22909echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22910 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022911 fi
22912
Reid Spencera773bd52006-08-04 18:18:08 +000022913 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022914 done
22915fi
22916