blob: 8ff4e62a61e2dcaa096407c3fec6b75dad7b5960 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherf33ab862011-12-21 00:52:44 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Bill Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000565PACKAGE_STRING='LLVM 3.1svn'
566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000685ENABLE_LIBCPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000695ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000696ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000697LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000698ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000700ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000701ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000702ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
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
Eric Christopherf33ab862011-12-21 00:52:44 +00001321\`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
John Criswell7a73b802003-06-30 21:59:07 +00001341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001369 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386 case $ac_init_help in
Eric Christopherf33ab862011-12-21 00:52:44 +00001387 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001388 esac
1389 cat <<\_ACEOF
1390
1391Optional Features:
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001394 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001395 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1399 YES)
David Greenea696d242007-06-28 19:36:08 +00001400 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001401 Compile with expensive debug checks enabled (default
1402 is NO)
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001407 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001408 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001409 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001410 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001411 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001412 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001413 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001414 --enable-shared Build a shared library and link tools against it
1415 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001416 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001417 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001418 --enable-timestamps Enable embedding timestamp information in build
1419 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001420 --enable-targets Build specific host targets: all or
1421 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001422 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423 xcore, msp430, ptx, cbe, and cpp (default=all)
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.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001445 --with-binutils-include Specify path to binutils/include/ containing
1446 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001447 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001448 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001449 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001450 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001451 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001452 --with-oprofile=<prefix>
1453 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001454 --with-intel-jitevents=<vtune-amplifier-dir>
1455 Specify location of run-time support library for
1456 Intel JIT API
1457 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001458
1459Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001460 CC C compiler command
1461 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001465 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001468 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
Eric Christopherf33ab862011-12-21 00:52:44 +00001473Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001474_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001475ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001481 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001482 ac_builddir=.
1483
Reid Spencera773bd52006-08-04 18:18:08 +00001484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001488 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001499
1500case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001501 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001502 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001506 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001513esac
Reid Spencera773bd52006-08-04 18:18:08 +00001514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001515
Reid Spencera773bd52006-08-04 18:18:08 +00001516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001524 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001528 done
1529fi
1530
Reid Spencera773bd52006-08-04 18:18:08 +00001531test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001532if $ac_init_version; then
1533 cat <<\_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001534LLVM configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001535generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15382002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001539This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001541
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001542Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001544 exit
John Criswell7a73b802003-06-30 21:59:07 +00001545fi
Reid Spencera773bd52006-08-04 18:18:08 +00001546cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001547This file contains any messages produced by compilers while
1548running configure, to aid debugging if configure makes a mistake.
1549
Eric Christopherf33ab862011-12-21 00:52:44 +00001550It was created by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001551generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001552
1553 $ $0 $@
1554
1555_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001556exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001557{
1558cat <<_ASUNAME
1559## --------- ##
1560## Platform. ##
1561## --------- ##
1562
1563hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571
1572/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001575/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001576/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579
1580_ASUNAME
1581
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001587 echo "PATH: $as_dir"
1588done
Reid Spencera773bd52006-08-04 18:18:08 +00001589IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001590
1591} >&5
1592
1593cat >&5 <<_ACEOF
1594
1595
1596## ----------- ##
1597## Core tests. ##
1598## ----------- ##
1599
1600_ACEOF
1601
1602
1603# Keep a trace of the command line.
1604# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001605# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001606# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001608ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001609ac_configure_args0=
1610ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_must_keep_next=false
1612for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001613do
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 for ac_arg
1615 do
1616 case $ac_arg in
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1620 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001621 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 esac
1624 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001629 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 case $ac_arg in
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 esac
1639 ;;
1640 -* ) ac_must_keep_next=true ;;
1641 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001642 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001643 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ;;
1645 esac
1646 done
John Criswell7a73b802003-06-30 21:59:07 +00001647done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001648$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649$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 +00001650
1651# When interrupted or exit'd, cleanup temporary files, and complete
1652# config.log. We remove comments because anyway the quotes in there
1653# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001654# WARNING: Use '\'' to represent an apostrophe within the trap.
1655# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001656trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1658 {
1659 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001660
John Criswell7a73b802003-06-30 21:59:07 +00001661 cat <<\_ASBOX
1662## ---------------- ##
1663## Cache variables. ##
1664## ---------------- ##
1665_ASBOX
1666 echo
1667 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001668(
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1671 case $ac_val in #(
1672 *${as_nl}*)
1673 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001676 esac
1677 case $ac_var in #(
1678 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001679 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001680 esac ;;
1681 esac
1682 done
John Criswell7a73b802003-06-30 21:59:07 +00001683 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001686 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001690 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001693 esac |
1694 sort
1695)
John Criswell7a73b802003-06-30 21:59:07 +00001696 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001697
1698 cat <<\_ASBOX
1699## ----------------- ##
1700## Output variables. ##
1701## ----------------- ##
1702_ASBOX
1703 echo
1704 for ac_var in $ac_subst_vars
1705 do
Reid Spencera773bd52006-08-04 18:18:08 +00001706 eval ac_val=\$$ac_var
1707 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001709 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001711 done | sort
1712 echo
1713
1714 if test -n "$ac_subst_files"; then
1715 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001716## ------------------- ##
1717## File substitutions. ##
1718## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001719_ASBOX
1720 echo
1721 for ac_var in $ac_subst_files
1722 do
Reid Spencera773bd52006-08-04 18:18:08 +00001723 eval ac_val=\$$ac_var
1724 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001726 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 done | sort
1729 echo
1730 fi
1731
John Criswell7a73b802003-06-30 21:59:07 +00001732 if test -s confdefs.h; then
1733 cat <<\_ASBOX
1734## ----------- ##
1735## confdefs.h. ##
1736## ----------- ##
1737_ASBOX
1738 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001739 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001740 echo
1741 fi
1742 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001745 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001748 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001749' 0
John Criswell7a73b802003-06-30 21:59:07 +00001750for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001752done
1753ac_signal=0
1754
1755# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001756rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001757
1758# Predefined preprocessor variables.
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_NAME "$PACKAGE_NAME"
1762_ACEOF
1763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001764
John Criswell7a73b802003-06-30 21:59:07 +00001765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767_ACEOF
1768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001769
John Criswell7a73b802003-06-30 21:59:07 +00001770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_VERSION "$PACKAGE_VERSION"
1772_ACEOF
1773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001774
John Criswell7a73b802003-06-30 21:59:07 +00001775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_STRING "$PACKAGE_STRING"
1777_ACEOF
1778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001779
John Criswell7a73b802003-06-30 21:59:07 +00001780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782_ACEOF
1783
1784
1785# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001787if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001789elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795shift
1796for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001797do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001801 sed 's/^/| /' "$ac_site_file" >&5
1802 . "$ac_site_file"
1803 fi
1804done
1805
1806if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001812 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001815 esac
1816 fi
1817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001820 >$cache_file
1821fi
1822
1823# Check that the precious variables saved in the cache have kept the same
1824# value.
1825ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001826for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001831 case $ac_old_set,$ac_new_set in
1832 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001835 ac_cache_corrupted=: ;;
1836 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001839 ac_cache_corrupted=: ;;
1840 ,);;
1841 *)
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001850 fi;;
1851 esac
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1854 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001856 *) ac_arg=$ac_var=$ac_new_val ;;
1857 esac
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001861 esac
1862 fi
1863done
1864if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
Reid Spencera773bd52006-08-04 18:18:08 +00001895
John Criswell7a73b802003-06-30 21:59:07 +00001896ac_ext=c
1897ac_cpp='$CPP $CPPFLAGS'
1898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001904cat >>confdefs.h <<\_ACEOF
1905#define LLVM_VERSION_MAJOR 3
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<\_ACEOF
1910#define LLVM_VERSION_MINOR 1
1911_ACEOF
1912
1913
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001914LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001915
1916
1917
1918
1919
1920
1921
John Criswell7a73b802003-06-30 21:59:07 +00001922ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001923for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001924 if test -f "$ac_dir/install-sh"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1927 break
1928 elif test -f "$ac_dir/install.sh"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1931 break
1932 elif test -f "$ac_dir/shtool"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 break
1936 fi
John Criswell7a73b802003-06-30 21:59:07 +00001937done
1938if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001942fi
Reid Spencera773bd52006-08-04 18:18:08 +00001943
1944# These three variables are undocumented and unsupported,
1945# and are intended to be withdrawn in a future Autoconf release.
1946# They can cause serious problems if a builder's source tree is in a directory
1947# whose full name contains unusual characters.
1948ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1951
John Criswell7a73b802003-06-30 21:59:07 +00001952
John Criswell392aaa32003-07-22 19:18:09 +00001953
Reid Spencer2706f8c2004-09-19 23:53:36 +00001954if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001955 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001956 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001959 fi
John Criswell93e1c722003-09-15 17:04:06 +00001960fi
1961
Nick Lewycky83fc4472009-09-29 05:48:51 +00001962ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001967if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001968 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001969 do
1970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001976else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001979else
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 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 +00001987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001989 break 2
1990 fi
1991done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001992done
Reid Spencera773bd52006-08-04 18:18:08 +00001993IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001994
1995fi
1996fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001997CC=$ac_cv_prog_CC
1998if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999 { echo "$as_me:$LINENO: result: $CC" >&5
2000echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002002 { echo "$as_me:$LINENO: result: no" >&5
2003echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002004fi
2005
Reid Spencera773bd52006-08-04 18:18:08 +00002006
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002007 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002008 done
2009fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002010if test -z "$CC"; then
2011 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002012 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002013do
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002020else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021 if test -n "$ac_ct_CC"; then
2022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002023else
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 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 +00002031 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002033 break 2
2034 fi
2035done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002036done
Reid Spencera773bd52006-08-04 18:18:08 +00002037IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002038
2039fi
2040fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002041ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002045else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046 { echo "$as_me:$LINENO: result: no" >&5
2047echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002048fi
2049
Reid Spencera773bd52006-08-04 18:18:08 +00002050
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002051 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002052done
John Criswell7a73b802003-06-30 21:59:07 +00002053
Reid Spencera773bd52006-08-04 18:18:08 +00002054 if test "x$ac_ct_CC" = x; then
2055 CC=""
2056 else
2057 case $cross_compiling:$ac_tool_warned in
2058yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002059{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2060whose name does not start with the host triplet. If you think this
2061configuration is useful to you, please write to autoconf@gnu.org." >&5
2062echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2063whose name does not start with the host triplet. If you think this
2064configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002065ac_tool_warned=yes ;;
2066esac
2067 CC=$ac_ct_CC
2068 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069fi
2070
John Criswell7a73b802003-06-30 21:59:07 +00002071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077
John Criswell7a73b802003-06-30 21:59:07 +00002078# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079echo "$as_me:$LINENO: checking for C compiler version" >&5
2080ac_compiler=`set X $ac_compile; echo $2`
2081{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002082case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002088 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091{ (ac_try="$ac_compiler -v >&5"
2092case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095esac
2096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_compiler -v >&5") 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101{ (ac_try="$ac_compiler -V >&5"
2102case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105esac
2106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107 (eval "$ac_compiler -V >&5") 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002112cat >conftest.$ac_ext <<_ACEOF
2113/* confdefs.h. */
2114_ACEOF
2115cat confdefs.h >>conftest.$ac_ext
2116cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002118
John Criswell7a73b802003-06-30 21:59:07 +00002119int
2120main ()
2121{
2122
2123 ;
2124 return 0;
2125}
2126_ACEOF
2127ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002128ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002129# Try to create an executable without -o first, disregard a.out.
2130# It will help us diagnose broken compilers, and finding out an intuition
2131# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002132{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2133echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2134ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135#
2136# List of possible output files, starting from the most likely.
2137# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2138# only as a last resort. b.out is created by i960 compilers.
2139ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2140#
2141# The IRIX 6 linker writes into existing files which may not be
2142# executable, retaining their permissions. Remove them first so a
2143# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002144ac_rmfiles=
2145for ac_file in $ac_files
2146do
2147 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002149 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2150 esac
2151done
2152rm -f $ac_rmfiles
2153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002154if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002155case "(($ac_try" in
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2158esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002160 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002161 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002164 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2165# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2166# in a Makefile. We should not override ac_cv_exeext if it was cached,
2167# so that the user can short-circuit this test for compilers unknown to
2168# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002169for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002170do
2171 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002172 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002174 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002175 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002176 # We found the default executable, but exeext='' is most
2177 # certainly right.
2178 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002179 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002180 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002181 then :; else
2182 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183 fi
2184 # We set ac_cv_exeext here because the later test for it is not
2185 # safe: cross compilers may not add the suffix if given an `-o'
2186 # argument, so we may need to know it at that point already.
2187 # Even if this section looks crufty: it has the advantage of
2188 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002189 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002190 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002191 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002192 esac
2193done
Reid Spencera773bd52006-08-04 18:18:08 +00002194test "$ac_cv_exeext" = no && ac_cv_exeext=
2195
John Criswell7a73b802003-06-30 21:59:07 +00002196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002198sed 's/^/| /' conftest.$ac_ext >&5
2199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002200{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201See \`config.log' for more details." >&5
2202echo "$as_me: error: C compiler cannot create executables
2203See \`config.log' for more details." >&2;}
2204 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002205fi
John Criswell7a73b802003-06-30 21:59:07 +00002206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002207ac_exeext=$ac_cv_exeext
2208{ echo "$as_me:$LINENO: result: $ac_file" >&5
2209echo "${ECHO_T}$ac_file" >&6; }
2210
2211# Check that the compiler produces executables we can run. If not, either
2212# the compiler is broken, or we cross compile.
2213{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2215# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216# If not cross compiling, check that we can run a simple program.
2217if test "$cross_compiling" != yes; then
2218 if { ac_try='./$ac_file'
2219 { (case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222esac
2223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224 (eval "$ac_try") 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 cross_compiling=no
2229 else
2230 if test "$cross_compiling" = maybe; then
2231 cross_compiling=yes
2232 else
2233 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&5
2236echo "$as_me: error: cannot run C compiled programs.
2237If you meant to cross compile, use \`--host'.
2238See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2240 fi
2241 fi
2242fi
2243{ echo "$as_me:$LINENO: result: yes" >&5
2244echo "${ECHO_T}yes" >&6; }
2245
2246rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002247ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002248# Check that the compiler produces executables we can run. If not, either
2249# the compiler is broken, or we cross compile.
2250{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2252{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253echo "${ECHO_T}$cross_compiling" >&6; }
2254
2255{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2257if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002258case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002263 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002264 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269# work properly (i.e., refer to `conftest.exe'), while it won't with
2270# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002271for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002273 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002276 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002277 * ) break;;
2278 esac
2279done
2280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282See \`config.log' for more details." >&5
2283echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&2;}
2285 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002287
2288rm -f conftest$ac_cv_exeext
2289{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002291
2292rm -f conftest.$ac_ext
2293EXEEXT=$ac_cv_exeext
2294ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002295{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2297if test "${ac_cv_objext+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300 cat >conftest.$ac_ext <<_ACEOF
2301/* confdefs.h. */
2302_ACEOF
2303cat confdefs.h >>conftest.$ac_ext
2304cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002306
John Criswell7a73b802003-06-30 21:59:07 +00002307int
2308main ()
2309{
2310
2311 ;
2312 return 0;
2313}
2314_ACEOF
2315rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002316if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002317case "(($ac_try" in
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2320esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002322 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002323 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002326 for ac_file in conftest.o conftest.obj conftest.*; do
2327 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002328 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002330 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2331 break;;
2332 esac
2333done
2334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002336sed 's/^/| /' conftest.$ac_ext >&5
2337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339See \`config.log' for more details." >&5
2340echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344
John Criswell7a73b802003-06-30 21:59:07 +00002345rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002347{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002349OBJEXT=$ac_cv_objext
2350ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002351{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2353if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002355else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002356 cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h. */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002362
John Criswell7a73b802003-06-30 21:59:07 +00002363int
2364main ()
2365{
2366#ifndef __GNUC__
2367 choke me
2368#endif
2369
2370 ;
2371 return 0;
2372}
2373_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002374rm -f conftest.$ac_objext
2375if { (ac_try="$ac_compile"
2376case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379esac
2380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381 (eval "$ac_compile") 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389 { (case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2392esac
2393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_try") 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402esac
2403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_try") 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002408 ac_compiler_gnu=yes
2409else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002410 echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002415
Reid Spencera773bd52006-08-04 18:18:08 +00002416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002418
2419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2422GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423ac_test_CFLAGS=${CFLAGS+set}
2424ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002425{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2427if test "${ac_cv_prog_cc_g+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002429else
Reid Spencera773bd52006-08-04 18:18:08 +00002430 ac_save_c_werror_flag=$ac_c_werror_flag
2431 ac_c_werror_flag=yes
2432 ac_cv_prog_cc_g=no
2433 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434 cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h. */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002439/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002440
John Criswell7a73b802003-06-30 21:59:07 +00002441int
2442main ()
2443{
2444
2445 ;
2446 return 0;
2447}
2448_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002449rm -f conftest.$ac_objext
2450if { (ac_try="$ac_compile"
2451case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2454esac
2455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compile") 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467esac
2468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_try") 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2477esac
2478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_try") 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002485 echo "$as_me: failed program was:" >&5
2486sed 's/^/| /' conftest.$ac_ext >&5
2487
2488 CFLAGS=""
2489 cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h. */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002494/* end confdefs.h. */
2495
2496int
2497main ()
2498{
2499
2500 ;
2501 return 0;
2502}
2503_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002504rm -f conftest.$ac_objext
2505if { (ac_try="$ac_compile"
2506case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509esac
2510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_compile") 2>conftest.er1
2512 ac_status=$?
2513 grep -v '^ *+' conftest.er1 >conftest.err
2514 rm -f conftest.er1
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522esac
2523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532esac
2533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_try") 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 :
Torok Edwin871384f2010-01-26 08:50:50 +00002539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002540 echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002544 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002545 cat >conftest.$ac_ext <<_ACEOF
2546/* confdefs.h. */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002550/* end confdefs.h. */
2551
2552int
2553main ()
2554{
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002560rm -f conftest.$ac_objext
2561if { (ac_try="$ac_compile"
2562case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565esac
2566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_compile") 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575 { (case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_try") 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588esac
2589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_try") 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002594 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002595else
2596 echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599
John Criswell7a73b802003-06-30 21:59:07 +00002600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002601
Reid Spencera773bd52006-08-04 18:18:08 +00002602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604
Reid Spencera773bd52006-08-04 18:18:08 +00002605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002607
Reid Spencera773bd52006-08-04 18:18:08 +00002608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ac_c_werror_flag=$ac_save_c_werror_flag
2610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002611{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613if test "$ac_test_CFLAGS" = set; then
2614 CFLAGS=$ac_save_CFLAGS
2615elif test $ac_cv_prog_cc_g = yes; then
2616 if test "$GCC" = yes; then
2617 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002618 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002620 fi
2621else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622 if test "$GCC" = yes; then
2623 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002624 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002626 fi
2627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002628{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630if test "${ac_cv_prog_cc_c89+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632else
Reid Spencera773bd52006-08-04 18:18:08 +00002633 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002635cat >conftest.$ac_ext <<_ACEOF
2636/* confdefs.h. */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640/* end confdefs.h. */
2641#include <stdarg.h>
2642#include <stdio.h>
2643#include <sys/types.h>
2644#include <sys/stat.h>
2645/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2646struct buf { int x; };
2647FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648static char *e (p, i)
2649 char **p;
2650 int i;
2651{
2652 return p[i];
2653}
2654static char *f (char * (*g) (char **, int), char **p, ...)
2655{
2656 char *s;
2657 va_list v;
2658 va_start (v,p);
2659 s = g (p, va_arg (v,int));
2660 va_end (v);
2661 return s;
2662}
2663
2664/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2665 function prototypes and stuff, but not '\xHH' hex character constants.
2666 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002667 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2669 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002670 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672
Reid Spencera773bd52006-08-04 18:18:08 +00002673/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674 inside strings and character constants. */
2675#define FOO(x) 'x'
2676int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678int test (int i, double x);
2679struct s1 {int (*f) (int a);};
2680struct s2 {int (*f) (double a);};
2681int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682int argc;
2683char **argv;
2684int
2685main ()
2686{
2687return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2688 ;
2689 return 0;
2690}
2691_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002692for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002694do
2695 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002696 rm -f conftest.$ac_objext
2697if { (ac_try="$ac_compile"
2698case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701esac
2702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711 { (case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_try") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002730 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002731else
2732 echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002737
Reid Spencera773bd52006-08-04 18:18:08 +00002738rm -f core conftest.err conftest.$ac_objext
2739 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002740done
Reid Spencera773bd52006-08-04 18:18:08 +00002741rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002742CC=$ac_save_CC
2743
2744fi
Reid Spencera773bd52006-08-04 18:18:08 +00002745# AC_CACHE_VAL
2746case "x$ac_cv_prog_cc_c89" in
2747 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748 { echo "$as_me:$LINENO: result: none needed" >&5
2749echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002750 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751 { echo "$as_me:$LINENO: result: unsupported" >&5
2752echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002753 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002754 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2756echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002757esac
2758
John Criswell0c38eaf2003-09-10 15:17:25 +00002759
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002760ac_ext=c
2761ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
Eric Christopherffee5722011-09-16 20:36:25 +00002766ac_ext=cpp
2767ac_cpp='$CXXCPP $CPPFLAGS'
2768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2771if test -z "$CXX"; then
2772 if test -n "$CCC"; then
2773 CXX=$CCC
2774 else
2775 if test -n "$ac_tool_prefix"; then
2776 for ac_prog in clang++ llvm-g++ g++
2777 do
2778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782if test "${ac_cv_prog_CXX+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785 if test -n "$CXX"; then
2786 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799done
2800done
2801IFS=$as_save_IFS
2802
2803fi
2804fi
2805CXX=$ac_cv_prog_CXX
2806if test -n "$CXX"; then
2807 { echo "$as_me:$LINENO: result: $CXX" >&5
2808echo "${ECHO_T}$CXX" >&6; }
2809else
2810 { echo "$as_me:$LINENO: result: no" >&5
2811echo "${ECHO_T}no" >&6; }
2812fi
2813
2814
2815 test -n "$CXX" && break
2816 done
2817fi
2818if test -z "$CXX"; then
2819 ac_ct_CXX=$CXX
2820 for ac_prog in clang++ llvm-g++ g++
2821do
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823set dummy $ac_prog; ac_word=$2
2824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828else
2829 if test -n "$ac_ct_CXX"; then
2830 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CXX="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843done
2844done
2845IFS=$as_save_IFS
2846
2847fi
2848fi
2849ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850if test -n "$ac_ct_CXX"; then
2851 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852echo "${ECHO_T}$ac_ct_CXX" >&6; }
2853else
2854 { echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6; }
2856fi
2857
2858
2859 test -n "$ac_ct_CXX" && break
2860done
2861
2862 if test "x$ac_ct_CXX" = x; then
2863 CXX="g++"
2864 else
2865 case $cross_compiling:$ac_tool_warned in
2866yes:)
2867{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2868whose name does not start with the host triplet. If you think this
2869configuration is useful to you, please write to autoconf@gnu.org." >&5
2870echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2871whose name does not start with the host triplet. If you think this
2872configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2873ac_tool_warned=yes ;;
2874esac
2875 CXX=$ac_ct_CXX
2876 fi
2877fi
2878
2879 fi
2880fi
2881# Provide some information about the compiler.
2882echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2883ac_compiler=`set X $ac_compile; echo $2`
2884{ (ac_try="$ac_compiler --version >&5"
2885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler --version >&5") 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894{ (ac_try="$ac_compiler -v >&5"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compiler -v >&5") 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904{ (ac_try="$ac_compiler -V >&5"
2905case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908esac
2909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compiler -V >&5") 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914
2915{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2917if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919else
2920 cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h. */
2926
2927int
2928main ()
2929{
2930#ifndef __GNUC__
2931 choke me
2932#endif
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938rm -f conftest.$ac_objext
2939if { (ac_try="$ac_compile"
2940case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943esac
2944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2946 ac_status=$?
2947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2953 { (case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_try") 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 ac_compiler_gnu=yes
2973else
2974 echo "$as_me: failed program was:" >&5
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 ac_compiler_gnu=no
2978fi
2979
2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2982
2983fi
2984{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2985echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2986GXX=`test $ac_compiler_gnu = yes && echo yes`
2987ac_test_CXXFLAGS=${CXXFLAGS+set}
2988ac_save_CXXFLAGS=$CXXFLAGS
2989{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2990echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2991if test "${ac_cv_prog_cxx_g+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2995 ac_cxx_werror_flag=yes
2996 ac_cv_prog_cxx_g=no
2997 CXXFLAGS="-g"
2998 cat >conftest.$ac_ext <<_ACEOF
2999/* confdefs.h. */
3000_ACEOF
3001cat confdefs.h >>conftest.$ac_ext
3002cat >>conftest.$ac_ext <<_ACEOF
3003/* end confdefs.h. */
3004
3005int
3006main ()
3007{
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext
3014if { (ac_try="$ac_compile"
3015case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
3019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041esac
3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_try") 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 ac_cv_prog_cxx_g=yes
3048else
3049 echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 CXXFLAGS=""
3053 cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
3059
3060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext
3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 :
3103else
3104 echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3108 CXXFLAGS="-g"
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
3124rm -f conftest.$ac_objext
3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_prog_cxx_g=yes
3159else
3160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163
3164fi
3165
3166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167fi
3168
3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170fi
3171
3172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3174fi
3175{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3176echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3177if test "$ac_test_CXXFLAGS" = set; then
3178 CXXFLAGS=$ac_save_CXXFLAGS
3179elif test $ac_cv_prog_cxx_g = yes; then
3180 if test "$GXX" = yes; then
3181 CXXFLAGS="-g -O2"
3182 else
3183 CXXFLAGS="-g"
3184 fi
3185else
3186 if test "$GXX" = yes; then
3187 CXXFLAGS="-O2"
3188 else
3189 CXXFLAGS=
3190 fi
3191fi
3192ac_ext=c
3193ac_cpp='$CPP $CPPFLAGS'
3194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003198ac_ext=c
3199ac_cpp='$CPP $CPPFLAGS'
3200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003203{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3204echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003205# On Suns, sometimes $CPP names a directory.
3206if test -n "$CPP" && test -d "$CPP"; then
3207 CPP=
3208fi
3209if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003210 if test "${ac_cv_prog_CPP+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212else
3213 # Double quotes because CPP needs to be expanded
3214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3215 do
3216 ac_preproc_ok=false
3217for ac_c_preproc_warn_flag in '' yes
3218do
3219 # Use a header file that comes with gcc, so configuring glibc
3220 # with a fresh cross-compiler works.
3221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222 # <limits.h> exists even on freestanding compilers.
3223 # On the NeXT, cc -E runs the code through the compiler's parser,
3224 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003225 cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h. */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003230/* end confdefs.h. */
3231#ifdef __STDC__
3232# include <limits.h>
3233#else
3234# include <assert.h>
3235#endif
3236 Syntax error
3237_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003238if { (ac_try="$ac_cpp conftest.$ac_ext"
3239case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
3243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } >/dev/null; then
3251 if test -s conftest.err; then
3252 ac_cpp_err=$ac_c_preproc_warn_flag
3253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254 else
3255 ac_cpp_err=
3256 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003257else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003258 ac_cpp_err=yes
3259fi
3260if test -z "$ac_cpp_err"; then
3261 :
3262else
3263 echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266 # Broken: fails on valid input.
3267continue
3268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003269
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270rm -f conftest.err conftest.$ac_ext
3271
Reid Spencera773bd52006-08-04 18:18:08 +00003272 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003274 cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279/* end confdefs.h. */
3280#include <ac_nonexistent.h>
3281_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003282if { (ac_try="$ac_cpp conftest.$ac_ext"
3283case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286esac
3287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289 ac_status=$?
3290 grep -v '^ *+' conftest.er1 >conftest.err
3291 rm -f conftest.er1
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } >/dev/null; then
3295 if test -s conftest.err; then
3296 ac_cpp_err=$ac_c_preproc_warn_flag
3297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3298 else
3299 ac_cpp_err=
3300 fi
3301else
3302 ac_cpp_err=yes
3303fi
3304if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305 # Broken: success on invalid input.
3306continue
3307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003308 echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003311 # Passes both tests.
3312ac_preproc_ok=:
3313break
3314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003315
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003316rm -f conftest.err conftest.$ac_ext
3317
3318done
3319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003321if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322 break
3323fi
3324
3325 done
3326 ac_cv_prog_CPP=$CPP
3327
3328fi
3329 CPP=$ac_cv_prog_CPP
3330else
3331 ac_cv_prog_CPP=$CPP
3332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003333{ echo "$as_me:$LINENO: result: $CPP" >&5
3334echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335ac_preproc_ok=false
3336for ac_c_preproc_warn_flag in '' yes
3337do
3338 # Use a header file that comes with gcc, so configuring glibc
3339 # with a fresh cross-compiler works.
3340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341 # <limits.h> exists even on freestanding compilers.
3342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003344 cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h. */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349/* end confdefs.h. */
3350#ifdef __STDC__
3351# include <limits.h>
3352#else
3353# include <assert.h>
3354#endif
3355 Syntax error
3356_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003357if { (ac_try="$ac_cpp conftest.$ac_ext"
3358case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } >/dev/null; then
3370 if test -s conftest.err; then
3371 ac_cpp_err=$ac_c_preproc_warn_flag
3372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3373 else
3374 ac_cpp_err=
3375 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003377 ac_cpp_err=yes
3378fi
3379if test -z "$ac_cpp_err"; then
3380 :
3381else
3382 echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385 # Broken: fails on valid input.
3386continue
3387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003388
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389rm -f conftest.err conftest.$ac_ext
3390
Reid Spencera773bd52006-08-04 18:18:08 +00003391 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003393 cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398/* end confdefs.h. */
3399#include <ac_nonexistent.h>
3400_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003401if { (ac_try="$ac_cpp conftest.$ac_ext"
3402case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
3406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_c_preproc_warn_flag
3416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417 else
3418 ac_cpp_err=
3419 fi
3420else
3421 ac_cpp_err=yes
3422fi
3423if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424 # Broken: success on invalid input.
3425continue
3426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003430 # Passes both tests.
3431ac_preproc_ok=:
3432break
3433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003434
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435rm -f conftest.err conftest.$ac_ext
3436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440if $ac_preproc_ok; then
3441 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&5
3445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&2;}
3447 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003448fi
3449
John Criswell7a73b802003-06-30 21:59:07 +00003450ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
John Criswell7a73b802003-06-30 21:59:07 +00003456
Eric Christopherffee5722011-09-16 20:36:25 +00003457
3458
3459if test -d ${srcdir}/projects/llvm-gcc ; then
3460 subdirs="$subdirs projects/llvm-gcc"
3461
3462fi
3463
3464if test -d ${srcdir}/projects/test-suite ; then
3465 subdirs="$subdirs projects/test-suite"
3466
3467fi
3468
3469if test -d ${srcdir}/projects/llvm-test ; then
3470 subdirs="$subdirs projects/llvm-test"
3471
3472fi
3473
3474if test -d ${srcdir}/projects/poolalloc ; then
3475 subdirs="$subdirs projects/poolalloc"
3476
3477fi
3478
3479if test -d ${srcdir}/projects/llvm-poolalloc ; then
3480 subdirs="$subdirs projects/llvm-poolalloc"
3481
3482fi
3483
3484for i in `ls ${srcdir}/projects`
3485do
3486 if test -d ${srcdir}/projects/${i} ; then
3487 case ${i} in
3488 sample) subdirs="$subdirs projects/sample"
3489 ;;
3490 privbracket) subdirs="$subdirs projects/privbracket"
3491 ;;
3492 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3493 ;;
3494 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3495;;
3496 llvm-java) subdirs="$subdirs projects/llvm-java"
3497 ;;
3498 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3499 ;;
3500 safecode) subdirs="$subdirs projects/safecode"
3501 ;;
3502 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3503 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003504 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003505 llvm-gcc) ;;
3506 test-suite) ;;
3507 llvm-test) ;;
3508 poolalloc) ;;
3509 llvm-poolalloc) ;;
3510 *)
3511 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3512echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3513 ;;
3514 esac
3515 fi
3516done
3517
3518# Check whether --enable-polly was given.
3519if test "${enable_polly+set}" = set; then
3520 enableval=$enable_polly;
3521else
3522 enableval=default
3523fi
3524
3525case "$enableval" in
3526 yes) ENABLE_POLLY=1
3527 ;;
3528 no) ENABLE_POLLY=0
3529 ;;
3530 default) ENABLE_POLLY=1
3531 ;;
3532 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3533echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3534 { (exit 1); exit 1; }; } ;;
3535esac
3536
3537
3538if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3539 LLVM_HAS_POLLY=1
3540
3541 subdirs="$subdirs tools/polly"
3542
3543fi
3544
3545
3546# Make sure we can run config.sub.
3547$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3548 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3549echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3550 { (exit 1); exit 1; }; }
3551
3552{ echo "$as_me:$LINENO: checking build system type" >&5
3553echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3554if test "${ac_cv_build+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 ac_build_alias=$build_alias
3558test "x$ac_build_alias" = x &&
3559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560test "x$ac_build_alias" = x &&
3561 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563 { (exit 1); exit 1; }; }
3564ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3566echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3567 { (exit 1); exit 1; }; }
3568
3569fi
3570{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571echo "${ECHO_T}$ac_cv_build" >&6; }
3572case $ac_cv_build in
3573*-*-*) ;;
3574*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3575echo "$as_me: error: invalid value of canonical build" >&2;}
3576 { (exit 1); exit 1; }; };;
3577esac
3578build=$ac_cv_build
3579ac_save_IFS=$IFS; IFS='-'
3580set x $ac_cv_build
3581shift
3582build_cpu=$1
3583build_vendor=$2
3584shift; shift
3585# Remember, the first character of IFS is used to create $*,
3586# except with old shells:
3587build_os=$*
3588IFS=$ac_save_IFS
3589case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590
3591
3592{ echo "$as_me:$LINENO: checking host system type" >&5
3593echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3594if test "${ac_cv_host+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
3597 if test "x$host_alias" = x; then
3598 ac_cv_host=$ac_cv_build
3599else
3600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3602echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3603 { (exit 1); exit 1; }; }
3604fi
3605
3606fi
3607{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3608echo "${ECHO_T}$ac_cv_host" >&6; }
3609case $ac_cv_host in
3610*-*-*) ;;
3611*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3612echo "$as_me: error: invalid value of canonical host" >&2;}
3613 { (exit 1); exit 1; }; };;
3614esac
3615host=$ac_cv_host
3616ac_save_IFS=$IFS; IFS='-'
3617set x $ac_cv_host
3618shift
3619host_cpu=$1
3620host_vendor=$2
3621shift; shift
3622# Remember, the first character of IFS is used to create $*,
3623# except with old shells:
3624host_os=$*
3625IFS=$ac_save_IFS
3626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627
3628
3629{ echo "$as_me:$LINENO: checking target system type" >&5
3630echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3631if test "${ac_cv_target+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633else
3634 if test "x$target_alias" = x; then
3635 ac_cv_target=$ac_cv_host
3636else
3637 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3638 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3639echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3640 { (exit 1); exit 1; }; }
3641fi
3642
3643fi
3644{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3645echo "${ECHO_T}$ac_cv_target" >&6; }
3646case $ac_cv_target in
3647*-*-*) ;;
3648*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3649echo "$as_me: error: invalid value of canonical target" >&2;}
3650 { (exit 1); exit 1; }; };;
3651esac
3652target=$ac_cv_target
3653ac_save_IFS=$IFS; IFS='-'
3654set x $ac_cv_target
3655shift
3656target_cpu=$1
3657target_vendor=$2
3658shift; shift
3659# Remember, the first character of IFS is used to create $*,
3660# except with old shells:
3661target_os=$*
3662IFS=$ac_save_IFS
3663case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3664
3665
3666# The aliases save the names the user supplied, while $host etc.
3667# will get canonicalized.
3668test -n "$target_alias" &&
3669 test "$program_prefix$program_suffix$program_transform_name" = \
3670 NONENONEs,x,x, &&
3671 program_prefix=${target_alias}-
3672
3673{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3674echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3675if test "${llvm_cv_os_type+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
3678 case $host in
3679 *-*-aix*)
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="AIX"
3683 llvm_cv_platform_type="Unix" ;;
3684 *-*-irix*)
3685 llvm_cv_link_all_option="-Wl,--whole-archive"
3686 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687 llvm_cv_os_type="IRIX"
3688 llvm_cv_platform_type="Unix" ;;
3689 *-*-cygwin*)
3690 llvm_cv_link_all_option="-Wl,--whole-archive"
3691 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692 llvm_cv_os_type="Cygwin"
3693 llvm_cv_platform_type="Unix" ;;
3694 *-*-darwin*)
3695 llvm_cv_link_all_option="-Wl,-all_load"
3696 llvm_cv_no_link_all_option="-Wl,-noall_load"
3697 llvm_cv_os_type="Darwin"
3698 llvm_cv_platform_type="Unix" ;;
3699 *-*-minix*)
3700 llvm_cv_link_all_option="-Wl,-all_load"
3701 llvm_cv_no_link_all_option="-Wl,-noall_load"
3702 llvm_cv_os_type="Minix"
3703 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003704 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003705 llvm_cv_link_all_option="-Wl,--whole-archive"
3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707 llvm_cv_os_type="FreeBSD"
3708 llvm_cv_platform_type="Unix" ;;
3709 *-*-openbsd*)
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="OpenBSD"
3713 llvm_cv_platform_type="Unix" ;;
3714 *-*-netbsd*)
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="NetBSD"
3718 llvm_cv_platform_type="Unix" ;;
3719 *-*-dragonfly*)
3720 llvm_cv_link_all_option="-Wl,--whole-archive"
3721 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722 llvm_cv_os_type="DragonFly"
3723 llvm_cv_platform_type="Unix" ;;
3724 *-*-hpux*)
3725 llvm_cv_link_all_option="-Wl,--whole-archive"
3726 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727 llvm_cv_os_type="HP-UX"
3728 llvm_cv_platform_type="Unix" ;;
3729 *-*-interix*)
3730 llvm_cv_link_all_option="-Wl,--whole-archive"
3731 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732 llvm_cv_os_type="Interix"
3733 llvm_cv_platform_type="Unix" ;;
3734 *-*-linux*)
3735 llvm_cv_link_all_option="-Wl,--whole-archive"
3736 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737 llvm_cv_os_type="Linux"
3738 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003739 *-*-gnu*)
3740 llvm_cv_link_all_option="-Wl,--whole-archive"
3741 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3742 llvm_cv_os_type="GNU"
3743 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003744 *-*-solaris*)
3745 llvm_cv_link_all_option="-Wl,-z,allextract"
3746 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3747 llvm_cv_os_type="SunOS"
3748 llvm_cv_platform_type="Unix" ;;
3749 *-*-auroraux*)
3750 llvm_cv_link_all_option="-Wl,-z,allextract"
3751 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3752 llvm_cv_os_type="AuroraUX"
3753 llvm_cv_platform_type="Unix" ;;
3754 *-*-win32*)
3755 llvm_cv_link_all_option="-Wl,--whole-archive"
3756 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757 llvm_cv_os_type="Win32"
3758 llvm_cv_platform_type="Win32" ;;
3759 *-*-mingw*)
3760 llvm_cv_link_all_option="-Wl,--whole-archive"
3761 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762 llvm_cv_os_type="MingW"
3763 llvm_cv_platform_type="Win32" ;;
3764 *-*-haiku*)
3765 llvm_cv_link_all_option="-Wl,--whole-archive"
3766 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767 llvm_cv_os_type="Haiku"
3768 llvm_cv_platform_type="Unix" ;;
3769 *-unknown-eabi*)
3770 llvm_cv_link_all_option="-Wl,--whole-archive"
3771 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772 llvm_cv_os_type="Freestanding"
3773 llvm_cv_platform_type="Unix" ;;
3774 *-unknown-elf*)
3775 llvm_cv_link_all_option="-Wl,--whole-archive"
3776 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3777 llvm_cv_os_type="Freestanding"
3778 llvm_cv_platform_type="Unix" ;;
3779 *)
3780 llvm_cv_link_all_option=""
3781 llvm_cv_no_link_all_option=""
3782 llvm_cv_os_type="Unknown"
3783 llvm_cv_platform_type="Unknown" ;;
3784esac
3785fi
3786{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3787echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3788
3789{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3790echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3791if test "${llvm_cv_target_os_type+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 case $target in
3795 *-*-aix*)
3796 llvm_cv_target_os_type="AIX" ;;
3797 *-*-irix*)
3798 llvm_cv_target_os_type="IRIX" ;;
3799 *-*-cygwin*)
3800 llvm_cv_target_os_type="Cygwin" ;;
3801 *-*-darwin*)
3802 llvm_cv_target_os_type="Darwin" ;;
3803 *-*-minix*)
3804 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003805 *-*-freebsd*| *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003806 llvm_cv_target_os_type="FreeBSD" ;;
3807 *-*-openbsd*)
3808 llvm_cv_target_os_type="OpenBSD" ;;
3809 *-*-netbsd*)
3810 llvm_cv_target_os_type="NetBSD" ;;
3811 *-*-dragonfly*)
3812 llvm_cv_target_os_type="DragonFly" ;;
3813 *-*-hpux*)
3814 llvm_cv_target_os_type="HP-UX" ;;
3815 *-*-interix*)
3816 llvm_cv_target_os_type="Interix" ;;
3817 *-*-linux*)
3818 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003819 *-*-gnu*)
3820 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003821 *-*-solaris*)
3822 llvm_cv_target_os_type="SunOS" ;;
3823 *-*-auroraux*)
3824 llvm_cv_target_os_type="AuroraUX" ;;
3825 *-*-win32*)
3826 llvm_cv_target_os_type="Win32" ;;
3827 *-*-mingw*)
3828 llvm_cv_target_os_type="MingW" ;;
3829 *-*-haiku*)
3830 llvm_cv_target_os_type="Haiku" ;;
3831 *-*-rtems*)
3832 llvm_cv_target_os_type="RTEMS" ;;
3833 *-*-nacl*)
3834 llvm_cv_target_os_type="NativeClient" ;;
3835 *-unknown-eabi*)
3836 llvm_cv_target_os_type="Freestanding" ;;
3837 *)
3838 llvm_cv_target_os_type="Unknown" ;;
3839esac
3840fi
3841{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3842echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3843
3844if test "$llvm_cv_os_type" = "Unknown" ; then
3845 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3846echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3847 { (exit 1); exit 1; }; }
3848fi
3849
3850OS=$llvm_cv_os_type
3851
3852HOST_OS=$llvm_cv_os_type
3853
3854TARGET_OS=$llvm_cv_target_os_type
3855
3856
3857LINKALL=$llvm_cv_link_all_option
3858
3859NOLINKALL=$llvm_cv_no_link_all_option
3860
3861
3862case $llvm_cv_platform_type in
3863 Unix)
3864
3865cat >>confdefs.h <<\_ACEOF
3866#define LLVM_ON_UNIX 1
3867_ACEOF
3868
3869 LLVM_ON_UNIX=1
3870
3871 LLVM_ON_WIN32=0
3872
3873 ;;
3874 Win32)
3875
3876cat >>confdefs.h <<\_ACEOF
3877#define LLVM_ON_WIN32 1
3878_ACEOF
3879
3880 LLVM_ON_UNIX=0
3881
3882 LLVM_ON_WIN32=1
3883
3884 ;;
3885esac
3886
3887{ echo "$as_me:$LINENO: checking target architecture" >&5
3888echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3889if test "${llvm_cv_target_arch+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892 case $target in
3893 i?86-*) llvm_cv_target_arch="x86" ;;
3894 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3895 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3896 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003897 arm*-*) llvm_cv_target_arch="ARM" ;;
3898 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003899 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003900 xcore-*) llvm_cv_target_arch="XCore" ;;
3901 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003902 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003903 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3904 ptx-*) llvm_cv_target_arch="PTX" ;;
3905 *) llvm_cv_target_arch="Unknown" ;;
3906esac
3907fi
3908{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3909echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3910
3911if test "$llvm_cv_target_arch" = "Unknown" ; then
3912 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3913echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3914fi
3915
Eric Christopherffee5722011-09-16 20:36:25 +00003916case "$llvm_cv_target_arch" in
3917 x86) LLVM_NATIVE_ARCH="X86" ;;
3918 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3919 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3920esac
3921
3922ARCH=$llvm_cv_target_arch
3923
3924
3925
3926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003927{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3928echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3929if test "${ac_cv_path_GREP+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003931else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003932 # Extract the first word of "grep ggrep" to use in msg output
3933if test -z "$GREP"; then
3934set dummy grep ggrep; ac_prog_name=$2
3935if test "${ac_cv_path_GREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
Reid Spencera773bd52006-08-04 18:18:08 +00003938 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003939# Loop through the user's path and test for each of PROGNAME-LIST
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003945 for ac_prog in grep ggrep; do
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3948 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3949 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003950 # Check for GNU $ac_path_GREP
3951case `"$ac_path_GREP" --version 2>&1` in
3952*GNU*)
3953 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3954*)
3955 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003956 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003957 while :
3958 do
3959 cat "conftest.in" "conftest.in" >"conftest.tmp"
3960 mv "conftest.tmp" "conftest.in"
3961 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003965 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003966 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967 # Best one so far, save it but keep looking for a better one
3968 ac_cv_path_GREP="$ac_path_GREP"
3969 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003970 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003971 # 10*(2^10) chars as input seems more than enough
3972 test $ac_count -gt 10 && break
3973 done
3974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3975esac
3976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003977
3978 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003979 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980done
3981
3982done
Reid Spencera773bd52006-08-04 18:18:08 +00003983IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003984
3985
3986fi
3987
3988GREP="$ac_cv_path_GREP"
3989if test -z "$GREP"; then
3990 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3991echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3992 { (exit 1); exit 1; }; }
3993fi
3994
Reid Spencera773bd52006-08-04 18:18:08 +00003995else
3996 ac_cv_path_GREP=$GREP
3997fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999
Reid Spencera773bd52006-08-04 18:18:08 +00004000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004001{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4002echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004003 GREP="$ac_cv_path_GREP"
4004
4005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004006{ echo "$as_me:$LINENO: checking for egrep" >&5
4007echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4008if test "${ac_cv_path_EGREP+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004010else
4011 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4012 then ac_cv_path_EGREP="$GREP -E"
4013 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004014 # Extract the first word of "egrep" to use in msg output
4015if test -z "$EGREP"; then
4016set dummy egrep; ac_prog_name=$2
4017if test "${ac_cv_path_EGREP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
Reid Spencera773bd52006-08-04 18:18:08 +00004020 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004021# Loop through the user's path and test for each of PROGNAME-LIST
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004023for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004027 for ac_prog in egrep; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4030 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4031 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004032 # Check for GNU $ac_path_EGREP
4033case `"$ac_path_EGREP" --version 2>&1` in
4034*GNU*)
4035 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4036*)
4037 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004038 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004039 while :
4040 do
4041 cat "conftest.in" "conftest.in" >"conftest.tmp"
4042 mv "conftest.tmp" "conftest.in"
4043 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004044 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004045 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004047 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004048 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4049 # Best one so far, save it but keep looking for a better one
4050 ac_cv_path_EGREP="$ac_path_EGREP"
4051 ac_path_EGREP_max=$ac_count
4052 fi
4053 # 10*(2^10) chars as input seems more than enough
4054 test $ac_count -gt 10 && break
4055 done
4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057esac
4058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004059
4060 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004061 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004062done
4063
4064done
Reid Spencera773bd52006-08-04 18:18:08 +00004065IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004066
4067
4068fi
4069
4070EGREP="$ac_cv_path_EGREP"
4071if test -z "$EGREP"; then
4072 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4073echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4074 { (exit 1); exit 1; }; }
4075fi
4076
Reid Spencera773bd52006-08-04 18:18:08 +00004077else
4078 ac_cv_path_EGREP=$EGREP
4079fi
4080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004081
Reid Spencera773bd52006-08-04 18:18:08 +00004082 fi
4083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4085echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004086 EGREP="$ac_cv_path_EGREP"
4087
4088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4090echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4091if test "${ac_cv_header_stdc+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094 cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h. */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004099/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004100#include <stdlib.h>
4101#include <stdarg.h>
4102#include <string.h>
4103#include <float.h>
4104
John Criswell0c38eaf2003-09-10 15:17:25 +00004105int
4106main ()
4107{
4108
4109 ;
4110 return 0;
4111}
John Criswell7a73b802003-06-30 21:59:07 +00004112_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004113rm -f conftest.$ac_objext
4114if { (ac_try="$ac_compile"
4115case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118esac
4119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4128 { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131esac
4132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_try") 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; } &&
4137 { ac_try='test -s conftest.$ac_objext'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004147 ac_cv_header_stdc=yes
4148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004149 echo "$as_me: failed program was:" >&5
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004153fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004154
Reid Spencera773bd52006-08-04 18:18:08 +00004155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004156
4157if test $ac_cv_header_stdc = yes; then
4158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159 cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h. */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004165#include <string.h>
4166
4167_ACEOF
4168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004169 $EGREP "memchr" >/dev/null 2>&1; then
4170 :
John Criswell7a73b802003-06-30 21:59:07 +00004171else
4172 ac_cv_header_stdc=no
4173fi
4174rm -f conftest*
4175
4176fi
4177
4178if test $ac_cv_header_stdc = yes; then
4179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004180 cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h. */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004186#include <stdlib.h>
4187
4188_ACEOF
4189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004190 $EGREP "free" >/dev/null 2>&1; then
4191 :
John Criswell7a73b802003-06-30 21:59:07 +00004192else
4193 ac_cv_header_stdc=no
4194fi
4195rm -f conftest*
4196
4197fi
4198
4199if test $ac_cv_header_stdc = yes; then
4200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004202 :
4203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004204 cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004209/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004210#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004211#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004212#if ((' ' & 0x0FF) == 0x020)
4213# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4214# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4215#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004216# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004217 (('a' <= (c) && (c) <= 'i') \
4218 || ('j' <= (c) && (c) <= 'r') \
4219 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004220# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4221#endif
4222
4223#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4224int
4225main ()
4226{
4227 int i;
4228 for (i = 0; i < 256; i++)
4229 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004230 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004231 return 2;
4232 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004233}
4234_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004235rm -f conftest$ac_exeext
4236if { (ac_try="$ac_link"
4237case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
4241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_link") 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 :
John Criswell7a73b802003-06-30 21:59:07 +00004256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004257 echo "$as_me: program exited with status $ac_status" >&5
4258echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
4261( exit $ac_status )
4262ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004264rm -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 +00004265fi
4266
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004267
John Criswell7a73b802003-06-30 21:59:07 +00004268fi
4269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004270{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4271echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004272if test $ac_cv_header_stdc = yes; then
4273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004274cat >>confdefs.h <<\_ACEOF
4275#define STDC_HEADERS 1
4276_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004277
4278fi
4279
Reid Spencera773bd52006-08-04 18:18:08 +00004280# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004281
4282
4283
4284
4285
4286
4287
4288
4289
Reid Spencera773bd52006-08-04 18:18:08 +00004290for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4291 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292do
4293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4294{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4298else
4299 cat >conftest.$ac_ext <<_ACEOF
4300/* confdefs.h. */
4301_ACEOF
4302cat confdefs.h >>conftest.$ac_ext
4303cat >>conftest.$ac_ext <<_ACEOF
4304/* end confdefs.h. */
4305$ac_includes_default
4306
4307#include <$ac_header>
4308_ACEOF
4309rm -f conftest.$ac_objext
4310if { (ac_try="$ac_compile"
4311case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314esac
4315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_compile") 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4324 { (case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_try") 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest.$ac_objext'
4334 { (case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337esac
4338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_try") 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 eval "$as_ac_Header=yes"
4344else
4345 echo "$as_me: failed program was:" >&5
4346sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 eval "$as_ac_Header=no"
4349fi
4350
4351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352fi
4353ac_res=`eval echo '${'$as_ac_Header'}'`
4354 { echo "$as_me:$LINENO: result: $ac_res" >&5
4355echo "${ECHO_T}$ac_res" >&6; }
4356if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004357 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004358#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004359_ACEOF
4360
4361fi
4362
4363done
4364
4365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004366{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4367echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4368if test "${ac_cv_c_bigendian+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004371 # See if sys/param.h defines the BYTE_ORDER macro.
4372cat >conftest.$ac_ext <<_ACEOF
4373/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004374_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375cat confdefs.h >>conftest.$ac_ext
4376cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004377/* end confdefs.h. */
4378#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004379#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004380
4381int
4382main ()
4383{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004384#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4385 bogus endian macros
4386#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004387
4388 ;
4389 return 0;
4390}
4391_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392rm -f conftest.$ac_objext
4393if { (ac_try="$ac_compile"
4394case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407 { (case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410esac
4411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_try") 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420esac
4421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_try") 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004426 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004427cat >conftest.$ac_ext <<_ACEOF
4428/* confdefs.h. */
4429_ACEOF
4430cat confdefs.h >>conftest.$ac_ext
4431cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004432/* end confdefs.h. */
4433#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004434#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004435
4436int
4437main ()
4438{
4439#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004440 not big endian
4441#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004442
4443 ;
4444 return 0;
4445}
4446_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447rm -f conftest.$ac_objext
4448if { (ac_try="$ac_compile"
4449case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452esac
4453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4462 { (case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465esac
4466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_try") 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; } &&
4471 { ac_try='test -s conftest.$ac_objext'
4472 { (case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475esac
4476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_try") 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004481 ac_cv_c_bigendian=yes
4482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004483 echo "$as_me: failed program was:" >&5
4484sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004486 ac_cv_c_bigendian=no
4487fi
4488
4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490else
4491 echo "$as_me: failed program was:" >&5
4492sed 's/^/| /' conftest.$ac_ext >&5
4493
4494 # It does not; compile a test program.
4495if test "$cross_compiling" = yes; then
4496 # try to guess the endianness by grepping values into an object file
4497 ac_cv_c_bigendian=unknown
4498 cat >conftest.$ac_ext <<_ACEOF
4499/* confdefs.h. */
4500_ACEOF
4501cat confdefs.h >>conftest.$ac_ext
4502cat >>conftest.$ac_ext <<_ACEOF
4503/* end confdefs.h. */
4504short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4505short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4506void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4507short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4508short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4509void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004510int
4511main ()
4512{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004513 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004514 ;
4515 return 0;
4516}
4517_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004518rm -f conftest.$ac_objext
4519if { (ac_try="$ac_compile"
4520case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523esac
4524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_compile") 2>conftest.er1
4526 ac_status=$?
4527 grep -v '^ *+' conftest.er1 >conftest.err
4528 rm -f conftest.er1
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4533 { (case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536esac
4537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_try") 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546esac
4547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_try") 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004553 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554fi
4555if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4556 if test "$ac_cv_c_bigendian" = unknown; then
4557 ac_cv_c_bigendian=no
4558 else
4559 # finding both strings is unlikely to happen, but who knows?
4560 ac_cv_c_bigendian=unknown
4561 fi
4562fi
Reid Spencera773bd52006-08-04 18:18:08 +00004563else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564 echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004567
Torok Edwin871384f2010-01-26 08:50:50 +00004568fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569
Reid Spencera773bd52006-08-04 18:18:08 +00004570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572 cat >conftest.$ac_ext <<_ACEOF
4573/* confdefs.h. */
4574_ACEOF
4575cat confdefs.h >>conftest.$ac_ext
4576cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004577/* end confdefs.h. */
4578$ac_includes_default
4579int
4580main ()
4581{
4582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004583 /* Are we little or big endian? From Harbison&Steele. */
4584 union
4585 {
4586 long int l;
4587 char c[sizeof (long int)];
4588 } u;
4589 u.l = 1;
4590 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004591
4592 ;
4593 return 0;
4594}
4595_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004596rm -f conftest$ac_exeext
4597if { (ac_try="$ac_link"
4598case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601esac
4602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_link") 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610esac
4611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004616 ac_cv_c_bigendian=no
4617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618 echo "$as_me: program exited with status $ac_status" >&5
4619echo "$as_me: failed program was:" >&5
4620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622( exit $ac_status )
4623ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004625rm -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 +00004626fi
4627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628
Reid Spencera773bd52006-08-04 18:18:08 +00004629fi
4630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632fi
4633{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4634echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4635case $ac_cv_c_bigendian in
4636 yes)
4637 ENDIAN=big
4638 ;;
4639 no)
4640 ENDIAN=little
4641 ;;
4642 *)
4643 { { echo "$as_me:$LINENO: error: unknown endianness
4644presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4645echo "$as_me: error: unknown endianness
4646presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4647 { (exit 1); exit 1; }; } ;;
4648esac
Reid Spencera773bd52006-08-04 18:18:08 +00004649
4650
4651if test "$cross_compiling" = yes; then
4652 LLVM_CROSS_COMPILING=1
4653
4654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4656echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4657if test "${ac_cv_build_exeext+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004659else
4660 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4661 ac_cv_build_exeext=.exe
4662else
4663 ac_build_prefix=${build_alias}-
4664
4665 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4666set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004671else
4672 if test -n "$BUILD_CC"; then
4673 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4674else
4675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in $PATH
4677do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 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 +00004682 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004684 break 2
4685 fi
4686done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004687done
Reid Spencera773bd52006-08-04 18:18:08 +00004688IFS=$as_save_IFS
4689
4690fi
4691fi
4692BUILD_CC=$ac_cv_prog_BUILD_CC
4693if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004694 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4695echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004697 { echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004699fi
4700
4701
4702 if test -z "$BUILD_CC"; then
4703 # Extract the first word of "gcc", so it can be a program name with args.
4704set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004709else
4710 if test -n "$BUILD_CC"; then
4711 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4712else
4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 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 +00004720 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004722 break 2
4723 fi
4724done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004725done
Reid Spencera773bd52006-08-04 18:18:08 +00004726IFS=$as_save_IFS
4727
4728fi
4729fi
4730BUILD_CC=$ac_cv_prog_BUILD_CC
4731if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004732 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4733echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004734else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004735 { echo "$as_me:$LINENO: result: no" >&5
4736echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004737fi
4738
4739
4740 if test -z "$BUILD_CC"; then
4741 # Extract the first word of "cc", so it can be a program name with args.
4742set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4745if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004747else
4748 if test -n "$BUILD_CC"; then
4749 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4750else
4751 ac_prog_rejected=no
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 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 +00004759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4760 ac_prog_rejected=yes
4761 continue
4762 fi
4763 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004765 break 2
4766 fi
4767done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004768done
Reid Spencera773bd52006-08-04 18:18:08 +00004769IFS=$as_save_IFS
4770
4771if test $ac_prog_rejected = yes; then
4772 # We found a bogon in the path, so make sure we never use it.
4773 set dummy $ac_cv_prog_BUILD_CC
4774 shift
4775 if test $# != 0; then
4776 # We chose a different compiler from the bogus one.
4777 # However, it has the same basename, so the bogon will be chosen
4778 # first if we set BUILD_CC to just the basename; use the full file name.
4779 shift
4780 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4781 fi
4782fi
4783fi
4784fi
4785BUILD_CC=$ac_cv_prog_BUILD_CC
4786if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4788echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004790 { echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004792fi
4793
4794
4795 fi
4796 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4798echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4799 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004800 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4801 rm -f conftest*
4802 echo 'int main () { return 0; }' > conftest.$ac_ext
4803 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004804 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004805 (eval $ac_build_link) 2>&5
4806 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004809 for file in conftest.*; do
4810 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004811 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004812 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4813 esac
4814 done
4815 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004816 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4817echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4818 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004819 fi
4820 rm -f conftest*
4821 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4822fi
4823fi
4824
4825BUILD_EXEEXT=""
4826test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4828echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004829ac_build_exeext=$BUILD_EXEEXT
4830
Jim Grosbach673612e2008-10-02 22:56:44 +00004831 ac_build_prefix=${build_alias}-
4832 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4833set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004838else
4839 if test -n "$BUILD_CXX"; then
4840 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 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 +00004849 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004851 break 2
4852 fi
4853done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854done
Jim Grosbach673612e2008-10-02 22:56:44 +00004855IFS=$as_save_IFS
4856
4857fi
4858fi
4859BUILD_CXX=$ac_cv_prog_BUILD_CXX
4860if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004861 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4862echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004864 { echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004866fi
4867
4868
4869 if test -z "$BUILD_CXX"; then
4870 # Extract the first word of "g++", so it can be a program name with args.
4871set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004876else
4877 if test -n "$BUILD_CXX"; then
4878 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4879else
4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 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 +00004887 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004889 break 2
4890 fi
4891done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004892done
Jim Grosbach673612e2008-10-02 22:56:44 +00004893IFS=$as_save_IFS
4894
4895fi
4896fi
4897BUILD_CXX=$ac_cv_prog_BUILD_CXX
4898if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004899 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4900echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004902 { echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004904fi
4905
4906
4907 if test -z "$BUILD_CXX"; then
4908 # Extract the first word of "c++", so it can be a program name with args.
4909set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4912if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004914else
4915 if test -n "$BUILD_CXX"; then
4916 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4917else
4918 ac_prog_rejected=no
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 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 +00004926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4927 ac_prog_rejected=yes
4928 continue
4929 fi
4930 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004932 break 2
4933 fi
4934done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004935done
Jim Grosbach673612e2008-10-02 22:56:44 +00004936IFS=$as_save_IFS
4937
4938if test $ac_prog_rejected = yes; then
4939 # We found a bogon in the path, so make sure we never use it.
4940 set dummy $ac_cv_prog_BUILD_CXX
4941 shift
4942 if test $# != 0; then
4943 # We chose a different compiler from the bogus one.
4944 # However, it has the same basename, so the bogon will be chosen
4945 # first if we set BUILD_CXX to just the basename; use the full file name.
4946 shift
4947 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4948 fi
4949fi
4950fi
4951fi
4952BUILD_CXX=$ac_cv_prog_BUILD_CXX
4953if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004954 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4955echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004957 { echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004959fi
4960
4961
4962 fi
4963 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004964else
4965 LLVM_CROSS_COMPILING=0
4966
4967fi
4968
Dan Gohman56fb5f92010-08-04 16:25:01 +00004969if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004970 cvsbuild="yes"
4971 optimize="no"
4972 CVSBUILD=CVSBUILD=1
4973
4974else
4975 cvsbuild="no"
4976 optimize="yes"
4977fi
4978
4979
Eric Christopherbee515f2011-11-11 22:51:42 +00004980# Check whether --enable-libcpp was given.
4981if test "${enable_libcpp+set}" = set; then
4982 enableval=$enable_libcpp;
4983else
4984 enableval=default
4985fi
4986
4987case "$enableval" in
4988 yes) ENABLE_LIBCPP=1
4989 ;;
4990 no) ENABLE_LIBCPP=0
4991 ;;
4992 default) ENABLE_LIBCPP=0
4993;;
4994 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4995echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4996 { (exit 1); exit 1; }; } ;;
4997esac
4998
Reid Spencera773bd52006-08-04 18:18:08 +00004999# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005000if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005001 enableval=$enable_optimized;
5002else
5003 enableval=$optimize
5004fi
5005
5006if test ${enableval} = "no" ; then
5007 ENABLE_OPTIMIZED=
5008
5009else
5010 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5011
5012fi
5013
David Greene2a5a12c2009-04-17 14:50:39 +00005014# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005015if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005016 enableval=$enable_profiling;
5017else
5018 enableval="no"
5019fi
5020
5021if test ${enableval} = "no" ; then
5022 ENABLE_PROFILING=
5023
5024else
5025 ENABLE_PROFILING=ENABLE_PROFILING=1
5026
5027fi
5028
Reid Spencera773bd52006-08-04 18:18:08 +00005029# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005030if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005031 enableval=$enable_assertions;
5032else
5033 enableval="yes"
5034fi
5035
5036if test ${enableval} = "yes" ; then
5037 DISABLE_ASSERTIONS=
5038
5039else
5040 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5041
5042fi
5043
David Greenea696d242007-06-28 19:36:08 +00005044# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005045if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005046 enableval=$enable_expensive_checks;
5047else
5048 enableval="no"
5049fi
5050
5051if test ${enableval} = "yes" ; then
5052 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5053
5054 EXPENSIVE_CHECKS=yes
5055
5056else
5057 ENABLE_EXPENSIVE_CHECKS=
5058
5059 EXPENSIVE_CHECKS=no
5060
5061fi
5062
Reid Spencer8b2e1412006-11-17 03:32:33 +00005063# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005064if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005065 enableval=$enable_debug_runtime;
5066else
5067 enableval=no
5068fi
5069
5070if test ${enableval} = "no" ; then
5071 DEBUG_RUNTIME=
5072
5073else
5074 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5075
5076fi
5077
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005078# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005079if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005080 enableval=$enable_debug_symbols;
5081else
5082 enableval=no
5083fi
5084
5085if test ${enableval} = "no" ; then
5086 DEBUG_SYMBOLS=
5087
5088else
5089 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5090
5091fi
5092
Reid Spencera773bd52006-08-04 18:18:08 +00005093# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005094if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005095 enableval=$enable_jit;
5096else
5097 enableval=default
5098fi
5099
5100if test ${enableval} = "no"
5101then
5102 JIT=
5103
5104else
5105 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005106 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005107 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005108 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005109 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005110 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005111 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005112 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005113 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005114 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005115 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005116 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005117 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005118 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005119 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005120 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005121 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005122 Hexagon) TARGET_HAS_JIT=0
5123 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005124 MBlaze) TARGET_HAS_JIT=0
5125 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005126 PTX) TARGET_HAS_JIT=0
5127 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005128 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005129 ;;
5130 esac
5131fi
5132
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005133# Check whether --enable-docs was given.
5134if test "${enable_docs+set}" = set; then
5135 enableval=$enable_docs;
5136else
5137 enableval=default
5138fi
5139
5140case "$enableval" in
5141 yes) ENABLE_DOCS=1
5142 ;;
5143 no) ENABLE_DOCS=0
5144 ;;
5145 default) ENABLE_DOCS=1
5146 ;;
5147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5148echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
5150esac
5151
Reid Spencera773bd52006-08-04 18:18:08 +00005152# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005153if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005154 enableval=$enable_doxygen;
5155else
5156 enableval=default
5157fi
5158
5159case "$enableval" in
5160 yes) ENABLE_DOXYGEN=1
5161 ;;
5162 no) ENABLE_DOXYGEN=0
5163 ;;
5164 default) ENABLE_DOXYGEN=0
5165 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005166 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5167echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5168 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005169esac
5170
5171# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005172if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005173 enableval=$enable_threads;
5174else
Reid Spencer65c5d752006-11-05 17:08:18 +00005175 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005176fi
5177
5178case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005179 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005180 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005181 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005182 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005183 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005184 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5186echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005188esac
5189
Owen Andersona8603702009-05-19 22:18:56 +00005190cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005191#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005192_ACEOF
5193
5194
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005195# Check whether --enable-pthreads was given.
5196if test "${enable_pthreads+set}" = set; then
5197 enableval=$enable_pthreads;
5198else
5199 enableval=default
5200fi
5201
5202case "$enableval" in
5203 yes) ENABLE_PTHREADS=1
5204 ;;
5205 no) ENABLE_PTHREADS=0
5206 ;;
5207 default) ENABLE_PTHREADS=1
5208 ;;
5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5210echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5211 { (exit 1); exit 1; }; } ;;
5212esac
5213
Reid Spencer89b0d992006-12-16 22:07:52 +00005214# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005215if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005216 enableval=$enable_pic;
5217else
5218 enableval=default
5219fi
5220
5221case "$enableval" in
5222 yes) ENABLE_PIC=1
5223 ;;
5224 no) ENABLE_PIC=0
5225 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005226 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005227 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005228 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5229echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5230 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005231esac
5232
5233cat >>confdefs.h <<_ACEOF
5234#define ENABLE_PIC $ENABLE_PIC
5235_ACEOF
5236
5237
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005238# Check whether --enable-shared was given.
5239if test "${enable_shared+set}" = set; then
5240 enableval=$enable_shared;
5241else
5242 enableval=default
5243fi
5244
5245case "$enableval" in
5246 yes) ENABLE_SHARED=1
5247 ;;
5248 no) ENABLE_SHARED=0
5249 ;;
5250 default) ENABLE_SHARED=0
5251 ;;
5252 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5253echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5255esac
5256
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005257# Check whether --enable-embed-stdcxx was given.
5258if test "${enable_embed_stdcxx+set}" = set; then
5259 enableval=$enable_embed_stdcxx;
5260else
5261 enableval=default
5262fi
5263
5264case "$enableval" in
5265 yes) ENABLE_EMBED_STDCXX=1
5266 ;;
5267 no) ENABLE_EMBED_STDCXX=0
5268 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005269 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005270 ;;
5271 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5272echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5273 { (exit 1); exit 1; }; } ;;
5274esac
5275
Daniel Dunbardd464df2010-05-10 20:11:56 +00005276# Check whether --enable-timestamps was given.
5277if test "${enable_timestamps+set}" = set; then
5278 enableval=$enable_timestamps;
5279else
5280 enableval=default
5281fi
5282
5283case "$enableval" in
5284 yes) ENABLE_TIMESTAMPS=1
5285 ;;
5286 no) ENABLE_TIMESTAMPS=0
5287 ;;
5288 default) ENABLE_TIMESTAMPS=1
5289 ;;
5290 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5291echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5292 { (exit 1); exit 1; }; } ;;
5293esac
5294
5295cat >>confdefs.h <<_ACEOF
5296#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5297_ACEOF
5298
5299
Reid Spencera773bd52006-08-04 18:18:08 +00005300TARGETS_TO_BUILD=""
5301# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005302if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005303 enableval=$enable_targets;
5304else
5305 enableval=all
5306fi
5307
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005308if test "$enableval" = host-only ; then
5309 enableval=host
5310fi
Reid Spencera773bd52006-08-04 18:18:08 +00005311case "$enableval" in
Eric Christophera443e5b2012-03-23 05:50:46 +00005312 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005313 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5314 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005315 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5316 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5318 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005319 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5320 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005321 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005322 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005323 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5324 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005325 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005326 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005327 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005328 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005329 host) case "$llvm_cv_target_arch" in
5330 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5332 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5333 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005334 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5335 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005336 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005337 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005338 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5339 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005340 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005341 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005342 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5343echo "$as_me: error: Can not set target to build" >&2;}
5344 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005345 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005346 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5347echo "$as_me: error: Unrecognized target $a_target" >&2;}
5348 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005349 esac
5350 done
5351 ;;
5352esac
Reid Spencera773bd52006-08-04 18:18:08 +00005353TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5354
5355
Douglas Gregor0711c302009-06-17 00:43:20 +00005356for a_target in $TARGETS_TO_BUILD; do
5357 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5358
5359cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005360#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5361_ACEOF
5362
5363 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5364 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005365 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005366 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005367 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5368 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5369 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005370 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5371 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5372 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005373
5374cat >>confdefs.h <<_ACEOF
5375#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005376_ACEOF
5377
5378
5379cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005380#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5381_ACEOF
5382
5383
5384cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005385#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005386_ACEOF
5387
5388
5389cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005390#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005391_ACEOF
5392
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005393 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005394
5395cat >>confdefs.h <<_ACEOF
5396#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5397_ACEOF
5398
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005399 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005400 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5401
5402cat >>confdefs.h <<_ACEOF
5403#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5404_ACEOF
5405
5406 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005407 fi
5408done
5409
Douglas Gregor1555a232009-06-16 20:12:29 +00005410LLVM_ENUM_TARGETS=""
5411LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005412LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005413LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005414for target_to_build in $TARGETS_TO_BUILD; do
5415 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005416 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005417 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5418 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005419 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5420 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5421 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005422 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5423 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5424 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005425done
5426
5427
5428
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005429
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005430
Reid Spencera773bd52006-08-04 18:18:08 +00005431
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005432# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005433if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005434 withval=$with_optimize_option;
5435else
5436 withval=default
5437fi
5438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005439{ echo "$as_me:$LINENO: checking optimization flags" >&5
5440echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005441case "$withval" in
5442 default)
5443 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005444 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005445 MingW) optimize_option=-O2 ;;
5446 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005447 esac ;;
5448 *) optimize_option="$withval" ;;
5449esac
5450OPTIMIZE_OPTION=$optimize_option
5451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005452{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5453echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005454
5455
Reid Spencera773bd52006-08-04 18:18:08 +00005456# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005457if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005458 withval=$with_extra_options;
5459else
5460 withval=default
5461fi
5462
5463case "$withval" in
5464 default) EXTRA_OPTIONS= ;;
5465 *) EXTRA_OPTIONS=$withval ;;
5466esac
5467EXTRA_OPTIONS=$EXTRA_OPTIONS
5468
5469
Daniel Dunbared344d22011-06-16 22:30:41 +00005470
5471# Check whether --with-extra-ld-options was given.
5472if test "${with_extra_ld_options+set}" = set; then
5473 withval=$with_extra_ld_options;
5474else
5475 withval=default
5476fi
5477
5478case "$withval" in
5479 default) EXTRA_LD_OPTIONS= ;;
5480 *) EXTRA_LD_OPTIONS=$withval ;;
5481esac
5482EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5483
5484
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005485# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005486if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005487 enableval=$enable_bindings;
5488else
5489 enableval=default
5490fi
5491
5492BINDINGS_TO_BUILD=""
5493case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005494 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005495 all ) BINDINGS_TO_BUILD="ocaml" ;;
5496 none | no) BINDINGS_TO_BUILD="" ;;
5497 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5498 case "$a_binding" in
5499 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005500 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5501echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5502 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005503 esac
5504 done
5505 ;;
5506esac
5507
Reid Spencera773bd52006-08-04 18:18:08 +00005508
Gordon Henriksenf0915682007-10-02 16:42:22 +00005509# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005510if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005511 withval=$with_ocaml_libdir;
5512else
5513 withval=auto
5514fi
5515
5516case "$withval" in
5517 auto) with_ocaml_libdir="$withval" ;;
5518 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005519 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5520echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5521 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005522esac
5523
5524
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005525# Check whether --with-clang-srcdir was given.
5526if test "${with_clang_srcdir+set}" = set; then
5527 withval=$with_clang_srcdir;
5528else
5529 withval="-"
5530fi
5531
5532case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005533 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005534 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5535 *) clang_src_root="$ac_pwd/$withval" ;;
5536esac
5537CLANG_SRC_ROOT=$clang_src_root
5538
5539
5540
Chandler Carruth6b241162010-10-19 08:21:25 +00005541# Check whether --with-clang-resource-dir was given.
5542if test "${with_clang_resource_dir+set}" = set; then
5543 withval=$with_clang_resource_dir;
5544else
5545 withval=""
5546fi
5547
5548
5549cat >>confdefs.h <<_ACEOF
5550#define CLANG_RESOURCE_DIR "$withval"
5551_ACEOF
5552
5553
5554
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005555# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005556if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005557 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005558else
5559 withval=""
5560fi
5561
5562
5563cat >>confdefs.h <<_ACEOF
5564#define C_INCLUDE_DIRS "$withval"
5565_ACEOF
5566
5567
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005568# Clang normally uses the system c++ headers and libraries. With this option,
5569# clang will use the ones provided by a gcc installation instead. This option should
5570# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005571
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005572# Check whether --with-gcc-toolchain was given.
5573if test "${with_gcc_toolchain+set}" = set; then
5574 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005575else
5576 withval=""
5577fi
5578
5579
5580cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005581#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005582_ACEOF
5583
5584
5585
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005586# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005588 withval=$with_binutils_include;
5589else
5590 withval=default
5591fi
5592
5593case "$withval" in
5594 default) WITH_BINUTILS_INCDIR=default ;;
5595 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005596 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5597echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5598 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005599esac
5600if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5601 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5602
5603 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5604 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005605 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5606echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5607 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005608 fi
5609fi
5610
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005611
5612# Check whether --with-bug-report-url was given.
5613if test "${with_bug_report_url+set}" = set; then
5614 withval=$with_bug_report_url;
5615else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005616 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005617fi
5618
5619
5620cat >>confdefs.h <<_ACEOF
5621#define BUG_REPORT_URL "$withval"
5622_ACEOF
5623
5624
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005625# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005626if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005627 enableval=$enable_libffi; case "$enableval" in
5628 yes) llvm_cv_enable_libffi="yes" ;;
5629 no) llvm_cv_enable_libffi="no" ;;
5630 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005631echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5632 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005633 esac
5634else
5635 llvm_cv_enable_libffi=no
5636fi
5637
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005638
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005639
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005640# Check whether --with-internal-prefix was given.
5641if test "${with_internal_prefix+set}" = set; then
5642 withval=$with_internal_prefix;
5643else
5644 withval=""
5645fi
5646
5647INTERNAL_PREFIX=$withval
5648
5649
5650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005651{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5652echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5653if test "${lt_cv_path_NM+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005655else
5656 if test -n "$NM"; then
5657 # Let the user override the test.
5658 lt_cv_path_NM="$NM"
5659else
5660 lt_nm_to_check="${ac_tool_prefix}nm"
5661 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5662 lt_nm_to_check="$lt_nm_to_check nm"
5663 fi
5664 for lt_tmp_nm in $lt_nm_to_check; do
5665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5666 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5667 IFS="$lt_save_ifs"
5668 test -z "$ac_dir" && ac_dir=.
5669 tmp_nm="$ac_dir/$lt_tmp_nm"
5670 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5671 # Check to see if the nm accepts a BSD-compat flag.
5672 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5673 # nm: unknown option "B" ignored
5674 # Tru64's nm complains that /dev/null is an invalid object file
5675 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5676 */dev/null* | *'Invalid file or object type'*)
5677 lt_cv_path_NM="$tmp_nm -B"
5678 break
5679 ;;
5680 *)
5681 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5682 */dev/null*)
5683 lt_cv_path_NM="$tmp_nm -p"
5684 break
5685 ;;
5686 *)
5687 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5688 continue # so that we can try to find one that supports BSD flags
5689 ;;
5690 esac
5691 ;;
5692 esac
5693 fi
5694 done
5695 IFS="$lt_save_ifs"
5696 done
5697 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5698fi
5699fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005700{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5701echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005702NM="$lt_cv_path_NM"
5703
5704
5705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005706{ echo "$as_me:$LINENO: checking for GNU make" >&5
5707echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5708if test "${llvm_cv_gnu_make_command+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005710else
5711 llvm_cv_gnu_make_command=''
5712 for a in "$MAKE" make gmake gnumake ; do
5713 if test -z "$a" ; then continue ; fi ;
5714 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5715 then
5716 llvm_cv_gnu_make_command=$a ;
5717 break;
5718 fi
5719 done
5720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005721{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5722echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005723 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5724 ifGNUmake='' ;
5725 else
5726 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005727 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5728echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005729 fi
5730
5731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005732{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5733echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005734LN_S=$as_ln_s
5735if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005736 { echo "$as_me:$LINENO: result: yes" >&5
5737echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005738else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5740echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005741fi
5742
5743# Extract the first word of "cmp", so it can be a program name with args.
5744set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747if test "${ac_cv_path_CMP+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005749else
5750 case $CMP in
5751 [\\/]* | ?:[\\/]*)
5752 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5753 ;;
5754 *)
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756for as_dir in $PATH
5757do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 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 +00005762 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005764 break 2
5765 fi
5766done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005767done
Reid Spencera773bd52006-08-04 18:18:08 +00005768IFS=$as_save_IFS
5769
5770 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5771 ;;
5772esac
5773fi
5774CMP=$ac_cv_path_CMP
5775if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005776 { echo "$as_me:$LINENO: result: $CMP" >&5
5777echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779 { echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005781fi
5782
5783
5784# Extract the first word of "cp", so it can be a program name with args.
5785set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788if test "${ac_cv_path_CP+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005790else
5791 case $CP in
5792 [\\/]* | ?:[\\/]*)
5793 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5794 ;;
5795 *)
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 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 +00005803 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005805 break 2
5806 fi
5807done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005808done
Reid Spencera773bd52006-08-04 18:18:08 +00005809IFS=$as_save_IFS
5810
5811 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5812 ;;
5813esac
5814fi
5815CP=$ac_cv_path_CP
5816if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005817 { echo "$as_me:$LINENO: result: $CP" >&5
5818echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005820 { echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005822fi
5823
5824
5825# Extract the first word of "date", so it can be a program name with args.
5826set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5829if test "${ac_cv_path_DATE+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005831else
5832 case $DATE in
5833 [\\/]* | ?:[\\/]*)
5834 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5835 ;;
5836 *)
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 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 +00005844 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005846 break 2
5847 fi
5848done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849done
Reid Spencera773bd52006-08-04 18:18:08 +00005850IFS=$as_save_IFS
5851
5852 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5853 ;;
5854esac
5855fi
5856DATE=$ac_cv_path_DATE
5857if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858 { echo "$as_me:$LINENO: result: $DATE" >&5
5859echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005861 { echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005863fi
5864
5865
5866# Extract the first word of "find", so it can be a program name with args.
5867set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870if test "${ac_cv_path_FIND+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005872else
5873 case $FIND in
5874 [\\/]* | ?:[\\/]*)
5875 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5876 ;;
5877 *)
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 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 +00005885 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005887 break 2
5888 fi
5889done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005890done
Reid Spencera773bd52006-08-04 18:18:08 +00005891IFS=$as_save_IFS
5892
5893 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5894 ;;
5895esac
5896fi
5897FIND=$ac_cv_path_FIND
5898if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005899 { echo "$as_me:$LINENO: result: $FIND" >&5
5900echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005902 { echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005904fi
5905
5906
5907# Extract the first word of "grep", so it can be a program name with args.
5908set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911if test "${ac_cv_path_GREP+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005913else
5914 case $GREP in
5915 [\\/]* | ?:[\\/]*)
5916 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5917 ;;
5918 *)
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 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 +00005926 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005928 break 2
5929 fi
5930done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005931done
Reid Spencera773bd52006-08-04 18:18:08 +00005932IFS=$as_save_IFS
5933
5934 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5935 ;;
5936esac
5937fi
5938GREP=$ac_cv_path_GREP
5939if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940 { echo "$as_me:$LINENO: result: $GREP" >&5
5941echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005942else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005943 { echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005945fi
5946
5947
5948# Extract the first word of "mkdir", so it can be a program name with args.
5949set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5952if test "${ac_cv_path_MKDIR+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005954else
5955 case $MKDIR in
5956 [\\/]* | ?:[\\/]*)
5957 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5958 ;;
5959 *)
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 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 +00005967 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005969 break 2
5970 fi
5971done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005972done
Reid Spencera773bd52006-08-04 18:18:08 +00005973IFS=$as_save_IFS
5974
5975 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5976 ;;
5977esac
5978fi
5979MKDIR=$ac_cv_path_MKDIR
5980if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005981 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5982echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005983else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005984 { echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005986fi
5987
5988
5989# Extract the first word of "mv", so it can be a program name with args.
5990set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993if test "${ac_cv_path_MV+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005995else
5996 case $MV in
5997 [\\/]* | ?:[\\/]*)
5998 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5999 ;;
6000 *)
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 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 +00006008 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006010 break 2
6011 fi
6012done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006013done
Reid Spencera773bd52006-08-04 18:18:08 +00006014IFS=$as_save_IFS
6015
6016 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6017 ;;
6018esac
6019fi
6020MV=$ac_cv_path_MV
6021if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006022 { echo "$as_me:$LINENO: result: $MV" >&5
6023echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006024else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006025 { echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006027fi
6028
6029
6030if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6032set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035if test "${ac_cv_prog_RANLIB+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006037else
6038 if test -n "$RANLIB"; then
6039 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 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 +00006048 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006050 break 2
6051 fi
6052done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006053done
Reid Spencera773bd52006-08-04 18:18:08 +00006054IFS=$as_save_IFS
6055
6056fi
6057fi
6058RANLIB=$ac_cv_prog_RANLIB
6059if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6061echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006062else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006063 { echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006065fi
6066
6067
6068fi
6069if test -z "$ac_cv_prog_RANLIB"; then
6070 ac_ct_RANLIB=$RANLIB
6071 # Extract the first word of "ranlib", so it can be a program name with args.
6072set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006073{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6075if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006077else
6078 if test -n "$ac_ct_RANLIB"; then
6079 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 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 +00006088 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006090 break 2
6091 fi
6092done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006093done
Reid Spencera773bd52006-08-04 18:18:08 +00006094IFS=$as_save_IFS
6095
6096fi
6097fi
6098ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6099if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006100 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6101echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006102else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006103 { echo "$as_me:$LINENO: result: no" >&5
6104echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006105fi
6106
6107 if test "x$ac_ct_RANLIB" = x; then
6108 RANLIB=":"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006112{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6113whose name does not start with the host triplet. If you think this
6114configuration is useful to you, please write to autoconf@gnu.org." >&5
6115echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6116whose name does not start with the host triplet. If you think this
6117configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006118ac_tool_warned=yes ;;
6119esac
6120 RANLIB=$ac_ct_RANLIB
6121 fi
6122else
6123 RANLIB="$ac_cv_prog_RANLIB"
6124fi
6125
Torok Edwin871384f2010-01-26 08:50:50 +00006126if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6128set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131if test "${ac_cv_prog_AR+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006133else
6134 if test -n "$AR"; then
6135 ac_cv_prog_AR="$AR" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 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 +00006144 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006146 break 2
6147 fi
6148done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149done
Torok Edwin871384f2010-01-26 08:50:50 +00006150IFS=$as_save_IFS
6151
6152fi
6153fi
6154AR=$ac_cv_prog_AR
6155if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006156 { echo "$as_me:$LINENO: result: $AR" >&5
6157echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006159 { echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006161fi
6162
6163
6164fi
6165if test -z "$ac_cv_prog_AR"; then
6166 ac_ct_AR=$AR
6167 # Extract the first word of "ar", so it can be a program name with args.
6168set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006173else
6174 if test -n "$ac_ct_AR"; then
6175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 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 +00006184 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006186 break 2
6187 fi
6188done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189done
Torok Edwin871384f2010-01-26 08:50:50 +00006190IFS=$as_save_IFS
6191
6192fi
6193fi
6194ac_ct_AR=$ac_cv_prog_ac_ct_AR
6195if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6197echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006199 { echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006201fi
6202
6203 if test "x$ac_ct_AR" = x; then
6204 AR="false"
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6209whose name does not start with the host triplet. If you think this
6210configuration is useful to you, please write to autoconf@gnu.org." >&5
6211echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6212whose name does not start with the host triplet. If you think this
6213configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006214ac_tool_warned=yes ;;
6215esac
6216 AR=$ac_ct_AR
6217 fi
6218else
6219 AR="$ac_cv_prog_AR"
6220fi
6221
Reid Spencera773bd52006-08-04 18:18:08 +00006222# Extract the first word of "rm", so it can be a program name with args.
6223set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226if test "${ac_cv_path_RM+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006228else
6229 case $RM in
6230 [\\/]* | ?:[\\/]*)
6231 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6232 ;;
6233 *)
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235for as_dir in $PATH
6236do
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 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 +00006241 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006243 break 2
6244 fi
6245done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006246done
Reid Spencera773bd52006-08-04 18:18:08 +00006247IFS=$as_save_IFS
6248
6249 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6250 ;;
6251esac
6252fi
6253RM=$ac_cv_path_RM
6254if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255 { echo "$as_me:$LINENO: result: $RM" >&5
6256echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006257else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006258 { echo "$as_me:$LINENO: result: no" >&5
6259echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006260fi
6261
6262
6263# Extract the first word of "sed", so it can be a program name with args.
6264set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267if test "${ac_cv_path_SED+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006269else
6270 case $SED in
6271 [\\/]* | ?:[\\/]*)
6272 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6273 ;;
6274 *)
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276for as_dir in $PATH
6277do
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 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 +00006282 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006284 break 2
6285 fi
6286done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006287done
Reid Spencera773bd52006-08-04 18:18:08 +00006288IFS=$as_save_IFS
6289
6290 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6291 ;;
6292esac
6293fi
6294SED=$ac_cv_path_SED
6295if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006296 { echo "$as_me:$LINENO: result: $SED" >&5
6297echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006298else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006299 { echo "$as_me:$LINENO: result: no" >&5
6300echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006301fi
6302
6303
6304# Extract the first word of "tar", so it can be a program name with args.
6305set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308if test "${ac_cv_path_TAR+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006310else
6311 case $TAR in
6312 [\\/]* | ?:[\\/]*)
6313 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6314 ;;
6315 *)
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 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 +00006323 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006325 break 2
6326 fi
6327done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006328done
Reid Spencera773bd52006-08-04 18:18:08 +00006329IFS=$as_save_IFS
6330
6331 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6332 ;;
6333esac
6334fi
6335TAR=$ac_cv_path_TAR
6336if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337 { echo "$as_me:$LINENO: result: $TAR" >&5
6338echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006339else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006340 { echo "$as_me:$LINENO: result: no" >&5
6341echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006342fi
6343
6344
6345# Extract the first word of "pwd", so it can be a program name with args.
6346set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6349if test "${ac_cv_path_BINPWD+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006351else
6352 case $BINPWD in
6353 [\\/]* | ?:[\\/]*)
6354 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6355 ;;
6356 *)
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 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 +00006364 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006366 break 2
6367 fi
6368done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006369done
Reid Spencera773bd52006-08-04 18:18:08 +00006370IFS=$as_save_IFS
6371
6372 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6373 ;;
6374esac
6375fi
6376BINPWD=$ac_cv_path_BINPWD
6377if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006378 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6379echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006380else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006381 { echo "$as_me:$LINENO: result: no" >&5
6382echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006383fi
6384
6385
6386
6387# Extract the first word of "Graphviz", so it can be a program name with args.
6388set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006393else
6394 case $GRAPHVIZ in
6395 [\\/]* | ?:[\\/]*)
6396 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6397 ;;
6398 *)
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 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 +00006406 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006408 break 2
6409 fi
6410done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411done
Reid Spencera773bd52006-08-04 18:18:08 +00006412IFS=$as_save_IFS
6413
6414 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6415 ;;
6416esac
6417fi
6418GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6419if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6421echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423 { echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006425fi
6426
6427
6428if test "$GRAPHVIZ" != "echo Graphviz" ; then
6429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006430cat >>confdefs.h <<\_ACEOF
6431#define HAVE_GRAPHVIZ 1
6432_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006433
Jeff Cohen28783c32007-01-12 18:22:38 +00006434 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006435 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6436 fi
6437
6438cat >>confdefs.h <<_ACEOF
6439#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6440_ACEOF
6441
6442fi
6443# Extract the first word of "dot", so it can be a program name with args.
6444set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447if test "${ac_cv_path_DOT+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006449else
6450 case $DOT in
6451 [\\/]* | ?:[\\/]*)
6452 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6453 ;;
6454 *)
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 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 +00006462 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006464 break 2
6465 fi
6466done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467done
Reid Spencera773bd52006-08-04 18:18:08 +00006468IFS=$as_save_IFS
6469
6470 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6471 ;;
6472esac
6473fi
6474DOT=$ac_cv_path_DOT
6475if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006476 { echo "$as_me:$LINENO: result: $DOT" >&5
6477echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006479 { echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006481fi
6482
6483
6484if test "$DOT" != "echo dot" ; then
6485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006486cat >>confdefs.h <<\_ACEOF
6487#define HAVE_DOT 1
6488_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006489
Jeff Cohen28783c32007-01-12 18:22:38 +00006490 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006491 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6492 fi
6493
6494cat >>confdefs.h <<_ACEOF
6495#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6496_ACEOF
6497
6498fi
David Greenef0b9eff2009-07-09 17:16:26 +00006499# Extract the first word of "fdp", so it can be a program name with args.
6500set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503if test "${ac_cv_path_FDP+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006505else
6506 case $FDP in
6507 [\\/]* | ?:[\\/]*)
6508 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6509 ;;
6510 *)
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 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 +00006518 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006520 break 2
6521 fi
6522done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523done
David Greenef0b9eff2009-07-09 17:16:26 +00006524IFS=$as_save_IFS
6525
6526 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6527 ;;
6528esac
6529fi
6530FDP=$ac_cv_path_FDP
6531if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006532 { echo "$as_me:$LINENO: result: $FDP" >&5
6533echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006535 { echo "$as_me:$LINENO: result: no" >&5
6536echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006537fi
6538
6539
6540if test "$FDP" != "echo fdp" ; then
6541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006542cat >>confdefs.h <<\_ACEOF
6543#define HAVE_FDP 1
6544_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006545
6546 if test "$llvm_cv_os_type" = "MingW" ; then
6547 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6548 fi
6549
6550cat >>confdefs.h <<_ACEOF
6551#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6552_ACEOF
6553
6554fi
6555# Extract the first word of "neato", so it can be a program name with args.
6556set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559if test "${ac_cv_path_NEATO+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006561else
6562 case $NEATO in
6563 [\\/]* | ?:[\\/]*)
6564 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6565 ;;
6566 *)
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 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 +00006574 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006576 break 2
6577 fi
6578done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579done
David Greenef0b9eff2009-07-09 17:16:26 +00006580IFS=$as_save_IFS
6581
6582 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6583 ;;
6584esac
6585fi
6586NEATO=$ac_cv_path_NEATO
6587if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006588 { echo "$as_me:$LINENO: result: $NEATO" >&5
6589echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006591 { echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006593fi
6594
6595
6596if test "$NEATO" != "echo neato" ; then
6597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006598cat >>confdefs.h <<\_ACEOF
6599#define HAVE_NEATO 1
6600_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006601
6602 if test "$llvm_cv_os_type" = "MingW" ; then
6603 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6604 fi
6605
6606cat >>confdefs.h <<_ACEOF
6607#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6608_ACEOF
6609
6610fi
6611# Extract the first word of "twopi", so it can be a program name with args.
6612set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615if test "${ac_cv_path_TWOPI+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006617else
6618 case $TWOPI in
6619 [\\/]* | ?:[\\/]*)
6620 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6621 ;;
6622 *)
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624for as_dir in $PATH
6625do
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 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 +00006630 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006632 break 2
6633 fi
6634done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006635done
David Greenef0b9eff2009-07-09 17:16:26 +00006636IFS=$as_save_IFS
6637
6638 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6639 ;;
6640esac
6641fi
6642TWOPI=$ac_cv_path_TWOPI
6643if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006644 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6645echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006646else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006647 { echo "$as_me:$LINENO: result: no" >&5
6648echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006649fi
6650
6651
6652if test "$TWOPI" != "echo twopi" ; then
6653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006654cat >>confdefs.h <<\_ACEOF
6655#define HAVE_TWOPI 1
6656_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006657
6658 if test "$llvm_cv_os_type" = "MingW" ; then
6659 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6660 fi
6661
6662cat >>confdefs.h <<_ACEOF
6663#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6664_ACEOF
6665
6666fi
6667# Extract the first word of "circo", so it can be a program name with args.
6668set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671if test "${ac_cv_path_CIRCO+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006673else
6674 case $CIRCO in
6675 [\\/]* | ?:[\\/]*)
6676 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6677 ;;
6678 *)
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680for as_dir in $PATH
6681do
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 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 +00006686 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006688 break 2
6689 fi
6690done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006691done
David Greenef0b9eff2009-07-09 17:16:26 +00006692IFS=$as_save_IFS
6693
6694 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6695 ;;
6696esac
6697fi
6698CIRCO=$ac_cv_path_CIRCO
6699if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006700 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6701echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006702else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703 { echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006705fi
6706
6707
6708if test "$CIRCO" != "echo circo" ; then
6709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006710cat >>confdefs.h <<\_ACEOF
6711#define HAVE_CIRCO 1
6712_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006713
6714 if test "$llvm_cv_os_type" = "MingW" ; then
6715 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6716 fi
6717
6718cat >>confdefs.h <<_ACEOF
6719#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6720_ACEOF
6721
6722fi
Reid Spencera773bd52006-08-04 18:18:08 +00006723for ac_prog in gv gsview32
6724do
6725 # Extract the first word of "$ac_prog", so it can be a program name with args.
6726set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6729if test "${ac_cv_path_GV+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006731else
6732 case $GV in
6733 [\\/]* | ?:[\\/]*)
6734 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6735 ;;
6736 *)
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 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 +00006744 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006746 break 2
6747 fi
6748done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006749done
Reid Spencera773bd52006-08-04 18:18:08 +00006750IFS=$as_save_IFS
6751
6752 ;;
6753esac
6754fi
6755GV=$ac_cv_path_GV
6756if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757 { echo "$as_me:$LINENO: result: $GV" >&5
6758echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760 { echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006762fi
6763
6764
6765 test -n "$GV" && break
6766done
6767test -n "$GV" || GV="echo gv"
6768
6769if test "$GV" != "echo gv" ; then
6770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006771cat >>confdefs.h <<\_ACEOF
6772#define HAVE_GV 1
6773_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006774
Jeff Cohen28783c32007-01-12 18:22:38 +00006775 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006776 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6777 fi
6778
6779cat >>confdefs.h <<_ACEOF
6780#define LLVM_PATH_GV "$GV${EXEEXT}"
6781_ACEOF
6782
6783fi
6784# Extract the first word of "dotty", so it can be a program name with args.
6785set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788if test "${ac_cv_path_DOTTY+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006790else
6791 case $DOTTY in
6792 [\\/]* | ?:[\\/]*)
6793 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6794 ;;
6795 *)
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 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 +00006803 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006805 break 2
6806 fi
6807done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808done
Reid Spencera773bd52006-08-04 18:18:08 +00006809IFS=$as_save_IFS
6810
6811 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6812 ;;
6813esac
6814fi
6815DOTTY=$ac_cv_path_DOTTY
6816if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006817 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6818echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006820 { echo "$as_me:$LINENO: result: no" >&5
6821echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006822fi
6823
6824
6825if test "$DOTTY" != "echo dotty" ; then
6826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006827cat >>confdefs.h <<\_ACEOF
6828#define HAVE_DOTTY 1
6829_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006830
Jeff Cohen28783c32007-01-12 18:22:38 +00006831 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006832 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6833 fi
6834
6835cat >>confdefs.h <<_ACEOF
6836#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6837_ACEOF
6838
6839fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006840# Extract the first word of "xdot.py", so it can be a program name with args.
6841set dummy xdot.py; ac_word=$2
6842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844if test "${ac_cv_path_XDOT_PY+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846else
6847 case $XDOT_PY in
6848 [\\/]* | ?:[\\/]*)
6849 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6850 ;;
6851 *)
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6859 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6862 fi
6863done
6864done
6865IFS=$as_save_IFS
6866
6867 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6868 ;;
6869esac
6870fi
6871XDOT_PY=$ac_cv_path_XDOT_PY
6872if test -n "$XDOT_PY"; then
6873 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6874echo "${ECHO_T}$XDOT_PY" >&6; }
6875else
6876 { echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6; }
6878fi
6879
6880
6881if test "$XDOT_PY" != "echo xdot.py" ; then
6882
6883cat >>confdefs.h <<\_ACEOF
6884#define HAVE_XDOT_PY 1
6885_ACEOF
6886
6887 if test "$llvm_cv_os_type" = "MingW" ; then
6888 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6889 fi
6890
6891cat >>confdefs.h <<_ACEOF
6892#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6893_ACEOF
6894
6895fi
Reid Spencera773bd52006-08-04 18:18:08 +00006896
Reid Spencera773bd52006-08-04 18:18:08 +00006897# Find a good install program. We prefer a C program (faster),
6898# so one script is as good as another. But avoid the broken or
6899# incompatible versions:
6900# SysV /etc/install, /usr/sbin/install
6901# SunOS /usr/etc/install
6902# IRIX /sbin/install
6903# AIX /bin/install
6904# AmigaOS /C/install, which installs bootblocks on floppy discs
6905# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6906# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6907# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6908# OS/2's system install, which has a completely different semantic
6909# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006910{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6911echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006912if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913if test "${ac_cv_path_install+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006915else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921 # Account for people who put trailing slashes in PATH elements.
6922case $as_dir/ in
6923 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006926 /usr/ucb/* ) ;;
6927 *)
6928 # OSF1 and SCO ODT 3.0 have their own names for install.
6929 # Don't use installbsd from OSF since it installs stuff as root
6930 # by default.
6931 for ac_prog in ginstall scoinst install; do
6932 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933 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 +00006934 if test $ac_prog = install &&
6935 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6936 # AIX install. It has an incompatible calling convention.
6937 :
6938 elif test $ac_prog = install &&
6939 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6940 # program-specific install script used by HP pwplus--don't use.
6941 :
6942 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6944 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00006945 fi
6946 fi
6947 done
6948 done
6949 ;;
6950esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006951done
Reid Spencera773bd52006-08-04 18:18:08 +00006952IFS=$as_save_IFS
6953
6954
6955fi
6956 if test "${ac_cv_path_install+set}" = set; then
6957 INSTALL=$ac_cv_path_install
6958 else
6959 # As a last resort, use the slow shell script. Don't cache a
6960 # value for INSTALL within a source directory, because that will
6961 # break other packages using the cache if that directory is
6962 # removed, or if the value is a relative name.
6963 INSTALL=$ac_install_sh
6964 fi
6965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6967echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006968
6969# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6970# It thinks the first close brace ends the variable substitution.
6971test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6972
6973test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6974
6975test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6976
Eric Christopher2a1a44f2010-07-22 21:13:48 +00006977case "$INSTALL" in
6978 [\\/$]* | ?:[\\/]* ) ;;
6979 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6980esac
Reid Spencera773bd52006-08-04 18:18:08 +00006981
6982# Extract the first word of "bzip2", so it can be a program name with args.
6983set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986if test "${ac_cv_path_BZIP2+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006988else
6989 case $BZIP2 in
6990 [\\/]* | ?:[\\/]*)
6991 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6992 ;;
6993 *)
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 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 +00007001 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007003 break 2
7004 fi
7005done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006done
Reid Spencera773bd52006-08-04 18:18:08 +00007007IFS=$as_save_IFS
7008
Reid Spencera773bd52006-08-04 18:18:08 +00007009 ;;
7010esac
7011fi
7012BZIP2=$ac_cv_path_BZIP2
7013if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007014 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7015echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007016else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017 { echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007019fi
7020
7021
mike-m68cb3192010-05-06 23:45:43 +00007022# Extract the first word of "cat", so it can be a program name with args.
7023set dummy cat; ac_word=$2
7024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026if test "${ac_cv_path_CAT+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028else
7029 case $CAT in
7030 [\\/]* | ?:[\\/]*)
7031 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7032 ;;
7033 *)
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046done
7047IFS=$as_save_IFS
7048
7049 ;;
7050esac
7051fi
7052CAT=$ac_cv_path_CAT
7053if test -n "$CAT"; then
7054 { echo "$as_me:$LINENO: result: $CAT" >&5
7055echo "${ECHO_T}$CAT" >&6; }
7056else
7057 { echo "$as_me:$LINENO: result: no" >&5
7058echo "${ECHO_T}no" >&6; }
7059fi
7060
7061
Reid Spencera773bd52006-08-04 18:18:08 +00007062# Extract the first word of "doxygen", so it can be a program name with args.
7063set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066if test "${ac_cv_path_DOXYGEN+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007068else
7069 case $DOXYGEN in
7070 [\\/]* | ?:[\\/]*)
7071 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7072 ;;
7073 *)
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007081 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007083 break 2
7084 fi
7085done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086done
Reid Spencera773bd52006-08-04 18:18:08 +00007087IFS=$as_save_IFS
7088
Reid Spencera773bd52006-08-04 18:18:08 +00007089 ;;
7090esac
7091fi
7092DOXYGEN=$ac_cv_path_DOXYGEN
7093if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007094 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7095echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007096else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007097 { echo "$as_me:$LINENO: result: no" >&5
7098echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007099fi
7100
7101
Reid Spencera773bd52006-08-04 18:18:08 +00007102# Extract the first word of "groff", so it can be a program name with args.
7103set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106if test "${ac_cv_path_GROFF+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007108else
7109 case $GROFF in
7110 [\\/]* | ?:[\\/]*)
7111 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7112 ;;
7113 *)
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007121 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007123 break 2
7124 fi
7125done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126done
Reid Spencera773bd52006-08-04 18:18:08 +00007127IFS=$as_save_IFS
7128
Reid Spencera773bd52006-08-04 18:18:08 +00007129 ;;
7130esac
7131fi
7132GROFF=$ac_cv_path_GROFF
7133if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007134 { echo "$as_me:$LINENO: result: $GROFF" >&5
7135echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007136else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 { echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007139fi
7140
7141
7142# Extract the first word of "gzip", so it can be a program name with args.
7143set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007146if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007147 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007148else
Eric Christopher031d3072010-12-10 01:31:51 +00007149 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007150 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007151 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007152 ;;
7153 *)
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007161 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007163 break 2
7164 fi
7165done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007166done
Reid Spencera773bd52006-08-04 18:18:08 +00007167IFS=$as_save_IFS
7168
Reid Spencera773bd52006-08-04 18:18:08 +00007169 ;;
7170esac
7171fi
Eric Christopher031d3072010-12-10 01:31:51 +00007172GZIPBIN=$ac_cv_path_GZIPBIN
7173if test -n "$GZIPBIN"; then
7174 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7175echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007176else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177 { echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007179fi
7180
7181
7182# Extract the first word of "pod2html", so it can be a program name with args.
7183set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186if test "${ac_cv_path_POD2HTML+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007188else
7189 case $POD2HTML in
7190 [\\/]* | ?:[\\/]*)
7191 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7192 ;;
7193 *)
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007201 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007203 break 2
7204 fi
7205done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007206done
Reid Spencera773bd52006-08-04 18:18:08 +00007207IFS=$as_save_IFS
7208
Reid Spencera773bd52006-08-04 18:18:08 +00007209 ;;
7210esac
7211fi
7212POD2HTML=$ac_cv_path_POD2HTML
7213if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7215echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007217 { echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007219fi
7220
7221
7222# Extract the first word of "pod2man", so it can be a program name with args.
7223set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226if test "${ac_cv_path_POD2MAN+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007228else
7229 case $POD2MAN in
7230 [\\/]* | ?:[\\/]*)
7231 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7232 ;;
7233 *)
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007241 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007243 break 2
7244 fi
7245done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007246done
Reid Spencera773bd52006-08-04 18:18:08 +00007247IFS=$as_save_IFS
7248
Reid Spencera773bd52006-08-04 18:18:08 +00007249 ;;
7250esac
7251fi
7252POD2MAN=$ac_cv_path_POD2MAN
7253if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007254 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7255echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007257 { echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007259fi
7260
7261
mike-m68cb3192010-05-06 23:45:43 +00007262# Extract the first word of "pdfroff", so it can be a program name with args.
7263set dummy pdfroff; ac_word=$2
7264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266if test "${ac_cv_path_PDFROFF+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269 case $PDFROFF in
7270 [\\/]* | ?:[\\/]*)
7271 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7272 ;;
7273 *)
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286done
7287IFS=$as_save_IFS
7288
7289 ;;
7290esac
7291fi
7292PDFROFF=$ac_cv_path_PDFROFF
7293if test -n "$PDFROFF"; then
7294 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7295echo "${ECHO_T}$PDFROFF" >&6; }
7296else
7297 { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
7299fi
7300
7301
Reid Spencera773bd52006-08-04 18:18:08 +00007302# Extract the first word of "runtest", so it can be a program name with args.
7303set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306if test "${ac_cv_path_RUNTEST+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007308else
7309 case $RUNTEST in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7312 ;;
7313 *)
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007321 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007323 break 2
7324 fi
7325done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007326done
Reid Spencera773bd52006-08-04 18:18:08 +00007327IFS=$as_save_IFS
7328
Reid Spencera773bd52006-08-04 18:18:08 +00007329 ;;
7330esac
7331fi
7332RUNTEST=$ac_cv_path_RUNTEST
7333if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007334 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7335echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007337 { echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007339fi
7340
7341
7342
7343no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007344{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7345echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007346
7347# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007348if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007349 withval=$with_tclinclude; with_tclinclude=${withval}
7350else
7351 with_tclinclude=''
7352fi
7353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354if test "${ac_cv_path_tclsh+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007356else
7357
7358if test x"${with_tclinclude}" != x ; then
7359 if test -f ${with_tclinclude}/tclsh ; then
7360 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7361 elif test -f ${with_tclinclude}/src/tclsh ; then
7362 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7363 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7365echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7366 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007367 fi
7368fi
Torok Edwin871384f2010-01-26 08:50:50 +00007369fi
7370
Reid Spencera773bd52006-08-04 18:18:08 +00007371
7372if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373 { echo "$as_me:$LINENO: result: none" >&5
7374echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007375 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
7376do
7377 # Extract the first word of "$ac_prog", so it can be a program name with args.
7378set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381if test "${ac_cv_path_TCLSH+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007383else
7384 case $TCLSH in
7385 [\\/]* | ?:[\\/]*)
7386 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7387 ;;
7388 *)
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 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 +00007396 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007398 break 2
7399 fi
7400done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401done
Reid Spencera773bd52006-08-04 18:18:08 +00007402IFS=$as_save_IFS
7403
7404 ;;
7405esac
7406fi
7407TCLSH=$ac_cv_path_TCLSH
7408if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007409 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7410echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412 { echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007414fi
7415
7416
7417 test -n "$TCLSH" && break
7418done
7419
7420 if test x"${TCLSH}" = x ; then
7421 ac_cv_path_tclsh='';
7422 else
7423 ac_cv_path_tclsh="${TCLSH}";
7424 fi
7425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7427echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007428 TCLSH="${ac_cv_path_tclsh}"
7429
7430fi
7431
Reid Spencera773bd52006-08-04 18:18:08 +00007432# Extract the first word of "zip", so it can be a program name with args.
7433set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436if test "${ac_cv_path_ZIP+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007438else
7439 case $ZIP in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7442 ;;
7443 *)
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 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 +00007451 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007453 break 2
7454 fi
7455done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007456done
Reid Spencera773bd52006-08-04 18:18:08 +00007457IFS=$as_save_IFS
7458
Reid Spencera773bd52006-08-04 18:18:08 +00007459 ;;
7460esac
7461fi
7462ZIP=$ac_cv_path_ZIP
7463if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464 { echo "$as_me:$LINENO: result: $ZIP" >&5
7465echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467 { echo "$as_me:$LINENO: result: no" >&5
7468echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007469fi
7470
7471
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007472for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007473do
7474 # Extract the first word of "$ac_prog", so it can be a program name with args.
7475set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478if test "${ac_cv_path_OCAMLC+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007480else
7481 case $OCAMLC in
7482 [\\/]* | ?:[\\/]*)
7483 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7484 ;;
7485 *)
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 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 +00007493 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007495 break 2
7496 fi
7497done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007498done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007499IFS=$as_save_IFS
7500
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007501 ;;
7502esac
7503fi
7504OCAMLC=$ac_cv_path_OCAMLC
7505if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007506 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7507echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007509 { echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007511fi
7512
7513
Gordon Henriksene7072162008-03-07 18:20:01 +00007514 test -n "$OCAMLC" && break
7515done
7516
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007517for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007518do
7519 # Extract the first word of "$ac_prog", so it can be a program name with args.
7520set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007525else
7526 case $OCAMLOPT in
7527 [\\/]* | ?:[\\/]*)
7528 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7529 ;;
7530 *)
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 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 +00007538 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007540 break 2
7541 fi
7542done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007543done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007544IFS=$as_save_IFS
7545
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007546 ;;
7547esac
7548fi
7549OCAMLOPT=$ac_cv_path_OCAMLOPT
7550if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007551 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7552echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554 { echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007556fi
7557
7558
Gordon Henriksene7072162008-03-07 18:20:01 +00007559 test -n "$OCAMLOPT" && break
7560done
7561
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007562for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007563do
7564 # Extract the first word of "$ac_prog", so it can be a program name with args.
7565set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007570else
7571 case $OCAMLDEP in
7572 [\\/]* | ?:[\\/]*)
7573 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7574 ;;
7575 *)
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 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 +00007583 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007585 break 2
7586 fi
7587done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007589IFS=$as_save_IFS
7590
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007591 ;;
7592esac
7593fi
7594OCAMLDEP=$ac_cv_path_OCAMLDEP
7595if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007596 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7597echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007599 { echo "$as_me:$LINENO: result: no" >&5
7600echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007601fi
7602
7603
Gordon Henriksene7072162008-03-07 18:20:01 +00007604 test -n "$OCAMLDEP" && break
7605done
7606
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007607for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007608do
7609 # Extract the first word of "$ac_prog", so it can be a program name with args.
7610set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007615else
7616 case $OCAMLDOC in
7617 [\\/]* | ?:[\\/]*)
7618 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7619 ;;
7620 *)
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 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 +00007628 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007630 break 2
7631 fi
7632done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007633done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007634IFS=$as_save_IFS
7635
7636 ;;
7637esac
7638fi
7639OCAMLDOC=$ac_cv_path_OCAMLDOC
7640if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007641 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7642echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644 { echo "$as_me:$LINENO: result: no" >&5
7645echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007646fi
7647
7648
7649 test -n "$OCAMLDOC" && break
7650done
7651
Torok Edwincc499a42008-10-22 09:56:27 +00007652for ac_prog in gas as
7653do
7654 # Extract the first word of "$ac_prog", so it can be a program name with args.
7655set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658if test "${ac_cv_path_GAS+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007660else
7661 case $GAS in
7662 [\\/]* | ?:[\\/]*)
7663 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7664 ;;
7665 *)
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667for as_dir in $PATH
7668do
7669 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 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 +00007673 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007675 break 2
7676 fi
7677done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007678done
Torok Edwincc499a42008-10-22 09:56:27 +00007679IFS=$as_save_IFS
7680
7681 ;;
7682esac
7683fi
7684GAS=$ac_cv_path_GAS
7685if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007686 { echo "$as_me:$LINENO: result: $GAS" >&5
7687echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007688else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007689 { echo "$as_me:$LINENO: result: no" >&5
7690echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007691fi
7692
7693
7694 test -n "$GAS" && break
7695done
7696
Reid Spencera773bd52006-08-04 18:18:08 +00007697
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007698{ echo "$as_me:$LINENO: checking for linker version" >&5
7699echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7700if test "${llvm_cv_link_version+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703
7704 version_string="$(ld -v 2>&1 | head -1)"
7705
7706 # Check for ld64.
7707 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007708 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007709 else
7710 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7711 fi
7712
7713fi
7714{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7715echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7716
7717cat >>confdefs.h <<_ACEOF
7718#define HOST_LINK_VERSION "$llvm_cv_link_version"
7719_ACEOF
7720
7721
7722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7724echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7725if test "${llvm_cv_link_use_r+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007727else
7728 ac_ext=c
7729ac_cpp='$CPP $CPPFLAGS'
7730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7732ac_compiler_gnu=$ac_cv_c_compiler_gnu
7733
7734 oldcflags="$CFLAGS"
7735 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007736 cat >conftest.$ac_ext <<_ACEOF
7737/* confdefs.h. */
7738_ACEOF
7739cat confdefs.h >>conftest.$ac_ext
7740cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007741/* end confdefs.h. */
7742
7743int
7744main ()
7745{
Dan Gohman39ed6782010-04-25 00:12:20 +00007746
Reid Spencera773bd52006-08-04 18:18:08 +00007747 ;
7748 return 0;
7749}
7750_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007751rm -f conftest.$ac_objext conftest$ac_exeext
7752if { (ac_try="$ac_link"
7753case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7756esac
7757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_link") 2>conftest.er1
7759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7766 { (case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769esac
7770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_try") 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest$ac_exeext'
7776 { (case "(($ac_try" in
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7779esac
7780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_try") 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007785 llvm_cv_link_use_r=yes
7786else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007787 echo "$as_me: failed program was:" >&5
7788sed 's/^/| /' conftest.$ac_ext >&5
7789
7790 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792
Bill Wendlingebcceee2009-04-18 11:20:33 +00007793rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007794 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007795 CFLAGS="$oldcflags"
7796 ac_ext=c
7797ac_cpp='$CPP $CPPFLAGS'
7798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801
7802
7803fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007804{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7805echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007806if test "$llvm_cv_link_use_r" = yes ; then
7807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808cat >>confdefs.h <<\_ACEOF
7809#define HAVE_LINK_R 1
7810_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007811
7812 fi
7813
7814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007815{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7816echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7817if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007819else
7820 ac_ext=c
7821ac_cpp='$CPP $CPPFLAGS'
7822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825
7826 oldcflags="$CFLAGS"
7827 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007828 cat >conftest.$ac_ext <<_ACEOF
7829/* confdefs.h. */
7830_ACEOF
7831cat confdefs.h >>conftest.$ac_ext
7832cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007833/* end confdefs.h. */
7834
7835int
7836main ()
7837{
Dan Gohman39ed6782010-04-25 00:12:20 +00007838
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007839 ;
7840 return 0;
7841}
7842_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007843rm -f conftest.$ac_objext conftest$ac_exeext
7844if { (ac_try="$ac_link"
7845case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7848esac
7849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_link") 2>conftest.er1
7851 ac_status=$?
7852 grep -v '^ *+' conftest.er1 >conftest.err
7853 rm -f conftest.er1
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7858 { (case "(($ac_try" in
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7861esac
7862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_try") 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; } &&
7867 { ac_try='test -s conftest$ac_exeext'
7868 { (case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871esac
7872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_try") 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007877 llvm_cv_link_use_export_dynamic=yes
7878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007879 echo "$as_me: failed program was:" >&5
7880sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007883fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007884
Bill Wendlingebcceee2009-04-18 11:20:33 +00007885rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007886 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007887 CFLAGS="$oldcflags"
7888 ac_ext=c
7889ac_cpp='$CPP $CPPFLAGS'
7890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893
7894
7895fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007896{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7897echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007898if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007900cat >>confdefs.h <<\_ACEOF
7901#define HAVE_LINK_EXPORT_DYNAMIC 1
7902_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007903
7904 fi
7905
7906
Dan Gohmanda612d62010-06-01 14:56:56 +00007907{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7908echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7909if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912 ac_ext=c
7913ac_cpp='$CPP $CPPFLAGS'
7914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918 oldcflags="$CFLAGS"
7919
7920 # The following code is from the autoconf manual,
7921 # "11.13: Limitations of Usual Tools".
7922 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7923 # Use mktemp if possible; otherwise fall back on mkdir,
7924 # with $RANDOM to make collisions less likely.
7925 : ${TMPDIR=/tmp}
7926 {
7927 tmp=`
7928 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7929 ` &&
7930 test -n "$tmp" && test -d "$tmp"
7931 } || {
7932 tmp=$TMPDIR/foo$$-$RANDOM
7933 (umask 077 && mkdir "$tmp")
7934 } || exit $?
7935
Dan Gohmanda612d62010-06-01 14:56:56 +00007936 echo "{" > "$tmp/export.map"
7937 echo " global: main;" >> "$tmp/export.map"
7938 echo " local: *;" >> "$tmp/export.map"
7939 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007940
Dan Gohmanda612d62010-06-01 14:56:56 +00007941 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007942 cat >conftest.$ac_ext <<_ACEOF
7943/* confdefs.h. */
7944_ACEOF
7945cat confdefs.h >>conftest.$ac_ext
7946cat >>conftest.$ac_ext <<_ACEOF
7947/* end confdefs.h. */
7948
7949int
7950main ()
7951{
Dan Gohman39ed6782010-04-25 00:12:20 +00007952
Dan Gohman391569c2010-04-16 22:59:06 +00007953 ;
7954 return 0;
7955}
7956_ACEOF
7957rm -f conftest.$ac_objext conftest$ac_exeext
7958if { (ac_try="$ac_link"
7959case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962esac
7963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_link") 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7972 { (case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975esac
7976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_try") 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; } &&
7981 { ac_try='test -s conftest$ac_exeext'
7982 { (case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7985esac
7986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_try") 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007991 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007992else
7993 echo "$as_me: failed program was:" >&5
7994sed 's/^/| /' conftest.$ac_ext >&5
7995
Dan Gohman943005e2010-06-01 16:22:27 +00007996 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007997fi
7998
7999rm -f core conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008001 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008002 rmdir "$tmp"
8003 CFLAGS="$oldcflags"
8004 ac_ext=c
8005ac_cpp='$CPP $CPPFLAGS'
8006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8008ac_compiler_gnu=$ac_cv_c_compiler_gnu
8009
8010
8011fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008012{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8013echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8014if test "$llvm_cv_link_use_version_script" = yes ; then
8015 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008016
8017 fi
8018
8019
Reid Spencera773bd52006-08-04 18:18:08 +00008020
8021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008022{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8023echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8024if test "${ac_cv_c_const+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008026else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008027 cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008032/* end confdefs.h. */
8033
8034int
8035main ()
8036{
8037/* FIXME: Include the comments suggested by Paul. */
8038#ifndef __cplusplus
8039 /* Ultrix mips cc rejects this. */
8040 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008041 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008042 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008043 char const *const *ccp;
8044 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008045 /* NEC SVR4.0.2 mips cc rejects this. */
8046 struct point {int x, y;};
8047 static struct point const zero = {0,0};
8048 /* AIX XL C 1.02.0.0 rejects this.
8049 It does not let you subtract one const X* pointer from another in
8050 an arm of an if-expression whose if-part is not a constant
8051 expression */
8052 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008053 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008054 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008055 ++ccp;
8056 p = (char**) ccp;
8057 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008058 { /* SCO 3.2v4 cc rejects this. */
8059 char *t;
8060 char const *s = 0 ? (char *) 0 : (char const *) 0;
8061
8062 *t++ = 0;
8063 if (s) return 0;
8064 }
8065 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8066 int x[] = {25, 17};
8067 const int *foo = &x[0];
8068 ++foo;
8069 }
8070 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8071 typedef const int *iptr;
8072 iptr p = 0;
8073 ++p;
8074 }
8075 { /* AIX XL C 1.02.0.0 rejects this saying
8076 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8077 struct s { int j; const int *ap[3]; };
8078 struct s *b; b->j = 5;
8079 }
8080 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8081 const int foo = 10;
8082 if (!foo) return 0;
8083 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008084 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008085#endif
8086
8087 ;
8088 return 0;
8089}
8090_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008091rm -f conftest.$ac_objext
8092if { (ac_try="$ac_compile"
8093case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8096esac
8097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_compile") 2>conftest.er1
8099 ac_status=$?
8100 grep -v '^ *+' conftest.er1 >conftest.err
8101 rm -f conftest.er1
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } &&
8105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8106 { (case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109esac
8110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_try") 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; } &&
8115 { ac_try='test -s conftest.$ac_objext'
8116 { (case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119esac
8120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_try") 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008125 ac_cv_c_const=yes
8126else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008127 echo "$as_me: failed program was:" >&5
8128sed 's/^/| /' conftest.$ac_ext >&5
8129
8130 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008131fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008132
Reid Spencera773bd52006-08-04 18:18:08 +00008133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008135{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8136echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008137if test $ac_cv_c_const = no; then
8138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008139cat >>confdefs.h <<\_ACEOF
8140#define const
8141_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008142
8143fi
8144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008145
8146
8147
8148
8149
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008150ac_header_dirent=no
8151for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8153{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8154echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008157else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158 cat >conftest.$ac_ext <<_ACEOF
8159/* confdefs.h. */
8160_ACEOF
8161cat confdefs.h >>conftest.$ac_ext
8162cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008163/* end confdefs.h. */
8164#include <sys/types.h>
8165#include <$ac_hdr>
8166
8167int
8168main ()
8169{
8170if ((DIR *) 0)
8171return 0;
8172 ;
8173 return 0;
8174}
8175_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008176rm -f conftest.$ac_objext
8177if { (ac_try="$ac_compile"
8178case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8181esac
8182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194esac
8195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest.$ac_objext'
8201 { (case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204esac
8205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_try") 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008210 eval "$as_ac_Header=yes"
8211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008212 echo "$as_me: failed program was:" >&5
8213sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008217
Reid Spencera773bd52006-08-04 18:18:08 +00008218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008220ac_res=`eval echo '${'$as_ac_Header'}'`
8221 { echo "$as_me:$LINENO: result: $ac_res" >&5
8222echo "${ECHO_T}$ac_res" >&6; }
8223if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008224 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008225#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008226_ACEOF
8227
8228ac_header_dirent=$ac_hdr; break
8229fi
8230
8231done
8232# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8233if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8235echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8236if test "${ac_cv_search_opendir+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008238else
8239 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240cat >conftest.$ac_ext <<_ACEOF
8241/* confdefs.h. */
8242_ACEOF
8243cat confdefs.h >>conftest.$ac_ext
8244cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008245/* end confdefs.h. */
8246
Reid Spencera773bd52006-08-04 18:18:08 +00008247/* Override any GCC internal prototype to avoid an error.
8248 Use char because int might match the return type of a GCC
8249 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008250#ifdef __cplusplus
8251extern "C"
8252#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008253char opendir ();
8254int
8255main ()
8256{
Reid Spencera773bd52006-08-04 18:18:08 +00008257return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008258 ;
8259 return 0;
8260}
8261_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008262for ac_lib in '' dir; do
8263 if test -z "$ac_lib"; then
8264 ac_res="none required"
8265 else
8266 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008268 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008269 rm -f conftest.$ac_objext conftest$ac_exeext
8270if { (ac_try="$ac_link"
8271case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8274esac
8275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_link") 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8284 { (case "(($ac_try" in
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8287esac
8288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289 (eval "$ac_try") 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest$ac_exeext'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297esac
8298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008303 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008304else
8305 echo "$as_me: failed program was:" >&5
8306sed 's/^/| /' conftest.$ac_ext >&5
8307
8308
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008309fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310
Bill Wendlingebcceee2009-04-18 11:20:33 +00008311rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008312 conftest$ac_exeext
8313 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008314 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008315fi
John Criswell7a73b802003-06-30 21:59:07 +00008316done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008317if test "${ac_cv_search_opendir+set}" = set; then
8318 :
Reid Spencera773bd52006-08-04 18:18:08 +00008319else
8320 ac_cv_search_opendir=no
8321fi
8322rm conftest.$ac_ext
8323LIBS=$ac_func_search_save_LIBS
8324fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008325{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8326echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008327ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008328if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008330
Reid Spencera773bd52006-08-04 18:18:08 +00008331fi
8332
8333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8335echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8336if test "${ac_cv_search_opendir+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008338else
8339 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008340cat >conftest.$ac_ext <<_ACEOF
8341/* confdefs.h. */
8342_ACEOF
8343cat confdefs.h >>conftest.$ac_ext
8344cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008345/* end confdefs.h. */
8346
8347/* Override any GCC internal prototype to avoid an error.
8348 Use char because int might match the return type of a GCC
8349 builtin and then its argument prototype would still apply. */
8350#ifdef __cplusplus
8351extern "C"
8352#endif
8353char opendir ();
8354int
8355main ()
8356{
8357return opendir ();
8358 ;
8359 return 0;
8360}
8361_ACEOF
8362for ac_lib in '' x; do
8363 if test -z "$ac_lib"; then
8364 ac_res="none required"
8365 else
8366 ac_res=-l$ac_lib
8367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8368 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008369 rm -f conftest.$ac_objext conftest$ac_exeext
8370if { (ac_try="$ac_link"
8371case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374esac
8375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_link") 2>conftest.er1
8377 ac_status=$?
8378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384 { (case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8387esac
8388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_try") 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; } &&
8393 { ac_try='test -s conftest$ac_exeext'
8394 { (case "(($ac_try" in
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8397esac
8398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_try") 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008403 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008404else
8405 echo "$as_me: failed program was:" >&5
8406sed 's/^/| /' conftest.$ac_ext >&5
8407
8408
Reid Spencera773bd52006-08-04 18:18:08 +00008409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008410
Bill Wendlingebcceee2009-04-18 11:20:33 +00008411rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008412 conftest$ac_exeext
8413 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008414 break
8415fi
8416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008417if test "${ac_cv_search_opendir+set}" = set; then
8418 :
Reid Spencera773bd52006-08-04 18:18:08 +00008419else
8420 ac_cv_search_opendir=no
8421fi
8422rm conftest.$ac_ext
8423LIBS=$ac_func_search_save_LIBS
8424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008425{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8426echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008427ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8430
8431fi
8432
8433fi
John Criswell7a73b802003-06-30 21:59:07 +00008434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008435
John Criswell7a73b802003-06-30 21:59:07 +00008436for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008437do
8438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444fi
8445ac_res=`eval echo '${'$as_ac_Header'}'`
8446 { echo "$as_me:$LINENO: result: $ac_res" >&5
8447echo "${ECHO_T}$ac_res" >&6; }
8448else
8449 # Is the header compilable?
8450{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8452cat >conftest.$ac_ext <<_ACEOF
8453/* confdefs.h. */
8454_ACEOF
8455cat confdefs.h >>conftest.$ac_ext
8456cat >>conftest.$ac_ext <<_ACEOF
8457/* end confdefs.h. */
8458$ac_includes_default
8459#include <$ac_header>
8460_ACEOF
8461rm -f conftest.$ac_objext
8462if { (ac_try="$ac_compile"
8463case "(($ac_try" in
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8466esac
8467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_compile") 2>conftest.er1
8469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8476 { (case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479esac
8480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_try") 2>&5
8482 ac_status=$?
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try='test -s conftest.$ac_objext'
8486 { (case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489esac
8490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_try") 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 ac_header_compiler=yes
8496else
8497 echo "$as_me: failed program was:" >&5
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
8500 ac_header_compiler=no
8501fi
8502
8503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8505echo "${ECHO_T}$ac_header_compiler" >&6; }
8506
8507# Is the header present?
8508{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8510cat >conftest.$ac_ext <<_ACEOF
8511/* confdefs.h. */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h. */
8516#include <$ac_header>
8517_ACEOF
8518if { (ac_try="$ac_cpp conftest.$ac_ext"
8519case "(($ac_try" in
8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8522esac
8523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } >/dev/null; then
8531 if test -s conftest.err; then
8532 ac_cpp_err=$ac_c_preproc_warn_flag
8533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8534 else
8535 ac_cpp_err=
8536 fi
8537else
8538 ac_cpp_err=yes
8539fi
8540if test -z "$ac_cpp_err"; then
8541 ac_header_preproc=yes
8542else
8543 echo "$as_me: failed program was:" >&5
8544sed 's/^/| /' conftest.$ac_ext >&5
8545
8546 ac_header_preproc=no
8547fi
8548
8549rm -f conftest.err conftest.$ac_ext
8550{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8551echo "${ECHO_T}$ac_header_preproc" >&6; }
8552
8553# So? What about this header?
8554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8555 yes:no: )
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8560 ac_header_preproc=yes
8561 ;;
8562 no:yes:* )
8563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8570echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8575 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008576## ------------------------------------ ##
8577## Report this to http://llvm.org/bugs/ ##
8578## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008579_ASBOX
8580 ) | sed "s/^/$as_me: WARNING: /" >&2
8581 ;;
8582esac
8583{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587else
8588 eval "$as_ac_Header=\$ac_header_preproc"
8589fi
8590ac_res=`eval echo '${'$as_ac_Header'}'`
8591 { echo "$as_me:$LINENO: result: $ac_res" >&5
8592echo "${ECHO_T}$ac_res" >&6; }
8593
8594fi
8595if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008596 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008598_ACEOF
8599
8600fi
8601
8602done
8603
Reid Spencera773bd52006-08-04 18:18:08 +00008604# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008605if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008606 enableval=$enable_ltdl_install;
8607fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008608
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008610
8611
8612if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008613 INSTALL_LTDL_TRUE=
8614 INSTALL_LTDL_FALSE='#'
8615else
8616 INSTALL_LTDL_TRUE='#'
8617 INSTALL_LTDL_FALSE=
8618fi
8619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008620
8621
8622if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008623 CONVENIENCE_LTDL_TRUE=
8624 CONVENIENCE_LTDL_FALSE='#'
8625else
8626 CONVENIENCE_LTDL_TRUE='#'
8627 CONVENIENCE_LTDL_FALSE=
8628fi
8629
8630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008631{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8632echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008633library_names_spec=
8634libname_spec='lib$name'
8635soname_spec=
8636shrext_cmds=".so"
8637postinstall_cmds=
8638postuninstall_cmds=
8639finish_cmds=
8640finish_eval=
8641shlibpath_var=
8642shlibpath_overrides_runpath=unknown
8643version_type=none
8644dynamic_linker="$host_os ld.so"
8645sys_lib_dlsearch_path_spec="/lib /usr/lib"
8646if test "$GCC" = yes; then
8647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8648 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8649 # if the path contains ";" then we assume it to be the separator
8650 # otherwise default to the standard path separator (i.e. ":") - it is
8651 # assumed that no part of a normal pathname contains ";" but that should
8652 # okay in the real world where ";" in dirpaths is itself problematic.
8653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8654 else
8655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8656 fi
8657else
8658 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8659fi
8660need_lib_prefix=unknown
8661hardcode_into_libs=no
8662
8663# when you set need_version to no, make sure it does not cause -set_version
8664# flags to be left without arguments
8665need_version=unknown
8666
8667case $host_os in
8668aix3*)
8669 version_type=linux
8670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8671 shlibpath_var=LIBPATH
8672
8673 # AIX 3 has no versioning support, so we append a major version to the name.
8674 soname_spec='${libname}${release}${shared_ext}$major'
8675 ;;
8676
8677aix4* | aix5*)
8678 version_type=linux
8679 need_lib_prefix=no
8680 need_version=no
8681 hardcode_into_libs=yes
8682 if test "$host_cpu" = ia64; then
8683 # AIX 5 supports IA64
8684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8685 shlibpath_var=LD_LIBRARY_PATH
8686 else
8687 # With GCC up to 2.95.x, collect2 would create an import file
8688 # for dependence libraries. The import file would start with
8689 # the line `#! .'. This would cause the generated library to
8690 # depend on `.', always an invalid library. This was fixed in
8691 # development snapshots of GCC prior to 3.0.
8692 case $host_os in
8693 aix4 | aix4.[01] | aix4.[01].*)
8694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8695 echo ' yes '
8696 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8697 :
8698 else
8699 can_build_shared=no
8700 fi
8701 ;;
8702 esac
8703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8704 # soname into executable. Probably we can add versioning support to
8705 # collect2, so additional links can be useful in future.
8706 if test "$aix_use_runtimelinking" = yes; then
8707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8708 # instead of lib<name>.a to let people know that these are not
8709 # typical AIX shared libraries.
8710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8711 else
8712 # We preserve .a as extension for shared libraries through AIX4.2
8713 # and later when we are not doing run time linking.
8714 library_names_spec='${libname}${release}.a $libname.a'
8715 soname_spec='${libname}${release}${shared_ext}$major'
8716 fi
8717 shlibpath_var=LIBPATH
8718 fi
8719 ;;
8720
8721amigaos*)
8722 library_names_spec='$libname.ixlibrary $libname.a'
8723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8724 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'
8725 ;;
8726
8727beos*)
8728 library_names_spec='${libname}${shared_ext}'
8729 dynamic_linker="$host_os ld.so"
8730 shlibpath_var=LIBRARY_PATH
8731 ;;
8732
8733bsdi[45]*)
8734 version_type=linux
8735 need_version=no
8736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8737 soname_spec='${libname}${release}${shared_ext}$major'
8738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8739 shlibpath_var=LD_LIBRARY_PATH
8740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8742 # the default ld.so.conf also contains /usr/contrib/lib and
8743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8744 # libtool to hard-code these into programs
8745 ;;
8746
8747cygwin* | mingw* | pw32*)
8748 version_type=windows
8749 shrext_cmds=".dll"
8750 need_version=no
8751 need_lib_prefix=no
8752
8753 case $GCC,$host_os in
8754 yes,cygwin* | yes,mingw* | yes,pw32*)
8755 library_names_spec='$libname.dll.a'
8756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8757 postinstall_cmds='base_file=`basename \${file}`~
8758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8759 dldir=$destdir/`dirname \$dlpath`~
8760 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008761 $install_prog $dir/$dlname \$dldir/$dlname~
8762 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008763 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8764 dlpath=$dir/\$dldll~
8765 $rm \$dlpath'
8766 shlibpath_overrides_runpath=yes
8767
8768 case $host_os in
8769 cygwin*)
8770 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8771 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8772 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8773 ;;
8774 mingw*)
8775 # MinGW DLLs use traditional 'lib' prefix
8776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8777 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8778 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8779 # It is most probably a Windows format PATH printed by
8780 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8781 # path with ; separators, and with drive letters. We can handle the
8782 # drive letters (cygwin fileutils understands them), so leave them,
8783 # especially as we might pass files found there to a mingw objdump,
8784 # which wouldn't understand a cygwinified path. Ahh.
8785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8786 else
8787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8788 fi
8789 ;;
8790 pw32*)
8791 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008792 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 +00008793 ;;
8794 esac
8795 ;;
8796
8797 *)
8798 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8799 ;;
8800 esac
8801 dynamic_linker='Win32 ld.exe'
8802 # FIXME: first we should search . and the directory the executable is in
8803 shlibpath_var=PATH
8804 ;;
8805
8806darwin* | rhapsody*)
8807 dynamic_linker="$host_os dyld"
8808 version_type=darwin
8809 need_lib_prefix=no
8810 need_version=no
8811 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8812 soname_spec='${libname}${release}${major}$shared_ext'
8813 shlibpath_overrides_runpath=yes
8814 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008815 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008816 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8817 if test "$GCC" = yes; then
8818 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"`
8819 else
8820 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8821 fi
8822 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8823 ;;
8824
8825dgux*)
8826 version_type=linux
8827 need_lib_prefix=no
8828 need_version=no
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8830 soname_spec='${libname}${release}${shared_ext}$major'
8831 shlibpath_var=LD_LIBRARY_PATH
8832 ;;
8833
Eric Christopher360fa9a2011-10-26 00:42:12 +00008834freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008835 dynamic_linker=no
8836 ;;
8837
8838kfreebsd*-gnu)
8839 version_type=linux
8840 need_lib_prefix=no
8841 need_version=no
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8843 soname_spec='${libname}${release}${shared_ext}$major'
8844 shlibpath_var=LD_LIBRARY_PATH
8845 shlibpath_overrides_runpath=no
8846 hardcode_into_libs=yes
8847 dynamic_linker='GNU ld.so'
8848 ;;
8849
Reid Spencera773bd52006-08-04 18:18:08 +00008850freebsd* | dragonfly*)
8851 # DragonFly does not have aout. When/if they implement a new
8852 # versioning mechanism, adjust this.
8853 if test -x /usr/bin/objformat; then
8854 objformat=`/usr/bin/objformat`
8855 else
8856 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008857 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008858 *) objformat=elf ;;
8859 esac
8860 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008861 version_type=freebsd-$objformat
8862 case $version_type in
8863 freebsd-elf*)
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8865 need_version=no
8866 need_lib_prefix=no
8867 ;;
8868 freebsd-*)
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8870 need_version=yes
8871 ;;
8872 esac
8873 shlibpath_var=LD_LIBRARY_PATH
8874 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008875 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008876 shlibpath_overrides_runpath=yes
8877 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008878 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008879 shlibpath_overrides_runpath=yes
8880 hardcode_into_libs=yes
8881 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008882 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8883 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008884 shlibpath_overrides_runpath=no
8885 hardcode_into_libs=yes
8886 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008887 freebsd*) # from 4.6 on
8888 shlibpath_overrides_runpath=yes
8889 hardcode_into_libs=yes
8890 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008891 esac
8892 ;;
8893
8894gnu*)
8895 version_type=linux
8896 need_lib_prefix=no
8897 need_version=no
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 shlibpath_var=LD_LIBRARY_PATH
8901 hardcode_into_libs=yes
8902 ;;
8903
8904hpux9* | hpux10* | hpux11*)
8905 # Give a soname corresponding to the major version so that dld.sl refuses to
8906 # link against other versions.
8907 version_type=sunos
8908 need_lib_prefix=no
8909 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008910 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008911 ia64*)
8912 shrext_cmds='.so'
8913 hardcode_into_libs=yes
8914 dynamic_linker="$host_os dld.so"
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 if test "X$HPUX_IA64_MODE" = X32; then
8920 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8921 else
8922 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8923 fi
8924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8925 ;;
8926 hppa*64*)
8927 shrext_cmds='.sl'
8928 hardcode_into_libs=yes
8929 dynamic_linker="$host_os dld.sl"
8930 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8936 ;;
8937 *)
8938 shrext_cmds='.sl'
8939 dynamic_linker="$host_os dld.sl"
8940 shlibpath_var=SHLIB_PATH
8941 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8944 ;;
8945 esac
8946 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8947 postinstall_cmds='chmod 555 $lib'
8948 ;;
8949
Reid Spencera773bd52006-08-04 18:18:08 +00008950interix3*)
8951 version_type=linux
8952 need_lib_prefix=no
8953 need_version=no
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=no
8959 hardcode_into_libs=yes
8960 ;;
8961
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008962irix5* | irix6* | nonstopux*)
8963 case $host_os in
8964 nonstopux*) version_type=nonstopux ;;
8965 *)
8966 if test "$lt_cv_prog_gnu_ld" = yes; then
8967 version_type=linux
8968 else
8969 version_type=irix
8970 fi ;;
8971 esac
8972 need_lib_prefix=no
8973 need_version=no
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8976 case $host_os in
8977 irix5* | nonstopux*)
8978 libsuff= shlibsuff=
8979 ;;
8980 *)
8981 case $LD in # libtool.m4 will add one of these switches to LD
8982 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8983 libsuff= shlibsuff= libmagic=32-bit;;
8984 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8985 libsuff=32 shlibsuff=N32 libmagic=N32;;
8986 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8987 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8988 *) libsuff= shlibsuff= libmagic=never-match;;
8989 esac
8990 ;;
8991 esac
8992 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8993 shlibpath_overrides_runpath=no
8994 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8995 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8996 hardcode_into_libs=yes
8997 ;;
8998
8999# No shared lib support for Linux oldld, aout, or coff.
9000linux*oldld* | linux*aout* | linux*coff*)
9001 dynamic_linker=no
9002 ;;
9003
9004# This must be Linux ELF.
9005linux*)
9006 version_type=linux
9007 need_lib_prefix=no
9008 need_version=no
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=no
9014 # This implies no fast_install, which is unacceptable.
9015 # Some rework will be needed to allow for fast_install
9016 # before this can be enabled.
9017 hardcode_into_libs=yes
9018
9019 # Append ld.so.conf contents to the search path
9020 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009021 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 +00009022 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9023 fi
9024
9025 # We used to test for /lib/ld.so.1 and disable shared libraries on
9026 # powerpc, because MkLinux only supported shared libraries with the
9027 # GNU dynamic linker. Since this was broken with cross compilers,
9028 # most powerpc-linux boxes support dynamic linking these days and
9029 # people can always --disable-shared, the test was removed, and we
9030 # assume the GNU/Linux dynamic linker is in use.
9031 dynamic_linker='GNU/Linux ld.so'
9032 ;;
9033
9034knetbsd*-gnu)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=no
9042 hardcode_into_libs=yes
9043 dynamic_linker='GNU ld.so'
9044 ;;
9045
9046netbsd*)
9047 version_type=sunos
9048 need_lib_prefix=no
9049 need_version=no
9050 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9053 dynamic_linker='NetBSD (a.out) ld.so'
9054 else
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 dynamic_linker='NetBSD ld.elf_so'
9058 fi
9059 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=yes
9061 hardcode_into_libs=yes
9062 ;;
9063
9064newsos6)
9065 version_type=linux
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 shlibpath_var=LD_LIBRARY_PATH
9068 shlibpath_overrides_runpath=yes
9069 ;;
9070
9071nto-qnx*)
9072 version_type=linux
9073 need_lib_prefix=no
9074 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
9078 shlibpath_overrides_runpath=yes
9079 ;;
9080
9081openbsd*)
9082 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009083 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009084 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009085 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9086 case $host_os in
9087 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9088 *) need_version=no ;;
9089 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9094 case $host_os in
9095 openbsd2.[89] | openbsd2.[89].*)
9096 shlibpath_overrides_runpath=no
9097 ;;
9098 *)
9099 shlibpath_overrides_runpath=yes
9100 ;;
9101 esac
9102 else
9103 shlibpath_overrides_runpath=yes
9104 fi
9105 ;;
9106
9107os2*)
9108 libname_spec='$name'
9109 shrext_cmds=".dll"
9110 need_lib_prefix=no
9111 library_names_spec='$libname${shared_ext} $libname.a'
9112 dynamic_linker='OS/2 ld.exe'
9113 shlibpath_var=LIBPATH
9114 ;;
9115
9116osf3* | osf4* | osf5*)
9117 version_type=osf
9118 need_lib_prefix=no
9119 need_version=no
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9125 ;;
9126
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009127solaris*)
9128 version_type=linux
9129 need_lib_prefix=no
9130 need_version=no
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=yes
9135 hardcode_into_libs=yes
9136 # ldd complains unless libraries are executable
9137 postinstall_cmds='chmod +x $lib'
9138 ;;
9139
9140sunos4*)
9141 version_type=sunos
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9143 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=yes
9146 if test "$with_gnu_ld" = yes; then
9147 need_lib_prefix=no
9148 fi
9149 need_version=yes
9150 ;;
9151
Reid Spencera773bd52006-08-04 18:18:08 +00009152sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009153 version_type=linux
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 case $host_vendor in
9158 sni)
9159 shlibpath_overrides_runpath=no
9160 need_lib_prefix=no
9161 export_dynamic_flag_spec='${wl}-Blargedynsym'
9162 runpath_var=LD_RUN_PATH
9163 ;;
9164 siemens)
9165 need_lib_prefix=no
9166 ;;
9167 motorola)
9168 need_lib_prefix=no
9169 need_version=no
9170 shlibpath_overrides_runpath=no
9171 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9172 ;;
9173 esac
9174 ;;
9175
9176sysv4*MP*)
9177 if test -d /usr/nec ;then
9178 version_type=linux
9179 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9180 soname_spec='$libname${shared_ext}.$major'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 fi
9183 ;;
9184
Reid Spencera773bd52006-08-04 18:18:08 +00009185sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9186 version_type=freebsd-elf
9187 need_lib_prefix=no
9188 need_version=no
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 hardcode_into_libs=yes
9193 if test "$with_gnu_ld" = yes; then
9194 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9195 shlibpath_overrides_runpath=no
9196 else
9197 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9198 shlibpath_overrides_runpath=yes
9199 case $host_os in
9200 sco3.2v5*)
9201 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9202 ;;
9203 esac
9204 fi
9205 sys_lib_dlsearch_path_spec='/usr/lib'
9206 ;;
9207
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009208uts4*)
9209 version_type=linux
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211 soname_spec='${libname}${release}${shared_ext}$major'
9212 shlibpath_var=LD_LIBRARY_PATH
9213 ;;
9214
9215*)
9216 dynamic_linker=no
9217 ;;
9218esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009219{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9220echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009221test "$dynamic_linker" = no && can_build_shared=no
9222
Reid Spencera773bd52006-08-04 18:18:08 +00009223variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9224if test "$GCC" = yes; then
9225 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9226fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227
Reid Spencera773bd52006-08-04 18:18:08 +00009228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009229{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9230echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9231if test "${libltdl_cv_shlibext+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009233else
9234
9235module=yes
9236eval libltdl_cv_shlibext=$shrext_cmds
9237
9238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009239{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9240echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009241if test -n "$libltdl_cv_shlibext"; then
9242
9243cat >>confdefs.h <<_ACEOF
9244#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9245_ACEOF
9246
9247fi
9248
9249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009250{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9251echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9252if test "${libltdl_cv_shlibpath_var+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009254else
9255 libltdl_cv_shlibpath_var="$shlibpath_var"
9256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009257{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9258echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009259if test -n "$libltdl_cv_shlibpath_var"; then
9260
9261cat >>confdefs.h <<_ACEOF
9262#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9263_ACEOF
9264
9265fi
9266
9267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009268{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9269echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9270if test "${libltdl_cv_sys_search_path+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009272else
9273 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009275{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9276echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009277if test -n "$libltdl_cv_sys_search_path"; then
9278 sys_search_path=
9279 for dir in $libltdl_cv_sys_search_path; do
9280 if test -z "$sys_search_path"; then
9281 sys_search_path="$dir"
9282 else
9283 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9284 fi
9285 done
9286
9287cat >>confdefs.h <<_ACEOF
9288#define LTDL_SYSSEARCHPATH "$sys_search_path"
9289_ACEOF
9290
9291fi
9292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009293{ echo "$as_me:$LINENO: checking for objdir" >&5
9294echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9295if test "${libltdl_cv_objdir+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009297else
9298 libltdl_cv_objdir="$objdir"
9299 if test -n "$objdir"; then
9300 :
9301 else
9302 rm -f .libs 2>/dev/null
9303 mkdir .libs 2>/dev/null
9304 if test -d .libs; then
9305 libltdl_cv_objdir=.libs
9306 else
9307 # MS-DOS does not allow filenames that begin with a dot.
9308 libltdl_cv_objdir=_libs
9309 fi
9310 rmdir .libs 2>/dev/null
9311 fi
9312
9313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009314{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9315echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009316
9317cat >>confdefs.h <<_ACEOF
9318#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9319_ACEOF
9320
9321
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009322
9323
9324
9325
9326# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009327{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9328echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9329if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331else
9332
9333# These are sane defaults that work on at least a few old systems.
9334# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9335
9336# Character class describing NM global symbol codes.
9337symcode='[BCDEGRST]'
9338
9339# Regexp to match symbols that can be accessed directly from C.
9340sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9341
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009342# Transform an extracted symbol line into a proper C declaration
9343lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9344
9345# Transform an extracted symbol line into symbol name and symbol address
9346lt_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'"
9347
9348# Define system-specific variables.
9349case $host_os in
9350aix*)
9351 symcode='[BCDT]'
9352 ;;
9353cygwin* | mingw* | pw32*)
9354 symcode='[ABCDGISTW]'
9355 ;;
9356hpux*) # Its linker distinguishes data from code symbols
9357 if test "$host_cpu" = ia64; then
9358 symcode='[ABCDEGRST]'
9359 fi
9360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9361 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'"
9362 ;;
9363linux*)
9364 if test "$host_cpu" = ia64; then
9365 symcode='[ABCDGIRSTW]'
9366 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9367 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'"
9368 fi
9369 ;;
9370irix* | nonstopux*)
9371 symcode='[BCDEGRST]'
9372 ;;
9373osf*)
9374 symcode='[BCDEGQRST]'
9375 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009376solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009377 symcode='[BDRT]'
9378 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009379sco3.2v5*)
9380 symcode='[DT]'
9381 ;;
9382sysv4.2uw2*)
9383 symcode='[DT]'
9384 ;;
9385sysv5* | sco5v6* | unixware* | OpenUNIX*)
9386 symcode='[ABDT]'
9387 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009388sysv4)
9389 symcode='[DFNSTU]'
9390 ;;
9391esac
9392
9393# Handle CRLF in mingw tool chain
9394opt_cr=
9395case $build_os in
9396mingw*)
9397 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9398 ;;
9399esac
9400
9401# If we're using GNU nm, then use its standard symbol codes.
9402case `$NM -V 2>&1` in
9403*GNU* | *'with BFD'*)
9404 symcode='[ABCDGIRSTW]' ;;
9405esac
9406
9407# Try without a prefix undercore, then with it.
9408for ac_symprfx in "" "_"; do
9409
Reid Spencera773bd52006-08-04 18:18:08 +00009410 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9411 symxfrm="\\1 $ac_symprfx\\2 \\2"
9412
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009413 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009414 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 +00009415
9416 # Check to see that the pipe works correctly.
9417 pipe_works=no
9418
9419 rm -f conftest*
9420 cat > conftest.$ac_ext <<EOF
9421#ifdef __cplusplus
9422extern "C" {
9423#endif
9424char nm_test_var;
9425void nm_test_func(){}
9426#ifdef __cplusplus
9427}
9428#endif
9429int main(){nm_test_var='a';nm_test_func();return(0);}
9430EOF
9431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009433 (eval $ac_compile) 2>&5
9434 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009437 # Now try to grab the symbols.
9438 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009439 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 +00009440 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9441 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009444 # Try sorting and uniquifying the output.
9445 if sort "$nlist" | uniq > "$nlist"T; then
9446 mv -f "$nlist"T "$nlist"
9447 else
9448 rm -f "$nlist"T
9449 fi
9450
9451 # Make sure that we snagged all the symbols we need.
9452 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9453 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9454 cat <<EOF > conftest.$ac_ext
9455#ifdef __cplusplus
9456extern "C" {
9457#endif
9458
9459EOF
9460 # Now generate the symbol file.
9461 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9462
9463 cat <<EOF >> conftest.$ac_ext
9464#if defined (__STDC__) && __STDC__
9465# define lt_ptr_t void *
9466#else
9467# define lt_ptr_t char *
9468# define const
9469#endif
9470
9471/* The mapping between symbol names and symbols. */
9472const struct {
9473 const char *name;
9474 lt_ptr_t address;
9475}
9476lt_preloaded_symbols[] =
9477{
9478EOF
9479 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9480 cat <<\EOF >> conftest.$ac_ext
9481 {0, (lt_ptr_t) 0}
9482};
9483
9484#ifdef __cplusplus
9485}
9486#endif
9487EOF
9488 # Now try linking the two files.
9489 mv conftest.$ac_objext conftstm.$ac_objext
9490 lt_save_LIBS="$LIBS"
9491 lt_save_CFLAGS="$CFLAGS"
9492 LIBS="conftstm.$ac_objext"
9493 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009495 (eval $ac_link) 2>&5
9496 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499 pipe_works=yes
9500 fi
9501 LIBS="$lt_save_LIBS"
9502 CFLAGS="$lt_save_CFLAGS"
9503 else
9504 echo "cannot find nm_test_func in $nlist" >&5
9505 fi
9506 else
9507 echo "cannot find nm_test_var in $nlist" >&5
9508 fi
9509 else
9510 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9511 fi
9512 else
9513 echo "$progname: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9515 fi
9516 rm -f conftest* conftst*
9517
9518 # Do not use the global_symbol_pipe unless it works.
9519 if test "$pipe_works" = yes; then
9520 break
9521 else
9522 lt_cv_sys_global_symbol_pipe=
9523 fi
9524done
9525
9526fi
9527
9528if test -z "$lt_cv_sys_global_symbol_pipe"; then
9529 lt_cv_sys_global_symbol_to_cdecl=
9530fi
9531if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009532 { echo "$as_me:$LINENO: result: failed" >&5
9533echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009535 { echo "$as_me:$LINENO: result: ok" >&5
9536echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537fi
9538
9539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009540{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9541echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9542if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009544else
9545 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9546 libltdl_cv_preloaded_symbols=yes
9547 else
9548 libltdl_cv_preloaded_symbols=no
9549 fi
9550
9551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009552{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9553echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009554if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009556cat >>confdefs.h <<\_ACEOF
9557#define HAVE_PRELOADED_SYMBOLS 1
9558_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009559
9560fi
9561
9562LIBADD_DL=
9563
9564ac_ext=c
9565ac_cpp='$CPP $CPPFLAGS'
9566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9568ac_compiler_gnu=$ac_cv_c_compiler_gnu
9569
9570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009571{ echo "$as_me:$LINENO: checking for shl_load" >&5
9572echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9573if test "${ac_cv_func_shl_load+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575else
9576 cat >conftest.$ac_ext <<_ACEOF
9577/* confdefs.h. */
9578_ACEOF
9579cat confdefs.h >>conftest.$ac_ext
9580cat >>conftest.$ac_ext <<_ACEOF
9581/* end confdefs.h. */
9582/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9584#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009586/* System header to define __stub macros and hopefully few prototypes,
9587 which can conflict with char shl_load (); below.
9588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9589 <limits.h> exists even on freestanding compilers. */
9590
9591#ifdef __STDC__
9592# include <limits.h>
9593#else
9594# include <assert.h>
9595#endif
9596
9597#undef shl_load
9598
9599/* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
9602#ifdef __cplusplus
9603extern "C"
9604#endif
9605char shl_load ();
9606/* The GNU C library defines this for functions which it implements
9607 to always fail with ENOSYS. Some functions are actually named
9608 something starting with __ and the normal name is an alias. */
9609#if defined __stub_shl_load || defined __stub___shl_load
9610choke me
9611#endif
9612
9613int
9614main ()
9615{
9616return shl_load ();
9617 ;
9618 return 0;
9619}
9620_ACEOF
9621rm -f conftest.$ac_objext conftest$ac_exeext
9622if { (ac_try="$ac_link"
9623case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626esac
9627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_link") 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9636 { (case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639esac
9640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_try") 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try='test -s conftest$ac_exeext'
9646 { (case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649esac
9650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_try") 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 ac_cv_func_shl_load=yes
9656else
9657 echo "$as_me: failed program was:" >&5
9658sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 ac_cv_func_shl_load=no
9661fi
9662
9663rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
9665fi
9666{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9667echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9668if test $ac_cv_func_shl_load = yes; then
9669
9670cat >>confdefs.h <<\_ACEOF
9671#define HAVE_SHL_LOAD 1
9672_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009673
9674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009675 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9676echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9677if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009679else
9680 ac_check_lib_save_LIBS=$LIBS
9681LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009682cat >conftest.$ac_ext <<_ACEOF
9683/* confdefs.h. */
9684_ACEOF
9685cat confdefs.h >>conftest.$ac_ext
9686cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009687/* end confdefs.h. */
9688
Reid Spencera773bd52006-08-04 18:18:08 +00009689/* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692#ifdef __cplusplus
9693extern "C"
9694#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009695char shl_load ();
9696int
9697main ()
9698{
Reid Spencera773bd52006-08-04 18:18:08 +00009699return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009700 ;
9701 return 0;
9702}
9703_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009704rm -f conftest.$ac_objext conftest$ac_exeext
9705if { (ac_try="$ac_link"
9706case "(($ac_try" in
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9709esac
9710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_link") 2>conftest.er1
9712 ac_status=$?
9713 grep -v '^ *+' conftest.er1 >conftest.err
9714 rm -f conftest.er1
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } &&
9718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9719 { (case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9722esac
9723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_try") 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try='test -s conftest$ac_exeext'
9729 { (case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732esac
9733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_try") 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009738 ac_cv_lib_dld_shl_load=yes
9739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009740 echo "$as_me: failed program was:" >&5
9741sed 's/^/| /' conftest.$ac_ext >&5
9742
9743 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009745
Bill Wendlingebcceee2009-04-18 11:20:33 +00009746rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009747 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009748LIBS=$ac_check_lib_save_LIBS
9749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009750{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9751echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9752if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009754cat >>confdefs.h <<\_ACEOF
9755#define HAVE_SHL_LOAD 1
9756_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757
9758 LIBADD_DL="$LIBADD_DL -ldld"
9759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009760 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9761echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9762if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764else
9765 ac_check_lib_save_LIBS=$LIBS
9766LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009767cat >conftest.$ac_ext <<_ACEOF
9768/* confdefs.h. */
9769_ACEOF
9770cat confdefs.h >>conftest.$ac_ext
9771cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009772/* end confdefs.h. */
9773
Reid Spencera773bd52006-08-04 18:18:08 +00009774/* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777#ifdef __cplusplus
9778extern "C"
9779#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780char dlopen ();
9781int
9782main ()
9783{
Reid Spencera773bd52006-08-04 18:18:08 +00009784return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785 ;
9786 return 0;
9787}
9788_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009789rm -f conftest.$ac_objext conftest$ac_exeext
9790if { (ac_try="$ac_link"
9791case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794esac
9795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_link") 2>conftest.er1
9797 ac_status=$?
9798 grep -v '^ *+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9807esac
9808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_try") 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009823 ac_cv_lib_dl_dlopen=yes
9824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009825 echo "$as_me: failed program was:" >&5
9826sed 's/^/| /' conftest.$ac_ext >&5
9827
9828 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009830
Bill Wendlingebcceee2009-04-18 11:20:33 +00009831rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009832 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833LIBS=$ac_check_lib_save_LIBS
9834fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009835{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9836echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9837if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009839cat >>confdefs.h <<\_ACEOF
9840#define HAVE_LIBDL 1
9841_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842
9843 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009845 cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h. */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850/* end confdefs.h. */
9851#if HAVE_DLFCN_H
9852# include <dlfcn.h>
9853#endif
9854
9855int
9856main ()
9857{
9858dlopen(0, 0);
9859 ;
9860 return 0;
9861}
9862_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009863rm -f conftest.$ac_objext conftest$ac_exeext
9864if { (ac_try="$ac_link"
9865case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868esac
9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881esac
9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009898cat >>confdefs.h <<\_ACEOF
9899#define HAVE_LIBDL 1
9900_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901 libltdl_cv_func_dlopen="yes"
9902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009903 echo "$as_me: failed program was:" >&5
9904sed 's/^/| /' conftest.$ac_ext >&5
9905
9906 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9907echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9908if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910else
9911 ac_check_lib_save_LIBS=$LIBS
9912LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009913cat >conftest.$ac_ext <<_ACEOF
9914/* confdefs.h. */
9915_ACEOF
9916cat confdefs.h >>conftest.$ac_ext
9917cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918/* end confdefs.h. */
9919
Reid Spencera773bd52006-08-04 18:18:08 +00009920/* Override any GCC internal prototype to avoid an error.
9921 Use char because int might match the return type of a GCC
9922 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923#ifdef __cplusplus
9924extern "C"
9925#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926char dlopen ();
9927int
9928main ()
9929{
Reid Spencera773bd52006-08-04 18:18:08 +00009930return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009931 ;
9932 return 0;
9933}
9934_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009935rm -f conftest.$ac_objext conftest$ac_exeext
9936if { (ac_try="$ac_link"
9937case "(($ac_try" in
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9940esac
9941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_link") 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9950 { (case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953esac
9954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_try") 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; } &&
9959 { ac_try='test -s conftest$ac_exeext'
9960 { (case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9963esac
9964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_try") 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009969 ac_cv_lib_svld_dlopen=yes
9970else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009971 echo "$as_me: failed program was:" >&5
9972sed 's/^/| /' conftest.$ac_ext >&5
9973
9974 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009976
Bill Wendlingebcceee2009-04-18 11:20:33 +00009977rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009978 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979LIBS=$ac_check_lib_save_LIBS
9980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009981{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9982echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9983if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009985cat >>confdefs.h <<\_ACEOF
9986#define HAVE_LIBDL 1
9987_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988
9989 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009991 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9992echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9993if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995else
9996 ac_check_lib_save_LIBS=$LIBS
9997LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h. */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003/* end confdefs.h. */
10004
Reid Spencera773bd52006-08-04 18:18:08 +000010005/* Override any GCC internal prototype to avoid an error.
10006 Use char because int might match the return type of a GCC
10007 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008#ifdef __cplusplus
10009extern "C"
10010#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011char dld_link ();
10012int
10013main ()
10014{
Reid Spencera773bd52006-08-04 18:18:08 +000010015return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010016 ;
10017 return 0;
10018}
10019_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010020rm -f conftest.$ac_objext conftest$ac_exeext
10021if { (ac_try="$ac_link"
10022case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10025esac
10026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_link") 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10035 { (case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038esac
10039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_try") 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_try") 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010054 ac_cv_lib_dld_dld_link=yes
10055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010056 echo "$as_me: failed program was:" >&5
10057sed 's/^/| /' conftest.$ac_ext >&5
10058
10059 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010061
Bill Wendlingebcceee2009-04-18 11:20:33 +000010062rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010063 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064LIBS=$ac_check_lib_save_LIBS
10065fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010066{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10067echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10068if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010070cat >>confdefs.h <<\_ACEOF
10071#define HAVE_DLD 1
10072_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073
10074 LIBADD_DL="$LIBADD_DL -ldld"
10075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010076 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10077echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10078if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080else
10081 cat >conftest.$ac_ext <<_ACEOF
10082/* confdefs.h. */
10083_ACEOF
10084cat confdefs.h >>conftest.$ac_ext
10085cat >>conftest.$ac_ext <<_ACEOF
10086/* end confdefs.h. */
10087/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10089#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010091/* System header to define __stub macros and hopefully few prototypes,
10092 which can conflict with char _dyld_func_lookup (); below.
10093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10094 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010096#ifdef __STDC__
10097# include <limits.h>
10098#else
10099# include <assert.h>
10100#endif
10101
10102#undef _dyld_func_lookup
10103
10104/* Override any GCC internal prototype to avoid an error.
10105 Use char because int might match the return type of a GCC
10106 builtin and then its argument prototype would still apply. */
10107#ifdef __cplusplus
10108extern "C"
10109#endif
10110char _dyld_func_lookup ();
10111/* The GNU C library defines this for functions which it implements
10112 to always fail with ENOSYS. Some functions are actually named
10113 something starting with __ and the normal name is an alias. */
10114#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10115choke me
10116#endif
10117
10118int
10119main ()
10120{
10121return _dyld_func_lookup ();
10122 ;
10123 return 0;
10124}
10125_ACEOF
10126rm -f conftest.$ac_objext conftest$ac_exeext
10127if { (ac_try="$ac_link"
10128case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131esac
10132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_link") 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
10140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10141 { (case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10144esac
10145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_try") 2>&5
10147 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest$ac_exeext'
10151 { (case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154esac
10155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_try") 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_func__dyld_func_lookup=yes
10161else
10162 echo "$as_me: failed program was:" >&5
10163sed 's/^/| /' conftest.$ac_ext >&5
10164
10165 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166fi
Reid Spencera773bd52006-08-04 18:18:08 +000010167
Bill Wendlingebcceee2009-04-18 11:20:33 +000010168rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010169 conftest$ac_exeext conftest.$ac_ext
10170fi
10171{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10172echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10173if test $ac_cv_func__dyld_func_lookup = yes; then
10174
10175cat >>confdefs.h <<\_ACEOF
10176#define HAVE_DYLD 1
10177_ACEOF
10178
10179fi
10180
10181
10182fi
10183
10184
10185fi
10186
10187
10188fi
10189
10190rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192
10193fi
10194
10195
10196fi
10197
10198
10199fi
10200
10201
10202if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10203then
10204 lt_save_LIBS="$LIBS"
10205 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010206
10207for ac_func in dlerror
10208do
10209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10210{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10212if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10214else
10215 cat >conftest.$ac_ext <<_ACEOF
10216/* confdefs.h. */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
10220/* end confdefs.h. */
10221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10223#define $ac_func innocuous_$ac_func
10224
10225/* System header to define __stub macros and hopefully few prototypes,
10226 which can conflict with char $ac_func (); below.
10227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10228 <limits.h> exists even on freestanding compilers. */
10229
10230#ifdef __STDC__
10231# include <limits.h>
10232#else
10233# include <assert.h>
10234#endif
10235
10236#undef $ac_func
10237
10238/* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
10241#ifdef __cplusplus
10242extern "C"
10243#endif
10244char $ac_func ();
10245/* The GNU C library defines this for functions which it implements
10246 to always fail with ENOSYS. Some functions are actually named
10247 something starting with __ and the normal name is an alias. */
10248#if defined __stub_$ac_func || defined __stub___$ac_func
10249choke me
10250#endif
10251
10252int
10253main ()
10254{
10255return $ac_func ();
10256 ;
10257 return 0;
10258}
10259_ACEOF
10260rm -f conftest.$ac_objext conftest$ac_exeext
10261if { (ac_try="$ac_link"
10262case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265esac
10266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_link") 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10275 { (case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10278esac
10279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_try") 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; } &&
10284 { ac_try='test -s conftest$ac_exeext'
10285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288esac
10289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; }; then
10294 eval "$as_ac_var=yes"
10295else
10296 echo "$as_me: failed program was:" >&5
10297sed 's/^/| /' conftest.$ac_ext >&5
10298
10299 eval "$as_ac_var=no"
10300fi
10301
10302rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10304fi
10305ac_res=`eval echo '${'$as_ac_var'}'`
10306 { echo "$as_me:$LINENO: result: $ac_res" >&5
10307echo "${ECHO_T}$ac_res" >&6; }
10308if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010309 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010311_ACEOF
10312
10313fi
10314done
10315
10316 LIBS="$lt_save_LIBS"
10317fi
10318ac_ext=c
10319ac_cpp='$CPP $CPPFLAGS'
10320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10322ac_compiler_gnu=$ac_cv_c_compiler_gnu
10323
10324
10325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010326{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10327echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10328if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330else
10331 ac_cv_sys_symbol_underscore=no
10332 cat > conftest.$ac_ext <<EOF
10333void nm_test_func(){}
10334int main(){nm_test_func;return 0;}
10335EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010337 (eval $ac_compile) 2>&5
10338 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010341 # Now try to grab the symbols.
10342 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010343 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 +000010344 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10345 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010348 # See whether the symbols have a leading underscore.
10349 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10350 ac_cv_sys_symbol_underscore=yes
10351 else
10352 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10353 :
10354 else
10355 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10356 fi
10357 fi
10358 else
10359 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10360 fi
10361 else
10362 echo "configure: failed program was:" >&5
10363 cat conftest.c >&5
10364 fi
10365 rm -rf conftest*
10366
10367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010368{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10369echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370
10371
10372if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10373 if test x"$libltdl_cv_func_dlopen" = xyes ||
10374 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010375 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10376echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10377if test "${libltdl_cv_need_uscore+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010379else
10380 libltdl_cv_need_uscore=unknown
10381 save_LIBS="$LIBS"
10382 LIBS="$LIBS $LIBADD_DL"
10383 if test "$cross_compiling" = yes; then :
10384 libltdl_cv_need_uscore=cross
10385else
10386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10387 lt_status=$lt_dlunknown
10388 cat > conftest.$ac_ext <<EOF
Eric Christopherc4b22712012-03-26 21:56:56 +000010389#line 10387 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010390#include "confdefs.h"
10391
10392#if HAVE_DLFCN_H
10393#include <dlfcn.h>
10394#endif
10395
10396#include <stdio.h>
10397
10398#ifdef RTLD_GLOBAL
10399# define LT_DLGLOBAL RTLD_GLOBAL
10400#else
10401# ifdef DL_GLOBAL
10402# define LT_DLGLOBAL DL_GLOBAL
10403# else
10404# define LT_DLGLOBAL 0
10405# endif
10406#endif
10407
10408/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10409 find out it does not work in some platform. */
10410#ifndef LT_DLLAZY_OR_NOW
10411# ifdef RTLD_LAZY
10412# define LT_DLLAZY_OR_NOW RTLD_LAZY
10413# else
10414# ifdef DL_LAZY
10415# define LT_DLLAZY_OR_NOW DL_LAZY
10416# else
10417# ifdef RTLD_NOW
10418# define LT_DLLAZY_OR_NOW RTLD_NOW
10419# else
10420# ifdef DL_NOW
10421# define LT_DLLAZY_OR_NOW DL_NOW
10422# else
10423# define LT_DLLAZY_OR_NOW 0
10424# endif
10425# endif
10426# endif
10427# endif
10428#endif
10429
10430#ifdef __cplusplus
10431extern "C" void exit (int);
10432#endif
10433
10434void fnord() { int i=42;}
10435int main ()
10436{
10437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10438 int status = $lt_dlunknown;
10439
10440 if (self)
10441 {
10442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10443 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10444 /* dlclose (self); */
10445 }
Reid Spencera773bd52006-08-04 18:18:08 +000010446 else
10447 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448
10449 exit (status);
10450}
10451EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453 (eval $ac_link) 2>&5
10454 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010457 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458 lt_status=$?
10459 case x$lt_status in
10460 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10461 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010462 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010463 esac
10464 else :
10465 # compilation failed
10466
10467 fi
10468fi
10469rm -fr conftest*
10470
10471 LIBS="$save_LIBS"
10472
10473fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010474{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10475echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010476 fi
10477fi
10478
10479if test x"$libltdl_cv_need_uscore" = xyes; then
10480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010481cat >>confdefs.h <<\_ACEOF
10482#define NEED_USCORE 1
10483_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010484
10485fi
10486
10487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010488{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10489echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10490if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010492else
10493 # PORTME does your system automatically load deplibs for dlopen?
10494 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10495 # For now, we just catch OSes we know something about -- in the
10496 # future, we'll try test this programmatically.
10497 libltdl_cv_sys_dlopen_deplibs=unknown
10498 case "$host_os" in
10499 aix3*|aix4.1.*|aix4.2.*)
10500 # Unknown whether this is true for these versions of AIX, but
10501 # we want this `case' here to explicitly catch those versions.
10502 libltdl_cv_sys_dlopen_deplibs=unknown
10503 ;;
10504 aix[45]*)
10505 libltdl_cv_sys_dlopen_deplibs=yes
10506 ;;
10507 darwin*)
10508 # Assuming the user has installed a libdl from somewhere, this is true
10509 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10510 libltdl_cv_sys_dlopen_deplibs=yes
10511 ;;
10512 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10513 # GNU and its variants, using gnu ld.so (Glibc)
10514 libltdl_cv_sys_dlopen_deplibs=yes
10515 ;;
10516 hpux10*|hpux11*)
10517 libltdl_cv_sys_dlopen_deplibs=yes
10518 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010519 interix*)
10520 libltdl_cv_sys_dlopen_deplibs=yes
10521 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010522 irix[12345]*|irix6.[01]*)
10523 # Catch all versions of IRIX before 6.2, and indicate that we don't
10524 # know how it worked for any of those versions.
10525 libltdl_cv_sys_dlopen_deplibs=unknown
10526 ;;
10527 irix*)
10528 # The case above catches anything before 6.2, and it's known that
10529 # at 6.2 and later dlopen does load deplibs.
10530 libltdl_cv_sys_dlopen_deplibs=yes
10531 ;;
10532 netbsd*)
10533 libltdl_cv_sys_dlopen_deplibs=yes
10534 ;;
10535 openbsd*)
10536 libltdl_cv_sys_dlopen_deplibs=yes
10537 ;;
10538 osf[1234]*)
10539 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10540 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010541 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010542 libltdl_cv_sys_dlopen_deplibs=no
10543 ;;
10544 osf5.0|osf5.0a|osf5.1)
10545 # dlopen *does* load deplibs and with the right loader patch applied
10546 # it even uses RPATH in a shared library to search for shared objects
10547 # that the library depends on, but there's no easy way to know if that
10548 # patch is installed. Since this is the case, all we can really
10549 # say is unknown -- it depends on the patch being installed. If
10550 # it is, this changes to `yes'. Without it, it would be `no'.
10551 libltdl_cv_sys_dlopen_deplibs=unknown
10552 ;;
10553 osf*)
10554 # the two cases above should catch all versions of osf <= 5.1. Read
10555 # the comments above for what we know about them.
10556 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10557 # is used to find them so we can finally say `yes'.
10558 libltdl_cv_sys_dlopen_deplibs=yes
10559 ;;
10560 solaris*)
10561 libltdl_cv_sys_dlopen_deplibs=yes
10562 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10564 libltdl_cv_sys_dlopen_deplibs=yes
10565 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566 esac
10567
10568fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010569{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10570echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010571if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010573cat >>confdefs.h <<\_ACEOF
10574#define LTDL_DLOPEN_DEPLIBS 1
10575_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576
10577fi
10578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010579
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010581do
10582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
10588fi
10589ac_res=`eval echo '${'$as_ac_Header'}'`
10590 { echo "$as_me:$LINENO: result: $ac_res" >&5
10591echo "${ECHO_T}$ac_res" >&6; }
10592else
10593 # Is the header compilable?
10594{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10596cat >conftest.$ac_ext <<_ACEOF
10597/* confdefs.h. */
10598_ACEOF
10599cat confdefs.h >>conftest.$ac_ext
10600cat >>conftest.$ac_ext <<_ACEOF
10601/* end confdefs.h. */
10602$ac_includes_default
10603#include <$ac_header>
10604_ACEOF
10605rm -f conftest.$ac_objext
10606if { (ac_try="$ac_compile"
10607case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610esac
10611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_compile") 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
10619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10620 { (case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623esac
10624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_try") 2>&5
10626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; } &&
10629 { ac_try='test -s conftest.$ac_objext'
10630 { (case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633esac
10634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_try") 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639 ac_header_compiler=yes
10640else
10641 echo "$as_me: failed program was:" >&5
10642sed 's/^/| /' conftest.$ac_ext >&5
10643
10644 ac_header_compiler=no
10645fi
10646
10647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10649echo "${ECHO_T}$ac_header_compiler" >&6; }
10650
10651# Is the header present?
10652{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10654cat >conftest.$ac_ext <<_ACEOF
10655/* confdefs.h. */
10656_ACEOF
10657cat confdefs.h >>conftest.$ac_ext
10658cat >>conftest.$ac_ext <<_ACEOF
10659/* end confdefs.h. */
10660#include <$ac_header>
10661_ACEOF
10662if { (ac_try="$ac_cpp conftest.$ac_ext"
10663case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10666esac
10667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10669 ac_status=$?
10670 grep -v '^ *+' conftest.er1 >conftest.err
10671 rm -f conftest.er1
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } >/dev/null; then
10675 if test -s conftest.err; then
10676 ac_cpp_err=$ac_c_preproc_warn_flag
10677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10678 else
10679 ac_cpp_err=
10680 fi
10681else
10682 ac_cpp_err=yes
10683fi
10684if test -z "$ac_cpp_err"; then
10685 ac_header_preproc=yes
10686else
10687 echo "$as_me: failed program was:" >&5
10688sed 's/^/| /' conftest.$ac_ext >&5
10689
10690 ac_header_preproc=no
10691fi
10692
10693rm -f conftest.err conftest.$ac_ext
10694{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10695echo "${ECHO_T}$ac_header_preproc" >&6; }
10696
10697# So? What about this header?
10698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10699 yes:no: )
10700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10704 ac_header_preproc=yes
10705 ;;
10706 no:yes:* )
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10714echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10719 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010720## ------------------------------------ ##
10721## Report this to http://llvm.org/bugs/ ##
10722## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010723_ASBOX
10724 ) | sed "s/^/$as_me: WARNING: /" >&2
10725 ;;
10726esac
10727{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10731else
10732 eval "$as_ac_Header=\$ac_header_preproc"
10733fi
10734ac_res=`eval echo '${'$as_ac_Header'}'`
10735 { echo "$as_me:$LINENO: result: $ac_res" >&5
10736echo "${ECHO_T}$ac_res" >&6; }
10737
10738fi
10739if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010742_ACEOF
10743
10744fi
10745
10746done
10747
10748
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010749{ echo "$as_me:$LINENO: checking for error_t" >&5
10750echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10751if test "${ac_cv_type_error_t+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753else
10754 cat >conftest.$ac_ext <<_ACEOF
10755/* confdefs.h. */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h. */
10760#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761# include <argz.h>
10762#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010763
10764typedef error_t ac__type_new_;
10765int
10766main ()
10767{
10768if ((ac__type_new_ *) 0)
10769 return 0;
10770if (sizeof (ac__type_new_))
10771 return 0;
10772 ;
10773 return 0;
10774}
10775_ACEOF
10776rm -f conftest.$ac_objext
10777if { (ac_try="$ac_compile"
10778case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781esac
10782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_compile") 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794esac
10795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
10805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_cv_type_error_t=yes
10811else
10812 echo "$as_me: failed program was:" >&5
10813sed 's/^/| /' conftest.$ac_ext >&5
10814
10815 ac_cv_type_error_t=no
10816fi
10817
10818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819fi
10820{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10821echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10822if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010823
10824cat >>confdefs.h <<_ACEOF
10825#define HAVE_ERROR_T 1
10826_ACEOF
10827
10828
10829else
10830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010831cat >>confdefs.h <<\_ACEOF
10832#define error_t int
10833_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834
10835fi
10836
10837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010838
10839
10840
10841
10842
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010844do
10845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10846{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10848if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850else
10851 cat >conftest.$ac_ext <<_ACEOF
10852/* confdefs.h. */
10853_ACEOF
10854cat confdefs.h >>conftest.$ac_ext
10855cat >>conftest.$ac_ext <<_ACEOF
10856/* end confdefs.h. */
10857/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10859#define $ac_func innocuous_$ac_func
10860
10861/* System header to define __stub macros and hopefully few prototypes,
10862 which can conflict with char $ac_func (); below.
10863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10864 <limits.h> exists even on freestanding compilers. */
10865
10866#ifdef __STDC__
10867# include <limits.h>
10868#else
10869# include <assert.h>
10870#endif
10871
10872#undef $ac_func
10873
10874/* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877#ifdef __cplusplus
10878extern "C"
10879#endif
10880char $ac_func ();
10881/* The GNU C library defines this for functions which it implements
10882 to always fail with ENOSYS. Some functions are actually named
10883 something starting with __ and the normal name is an alias. */
10884#if defined __stub_$ac_func || defined __stub___$ac_func
10885choke me
10886#endif
10887
10888int
10889main ()
10890{
10891return $ac_func ();
10892 ;
10893 return 0;
10894}
10895_ACEOF
10896rm -f conftest.$ac_objext conftest$ac_exeext
10897if { (ac_try="$ac_link"
10898case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10901esac
10902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_link") 2>conftest.er1
10904 ac_status=$?
10905 grep -v '^ *+' conftest.er1 >conftest.err
10906 rm -f conftest.er1
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } &&
10910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10911 { (case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914esac
10915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_try") 2>&5
10917 ac_status=$?
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; } &&
10920 { ac_try='test -s conftest$ac_exeext'
10921 { (case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924esac
10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; }; then
10930 eval "$as_ac_var=yes"
10931else
10932 echo "$as_me: failed program was:" >&5
10933sed 's/^/| /' conftest.$ac_ext >&5
10934
10935 eval "$as_ac_var=no"
10936fi
10937
10938rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940fi
10941ac_res=`eval echo '${'$as_ac_var'}'`
10942 { echo "$as_me:$LINENO: result: $ac_res" >&5
10943echo "${ECHO_T}$ac_res" >&6; }
10944if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010945 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010947_ACEOF
10948
10949fi
10950done
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010971
10972
10973
10974
10975
10976
10977
10978
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10980 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010981do
10982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10988fi
10989ac_res=`eval echo '${'$as_ac_Header'}'`
10990 { echo "$as_me:$LINENO: result: $ac_res" >&5
10991echo "${ECHO_T}$ac_res" >&6; }
10992else
10993 # Is the header compilable?
10994{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10996cat >conftest.$ac_ext <<_ACEOF
10997/* confdefs.h. */
10998_ACEOF
10999cat confdefs.h >>conftest.$ac_ext
11000cat >>conftest.$ac_ext <<_ACEOF
11001/* end confdefs.h. */
11002$ac_includes_default
11003#include <$ac_header>
11004_ACEOF
11005rm -f conftest.$ac_objext
11006if { (ac_try="$ac_compile"
11007case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11010esac
11011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_compile") 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020 { (case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023esac
11024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_try") 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest.$ac_objext'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033esac
11034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_header_compiler=yes
11040else
11041 echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044 ac_header_compiler=no
11045fi
11046
11047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11049echo "${ECHO_T}$ac_header_compiler" >&6; }
11050
11051# Is the header present?
11052{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11054cat >conftest.$ac_ext <<_ACEOF
11055/* confdefs.h. */
11056_ACEOF
11057cat confdefs.h >>conftest.$ac_ext
11058cat >>conftest.$ac_ext <<_ACEOF
11059/* end confdefs.h. */
11060#include <$ac_header>
11061_ACEOF
11062if { (ac_try="$ac_cpp conftest.$ac_ext"
11063case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066esac
11067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } >/dev/null; then
11075 if test -s conftest.err; then
11076 ac_cpp_err=$ac_c_preproc_warn_flag
11077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11078 else
11079 ac_cpp_err=
11080 fi
11081else
11082 ac_cpp_err=yes
11083fi
11084if test -z "$ac_cpp_err"; then
11085 ac_header_preproc=yes
11086else
11087 echo "$as_me: failed program was:" >&5
11088sed 's/^/| /' conftest.$ac_ext >&5
11089
11090 ac_header_preproc=no
11091fi
11092
11093rm -f conftest.err conftest.$ac_ext
11094{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11095echo "${ECHO_T}$ac_header_preproc" >&6; }
11096
11097# So? What about this header?
11098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11099 yes:no: )
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11104 ac_header_preproc=yes
11105 ;;
11106 no:yes:* )
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11114echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11119 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011120## ------------------------------------ ##
11121## Report this to http://llvm.org/bugs/ ##
11122## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011123_ASBOX
11124 ) | sed "s/^/$as_me: WARNING: /" >&2
11125 ;;
11126esac
11127{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131else
11132 eval "$as_ac_Header=\$ac_header_preproc"
11133fi
11134ac_res=`eval echo '${'$as_ac_Header'}'`
11135 { echo "$as_me:$LINENO: result: $ac_res" >&5
11136echo "${ECHO_T}$ac_res" >&6; }
11137
11138fi
11139if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011140 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011142_ACEOF
11143
11144fi
11145
11146done
11147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011148
11149
11150
11151
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011152for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011153do
11154as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160fi
11161ac_res=`eval echo '${'$as_ac_Header'}'`
11162 { echo "$as_me:$LINENO: result: $ac_res" >&5
11163echo "${ECHO_T}$ac_res" >&6; }
11164else
11165 # Is the header compilable?
11166{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11167echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11168cat >conftest.$ac_ext <<_ACEOF
11169/* confdefs.h. */
11170_ACEOF
11171cat confdefs.h >>conftest.$ac_ext
11172cat >>conftest.$ac_ext <<_ACEOF
11173/* end confdefs.h. */
11174$ac_includes_default
11175#include <$ac_header>
11176_ACEOF
11177rm -f conftest.$ac_objext
11178if { (ac_try="$ac_compile"
11179case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11182esac
11183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_compile") 2>conftest.er1
11185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } &&
11191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11192 { (case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195esac
11196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_try") 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205esac
11206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_try") 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 ac_header_compiler=yes
11212else
11213 echo "$as_me: failed program was:" >&5
11214sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 ac_header_compiler=no
11217fi
11218
11219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11221echo "${ECHO_T}$ac_header_compiler" >&6; }
11222
11223# Is the header present?
11224{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11225echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11226cat >conftest.$ac_ext <<_ACEOF
11227/* confdefs.h. */
11228_ACEOF
11229cat confdefs.h >>conftest.$ac_ext
11230cat >>conftest.$ac_ext <<_ACEOF
11231/* end confdefs.h. */
11232#include <$ac_header>
11233_ACEOF
11234if { (ac_try="$ac_cpp conftest.$ac_ext"
11235case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11238esac
11239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11241 ac_status=$?
11242 grep -v '^ *+' conftest.er1 >conftest.err
11243 rm -f conftest.er1
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } >/dev/null; then
11247 if test -s conftest.err; then
11248 ac_cpp_err=$ac_c_preproc_warn_flag
11249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11250 else
11251 ac_cpp_err=
11252 fi
11253else
11254 ac_cpp_err=yes
11255fi
11256if test -z "$ac_cpp_err"; then
11257 ac_header_preproc=yes
11258else
11259 echo "$as_me: failed program was:" >&5
11260sed 's/^/| /' conftest.$ac_ext >&5
11261
11262 ac_header_preproc=no
11263fi
11264
11265rm -f conftest.err conftest.$ac_ext
11266{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11267echo "${ECHO_T}$ac_header_preproc" >&6; }
11268
11269# So? What about this header?
11270case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11271 yes:no: )
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11273echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11275echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11276 ac_header_preproc=yes
11277 ;;
11278 no:yes:* )
11279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11280echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11282echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11284echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11286echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11288echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11290echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11291 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011292## ------------------------------------ ##
11293## Report this to http://llvm.org/bugs/ ##
11294## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011295_ASBOX
11296 ) | sed "s/^/$as_me: WARNING: /" >&2
11297 ;;
11298esac
11299{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11303else
11304 eval "$as_ac_Header=\$ac_header_preproc"
11305fi
11306ac_res=`eval echo '${'$as_ac_Header'}'`
11307 { echo "$as_me:$LINENO: result: $ac_res" >&5
11308echo "${ECHO_T}$ac_res" >&6; }
11309
11310fi
11311if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011312 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011313#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011314_ACEOF
11315
11316fi
11317
11318done
11319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011320
11321
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011322for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011323do
11324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11330fi
11331ac_res=`eval echo '${'$as_ac_Header'}'`
11332 { echo "$as_me:$LINENO: result: $ac_res" >&5
11333echo "${ECHO_T}$ac_res" >&6; }
11334else
11335 # Is the header compilable?
11336{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11337echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11338cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
11344$ac_includes_default
11345#include <$ac_header>
11346_ACEOF
11347rm -f conftest.$ac_objext
11348if { (ac_try="$ac_compile"
11349case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352esac
11353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_compile") 2>conftest.er1
11355 ac_status=$?
11356 grep -v '^ *+' conftest.er1 >conftest.err
11357 rm -f conftest.er1
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11362 { (case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365esac
11366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_try") 2>&5
11368 ac_status=$?
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; } &&
11371 { ac_try='test -s conftest.$ac_objext'
11372 { (case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11375esac
11376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_try") 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_header_compiler=yes
11382else
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386 ac_header_compiler=no
11387fi
11388
11389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11391echo "${ECHO_T}$ac_header_compiler" >&6; }
11392
11393# Is the header present?
11394{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11396cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h. */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h. */
11402#include <$ac_header>
11403_ACEOF
11404if { (ac_try="$ac_cpp conftest.$ac_ext"
11405case "(($ac_try" in
11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11408esac
11409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } >/dev/null; then
11417 if test -s conftest.err; then
11418 ac_cpp_err=$ac_c_preproc_warn_flag
11419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11420 else
11421 ac_cpp_err=
11422 fi
11423else
11424 ac_cpp_err=yes
11425fi
11426if test -z "$ac_cpp_err"; then
11427 ac_header_preproc=yes
11428else
11429 echo "$as_me: failed program was:" >&5
11430sed 's/^/| /' conftest.$ac_ext >&5
11431
11432 ac_header_preproc=no
11433fi
11434
11435rm -f conftest.err conftest.$ac_ext
11436{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437echo "${ECHO_T}$ac_header_preproc" >&6; }
11438
11439# So? What about this header?
11440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441 yes:no: )
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc=yes
11447 ;;
11448 no:yes:* )
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11456echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11461 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011462## ------------------------------------ ##
11463## Report this to http://llvm.org/bugs/ ##
11464## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011465_ASBOX
11466 ) | sed "s/^/$as_me: WARNING: /" >&2
11467 ;;
11468esac
11469{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11473else
11474 eval "$as_ac_Header=\$ac_header_preproc"
11475fi
11476ac_res=`eval echo '${'$as_ac_Header'}'`
11477 { echo "$as_me:$LINENO: result: $ac_res" >&5
11478echo "${ECHO_T}$ac_res" >&6; }
11479
11480fi
11481if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011482 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484_ACEOF
11485 break
11486fi
11487
11488done
11489
11490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011491
11492
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011494do
11495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11496{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11498if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11500else
11501 cat >conftest.$ac_ext <<_ACEOF
11502/* confdefs.h. */
11503_ACEOF
11504cat confdefs.h >>conftest.$ac_ext
11505cat >>conftest.$ac_ext <<_ACEOF
11506/* end confdefs.h. */
11507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11509#define $ac_func innocuous_$ac_func
11510
11511/* System header to define __stub macros and hopefully few prototypes,
11512 which can conflict with char $ac_func (); below.
11513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11514 <limits.h> exists even on freestanding compilers. */
11515
11516#ifdef __STDC__
11517# include <limits.h>
11518#else
11519# include <assert.h>
11520#endif
11521
11522#undef $ac_func
11523
11524/* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11527#ifdef __cplusplus
11528extern "C"
11529#endif
11530char $ac_func ();
11531/* The GNU C library defines this for functions which it implements
11532 to always fail with ENOSYS. Some functions are actually named
11533 something starting with __ and the normal name is an alias. */
11534#if defined __stub_$ac_func || defined __stub___$ac_func
11535choke me
11536#endif
11537
11538int
11539main ()
11540{
11541return $ac_func ();
11542 ;
11543 return 0;
11544}
11545_ACEOF
11546rm -f conftest.$ac_objext conftest$ac_exeext
11547if { (ac_try="$ac_link"
11548case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11551esac
11552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_link") 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11561 { (case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11564esac
11565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_try") 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11574esac
11575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_try") 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 eval "$as_ac_var=yes"
11581else
11582 echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
11585 eval "$as_ac_var=no"
11586fi
11587
11588rm -f core conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11590fi
11591ac_res=`eval echo '${'$as_ac_var'}'`
11592 { echo "$as_me:$LINENO: result: $ac_res" >&5
11593echo "${ECHO_T}$ac_res" >&6; }
11594if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011597_ACEOF
11598 break
11599fi
11600done
11601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011602
11603
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011605do
11606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611else
11612 cat >conftest.$ac_ext <<_ACEOF
11613/* confdefs.h. */
11614_ACEOF
11615cat confdefs.h >>conftest.$ac_ext
11616cat >>conftest.$ac_ext <<_ACEOF
11617/* end confdefs.h. */
11618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11620#define $ac_func innocuous_$ac_func
11621
11622/* System header to define __stub macros and hopefully few prototypes,
11623 which can conflict with char $ac_func (); below.
11624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625 <limits.h> exists even on freestanding compilers. */
11626
11627#ifdef __STDC__
11628# include <limits.h>
11629#else
11630# include <assert.h>
11631#endif
11632
11633#undef $ac_func
11634
11635/* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11638#ifdef __cplusplus
11639extern "C"
11640#endif
11641char $ac_func ();
11642/* The GNU C library defines this for functions which it implements
11643 to always fail with ENOSYS. Some functions are actually named
11644 something starting with __ and the normal name is an alias. */
11645#if defined __stub_$ac_func || defined __stub___$ac_func
11646choke me
11647#endif
11648
11649int
11650main ()
11651{
11652return $ac_func ();
11653 ;
11654 return 0;
11655}
11656_ACEOF
11657rm -f conftest.$ac_objext conftest$ac_exeext
11658if { (ac_try="$ac_link"
11659case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11662esac
11663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_link") 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672 { (case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675esac
11676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_try") 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685esac
11686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_try") 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 eval "$as_ac_var=yes"
11692else
11693 echo "$as_me: failed program was:" >&5
11694sed 's/^/| /' conftest.$ac_ext >&5
11695
11696 eval "$as_ac_var=no"
11697fi
11698
11699rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11701fi
11702ac_res=`eval echo '${'$as_ac_var'}'`
11703 { echo "$as_me:$LINENO: result: $ac_res" >&5
11704echo "${ECHO_T}$ac_res" >&6; }
11705if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011708_ACEOF
11709 break
11710fi
11711done
11712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011713
11714
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011716do
11717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 cat >conftest.$ac_ext <<_ACEOF
11724/* confdefs.h. */
11725_ACEOF
11726cat confdefs.h >>conftest.$ac_ext
11727cat >>conftest.$ac_ext <<_ACEOF
11728/* end confdefs.h. */
11729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11731#define $ac_func innocuous_$ac_func
11732
11733/* System header to define __stub macros and hopefully few prototypes,
11734 which can conflict with char $ac_func (); below.
11735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736 <limits.h> exists even on freestanding compilers. */
11737
11738#ifdef __STDC__
11739# include <limits.h>
11740#else
11741# include <assert.h>
11742#endif
11743
11744#undef $ac_func
11745
11746/* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply. */
11749#ifdef __cplusplus
11750extern "C"
11751#endif
11752char $ac_func ();
11753/* The GNU C library defines this for functions which it implements
11754 to always fail with ENOSYS. Some functions are actually named
11755 something starting with __ and the normal name is an alias. */
11756#if defined __stub_$ac_func || defined __stub___$ac_func
11757choke me
11758#endif
11759
11760int
11761main ()
11762{
11763return $ac_func ();
11764 ;
11765 return 0;
11766}
11767_ACEOF
11768rm -f conftest.$ac_objext conftest$ac_exeext
11769if { (ac_try="$ac_link"
11770case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773esac
11774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_link") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786esac
11787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest$ac_exeext'
11793 { (case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796esac
11797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_try") 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 eval "$as_ac_var=yes"
11803else
11804 echo "$as_me: failed program was:" >&5
11805sed 's/^/| /' conftest.$ac_ext >&5
11806
11807 eval "$as_ac_var=no"
11808fi
11809
11810rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11812fi
11813ac_res=`eval echo '${'$as_ac_var'}'`
11814 { echo "$as_me:$LINENO: result: $ac_res" >&5
11815echo "${ECHO_T}$ac_res" >&6; }
11816if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011817 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011819_ACEOF
11820 break
11821fi
11822done
11823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011824
11825
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011827do
11828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833else
11834 cat >conftest.$ac_ext <<_ACEOF
11835/* confdefs.h. */
11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h. */
11840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11842#define $ac_func innocuous_$ac_func
11843
11844/* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char $ac_func (); below.
11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847 <limits.h> exists even on freestanding compilers. */
11848
11849#ifdef __STDC__
11850# include <limits.h>
11851#else
11852# include <assert.h>
11853#endif
11854
11855#undef $ac_func
11856
11857/* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11860#ifdef __cplusplus
11861extern "C"
11862#endif
11863char $ac_func ();
11864/* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867#if defined __stub_$ac_func || defined __stub___$ac_func
11868choke me
11869#endif
11870
11871int
11872main ()
11873{
11874return $ac_func ();
11875 ;
11876 return 0;
11877}
11878_ACEOF
11879rm -f conftest.$ac_objext conftest$ac_exeext
11880if { (ac_try="$ac_link"
11881case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884esac
11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897esac
11898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11907esac
11908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_try") 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 eval "$as_ac_var=yes"
11914else
11915 echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 eval "$as_ac_var=no"
11919fi
11920
11921rm -f core conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11923fi
11924ac_res=`eval echo '${'$as_ac_var'}'`
11925 { echo "$as_me:$LINENO: result: $ac_res" >&5
11926echo "${ECHO_T}$ac_res" >&6; }
11927if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011930_ACEOF
11931
11932fi
11933done
11934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011935
11936
11937
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011939do
11940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945else
11946 cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
11952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11954#define $ac_func innocuous_$ac_func
11955
11956/* System header to define __stub macros and hopefully few prototypes,
11957 which can conflict with char $ac_func (); below.
11958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959 <limits.h> exists even on freestanding compilers. */
11960
11961#ifdef __STDC__
11962# include <limits.h>
11963#else
11964# include <assert.h>
11965#endif
11966
11967#undef $ac_func
11968
11969/* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
11972#ifdef __cplusplus
11973extern "C"
11974#endif
11975char $ac_func ();
11976/* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
11979#if defined __stub_$ac_func || defined __stub___$ac_func
11980choke me
11981#endif
11982
11983int
11984main ()
11985{
11986return $ac_func ();
11987 ;
11988 return 0;
11989}
11990_ACEOF
11991rm -f conftest.$ac_objext conftest$ac_exeext
11992if { (ac_try="$ac_link"
11993case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996esac
11997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_link") 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006 { (case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12009esac
12010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_try") 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12019esac
12020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_try") 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 eval "$as_ac_var=yes"
12026else
12027 echo "$as_me: failed program was:" >&5
12028sed 's/^/| /' conftest.$ac_ext >&5
12029
12030 eval "$as_ac_var=no"
12031fi
12032
12033rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035fi
12036ac_res=`eval echo '${'$as_ac_var'}'`
12037 { echo "$as_me:$LINENO: result: $ac_res" >&5
12038echo "${ECHO_T}$ac_res" >&6; }
12039if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012040 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042_ACEOF
12043
12044fi
12045done
12046
12047
Douglas Gregor01746742009-05-11 18:05:52 +000012048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012049{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12050echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012051
Reid Spencer86901802004-12-08 23:07:27 +000012052ICC=no
12053IXX=no
12054case $CC in
12055 icc*|icpc*)
12056 ICC=yes
12057 IXX=yes
12058 ;;
12059 *)
12060 ;;
12061esac
12062
Duraid Madina937c60a2006-02-15 07:57:42 +000012063if test "$GCC" != "yes" && test "$ICC" != "yes"
12064then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012065 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12066echo "$as_me: error: gcc|icc required but not found" >&2;}
12067 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012068fi
12069
12070if test "$GXX" != "yes" && test "$IXX" != "yes"
12071then
Eric Christopher73e36da2010-12-08 02:02:14 +000012072 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12073echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012074 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012075fi
12076
Reid Spencer86901802004-12-08 23:07:27 +000012077if test "$GCC" = "yes"
12078then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012079 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012080#if !defined(__GNUC__) || __GNUC__ < 3
12081#error Unsupported GCC version
12082#endif
12083
12084_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012085rm -f conftest.$ac_objext
12086if { (ac_try="$ac_compile"
12087case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12090esac
12091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092 (eval "$ac_compile") 2>conftest.er1
12093 ac_status=$?
12094 grep -v '^ *+' conftest.er1 >conftest.err
12095 rm -f conftest.er1
12096 cat conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } &&
12099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12100 { (case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103esac
12104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_try") 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } &&
12109 { ac_try='test -s conftest.$ac_objext'
12110 { (case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12113esac
12114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_try") 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012121 echo "$as_me: failed program was:" >&5
12122sed 's/^/| /' conftest.$ac_ext >&5
12123
12124 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12125echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12126 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012128
Chris Lattner399c7c72008-02-05 19:43:53 +000012129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012130fi
12131
12132if test -z "$llvm_cv_gnu_make_command"
12133then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012134 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12135echo "$as_me: error: GNU Make required but not found" >&2;}
12136 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012137fi
12138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012139{ echo "$as_me:$LINENO: result: ok" >&5
12140echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012142{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12143echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012144NO_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 +000012145
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012146NO_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 +000012147
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012148COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12149
12150{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12151echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012152
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012154
12155{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12156echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12157if test "${ac_cv_lib_m_sin+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012159else
12160 ac_check_lib_save_LIBS=$LIBS
12161LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012162cat >conftest.$ac_ext <<_ACEOF
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012167/* end confdefs.h. */
12168
Reid Spencera773bd52006-08-04 18:18:08 +000012169/* Override any GCC internal prototype to avoid an error.
12170 Use char because int might match the return type of a GCC
12171 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012172#ifdef __cplusplus
12173extern "C"
12174#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012175char sin ();
12176int
12177main ()
12178{
Reid Spencera773bd52006-08-04 18:18:08 +000012179return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012180 ;
12181 return 0;
12182}
12183_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012184rm -f conftest.$ac_objext conftest$ac_exeext
12185if { (ac_try="$ac_link"
12186case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189esac
12190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_link") 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12199 { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202esac
12203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try='test -s conftest$ac_exeext'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212esac
12213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012218 ac_cv_lib_m_sin=yes
12219else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012220 echo "$as_me: failed program was:" >&5
12221sed 's/^/| /' conftest.$ac_ext >&5
12222
12223 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012225
Bill Wendlingebcceee2009-04-18 11:20:33 +000012226rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012227 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012228LIBS=$ac_check_lib_save_LIBS
12229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012230{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12231echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12232if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012233 cat >>confdefs.h <<_ACEOF
12234#define HAVE_LIBM 1
12235_ACEOF
12236
12237 LIBS="-lm $LIBS"
12238
12239fi
12240
Jeff Cohen28783c32007-01-12 18:22:38 +000012241if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012242
12243{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12244echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12245if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012247else
12248 ac_check_lib_save_LIBS=$LIBS
12249LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012250cat >conftest.$ac_ext <<_ACEOF
12251/* confdefs.h. */
12252_ACEOF
12253cat confdefs.h >>conftest.$ac_ext
12254cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012255/* end confdefs.h. */
12256
Reid Spencer48fdf912006-06-01 19:03:21 +000012257
Reid Spencer484fc8e2006-06-01 16:55:59 +000012258int
12259main ()
12260{
Reid Spencera773bd52006-08-04 18:18:08 +000012261return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012262 ;
12263 return 0;
12264}
12265_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012266rm -f conftest.$ac_objext conftest$ac_exeext
12267if { (ac_try="$ac_link"
12268case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271esac
12272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_link") 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12281 { (case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284esac
12285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_try") 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest$ac_exeext'
12291 { (case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294esac
12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_try") 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012300 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012302 echo "$as_me: failed program was:" >&5
12303sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012307
Bill Wendlingebcceee2009-04-18 11:20:33 +000012308rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012309 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012310LIBS=$ac_check_lib_save_LIBS
12311fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012312{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12313echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12314if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012315 cat >>confdefs.h <<_ACEOF
12316#define HAVE_LIBIMAGEHLP 1
12317_ACEOF
12318
12319 LIBS="-limagehlp $LIBS"
12320
12321fi
12322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012323
12324{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12325echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12326if test "${ac_cv_lib_psapi_main+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012328else
12329 ac_check_lib_save_LIBS=$LIBS
12330LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012331cat >conftest.$ac_ext <<_ACEOF
12332/* confdefs.h. */
12333_ACEOF
12334cat confdefs.h >>conftest.$ac_ext
12335cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012336/* end confdefs.h. */
12337
Reid Spencer48fdf912006-06-01 19:03:21 +000012338
Reid Spencer484fc8e2006-06-01 16:55:59 +000012339int
12340main ()
12341{
Reid Spencera773bd52006-08-04 18:18:08 +000012342return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012343 ;
12344 return 0;
12345}
12346_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012347rm -f conftest.$ac_objext conftest$ac_exeext
12348if { (ac_try="$ac_link"
12349case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352esac
12353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_link") 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12362 { (case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12365esac
12366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_try") 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest$ac_exeext'
12372 { (case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375esac
12376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_try") 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012381 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012383 echo "$as_me: failed program was:" >&5
12384sed 's/^/| /' conftest.$ac_ext >&5
12385
12386 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012388
Bill Wendlingebcceee2009-04-18 11:20:33 +000012389rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012390 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012391LIBS=$ac_check_lib_save_LIBS
12392fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012393{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12394echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12395if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012396 cat >>confdefs.h <<_ACEOF
12397#define HAVE_LIBPSAPI 1
12398_ACEOF
12399
12400 LIBS="-lpsapi $LIBS"
12401
12402fi
12403
12404fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012406{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12407echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12408if test "${ac_cv_search_dlopen+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012410else
12411 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012412cat >conftest.$ac_ext <<_ACEOF
12413/* confdefs.h. */
12414_ACEOF
12415cat confdefs.h >>conftest.$ac_ext
12416cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012418
Reid Spencera773bd52006-08-04 18:18:08 +000012419/* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012422#ifdef __cplusplus
12423extern "C"
12424#endif
John Criswell7a73b802003-06-30 21:59:07 +000012425char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012426int
12427main ()
12428{
Reid Spencera773bd52006-08-04 18:18:08 +000012429return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012430 ;
12431 return 0;
12432}
12433_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012434for ac_lib in '' dl; do
12435 if test -z "$ac_lib"; then
12436 ac_res="none required"
12437 else
12438 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012440 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012441 rm -f conftest.$ac_objext conftest$ac_exeext
12442if { (ac_try="$ac_link"
12443case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446esac
12447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_link") 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12456 { (case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12459esac
12460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_try") 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest$ac_exeext'
12466 { (case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12469esac
12470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_try") 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012475 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012476else
12477 echo "$as_me: failed program was:" >&5
12478sed 's/^/| /' conftest.$ac_ext >&5
12479
12480
John Criswell7a73b802003-06-30 21:59:07 +000012481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012482
Bill Wendlingebcceee2009-04-18 11:20:33 +000012483rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012484 conftest$ac_exeext
12485 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012486 break
John Criswell7a73b802003-06-30 21:59:07 +000012487fi
Reid Spencera773bd52006-08-04 18:18:08 +000012488done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012489if test "${ac_cv_search_dlopen+set}" = set; then
12490 :
Reid Spencera773bd52006-08-04 18:18:08 +000012491else
12492 ac_cv_search_dlopen=no
12493fi
12494rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012495LIBS=$ac_func_search_save_LIBS
12496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012497{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12498echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012499ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012500if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012503cat >>confdefs.h <<\_ACEOF
12504#define HAVE_DLOPEN 1
12505_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012506
12507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012508 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12509echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012510fi
12511
12512
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012513if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012514 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12515echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12516if test "${ac_cv_search_ffi_call+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012518else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012519 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012520cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h. */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012525/* end confdefs.h. */
12526
12527/* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12530#ifdef __cplusplus
12531extern "C"
12532#endif
12533char ffi_call ();
12534int
12535main ()
12536{
12537return ffi_call ();
12538 ;
12539 return 0;
12540}
12541_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012542for ac_lib in '' ffi; do
12543 if test -z "$ac_lib"; then
12544 ac_res="none required"
12545 else
12546 ac_res=-l$ac_lib
12547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12548 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012549 rm -f conftest.$ac_objext conftest$ac_exeext
12550if { (ac_try="$ac_link"
12551case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554esac
12555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564 { (case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567esac
12568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest$ac_exeext'
12574 { (case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577esac
12578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012583 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012584else
12585 echo "$as_me: failed program was:" >&5
12586sed 's/^/| /' conftest.$ac_ext >&5
12587
12588
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012589fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012590
Bill Wendlingebcceee2009-04-18 11:20:33 +000012591rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012592 conftest$ac_exeext
12593 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012594 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012595fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012596done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012597if test "${ac_cv_search_ffi_call+set}" = set; then
12598 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012599else
12600 ac_cv_search_ffi_call=no
12601fi
12602rm conftest.$ac_ext
12603LIBS=$ac_func_search_save_LIBS
12604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012605{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12606echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012607ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012608if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012611cat >>confdefs.h <<\_ACEOF
12612#define HAVE_FFI_CALL 1
12613_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012614
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012615else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012616 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12617echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12618 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012619fi
12620
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012621fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012623{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12624echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12625if test "${ac_cv_search_mallinfo+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012627else
12628 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012629cat >conftest.$ac_ext <<_ACEOF
12630/* confdefs.h. */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012635
Reid Spencera773bd52006-08-04 18:18:08 +000012636/* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012639#ifdef __cplusplus
12640extern "C"
12641#endif
John Criswell7a73b802003-06-30 21:59:07 +000012642char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012643int
12644main ()
12645{
Reid Spencera773bd52006-08-04 18:18:08 +000012646return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012647 ;
12648 return 0;
12649}
12650_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012651for ac_lib in '' malloc; do
12652 if test -z "$ac_lib"; then
12653 ac_res="none required"
12654 else
12655 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012657 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012658 rm -f conftest.$ac_objext conftest$ac_exeext
12659if { (ac_try="$ac_link"
12660case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12663esac
12664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_link") 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12676esac
12677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12686esac
12687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_try") 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012692 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012693else
12694 echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697
John Criswell7a73b802003-06-30 21:59:07 +000012698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012699
Bill Wendlingebcceee2009-04-18 11:20:33 +000012700rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012701 conftest$ac_exeext
12702 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012703 break
John Criswell7a73b802003-06-30 21:59:07 +000012704fi
Reid Spencera773bd52006-08-04 18:18:08 +000012705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012706if test "${ac_cv_search_mallinfo+set}" = set; then
12707 :
Reid Spencera773bd52006-08-04 18:18:08 +000012708else
12709 ac_cv_search_mallinfo=no
12710fi
12711rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012712LIBS=$ac_func_search_save_LIBS
12713fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012714{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12715echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012716ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012717if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012720cat >>confdefs.h <<\_ACEOF
12721#define HAVE_MALLINFO 1
12722_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012723
12724fi
12725
12726
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012727if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012728
12729{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12730echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12731if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012733else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012734 ac_check_lib_save_LIBS=$LIBS
12735LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012736cat >conftest.$ac_ext <<_ACEOF
12737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012741/* end confdefs.h. */
12742
Reid Spencera773bd52006-08-04 18:18:08 +000012743/* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012746#ifdef __cplusplus
12747extern "C"
12748#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012749char pthread_mutex_init ();
12750int
12751main ()
12752{
Reid Spencera773bd52006-08-04 18:18:08 +000012753return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012754 ;
12755 return 0;
12756}
12757_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012758rm -f conftest.$ac_objext conftest$ac_exeext
12759if { (ac_try="$ac_link"
12760case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763esac
12764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_link") 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773 { (case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776esac
12777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest$ac_exeext'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786esac
12787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012792 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012794 echo "$as_me: failed program was:" >&5
12795sed 's/^/| /' conftest.$ac_ext >&5
12796
12797 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012798fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012799
Bill Wendlingebcceee2009-04-18 11:20:33 +000012800rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012801 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012802LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012803fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012804{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12805echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12806if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012807 cat >>confdefs.h <<_ACEOF
12808#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012809_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012810
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012811 LIBS="-lpthread $LIBS"
12812
Reid Spencer22177fe2005-07-12 15:24:20 +000012813fi
12814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012815 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12816echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12817if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012819else
12820 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821cat >conftest.$ac_ext <<_ACEOF
12822/* confdefs.h. */
12823_ACEOF
12824cat confdefs.h >>conftest.$ac_ext
12825cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012826/* end confdefs.h. */
12827
Reid Spencera773bd52006-08-04 18:18:08 +000012828/* Override any GCC internal prototype to avoid an error.
12829 Use char because int might match the return type of a GCC
12830 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012831#ifdef __cplusplus
12832extern "C"
12833#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012834char pthread_mutex_lock ();
12835int
12836main ()
12837{
Reid Spencera773bd52006-08-04 18:18:08 +000012838return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012839 ;
12840 return 0;
12841}
12842_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012843for ac_lib in '' pthread; do
12844 if test -z "$ac_lib"; then
12845 ac_res="none required"
12846 else
12847 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012849 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012850 rm -f conftest.$ac_objext conftest$ac_exeext
12851if { (ac_try="$ac_link"
12852case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855esac
12856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_link") 2>conftest.er1
12858 ac_status=$?
12859 grep -v '^ *+' conftest.er1 >conftest.err
12860 rm -f conftest.er1
12861 cat conftest.err >&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
12864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12865 { (case "(($ac_try" in
12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867 *) ac_try_echo=$ac_try;;
12868esac
12869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870 (eval "$ac_try") 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; } &&
12874 { ac_try='test -s conftest$ac_exeext'
12875 { (case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878esac
12879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_try") 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012884 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012885else
12886 echo "$as_me: failed program was:" >&5
12887sed 's/^/| /' conftest.$ac_ext >&5
12888
12889
Brian Gaeke5f268f72003-12-05 19:29:01 +000012890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012891
Bill Wendlingebcceee2009-04-18 11:20:33 +000012892rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012893 conftest$ac_exeext
12894 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012895 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012896fi
Reid Spencera773bd52006-08-04 18:18:08 +000012897done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012898if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12899 :
Reid Spencera773bd52006-08-04 18:18:08 +000012900else
12901 ac_cv_search_pthread_mutex_lock=no
12902fi
12903rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012904LIBS=$ac_func_search_save_LIBS
12905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012906{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12907echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012908ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012909if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012912cat >>confdefs.h <<\_ACEOF
12913#define HAVE_PTHREAD_MUTEX_LOCK 1
12914_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012915
12916fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012918 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12919echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12920if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012922else
12923 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012924cat >conftest.$ac_ext <<_ACEOF
12925/* confdefs.h. */
12926_ACEOF
12927cat confdefs.h >>conftest.$ac_ext
12928cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012929/* end confdefs.h. */
12930
12931/* Override any GCC internal prototype to avoid an error.
12932 Use char because int might match the return type of a GCC
12933 builtin and then its argument prototype would still apply. */
12934#ifdef __cplusplus
12935extern "C"
12936#endif
12937char pthread_rwlock_init ();
12938int
12939main ()
12940{
12941return pthread_rwlock_init ();
12942 ;
12943 return 0;
12944}
12945_ACEOF
12946for ac_lib in '' pthread; do
12947 if test -z "$ac_lib"; then
12948 ac_res="none required"
12949 else
12950 ac_res=-l$ac_lib
12951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12952 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012953 rm -f conftest.$ac_objext conftest$ac_exeext
12954if { (ac_try="$ac_link"
12955case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12958esac
12959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_link") 2>conftest.er1
12961 ac_status=$?
12962 grep -v '^ *+' conftest.er1 >conftest.err
12963 rm -f conftest.er1
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971esac
12972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try='test -s conftest$ac_exeext'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981esac
12982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012987 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012988else
12989 echo "$as_me: failed program was:" >&5
12990sed 's/^/| /' conftest.$ac_ext >&5
12991
12992
Owen Andersonde8aed22009-06-16 18:20:20 +000012993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012994
Owen Andersonde8aed22009-06-16 18:20:20 +000012995rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012996 conftest$ac_exeext
12997 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012998 break
12999fi
13000done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013001if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13002 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013003else
13004 ac_cv_search_pthread_rwlock_init=no
13005fi
13006rm conftest.$ac_ext
13007LIBS=$ac_func_search_save_LIBS
13008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013009{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13010echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013011ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013012if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13014
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013015cat >>confdefs.h <<\_ACEOF
13016#define HAVE_PTHREAD_RWLOCK_INIT 1
13017_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013018
13019fi
13020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013021 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13022echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13023if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013025else
13026 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013027cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013032/* end confdefs.h. */
13033
13034/* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13037#ifdef __cplusplus
13038extern "C"
13039#endif
13040char pthread_getspecific ();
13041int
13042main ()
13043{
13044return pthread_getspecific ();
13045 ;
13046 return 0;
13047}
13048_ACEOF
13049for ac_lib in '' pthread; do
13050 if test -z "$ac_lib"; then
13051 ac_res="none required"
13052 else
13053 ac_res=-l$ac_lib
13054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13055 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013056 rm -f conftest.$ac_objext conftest$ac_exeext
13057if { (ac_try="$ac_link"
13058case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061esac
13062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_link") 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074esac
13075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } &&
13080 { ac_try='test -s conftest$ac_exeext'
13081 { (case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13084esac
13085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_try") 2>&5
13087 ac_status=$?
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013090 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013091else
13092 echo "$as_me: failed program was:" >&5
13093sed 's/^/| /' conftest.$ac_ext >&5
13094
13095
Owen Anderson27fcfe12009-06-25 23:10:26 +000013096fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013097
Owen Anderson27fcfe12009-06-25 23:10:26 +000013098rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013099 conftest$ac_exeext
13100 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013101 break
13102fi
13103done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013104if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13105 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013106else
13107 ac_cv_search_pthread_getspecific=no
13108fi
13109rm conftest.$ac_ext
13110LIBS=$ac_func_search_save_LIBS
13111fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013112{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13113echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013114ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013115if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13117
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013118cat >>confdefs.h <<\_ACEOF
13119#define HAVE_PTHREAD_GETSPECIFIC 1
13120_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013121
13122fi
13123
Reid Spencer0a262ba2005-08-24 10:07:20 +000013124fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013125
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013126
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013127# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013128if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013129 withval=$with_udis86;
13130 USE_UDIS86=1
13131
13132 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013133 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013134 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13135 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013136
13137{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13138echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13139if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013141else
13142 ac_check_lib_save_LIBS=$LIBS
13143LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013144cat >conftest.$ac_ext <<_ACEOF
13145/* confdefs.h. */
13146_ACEOF
13147cat confdefs.h >>conftest.$ac_ext
13148cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013149/* end confdefs.h. */
13150
13151/* Override any GCC internal prototype to avoid an error.
13152 Use char because int might match the return type of a GCC
13153 builtin and then its argument prototype would still apply. */
13154#ifdef __cplusplus
13155extern "C"
13156#endif
13157char ud_init ();
13158int
13159main ()
13160{
13161return ud_init ();
13162 ;
13163 return 0;
13164}
13165_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013166rm -f conftest.$ac_objext conftest$ac_exeext
13167if { (ac_try="$ac_link"
13168case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13171esac
13172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_link") 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13181 { (case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_try") 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest$ac_exeext'
13191 { (case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13194esac
13195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_try") 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013200 ac_cv_lib_udis86_ud_init=yes
13201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013202 echo "$as_me: failed program was:" >&5
13203sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013206fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013207
Bill Wendlingebcceee2009-04-18 11:20:33 +000013208rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013209 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013210LIBS=$ac_check_lib_save_LIBS
13211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013212{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13213echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13214if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013215 cat >>confdefs.h <<_ACEOF
13216#define HAVE_LIBUDIS86 1
13217_ACEOF
13218
13219 LIBS="-ludis86 $LIBS"
13220
13221else
13222
13223 echo "Error! You need to have libudis86 around."
13224 exit -1
13225
13226fi
13227
13228
13229else
13230 USE_UDIS86=0
13231
13232fi
13233
13234
13235cat >>confdefs.h <<_ACEOF
13236#define USE_UDIS86 $USE_UDIS86
13237_ACEOF
13238
13239
13240
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013241# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013242if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013243 withval=$with_oprofile;
13244 USE_OPROFILE=1
13245
13246 case "$withval" in
13247 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013248 no) llvm_cv_oppath=
13249 USE_OPROFILE=0
13250 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013251 *) llvm_cv_oppath="${withval}/lib/oprofile"
13252 CPPFLAGS="-I${withval}/include";;
13253 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013254 case $llvm_cv_os_type in
13255 Linux)
13256 if test -n "$llvm_cv_oppath" ; then
13257 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13258 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013259echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13260if test "${ac_cv_search_bfd_init+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013262else
13263 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013264cat >conftest.$ac_ext <<_ACEOF
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013269/* end confdefs.h. */
13270
13271/* Override any GCC internal prototype to avoid an error.
13272 Use char because int might match the return type of a GCC
13273 builtin and then its argument prototype would still apply. */
13274#ifdef __cplusplus
13275extern "C"
13276#endif
13277char bfd_init ();
13278int
13279main ()
13280{
13281return bfd_init ();
13282 ;
13283 return 0;
13284}
13285_ACEOF
13286for ac_lib in '' bfd; do
13287 if test -z "$ac_lib"; then
13288 ac_res="none required"
13289 else
13290 ac_res=-l$ac_lib
13291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13292 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293 rm -f conftest.$ac_objext conftest$ac_exeext
13294if { (ac_try="$ac_link"
13295case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13298esac
13299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_link") 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13308 { (case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13311esac
13312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_try") 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } &&
13317 { ac_try='test -s conftest$ac_exeext'
13318 { (case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13321esac
13322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_try") 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013327 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013328else
13329 echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
13331
13332
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013334
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013335rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013336 conftest$ac_exeext
13337 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013338 break
13339fi
13340done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013341if test "${ac_cv_search_bfd_init+set}" = set; then
13342 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013343else
13344 ac_cv_search_bfd_init=no
13345fi
13346rm conftest.$ac_ext
13347LIBS=$ac_func_search_save_LIBS
13348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013349{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13350echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013351ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013352if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13354
13355fi
13356
Eli Bendersky61b18512012-03-13 08:33:15 +000013357 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013358echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13359if test "${ac_cv_search_op_open_agent+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013361else
13362 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013363cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013368/* end confdefs.h. */
13369
13370/* Override any GCC internal prototype to avoid an error.
13371 Use char because int might match the return type of a GCC
13372 builtin and then its argument prototype would still apply. */
13373#ifdef __cplusplus
13374extern "C"
13375#endif
13376char op_open_agent ();
13377int
13378main ()
13379{
13380return op_open_agent ();
13381 ;
13382 return 0;
13383}
13384_ACEOF
13385for ac_lib in '' opagent; do
13386 if test -z "$ac_lib"; then
13387 ac_res="none required"
13388 else
13389 ac_res=-l$ac_lib
13390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13391 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013392 rm -f conftest.$ac_objext conftest$ac_exeext
13393if { (ac_try="$ac_link"
13394case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13397esac
13398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_link") 2>conftest.er1
13400 ac_status=$?
13401 grep -v '^ *+' conftest.er1 >conftest.err
13402 rm -f conftest.er1
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13407 { (case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410esac
13411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_try") 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; } &&
13416 { ac_try='test -s conftest$ac_exeext'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420esac
13421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013426 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013427else
13428 echo "$as_me: failed program was:" >&5
13429sed 's/^/| /' conftest.$ac_ext >&5
13430
13431
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013434rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013435 conftest$ac_exeext
13436 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013437 break
13438fi
13439done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013440if test "${ac_cv_search_op_open_agent+set}" = set; then
13441 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013442else
13443 ac_cv_search_op_open_agent=no
13444fi
13445rm conftest.$ac_ext
13446LIBS=$ac_func_search_save_LIBS
13447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013448{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13449echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013450ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013451if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13453
13454else
13455
Eli Bendersky61b18512012-03-13 08:33:15 +000013456 echo "Error! You need to have libopagent around."
13457 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013458
13459fi
13460
Eli Bendersky61b18512012-03-13 08:33:15 +000013461 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013462 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13463echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13464if test "${ac_cv_header_opagent_h+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13466fi
13467{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13468echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13469else
13470 # Is the header compilable?
13471{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13472echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13473cat >conftest.$ac_ext <<_ACEOF
13474/* confdefs.h. */
13475_ACEOF
13476cat confdefs.h >>conftest.$ac_ext
13477cat >>conftest.$ac_ext <<_ACEOF
13478/* end confdefs.h. */
13479$ac_includes_default
13480#include <opagent.h>
13481_ACEOF
13482rm -f conftest.$ac_objext
13483if { (ac_try="$ac_compile"
13484case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13487esac
13488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_compile") 2>conftest.er1
13490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13497 { (case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500esac
13501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_try") 2>&5
13503 ac_status=$?
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13510esac
13511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_try") 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516 ac_header_compiler=yes
13517else
13518 echo "$as_me: failed program was:" >&5
13519sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013521 ac_header_compiler=no
13522fi
13523
13524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13526echo "${ECHO_T}$ac_header_compiler" >&6; }
13527
13528# Is the header present?
13529{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13530echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13531cat >conftest.$ac_ext <<_ACEOF
13532/* confdefs.h. */
13533_ACEOF
13534cat confdefs.h >>conftest.$ac_ext
13535cat >>conftest.$ac_ext <<_ACEOF
13536/* end confdefs.h. */
13537#include <opagent.h>
13538_ACEOF
13539if { (ac_try="$ac_cpp conftest.$ac_ext"
13540case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13543esac
13544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13546 ac_status=$?
13547 grep -v '^ *+' conftest.er1 >conftest.err
13548 rm -f conftest.er1
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } >/dev/null; then
13552 if test -s conftest.err; then
13553 ac_cpp_err=$ac_c_preproc_warn_flag
13554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13555 else
13556 ac_cpp_err=
13557 fi
13558else
13559 ac_cpp_err=yes
13560fi
13561if test -z "$ac_cpp_err"; then
13562 ac_header_preproc=yes
13563else
13564 echo "$as_me: failed program was:" >&5
13565sed 's/^/| /' conftest.$ac_ext >&5
13566
13567 ac_header_preproc=no
13568fi
13569
13570rm -f conftest.err conftest.$ac_ext
13571{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13572echo "${ECHO_T}$ac_header_preproc" >&6; }
13573
13574# So? What about this header?
13575case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13576 yes:no: )
13577 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13578echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13579 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13580echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13581 ac_header_preproc=yes
13582 ;;
13583 no:yes:* )
13584 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13585echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13587echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13589echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13591echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13592 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13593echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13595echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13596 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013597## ------------------------------------ ##
13598## Report this to http://llvm.org/bugs/ ##
13599## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013600_ASBOX
13601 ) | sed "s/^/$as_me: WARNING: /" >&2
13602 ;;
13603esac
13604{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13605echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13606if test "${ac_cv_header_opagent_h+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608else
13609 ac_cv_header_opagent_h=$ac_header_preproc
13610fi
13611{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13612echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13613
13614fi
13615if test $ac_cv_header_opagent_h = yes; then
13616 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013617else
13618
Eli Bendersky61b18512012-03-13 08:33:15 +000013619 echo "Error! You need to have opagent.h around."
13620 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013621
13622fi
13623
13624
Eli Bendersky61b18512012-03-13 08:33:15 +000013625 fi ;;
13626 *)
13627 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13628echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13629 { (exit 1); exit 1; }; } ;;
13630 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013631
13632else
13633
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013634 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013635
13636
13637fi
13638
13639
13640cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013641#define LLVM_USE_OPROFILE $USE_OPROFILE
13642_ACEOF
13643
13644
13645
13646# Check whether --with-intel-jitevents was given.
13647if test "${with_intel_jitevents+set}" = set; then
13648 withval=$with_intel_jitevents;
13649 case $llvm_cv_os_type in
13650 Linux|Win32|Cygwin|MingW) ;;
13651 *)
13652 { { echo "$as_me:$LINENO: error:
13653 Intel JIT API support is available on Linux and Windows only.\"" >&5
13654echo "$as_me: error:
13655 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13656 { (exit 1); exit 1; }; } ;;
13657 esac
13658
13659 USE_INTEL_JITEVENTS=1
13660
13661 case "$llvm_cv_target_arch" in
13662 x86) llvm_intel_jitevents_archdir="lib32";;
13663 x86_64) llvm_intel_jitevents_archdir="lib64";;
13664 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13665 exit -1;;
13666 esac
13667 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13668 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13669 case "$withval" in
13670 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13671 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13672 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013673 esac
13674
13675
13676
13677
13678 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13679 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13680
13681 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13682echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13683if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685else
13686 ac_func_search_save_LIBS=$LIBS
13687cat >conftest.$ac_ext <<_ACEOF
13688/* confdefs.h. */
13689_ACEOF
13690cat confdefs.h >>conftest.$ac_ext
13691cat >>conftest.$ac_ext <<_ACEOF
13692/* end confdefs.h. */
13693
13694/* Override any GCC internal prototype to avoid an error.
13695 Use char because int might match the return type of a GCC
13696 builtin and then its argument prototype would still apply. */
13697#ifdef __cplusplus
13698extern "C"
13699#endif
13700char iJIT_IsProfilingActive ();
13701int
13702main ()
13703{
13704return iJIT_IsProfilingActive ();
13705 ;
13706 return 0;
13707}
13708_ACEOF
13709for ac_lib in '' jitprofiling; do
13710 if test -z "$ac_lib"; then
13711 ac_res="none required"
13712 else
13713 ac_res=-l$ac_lib
13714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13715 fi
13716 rm -f conftest.$ac_objext conftest$ac_exeext
13717if { (ac_try="$ac_link"
13718case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13721esac
13722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_link") 2>conftest.er1
13724 ac_status=$?
13725 grep -v '^ *+' conftest.er1 >conftest.err
13726 rm -f conftest.er1
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13731 { (case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734esac
13735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_try") 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; } &&
13740 { ac_try='test -s conftest$ac_exeext'
13741 { (case "(($ac_try" in
13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743 *) ac_try_echo=$ac_try;;
13744esac
13745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746 (eval "$ac_try") 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13751else
13752 echo "$as_me: failed program was:" >&5
13753sed 's/^/| /' conftest.$ac_ext >&5
13754
13755
13756fi
13757
13758rm -f core conftest.err conftest.$ac_objext \
13759 conftest$ac_exeext
13760 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13761 break
13762fi
13763done
13764if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13765 :
13766else
13767 ac_cv_search_iJIT_IsProfilingActive=no
13768fi
13769rm conftest.$ac_ext
13770LIBS=$ac_func_search_save_LIBS
13771fi
13772{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13773echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13774ac_res=$ac_cv_search_iJIT_IsProfilingActive
13775if test "$ac_res" != no; then
13776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13777
13778else
13779
13780 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13781 exit -1
13782
13783fi
13784
13785 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13786 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13787echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13788if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13790fi
13791{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13792echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13793else
13794 # Is the header compilable?
13795{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13796echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13797cat >conftest.$ac_ext <<_ACEOF
13798/* confdefs.h. */
13799_ACEOF
13800cat confdefs.h >>conftest.$ac_ext
13801cat >>conftest.$ac_ext <<_ACEOF
13802/* end confdefs.h. */
13803$ac_includes_default
13804#include <jitprofiling.h>
13805_ACEOF
13806rm -f conftest.$ac_objext
13807if { (ac_try="$ac_compile"
13808case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13811esac
13812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_compile") 2>conftest.er1
13814 ac_status=$?
13815 grep -v '^ *+' conftest.er1 >conftest.err
13816 rm -f conftest.er1
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13821 { (case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13824esac
13825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_try") 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest.$ac_objext'
13831 { (case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13834esac
13835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_try") 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_header_compiler=yes
13841else
13842 echo "$as_me: failed program was:" >&5
13843sed 's/^/| /' conftest.$ac_ext >&5
13844
13845 ac_header_compiler=no
13846fi
13847
13848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13850echo "${ECHO_T}$ac_header_compiler" >&6; }
13851
13852# Is the header present?
13853{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13854echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13855cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
13861#include <jitprofiling.h>
13862_ACEOF
13863if { (ac_try="$ac_cpp conftest.$ac_ext"
13864case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867esac
13868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13870 ac_status=$?
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } >/dev/null; then
13876 if test -s conftest.err; then
13877 ac_cpp_err=$ac_c_preproc_warn_flag
13878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13879 else
13880 ac_cpp_err=
13881 fi
13882else
13883 ac_cpp_err=yes
13884fi
13885if test -z "$ac_cpp_err"; then
13886 ac_header_preproc=yes
13887else
13888 echo "$as_me: failed program was:" >&5
13889sed 's/^/| /' conftest.$ac_ext >&5
13890
13891 ac_header_preproc=no
13892fi
13893
13894rm -f conftest.err conftest.$ac_ext
13895{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13896echo "${ECHO_T}$ac_header_preproc" >&6; }
13897
13898# So? What about this header?
13899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13900 yes:no: )
13901 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13902echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13903 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13904echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13905 ac_header_preproc=yes
13906 ;;
13907 no:yes:* )
13908 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13909echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13910 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13911echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13913echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13914 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13915echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13916 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13917echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13918 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13919echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13920 ( cat <<\_ASBOX
13921## ------------------------------------ ##
13922## Report this to http://llvm.org/bugs/ ##
13923## ------------------------------------ ##
13924_ASBOX
13925 ) | sed "s/^/$as_me: WARNING: /" >&2
13926 ;;
13927esac
13928{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13929echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13930if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13932else
13933 ac_cv_header_jitprofiling_h=$ac_header_preproc
13934fi
13935{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13936echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13937
13938fi
13939if test $ac_cv_header_jitprofiling_h = yes; then
13940 :
13941else
13942
13943 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13944 exit -1
13945
13946fi
13947
13948
13949
13950
13951else
13952
13953 USE_INTEL_JITEVENTS=0
13954
13955
13956fi
13957
13958
13959cat >>confdefs.h <<_ACEOF
13960#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013961_ACEOF
13962
13963
13964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013965
13966
13967
13968
13969
Reid Spencer59473af2004-12-25 07:31:29 +000013970ac_header_dirent=no
13971for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013972 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13973{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13974echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013978 cat >conftest.$ac_ext <<_ACEOF
13979/* confdefs.h. */
13980_ACEOF
13981cat confdefs.h >>conftest.$ac_ext
13982cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013983/* end confdefs.h. */
13984#include <sys/types.h>
13985#include <$ac_hdr>
13986
13987int
13988main ()
13989{
13990if ((DIR *) 0)
13991return 0;
13992 ;
13993 return 0;
13994}
13995_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013996rm -f conftest.$ac_objext
13997if { (ac_try="$ac_compile"
13998case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14001esac
14002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_compile") 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011 { (case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14014esac
14015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_try") 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest.$ac_objext'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14024esac
14025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014030 eval "$as_ac_Header=yes"
14031else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014032 echo "$as_me: failed program was:" >&5
14033sed 's/^/| /' conftest.$ac_ext >&5
14034
14035 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014037
Reid Spencera773bd52006-08-04 18:18:08 +000014038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014040ac_res=`eval echo '${'$as_ac_Header'}'`
14041 { echo "$as_me:$LINENO: result: $ac_res" >&5
14042echo "${ECHO_T}$ac_res" >&6; }
14043if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014044 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014045#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014046_ACEOF
14047
14048ac_header_dirent=$ac_hdr; break
14049fi
14050
14051done
14052# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14053if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14055echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14056if test "${ac_cv_search_opendir+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014058else
14059 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014060cat >conftest.$ac_ext <<_ACEOF
14061/* confdefs.h. */
14062_ACEOF
14063cat confdefs.h >>conftest.$ac_ext
14064cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014065/* end confdefs.h. */
14066
Reid Spencera773bd52006-08-04 18:18:08 +000014067/* Override any GCC internal prototype to avoid an error.
14068 Use char because int might match the return type of a GCC
14069 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014070#ifdef __cplusplus
14071extern "C"
14072#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014073char opendir ();
14074int
14075main ()
14076{
Reid Spencera773bd52006-08-04 18:18:08 +000014077return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014078 ;
14079 return 0;
14080}
14081_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014082for ac_lib in '' dir; do
14083 if test -z "$ac_lib"; then
14084 ac_res="none required"
14085 else
14086 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014088 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014089 rm -f conftest.$ac_objext conftest$ac_exeext
14090if { (ac_try="$ac_link"
14091case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14094esac
14095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_link") 2>conftest.er1
14097 ac_status=$?
14098 grep -v '^ *+' conftest.er1 >conftest.err
14099 rm -f conftest.er1
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14104 { (case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14107esac
14108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_try") 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest$ac_exeext'
14114 { (case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14117esac
14118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_try") 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014123 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124else
14125 echo "$as_me: failed program was:" >&5
14126sed 's/^/| /' conftest.$ac_ext >&5
14127
14128
Reid Spencer59473af2004-12-25 07:31:29 +000014129fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014130
Bill Wendlingebcceee2009-04-18 11:20:33 +000014131rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014132 conftest$ac_exeext
14133 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014134 break
Reid Spencer59473af2004-12-25 07:31:29 +000014135fi
Reid Spencera773bd52006-08-04 18:18:08 +000014136done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014137if test "${ac_cv_search_opendir+set}" = set; then
14138 :
Reid Spencera773bd52006-08-04 18:18:08 +000014139else
14140 ac_cv_search_opendir=no
14141fi
14142rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014143LIBS=$ac_func_search_save_LIBS
14144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014145{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14146echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014147ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014150
14151fi
14152
14153else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014154 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14155echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14156if test "${ac_cv_search_opendir+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014158else
14159 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014160cat >conftest.$ac_ext <<_ACEOF
14161/* confdefs.h. */
14162_ACEOF
14163cat confdefs.h >>conftest.$ac_ext
14164cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014165/* end confdefs.h. */
14166
Reid Spencera773bd52006-08-04 18:18:08 +000014167/* Override any GCC internal prototype to avoid an error.
14168 Use char because int might match the return type of a GCC
14169 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014170#ifdef __cplusplus
14171extern "C"
14172#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014173char opendir ();
14174int
14175main ()
14176{
Reid Spencera773bd52006-08-04 18:18:08 +000014177return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014178 ;
14179 return 0;
14180}
14181_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014182for ac_lib in '' x; do
14183 if test -z "$ac_lib"; then
14184 ac_res="none required"
14185 else
14186 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014188 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014189 rm -f conftest.$ac_objext conftest$ac_exeext
14190if { (ac_try="$ac_link"
14191case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14194esac
14195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_link") 2>conftest.er1
14197 ac_status=$?
14198 grep -v '^ *+' conftest.er1 >conftest.err
14199 rm -f conftest.er1
14200 cat conftest.err >&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } &&
14203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207esac
14208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; } &&
14213 { ac_try='test -s conftest$ac_exeext'
14214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217esac
14218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014223 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014224else
14225 echo "$as_me: failed program was:" >&5
14226sed 's/^/| /' conftest.$ac_ext >&5
14227
14228
Reid Spencer59473af2004-12-25 07:31:29 +000014229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014230
Bill Wendlingebcceee2009-04-18 11:20:33 +000014231rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014232 conftest$ac_exeext
14233 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014234 break
Reid Spencer59473af2004-12-25 07:31:29 +000014235fi
Reid Spencera773bd52006-08-04 18:18:08 +000014236done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237if test "${ac_cv_search_opendir+set}" = set; then
14238 :
Reid Spencera773bd52006-08-04 18:18:08 +000014239else
14240 ac_cv_search_opendir=no
14241fi
14242rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014243LIBS=$ac_func_search_save_LIBS
14244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014245{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14246echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014247ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014248if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014250
14251fi
14252
14253fi
14254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014255{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14256echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14257if test "${ac_cv_header_mmap_anon+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014259else
14260 ac_ext=c
14261ac_cpp='$CPP $CPPFLAGS'
14262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264ac_compiler_gnu=$ac_cv_c_compiler_gnu
14265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266 cat >conftest.$ac_ext <<_ACEOF
14267/* confdefs.h. */
14268_ACEOF
14269cat confdefs.h >>conftest.$ac_ext
14270cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014271/* end confdefs.h. */
14272#include <sys/mman.h>
14273#include <unistd.h>
14274#include <fcntl.h>
14275int
14276main ()
14277{
14278mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14279 ;
14280 return 0;
14281}
14282_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014283rm -f conftest.$ac_objext
14284if { (ac_try="$ac_compile"
14285case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14288esac
14289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290 (eval "$ac_compile") 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14298 { (case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301esac
14302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_try") 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest.$ac_objext'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311esac
14312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014317 ac_cv_header_mmap_anon=yes
14318else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014319 echo "$as_me: failed program was:" >&5
14320sed 's/^/| /' conftest.$ac_ext >&5
14321
14322 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014324
Reid Spencera773bd52006-08-04 18:18:08 +000014325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014326 ac_ext=c
14327ac_cpp='$CPP $CPPFLAGS'
14328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14330ac_compiler_gnu=$ac_cv_c_compiler_gnu
14331
14332
14333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14335echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014336if test "$ac_cv_header_mmap_anon" = yes; then
14337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014338cat >>confdefs.h <<\_ACEOF
14339#define HAVE_MMAP_ANONYMOUS 1
14340_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014341
14342fi
14343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014344{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14345echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14346if test "${ac_cv_header_stat_broken+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014348else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014349 cat >conftest.$ac_ext <<_ACEOF
14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014354/* end confdefs.h. */
14355#include <sys/types.h>
14356#include <sys/stat.h>
14357
Reid Spencera773bd52006-08-04 18:18:08 +000014358#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014359# if S_ISBLK (S_IFDIR)
14360You lose.
14361# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014362#endif
14363
Reid Spencera773bd52006-08-04 18:18:08 +000014364#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014365# if S_ISBLK (S_IFCHR)
14366You lose.
14367# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014368#endif
14369
Reid Spencera773bd52006-08-04 18:18:08 +000014370#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014371# if S_ISLNK (S_IFREG)
14372You lose.
14373# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014374#endif
14375
Reid Spencera773bd52006-08-04 18:18:08 +000014376#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014377# if S_ISSOCK (S_IFREG)
14378You lose.
14379# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014380#endif
14381
14382_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14384 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014385 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014386else
14387 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014389rm -f conftest*
14390
Reid Spencer59473af2004-12-25 07:31:29 +000014391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014392{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14393echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014394if test $ac_cv_header_stat_broken = yes; then
14395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014396cat >>confdefs.h <<\_ACEOF
14397#define STAT_MACROS_BROKEN 1
14398_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014399
14400fi
14401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014402{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14403echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14404if test "${ac_cv_header_sys_wait_h+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014407 cat >conftest.$ac_ext <<_ACEOF
14408/* confdefs.h. */
14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014412/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014413#include <sys/types.h>
14414#include <sys/wait.h>
14415#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014416# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014417#endif
14418#ifndef WIFEXITED
14419# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14420#endif
14421
John Criswell7a73b802003-06-30 21:59:07 +000014422int
14423main ()
14424{
14425 int s;
14426 wait (&s);
14427 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14428 ;
14429 return 0;
14430}
14431_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014432rm -f conftest.$ac_objext
14433if { (ac_try="$ac_compile"
14434case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14437esac
14438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_compile") 2>conftest.er1
14440 ac_status=$?
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14447 { (case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14450esac
14451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest.$ac_objext'
14457 { (case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14460esac
14461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_try") 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014466 ac_cv_header_sys_wait_h=yes
14467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014468 echo "$as_me: failed program was:" >&5
14469sed 's/^/| /' conftest.$ac_ext >&5
14470
14471 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014472fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014473
Reid Spencera773bd52006-08-04 18:18:08 +000014474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014476{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14477echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014478if test $ac_cv_header_sys_wait_h = yes; then
14479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014480cat >>confdefs.h <<\_ACEOF
14481#define HAVE_SYS_WAIT_H 1
14482_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014483
14484fi
14485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014486{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14487echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14488if test "${ac_cv_header_time+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014491 cat >conftest.$ac_ext <<_ACEOF
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014496/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014497#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014498#include <sys/time.h>
14499#include <time.h>
14500
14501int
14502main ()
14503{
14504if ((struct tm *) 0)
14505return 0;
14506 ;
14507 return 0;
14508}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014509_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014510rm -f conftest.$ac_objext
14511if { (ac_try="$ac_compile"
14512case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14515esac
14516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_compile") 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14525 { (case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14528esac
14529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_try") 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try='test -s conftest.$ac_objext'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538esac
14539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014544 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014546 echo "$as_me: failed program was:" >&5
14547sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014550fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014551
Reid Spencera773bd52006-08-04 18:18:08 +000014552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014554{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14555echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014556if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014558cat >>confdefs.h <<\_ACEOF
14559#define TIME_WITH_SYS_TIME 1
14560_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014561
14562fi
14563
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014565
14566
14567
14568
14569
14570
Reid Spencer59473af2004-12-25 07:31:29 +000014571for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014572do
14573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14579fi
14580ac_res=`eval echo '${'$as_ac_Header'}'`
14581 { echo "$as_me:$LINENO: result: $ac_res" >&5
14582echo "${ECHO_T}$ac_res" >&6; }
14583else
14584 # Is the header compilable?
14585{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14587cat >conftest.$ac_ext <<_ACEOF
14588/* confdefs.h. */
14589_ACEOF
14590cat confdefs.h >>conftest.$ac_ext
14591cat >>conftest.$ac_ext <<_ACEOF
14592/* end confdefs.h. */
14593$ac_includes_default
14594#include <$ac_header>
14595_ACEOF
14596rm -f conftest.$ac_objext
14597if { (ac_try="$ac_compile"
14598case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14601esac
14602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_compile") 2>conftest.er1
14604 ac_status=$?
14605 grep -v '^ *+' conftest.er1 >conftest.err
14606 rm -f conftest.er1
14607 cat conftest.err >&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } &&
14610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14611 { (case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614esac
14615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_try") 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; } &&
14620 { ac_try='test -s conftest.$ac_objext'
14621 { (case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14624esac
14625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_try") 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14630 ac_header_compiler=yes
14631else
14632 echo "$as_me: failed program was:" >&5
14633sed 's/^/| /' conftest.$ac_ext >&5
14634
14635 ac_header_compiler=no
14636fi
14637
14638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14640echo "${ECHO_T}$ac_header_compiler" >&6; }
14641
14642# Is the header present?
14643{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14645cat >conftest.$ac_ext <<_ACEOF
14646/* confdefs.h. */
14647_ACEOF
14648cat confdefs.h >>conftest.$ac_ext
14649cat >>conftest.$ac_ext <<_ACEOF
14650/* end confdefs.h. */
14651#include <$ac_header>
14652_ACEOF
14653if { (ac_try="$ac_cpp conftest.$ac_ext"
14654case "(($ac_try" in
14655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656 *) ac_try_echo=$ac_try;;
14657esac
14658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14660 ac_status=$?
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } >/dev/null; then
14666 if test -s conftest.err; then
14667 ac_cpp_err=$ac_c_preproc_warn_flag
14668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14669 else
14670 ac_cpp_err=
14671 fi
14672else
14673 ac_cpp_err=yes
14674fi
14675if test -z "$ac_cpp_err"; then
14676 ac_header_preproc=yes
14677else
14678 echo "$as_me: failed program was:" >&5
14679sed 's/^/| /' conftest.$ac_ext >&5
14680
14681 ac_header_preproc=no
14682fi
14683
14684rm -f conftest.err conftest.$ac_ext
14685{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14686echo "${ECHO_T}$ac_header_preproc" >&6; }
14687
14688# So? What about this header?
14689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14690 yes:no: )
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14695 ac_header_preproc=yes
14696 ;;
14697 no:yes:* )
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14710 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014711## ------------------------------------ ##
14712## Report this to http://llvm.org/bugs/ ##
14713## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014714_ASBOX
14715 ) | sed "s/^/$as_me: WARNING: /" >&2
14716 ;;
14717esac
14718{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14722else
14723 eval "$as_ac_Header=\$ac_header_preproc"
14724fi
14725ac_res=`eval echo '${'$as_ac_Header'}'`
14726 { echo "$as_me:$LINENO: result: $ac_res" >&5
14727echo "${ECHO_T}$ac_res" >&6; }
14728
14729fi
14730if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014731 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014733_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014734
14735fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014736
Reid Spencer59473af2004-12-25 07:31:29 +000014737done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014739
14740
14741
14742
14743
14744
Douglas Gregor071d73d2009-05-18 17:21:34 +000014745for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014746do
14747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14753fi
14754ac_res=`eval echo '${'$as_ac_Header'}'`
14755 { echo "$as_me:$LINENO: result: $ac_res" >&5
14756echo "${ECHO_T}$ac_res" >&6; }
14757else
14758 # Is the header compilable?
14759{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14761cat >conftest.$ac_ext <<_ACEOF
14762/* confdefs.h. */
14763_ACEOF
14764cat confdefs.h >>conftest.$ac_ext
14765cat >>conftest.$ac_ext <<_ACEOF
14766/* end confdefs.h. */
14767$ac_includes_default
14768#include <$ac_header>
14769_ACEOF
14770rm -f conftest.$ac_objext
14771if { (ac_try="$ac_compile"
14772case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14775esac
14776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777 (eval "$ac_compile") 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14785 { (case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788esac
14789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_try") 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; } &&
14794 { ac_try='test -s conftest.$ac_objext'
14795 { (case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798esac
14799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_try") 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 ac_header_compiler=yes
14805else
14806 echo "$as_me: failed program was:" >&5
14807sed 's/^/| /' conftest.$ac_ext >&5
14808
14809 ac_header_compiler=no
14810fi
14811
14812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14814echo "${ECHO_T}$ac_header_compiler" >&6; }
14815
14816# Is the header present?
14817{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14819cat >conftest.$ac_ext <<_ACEOF
14820/* confdefs.h. */
14821_ACEOF
14822cat confdefs.h >>conftest.$ac_ext
14823cat >>conftest.$ac_ext <<_ACEOF
14824/* end confdefs.h. */
14825#include <$ac_header>
14826_ACEOF
14827if { (ac_try="$ac_cpp conftest.$ac_ext"
14828case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831esac
14832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14834 ac_status=$?
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } >/dev/null; then
14840 if test -s conftest.err; then
14841 ac_cpp_err=$ac_c_preproc_warn_flag
14842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14843 else
14844 ac_cpp_err=
14845 fi
14846else
14847 ac_cpp_err=yes
14848fi
14849if test -z "$ac_cpp_err"; then
14850 ac_header_preproc=yes
14851else
14852 echo "$as_me: failed program was:" >&5
14853sed 's/^/| /' conftest.$ac_ext >&5
14854
14855 ac_header_preproc=no
14856fi
14857
14858rm -f conftest.err conftest.$ac_ext
14859{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14860echo "${ECHO_T}$ac_header_preproc" >&6; }
14861
14862# So? What about this header?
14863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14864 yes:no: )
14865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14869 ac_header_preproc=yes
14870 ;;
14871 no:yes:* )
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14884 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014885## ------------------------------------ ##
14886## Report this to http://llvm.org/bugs/ ##
14887## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014888_ASBOX
14889 ) | sed "s/^/$as_me: WARNING: /" >&2
14890 ;;
14891esac
14892{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14896else
14897 eval "$as_ac_Header=\$ac_header_preproc"
14898fi
14899ac_res=`eval echo '${'$as_ac_Header'}'`
14900 { echo "$as_me:$LINENO: result: $ac_res" >&5
14901echo "${ECHO_T}$ac_res" >&6; }
14902
14903fi
14904if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014905 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014907_ACEOF
14908
14909fi
14910
14911done
14912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014913
14914
Douglas Gregor071d73d2009-05-18 17:21:34 +000014915for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014916do
14917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14923fi
14924ac_res=`eval echo '${'$as_ac_Header'}'`
14925 { echo "$as_me:$LINENO: result: $ac_res" >&5
14926echo "${ECHO_T}$ac_res" >&6; }
14927else
14928 # Is the header compilable?
14929{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14931cat >conftest.$ac_ext <<_ACEOF
14932/* confdefs.h. */
14933_ACEOF
14934cat confdefs.h >>conftest.$ac_ext
14935cat >>conftest.$ac_ext <<_ACEOF
14936/* end confdefs.h. */
14937$ac_includes_default
14938#include <$ac_header>
14939_ACEOF
14940rm -f conftest.$ac_objext
14941if { (ac_try="$ac_compile"
14942case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14945esac
14946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_compile") 2>conftest.er1
14948 ac_status=$?
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
14954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14955 { (case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958esac
14959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_try") 2>&5
14961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; } &&
14964 { ac_try='test -s conftest.$ac_objext'
14965 { (case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14968esac
14969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970 (eval "$ac_try") 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }; then
14974 ac_header_compiler=yes
14975else
14976 echo "$as_me: failed program was:" >&5
14977sed 's/^/| /' conftest.$ac_ext >&5
14978
14979 ac_header_compiler=no
14980fi
14981
14982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14984echo "${ECHO_T}$ac_header_compiler" >&6; }
14985
14986# Is the header present?
14987{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14988echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14989cat >conftest.$ac_ext <<_ACEOF
14990/* confdefs.h. */
14991_ACEOF
14992cat confdefs.h >>conftest.$ac_ext
14993cat >>conftest.$ac_ext <<_ACEOF
14994/* end confdefs.h. */
14995#include <$ac_header>
14996_ACEOF
14997if { (ac_try="$ac_cpp conftest.$ac_ext"
14998case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001esac
15002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15004 ac_status=$?
15005 grep -v '^ *+' conftest.er1 >conftest.err
15006 rm -f conftest.er1
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } >/dev/null; then
15010 if test -s conftest.err; then
15011 ac_cpp_err=$ac_c_preproc_warn_flag
15012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15013 else
15014 ac_cpp_err=
15015 fi
15016else
15017 ac_cpp_err=yes
15018fi
15019if test -z "$ac_cpp_err"; then
15020 ac_header_preproc=yes
15021else
15022 echo "$as_me: failed program was:" >&5
15023sed 's/^/| /' conftest.$ac_ext >&5
15024
15025 ac_header_preproc=no
15026fi
15027
15028rm -f conftest.err conftest.$ac_ext
15029{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15030echo "${ECHO_T}$ac_header_preproc" >&6; }
15031
15032# So? What about this header?
15033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15034 yes:no: )
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15039 ac_header_preproc=yes
15040 ;;
15041 no:yes:* )
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15054 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015055## ------------------------------------ ##
15056## Report this to http://llvm.org/bugs/ ##
15057## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015058_ASBOX
15059 ) | sed "s/^/$as_me: WARNING: /" >&2
15060 ;;
15061esac
15062{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15066else
15067 eval "$as_ac_Header=\$ac_header_preproc"
15068fi
15069ac_res=`eval echo '${'$as_ac_Header'}'`
15070 { echo "$as_me:$LINENO: result: $ac_res" >&5
15071echo "${ECHO_T}$ac_res" >&6; }
15072
15073fi
15074if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015075 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015077_ACEOF
15078
15079fi
15080
15081done
Reid Spencer59473af2004-12-25 07:31:29 +000015082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015083
15084
15085
15086
Daniel Dunbar3e462932011-02-03 02:40:02 +000015087
15088for 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 +000015089do
15090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096fi
15097ac_res=`eval echo '${'$as_ac_Header'}'`
15098 { echo "$as_me:$LINENO: result: $ac_res" >&5
15099echo "${ECHO_T}$ac_res" >&6; }
15100else
15101 # Is the header compilable?
15102{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15104cat >conftest.$ac_ext <<_ACEOF
15105/* confdefs.h. */
15106_ACEOF
15107cat confdefs.h >>conftest.$ac_ext
15108cat >>conftest.$ac_ext <<_ACEOF
15109/* end confdefs.h. */
15110$ac_includes_default
15111#include <$ac_header>
15112_ACEOF
15113rm -f conftest.$ac_objext
15114if { (ac_try="$ac_compile"
15115case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15118esac
15119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_compile") 2>conftest.er1
15121 ac_status=$?
15122 grep -v '^ *+' conftest.er1 >conftest.err
15123 rm -f conftest.er1
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } &&
15127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131esac
15132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest.$ac_objext'
15138 { (case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15141esac
15142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143 (eval "$ac_try") 2>&5
15144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15147 ac_header_compiler=yes
15148else
15149 echo "$as_me: failed program was:" >&5
15150sed 's/^/| /' conftest.$ac_ext >&5
15151
15152 ac_header_compiler=no
15153fi
15154
15155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15157echo "${ECHO_T}$ac_header_compiler" >&6; }
15158
15159# Is the header present?
15160{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15162cat >conftest.$ac_ext <<_ACEOF
15163/* confdefs.h. */
15164_ACEOF
15165cat confdefs.h >>conftest.$ac_ext
15166cat >>conftest.$ac_ext <<_ACEOF
15167/* end confdefs.h. */
15168#include <$ac_header>
15169_ACEOF
15170if { (ac_try="$ac_cpp conftest.$ac_ext"
15171case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15174esac
15175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15177 ac_status=$?
15178 grep -v '^ *+' conftest.er1 >conftest.err
15179 rm -f conftest.er1
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } >/dev/null; then
15183 if test -s conftest.err; then
15184 ac_cpp_err=$ac_c_preproc_warn_flag
15185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15186 else
15187 ac_cpp_err=
15188 fi
15189else
15190 ac_cpp_err=yes
15191fi
15192if test -z "$ac_cpp_err"; then
15193 ac_header_preproc=yes
15194else
15195 echo "$as_me: failed program was:" >&5
15196sed 's/^/| /' conftest.$ac_ext >&5
15197
15198 ac_header_preproc=no
15199fi
15200
15201rm -f conftest.err conftest.$ac_ext
15202{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15203echo "${ECHO_T}$ac_header_preproc" >&6; }
15204
15205# So? What about this header?
15206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15207 yes:no: )
15208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15209echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15211echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15212 ac_header_preproc=yes
15213 ;;
15214 no:yes:* )
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15216echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15218echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15220echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15222echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15226echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15227 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015228## ------------------------------------ ##
15229## Report this to http://llvm.org/bugs/ ##
15230## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015231_ASBOX
15232 ) | sed "s/^/$as_me: WARNING: /" >&2
15233 ;;
15234esac
15235{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239else
15240 eval "$as_ac_Header=\$ac_header_preproc"
15241fi
15242ac_res=`eval echo '${'$as_ac_Header'}'`
15243 { echo "$as_me:$LINENO: result: $ac_res" >&5
15244echo "${ECHO_T}$ac_res" >&6; }
15245
15246fi
15247if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015248 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015250_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015251
15252fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015253
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015254done
15255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015256
15257
15258
15259
Douglas Gregor01746742009-05-11 18:05:52 +000015260for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015261do
15262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15268fi
15269ac_res=`eval echo '${'$as_ac_Header'}'`
15270 { echo "$as_me:$LINENO: result: $ac_res" >&5
15271echo "${ECHO_T}$ac_res" >&6; }
15272else
15273 # Is the header compilable?
15274{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15276cat >conftest.$ac_ext <<_ACEOF
15277/* confdefs.h. */
15278_ACEOF
15279cat confdefs.h >>conftest.$ac_ext
15280cat >>conftest.$ac_ext <<_ACEOF
15281/* end confdefs.h. */
15282$ac_includes_default
15283#include <$ac_header>
15284_ACEOF
15285rm -f conftest.$ac_objext
15286if { (ac_try="$ac_compile"
15287case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15290esac
15291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_compile") 2>conftest.er1
15293 ac_status=$?
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } &&
15299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15300 { (case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15303esac
15304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_try") 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; } &&
15309 { ac_try='test -s conftest.$ac_objext'
15310 { (case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313esac
15314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_try") 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15319 ac_header_compiler=yes
15320else
15321 echo "$as_me: failed program was:" >&5
15322sed 's/^/| /' conftest.$ac_ext >&5
15323
15324 ac_header_compiler=no
15325fi
15326
15327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15328{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15329echo "${ECHO_T}$ac_header_compiler" >&6; }
15330
15331# Is the header present?
15332{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15334cat >conftest.$ac_ext <<_ACEOF
15335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
15339/* end confdefs.h. */
15340#include <$ac_header>
15341_ACEOF
15342if { (ac_try="$ac_cpp conftest.$ac_ext"
15343case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15346esac
15347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15349 ac_status=$?
15350 grep -v '^ *+' conftest.er1 >conftest.err
15351 rm -f conftest.er1
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } >/dev/null; then
15355 if test -s conftest.err; then
15356 ac_cpp_err=$ac_c_preproc_warn_flag
15357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15358 else
15359 ac_cpp_err=
15360 fi
15361else
15362 ac_cpp_err=yes
15363fi
15364if test -z "$ac_cpp_err"; then
15365 ac_header_preproc=yes
15366else
15367 echo "$as_me: failed program was:" >&5
15368sed 's/^/| /' conftest.$ac_ext >&5
15369
15370 ac_header_preproc=no
15371fi
15372
15373rm -f conftest.err conftest.$ac_ext
15374{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15375echo "${ECHO_T}$ac_header_preproc" >&6; }
15376
15377# So? What about this header?
15378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15379 yes:no: )
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15384 ac_header_preproc=yes
15385 ;;
15386 no:yes:* )
15387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15399 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015400## ------------------------------------ ##
15401## Report this to http://llvm.org/bugs/ ##
15402## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015403_ASBOX
15404 ) | sed "s/^/$as_me: WARNING: /" >&2
15405 ;;
15406esac
15407{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15411else
15412 eval "$as_ac_Header=\$ac_header_preproc"
15413fi
15414ac_res=`eval echo '${'$as_ac_Header'}'`
15415 { echo "$as_me:$LINENO: result: $ac_res" >&5
15416echo "${ECHO_T}$ac_res" >&6; }
15417
15418fi
15419if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015420 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015422_ACEOF
15423
15424fi
15425
15426done
15427
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015428
15429for ac_header in valgrind/valgrind.h
15430do
15431as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15437fi
15438ac_res=`eval echo '${'$as_ac_Header'}'`
15439 { echo "$as_me:$LINENO: result: $ac_res" >&5
15440echo "${ECHO_T}$ac_res" >&6; }
15441else
15442 # Is the header compilable?
15443{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15444echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15445cat >conftest.$ac_ext <<_ACEOF
15446/* confdefs.h. */
15447_ACEOF
15448cat confdefs.h >>conftest.$ac_ext
15449cat >>conftest.$ac_ext <<_ACEOF
15450/* end confdefs.h. */
15451$ac_includes_default
15452#include <$ac_header>
15453_ACEOF
15454rm -f conftest.$ac_objext
15455if { (ac_try="$ac_compile"
15456case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15459esac
15460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_compile") 2>conftest.er1
15462 ac_status=$?
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15472esac
15473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; } &&
15478 { ac_try='test -s conftest.$ac_objext'
15479 { (case "(($ac_try" in
15480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481 *) ac_try_echo=$ac_try;;
15482esac
15483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484 (eval "$ac_try") 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; }; then
15488 ac_header_compiler=yes
15489else
15490 echo "$as_me: failed program was:" >&5
15491sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 ac_header_compiler=no
15494fi
15495
15496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15498echo "${ECHO_T}$ac_header_compiler" >&6; }
15499
15500# Is the header present?
15501{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15502echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15503cat >conftest.$ac_ext <<_ACEOF
15504/* confdefs.h. */
15505_ACEOF
15506cat confdefs.h >>conftest.$ac_ext
15507cat >>conftest.$ac_ext <<_ACEOF
15508/* end confdefs.h. */
15509#include <$ac_header>
15510_ACEOF
15511if { (ac_try="$ac_cpp conftest.$ac_ext"
15512case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515esac
15516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15518 ac_status=$?
15519 grep -v '^ *+' conftest.er1 >conftest.err
15520 rm -f conftest.er1
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } >/dev/null; then
15524 if test -s conftest.err; then
15525 ac_cpp_err=$ac_c_preproc_warn_flag
15526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15527 else
15528 ac_cpp_err=
15529 fi
15530else
15531 ac_cpp_err=yes
15532fi
15533if test -z "$ac_cpp_err"; then
15534 ac_header_preproc=yes
15535else
15536 echo "$as_me: failed program was:" >&5
15537sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 ac_header_preproc=no
15540fi
15541
15542rm -f conftest.err conftest.$ac_ext
15543{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15544echo "${ECHO_T}$ac_header_preproc" >&6; }
15545
15546# So? What about this header?
15547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15548 yes:no: )
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15552echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15553 ac_header_preproc=yes
15554 ;;
15555 no:yes:* )
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15561echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15563echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15567echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15568 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015569## ------------------------------------ ##
15570## Report this to http://llvm.org/bugs/ ##
15571## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015572_ASBOX
15573 ) | sed "s/^/$as_me: WARNING: /" >&2
15574 ;;
15575esac
15576{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15580else
15581 eval "$as_ac_Header=\$ac_header_preproc"
15582fi
15583ac_res=`eval echo '${'$as_ac_Header'}'`
15584 { echo "$as_me:$LINENO: result: $ac_res" >&5
15585echo "${ECHO_T}$ac_res" >&6; }
15586
15587fi
15588if test `eval echo '${'$as_ac_Header'}'` = yes; then
15589 cat >>confdefs.h <<_ACEOF
15590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15591_ACEOF
15592
15593fi
15594
15595done
15596
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015597
15598for ac_header in fenv.h
15599do
15600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15606fi
15607ac_res=`eval echo '${'$as_ac_Header'}'`
15608 { echo "$as_me:$LINENO: result: $ac_res" >&5
15609echo "${ECHO_T}$ac_res" >&6; }
15610else
15611 # Is the header compilable?
15612{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15614cat >conftest.$ac_ext <<_ACEOF
15615/* confdefs.h. */
15616_ACEOF
15617cat confdefs.h >>conftest.$ac_ext
15618cat >>conftest.$ac_ext <<_ACEOF
15619/* end confdefs.h. */
15620$ac_includes_default
15621#include <$ac_header>
15622_ACEOF
15623rm -f conftest.$ac_objext
15624if { (ac_try="$ac_compile"
15625case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15628esac
15629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_compile") 2>conftest.er1
15631 ac_status=$?
15632 grep -v '^ *+' conftest.er1 >conftest.err
15633 rm -f conftest.er1
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638 { (case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15641esac
15642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_try") 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest.$ac_objext'
15648 { (case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15651esac
15652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_try") 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_header_compiler=yes
15658else
15659 echo "$as_me: failed program was:" >&5
15660sed 's/^/| /' conftest.$ac_ext >&5
15661
15662 ac_header_compiler=no
15663fi
15664
15665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15667echo "${ECHO_T}$ac_header_compiler" >&6; }
15668
15669# Is the header present?
15670{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15672cat >conftest.$ac_ext <<_ACEOF
15673/* confdefs.h. */
15674_ACEOF
15675cat confdefs.h >>conftest.$ac_ext
15676cat >>conftest.$ac_ext <<_ACEOF
15677/* end confdefs.h. */
15678#include <$ac_header>
15679_ACEOF
15680if { (ac_try="$ac_cpp conftest.$ac_ext"
15681case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15684esac
15685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15687 ac_status=$?
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } >/dev/null; then
15693 if test -s conftest.err; then
15694 ac_cpp_err=$ac_c_preproc_warn_flag
15695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15696 else
15697 ac_cpp_err=
15698 fi
15699else
15700 ac_cpp_err=yes
15701fi
15702if test -z "$ac_cpp_err"; then
15703 ac_header_preproc=yes
15704else
15705 echo "$as_me: failed program was:" >&5
15706sed 's/^/| /' conftest.$ac_ext >&5
15707
15708 ac_header_preproc=no
15709fi
15710
15711rm -f conftest.err conftest.$ac_ext
15712{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15713echo "${ECHO_T}$ac_header_preproc" >&6; }
15714
15715# So? What about this header?
15716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15717 yes:no: )
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15721echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15722 ac_header_preproc=yes
15723 ;;
15724 no:yes:* )
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15726echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15728echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15730echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15732echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15734echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15736echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15737 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015738## ------------------------------------ ##
15739## Report this to http://llvm.org/bugs/ ##
15740## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015741_ASBOX
15742 ) | sed "s/^/$as_me: WARNING: /" >&2
15743 ;;
15744esac
15745{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15749else
15750 eval "$as_ac_Header=\$ac_header_preproc"
15751fi
15752ac_res=`eval echo '${'$as_ac_Header'}'`
15753 { echo "$as_me:$LINENO: result: $ac_res" >&5
15754echo "${ECHO_T}$ac_res" >&6; }
15755
15756fi
15757if test `eval echo '${'$as_ac_Header'}'` = yes; then
15758 cat >>confdefs.h <<_ACEOF
15759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15760_ACEOF
15761
15762fi
15763
15764done
15765
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015766if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015767
15768for ac_header in pthread.h
15769do
15770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776fi
15777ac_res=`eval echo '${'$as_ac_Header'}'`
15778 { echo "$as_me:$LINENO: result: $ac_res" >&5
15779echo "${ECHO_T}$ac_res" >&6; }
15780else
15781 # Is the header compilable?
15782{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15783echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15784cat >conftest.$ac_ext <<_ACEOF
15785/* confdefs.h. */
15786_ACEOF
15787cat confdefs.h >>conftest.$ac_ext
15788cat >>conftest.$ac_ext <<_ACEOF
15789/* end confdefs.h. */
15790$ac_includes_default
15791#include <$ac_header>
15792_ACEOF
15793rm -f conftest.$ac_objext
15794if { (ac_try="$ac_compile"
15795case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15798esac
15799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_compile") 2>conftest.er1
15801 ac_status=$?
15802 grep -v '^ *+' conftest.er1 >conftest.err
15803 rm -f conftest.er1
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } &&
15807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15808 { (case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15811esac
15812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_try") 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; } &&
15817 { ac_try='test -s conftest.$ac_objext'
15818 { (case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15821esac
15822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_try") 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15827 ac_header_compiler=yes
15828else
15829 echo "$as_me: failed program was:" >&5
15830sed 's/^/| /' conftest.$ac_ext >&5
15831
15832 ac_header_compiler=no
15833fi
15834
15835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15837echo "${ECHO_T}$ac_header_compiler" >&6; }
15838
15839# Is the header present?
15840{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15842cat >conftest.$ac_ext <<_ACEOF
15843/* confdefs.h. */
15844_ACEOF
15845cat confdefs.h >>conftest.$ac_ext
15846cat >>conftest.$ac_ext <<_ACEOF
15847/* end confdefs.h. */
15848#include <$ac_header>
15849_ACEOF
15850if { (ac_try="$ac_cpp conftest.$ac_ext"
15851case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15854esac
15855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15857 ac_status=$?
15858 grep -v '^ *+' conftest.er1 >conftest.err
15859 rm -f conftest.er1
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } >/dev/null; then
15863 if test -s conftest.err; then
15864 ac_cpp_err=$ac_c_preproc_warn_flag
15865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15866 else
15867 ac_cpp_err=
15868 fi
15869else
15870 ac_cpp_err=yes
15871fi
15872if test -z "$ac_cpp_err"; then
15873 ac_header_preproc=yes
15874else
15875 echo "$as_me: failed program was:" >&5
15876sed 's/^/| /' conftest.$ac_ext >&5
15877
15878 ac_header_preproc=no
15879fi
15880
15881rm -f conftest.err conftest.$ac_ext
15882{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15883echo "${ECHO_T}$ac_header_preproc" >&6; }
15884
15885# So? What about this header?
15886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15887 yes:no: )
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15892 ac_header_preproc=yes
15893 ;;
15894 no:yes:* )
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15902echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15907 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015908## ------------------------------------ ##
15909## Report this to http://llvm.org/bugs/ ##
15910## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015911_ASBOX
15912 ) | sed "s/^/$as_me: WARNING: /" >&2
15913 ;;
15914esac
15915{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15919else
15920 eval "$as_ac_Header=\$ac_header_preproc"
15921fi
15922ac_res=`eval echo '${'$as_ac_Header'}'`
15923 { echo "$as_me:$LINENO: result: $ac_res" >&5
15924echo "${ECHO_T}$ac_res" >&6; }
15925
15926fi
15927if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015928 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015930_ACEOF
15931 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015932
15933else
15934 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015935
15936fi
15937
Reid Spencerbe3e4192007-08-17 05:45:26 +000015938done
Reid Spencer1000b732006-12-01 00:37:14 +000015939
15940else
15941 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015942
15943fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015944
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015945if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015946
15947
15948for ac_header in ffi.h ffi/ffi.h
15949do
15950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15956fi
15957ac_res=`eval echo '${'$as_ac_Header'}'`
15958 { echo "$as_me:$LINENO: result: $ac_res" >&5
15959echo "${ECHO_T}$ac_res" >&6; }
15960else
15961 # Is the header compilable?
15962{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15963echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15964cat >conftest.$ac_ext <<_ACEOF
15965/* confdefs.h. */
15966_ACEOF
15967cat confdefs.h >>conftest.$ac_ext
15968cat >>conftest.$ac_ext <<_ACEOF
15969/* end confdefs.h. */
15970$ac_includes_default
15971#include <$ac_header>
15972_ACEOF
15973rm -f conftest.$ac_objext
15974if { (ac_try="$ac_compile"
15975case "(($ac_try" in
15976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977 *) ac_try_echo=$ac_try;;
15978esac
15979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980 (eval "$ac_compile") 2>conftest.er1
15981 ac_status=$?
15982 grep -v '^ *+' conftest.er1 >conftest.err
15983 rm -f conftest.er1
15984 cat conftest.err >&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15988 { (case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15991esac
15992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_try") 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; } &&
15997 { ac_try='test -s conftest.$ac_objext'
15998 { (case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16001esac
16002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_try") 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_header_compiler=yes
16008else
16009 echo "$as_me: failed program was:" >&5
16010sed 's/^/| /' conftest.$ac_ext >&5
16011
16012 ac_header_compiler=no
16013fi
16014
16015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16017echo "${ECHO_T}$ac_header_compiler" >&6; }
16018
16019# Is the header present?
16020{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16021echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16022cat >conftest.$ac_ext <<_ACEOF
16023/* confdefs.h. */
16024_ACEOF
16025cat confdefs.h >>conftest.$ac_ext
16026cat >>conftest.$ac_ext <<_ACEOF
16027/* end confdefs.h. */
16028#include <$ac_header>
16029_ACEOF
16030if { (ac_try="$ac_cpp conftest.$ac_ext"
16031case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16034esac
16035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } >/dev/null; then
16043 if test -s conftest.err; then
16044 ac_cpp_err=$ac_c_preproc_warn_flag
16045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16046 else
16047 ac_cpp_err=
16048 fi
16049else
16050 ac_cpp_err=yes
16051fi
16052if test -z "$ac_cpp_err"; then
16053 ac_header_preproc=yes
16054else
16055 echo "$as_me: failed program was:" >&5
16056sed 's/^/| /' conftest.$ac_ext >&5
16057
16058 ac_header_preproc=no
16059fi
16060
16061rm -f conftest.err conftest.$ac_ext
16062{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16063echo "${ECHO_T}$ac_header_preproc" >&6; }
16064
16065# So? What about this header?
16066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16067 yes:no: )
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16069echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16071echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16072 ac_header_preproc=yes
16073 ;;
16074 no:yes:* )
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16076echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16078echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16080echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16082echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16084echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16086echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16087 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016088## ------------------------------------ ##
16089## Report this to http://llvm.org/bugs/ ##
16090## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016091_ASBOX
16092 ) | sed "s/^/$as_me: WARNING: /" >&2
16093 ;;
16094esac
16095{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16099else
16100 eval "$as_ac_Header=\$ac_header_preproc"
16101fi
16102ac_res=`eval echo '${'$as_ac_Header'}'`
16103 { echo "$as_me:$LINENO: result: $ac_res" >&5
16104echo "${ECHO_T}$ac_res" >&6; }
16105
16106fi
16107if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016108 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016110_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016111
16112fi
16113
16114done
16115
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016116fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016117
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016118
Eric Christopher654dee42010-06-22 21:01:04 +000016119for ac_header in CrashReporterClient.h
16120do
16121as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16127fi
16128ac_res=`eval echo '${'$as_ac_Header'}'`
16129 { echo "$as_me:$LINENO: result: $ac_res" >&5
16130echo "${ECHO_T}$ac_res" >&6; }
16131else
16132 # Is the header compilable?
16133{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16135cat >conftest.$ac_ext <<_ACEOF
16136/* confdefs.h. */
16137_ACEOF
16138cat confdefs.h >>conftest.$ac_ext
16139cat >>conftest.$ac_ext <<_ACEOF
16140/* end confdefs.h. */
16141$ac_includes_default
16142#include <$ac_header>
16143_ACEOF
16144rm -f conftest.$ac_objext
16145if { (ac_try="$ac_compile"
16146case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16149esac
16150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_compile") 2>conftest.er1
16152 ac_status=$?
16153 grep -v '^ *+' conftest.er1 >conftest.err
16154 rm -f conftest.er1
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } &&
16158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16159 { (case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162esac
16163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_try") 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; } &&
16168 { ac_try='test -s conftest.$ac_objext'
16169 { (case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16172esac
16173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_try") 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 ac_header_compiler=yes
16179else
16180 echo "$as_me: failed program was:" >&5
16181sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 ac_header_compiler=no
16184fi
16185
16186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16188echo "${ECHO_T}$ac_header_compiler" >&6; }
16189
16190# Is the header present?
16191{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16193cat >conftest.$ac_ext <<_ACEOF
16194/* confdefs.h. */
16195_ACEOF
16196cat confdefs.h >>conftest.$ac_ext
16197cat >>conftest.$ac_ext <<_ACEOF
16198/* end confdefs.h. */
16199#include <$ac_header>
16200_ACEOF
16201if { (ac_try="$ac_cpp conftest.$ac_ext"
16202case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16205esac
16206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16208 ac_status=$?
16209 grep -v '^ *+' conftest.er1 >conftest.err
16210 rm -f conftest.er1
16211 cat conftest.err >&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } >/dev/null; then
16214 if test -s conftest.err; then
16215 ac_cpp_err=$ac_c_preproc_warn_flag
16216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16217 else
16218 ac_cpp_err=
16219 fi
16220else
16221 ac_cpp_err=yes
16222fi
16223if test -z "$ac_cpp_err"; then
16224 ac_header_preproc=yes
16225else
16226 echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5
16228
16229 ac_header_preproc=no
16230fi
16231
16232rm -f conftest.err conftest.$ac_ext
16233{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16234echo "${ECHO_T}$ac_header_preproc" >&6; }
16235
16236# So? What about this header?
16237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16238 yes:no: )
16239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16240echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16242echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16243 ac_header_preproc=yes
16244 ;;
16245 no:yes:* )
16246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16249echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16251echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16253echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16257echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16258 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016259## ------------------------------------ ##
16260## Report this to http://llvm.org/bugs/ ##
16261## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016262_ASBOX
16263 ) | sed "s/^/$as_me: WARNING: /" >&2
16264 ;;
16265esac
16266{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16270else
16271 eval "$as_ac_Header=\$ac_header_preproc"
16272fi
16273ac_res=`eval echo '${'$as_ac_Header'}'`
16274 { echo "$as_me:$LINENO: result: $ac_res" >&5
16275echo "${ECHO_T}$ac_res" >&6; }
16276
16277fi
16278if test `eval echo '${'$as_ac_Header'}'` = yes; then
16279 cat >>confdefs.h <<_ACEOF
16280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16281_ACEOF
16282
16283fi
16284
16285done
16286
16287
Eric Christopher51e57132010-12-07 02:05:42 +000016288{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16289echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016290cat >conftest.$ac_ext <<_ACEOF
16291/* confdefs.h. */
16292_ACEOF
16293cat confdefs.h >>conftest.$ac_ext
16294cat >>conftest.$ac_ext <<_ACEOF
16295/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016296extern const char *__crashreporter_info__;
16297 int main() {
16298 __crashreporter_info__ = "test";
16299 return 0;
16300 }
Eric Christopher481d4022010-12-03 07:45:22 +000016301
Eric Christopher481d4022010-12-03 07:45:22 +000016302_ACEOF
16303rm -f conftest.$ac_objext conftest$ac_exeext
16304if { (ac_try="$ac_link"
16305case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_link") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321esac
16322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; } &&
16327 { ac_try='test -s conftest$ac_exeext'
16328 { (case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331esac
16332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_try") 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016337 { echo "$as_me:$LINENO: result: yes" >&5
16338echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016339
16340cat >>confdefs.h <<\_ACEOF
16341#define HAVE_CRASHREPORTER_INFO 1
16342_ACEOF
16343
Eric Christopher51e57132010-12-07 02:05:42 +000016344else
16345 echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
16348 { echo "$as_me:$LINENO: result: no" >&5
16349echo "${ECHO_T}no" >&6; }
16350
16351cat >>confdefs.h <<\_ACEOF
16352#define HAVE_CRASHREPORTER_INFO 0
16353_ACEOF
16354
Eric Christopher481d4022010-12-03 07:45:22 +000016355fi
Eric Christopher654dee42010-06-22 21:01:04 +000016356
Eric Christopher51e57132010-12-07 02:05:42 +000016357rm -f core conftest.err conftest.$ac_objext \
16358 conftest$ac_exeext conftest.$ac_ext
16359
16360
Reid Spencer8085cff2005-01-16 02:58:39 +000016361
Torok Edwin871384f2010-01-26 08:50:50 +000016362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016363 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16364echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16365if test "${ac_cv_huge_val_sanity+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016367else
16368
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016369 ac_ext=cpp
16370ac_cpp='$CXXCPP $CPPFLAGS'
16371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016374
Eric Christopherc7718502010-03-02 05:06:54 +000016375 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016376 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016377 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016378 ac_cv_huge_val_sanity=yes
16379else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016380 cat >conftest.$ac_ext <<_ACEOF
16381/* confdefs.h. */
16382_ACEOF
16383cat confdefs.h >>conftest.$ac_ext
16384cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016385/* end confdefs.h. */
16386#include <math.h>
16387int
16388main ()
16389{
16390double x = HUGE_VAL; return x != x;
16391 ;
16392 return 0;
16393}
16394_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016395rm -f conftest$ac_exeext
16396if { (ac_try="$ac_link"
16397case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16400esac
16401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_link") 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016415 ac_cv_huge_val_sanity=yes
16416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016417 echo "$as_me: program exited with status $ac_status" >&5
16418echo "$as_me: failed program was:" >&5
16419sed 's/^/| /' conftest.$ac_ext >&5
16420
16421( exit $ac_status )
16422ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016424rm -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 +000016425fi
16426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016427
Eric Christopherc7718502010-03-02 05:06:54 +000016428 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016429 ac_ext=c
16430ac_cpp='$CPP $CPPFLAGS'
16431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16433ac_compiler_gnu=$ac_cv_c_compiler_gnu
16434
16435
16436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016437{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16438echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016439 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16440
16441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016442{ echo "$as_me:$LINENO: checking for pid_t" >&5
16443echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16444if test "${ac_cv_type_pid_t+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446else
16447 cat >conftest.$ac_ext <<_ACEOF
16448/* confdefs.h. */
16449_ACEOF
16450cat confdefs.h >>conftest.$ac_ext
16451cat >>conftest.$ac_ext <<_ACEOF
16452/* end confdefs.h. */
16453$ac_includes_default
16454typedef pid_t ac__type_new_;
16455int
16456main ()
16457{
16458if ((ac__type_new_ *) 0)
16459 return 0;
16460if (sizeof (ac__type_new_))
16461 return 0;
16462 ;
16463 return 0;
16464}
16465_ACEOF
16466rm -f conftest.$ac_objext
16467if { (ac_try="$ac_compile"
16468case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471esac
16472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_compile") 2>conftest.er1
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16484esac
16485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16487 ac_status=$?
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; } &&
16490 { ac_try='test -s conftest.$ac_objext'
16491 { (case "(($ac_try" in
16492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493 *) ac_try_echo=$ac_try;;
16494esac
16495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496 (eval "$ac_try") 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16500 ac_cv_type_pid_t=yes
16501else
16502 echo "$as_me: failed program was:" >&5
16503sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016505 ac_cv_type_pid_t=no
16506fi
16507
16508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16509fi
16510{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16511echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16512if test $ac_cv_type_pid_t = yes; then
16513 :
John Criswell7a73b802003-06-30 21:59:07 +000016514else
16515
16516cat >>confdefs.h <<_ACEOF
16517#define pid_t int
16518_ACEOF
16519
16520fi
16521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016522{ echo "$as_me:$LINENO: checking for size_t" >&5
16523echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16524if test "${ac_cv_type_size_t+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16526else
16527 cat >conftest.$ac_ext <<_ACEOF
16528/* confdefs.h. */
16529_ACEOF
16530cat confdefs.h >>conftest.$ac_ext
16531cat >>conftest.$ac_ext <<_ACEOF
16532/* end confdefs.h. */
16533$ac_includes_default
16534typedef size_t ac__type_new_;
16535int
16536main ()
16537{
16538if ((ac__type_new_ *) 0)
16539 return 0;
16540if (sizeof (ac__type_new_))
16541 return 0;
16542 ;
16543 return 0;
16544}
16545_ACEOF
16546rm -f conftest.$ac_objext
16547if { (ac_try="$ac_compile"
16548case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16551esac
16552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_compile") 2>conftest.er1
16554 ac_status=$?
16555 grep -v '^ *+' conftest.er1 >conftest.err
16556 rm -f conftest.er1
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16561 { (case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16564esac
16565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_try") 2>&5
16567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest.$ac_objext'
16571 { (case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16574esac
16575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_type_size_t=yes
16581else
16582 echo "$as_me: failed program was:" >&5
16583sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016585 ac_cv_type_size_t=no
16586fi
16587
16588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16589fi
16590{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16591echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16592if test $ac_cv_type_size_t = yes; then
16593 :
John Criswell7a73b802003-06-30 21:59:07 +000016594else
16595
16596cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016597#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016598_ACEOF
16599
16600fi
16601
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016602
16603cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016604#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016605_ACEOF
16606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016607{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16608echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16609if test "${ac_cv_struct_tm+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016612 cat >conftest.$ac_ext <<_ACEOF
16613/* confdefs.h. */
16614_ACEOF
16615cat confdefs.h >>conftest.$ac_ext
16616cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016617/* end confdefs.h. */
16618#include <sys/types.h>
16619#include <time.h>
16620
16621int
16622main ()
16623{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016624struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016625 ;
16626 return 0;
16627}
16628_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016629rm -f conftest.$ac_objext
16630if { (ac_try="$ac_compile"
16631case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16634esac
16635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_compile") 2>conftest.er1
16637 ac_status=$?
16638 grep -v '^ *+' conftest.er1 >conftest.err
16639 rm -f conftest.er1
16640 cat conftest.err >&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647esac
16648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_try") 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest.$ac_objext'
16654 { (case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16657esac
16658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_try") 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016663 ac_cv_struct_tm=time.h
16664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016665 echo "$as_me: failed program was:" >&5
16666sed 's/^/| /' conftest.$ac_ext >&5
16667
16668 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016670
Reid Spencera773bd52006-08-04 18:18:08 +000016671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016673{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16674echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016675if test $ac_cv_struct_tm = sys/time.h; then
16676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016677cat >>confdefs.h <<\_ACEOF
16678#define TM_IN_SYS_TIME 1
16679_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016680
16681fi
16682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016683{ echo "$as_me:$LINENO: checking for int64_t" >&5
16684echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16685if test "${ac_cv_type_int64_t+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16687else
16688 cat >conftest.$ac_ext <<_ACEOF
16689/* confdefs.h. */
16690_ACEOF
16691cat confdefs.h >>conftest.$ac_ext
16692cat >>conftest.$ac_ext <<_ACEOF
16693/* end confdefs.h. */
16694$ac_includes_default
16695typedef int64_t ac__type_new_;
16696int
16697main ()
16698{
16699if ((ac__type_new_ *) 0)
16700 return 0;
16701if (sizeof (ac__type_new_))
16702 return 0;
16703 ;
16704 return 0;
16705}
16706_ACEOF
16707rm -f conftest.$ac_objext
16708if { (ac_try="$ac_compile"
16709case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16712esac
16713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_compile") 2>conftest.er1
16715 ac_status=$?
16716 grep -v '^ *+' conftest.er1 >conftest.err
16717 rm -f conftest.er1
16718 cat conftest.err >&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16722 { (case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16725esac
16726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_try") 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest.$ac_objext'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16735esac
16736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_try") 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_cv_type_int64_t=yes
16742else
16743 echo "$as_me: failed program was:" >&5
16744sed 's/^/| /' conftest.$ac_ext >&5
16745
16746 ac_cv_type_int64_t=no
16747fi
16748
16749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16750fi
16751{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16752echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16753if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016754
16755cat >>confdefs.h <<_ACEOF
16756#define HAVE_INT64_T 1
16757_ACEOF
16758
16759
16760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016761 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16762echo "$as_me: error: Type int64_t required but not found" >&2;}
16763 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016764fi
16765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016766{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16767echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16768if test "${ac_cv_type_uint64_t+set}" = set; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770else
16771 cat >conftest.$ac_ext <<_ACEOF
16772/* confdefs.h. */
16773_ACEOF
16774cat confdefs.h >>conftest.$ac_ext
16775cat >>conftest.$ac_ext <<_ACEOF
16776/* end confdefs.h. */
16777$ac_includes_default
16778typedef uint64_t ac__type_new_;
16779int
16780main ()
16781{
16782if ((ac__type_new_ *) 0)
16783 return 0;
16784if (sizeof (ac__type_new_))
16785 return 0;
16786 ;
16787 return 0;
16788}
16789_ACEOF
16790rm -f conftest.$ac_objext
16791if { (ac_try="$ac_compile"
16792case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16795esac
16796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_compile") 2>conftest.er1
16798 ac_status=$?
16799 grep -v '^ *+' conftest.er1 >conftest.err
16800 rm -f conftest.er1
16801 cat conftest.err >&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } &&
16804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808esac
16809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest.$ac_objext'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818esac
16819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_cv_type_uint64_t=yes
16825else
16826 echo "$as_me: failed program was:" >&5
16827sed 's/^/| /' conftest.$ac_ext >&5
16828
16829 ac_cv_type_uint64_t=no
16830fi
16831
16832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833fi
16834{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16835echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16836if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016837
16838cat >>confdefs.h <<_ACEOF
16839#define HAVE_UINT64_T 1
16840_ACEOF
16841
16842
16843else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016844 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16845echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16846if test "${ac_cv_type_u_int64_t+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16848else
16849 cat >conftest.$ac_ext <<_ACEOF
16850/* confdefs.h. */
16851_ACEOF
16852cat confdefs.h >>conftest.$ac_ext
16853cat >>conftest.$ac_ext <<_ACEOF
16854/* end confdefs.h. */
16855$ac_includes_default
16856typedef u_int64_t ac__type_new_;
16857int
16858main ()
16859{
16860if ((ac__type_new_ *) 0)
16861 return 0;
16862if (sizeof (ac__type_new_))
16863 return 0;
16864 ;
16865 return 0;
16866}
16867_ACEOF
16868rm -f conftest.$ac_objext
16869if { (ac_try="$ac_compile"
16870case "(($ac_try" in
16871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872 *) ac_try_echo=$ac_try;;
16873esac
16874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875 (eval "$ac_compile") 2>conftest.er1
16876 ac_status=$?
16877 grep -v '^ *+' conftest.er1 >conftest.err
16878 rm -f conftest.er1
16879 cat conftest.err >&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16883 { (case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16886esac
16887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_try") 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; } &&
16892 { ac_try='test -s conftest.$ac_objext'
16893 { (case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16896esac
16897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_try") 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; }; then
16902 ac_cv_type_u_int64_t=yes
16903else
16904 echo "$as_me: failed program was:" >&5
16905sed 's/^/| /' conftest.$ac_ext >&5
16906
16907 ac_cv_type_u_int64_t=no
16908fi
16909
16910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16911fi
16912{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16913echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16914if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016915
16916cat >>confdefs.h <<_ACEOF
16917#define HAVE_U_INT64_T 1
16918_ACEOF
16919
16920
Misha Brukmanceca9042004-09-02 23:02:30 +000016921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016922 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16923echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16924 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016925fi
16926
John Criswell679ff312004-09-02 18:44:44 +000016927fi
16928
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016929
16930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016931
16932
16933
16934
16935
16936
16937
Reid Spencerdf3be822006-01-23 08:15:53 +000016938for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016939do
16940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16945else
16946 cat >conftest.$ac_ext <<_ACEOF
16947/* confdefs.h. */
16948_ACEOF
16949cat confdefs.h >>conftest.$ac_ext
16950cat >>conftest.$ac_ext <<_ACEOF
16951/* end confdefs.h. */
16952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16954#define $ac_func innocuous_$ac_func
16955
16956/* System header to define __stub macros and hopefully few prototypes,
16957 which can conflict with char $ac_func (); below.
16958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16959 <limits.h> exists even on freestanding compilers. */
16960
16961#ifdef __STDC__
16962# include <limits.h>
16963#else
16964# include <assert.h>
16965#endif
16966
16967#undef $ac_func
16968
16969/* Override any GCC internal prototype to avoid an error.
16970 Use char because int might match the return type of a GCC
16971 builtin and then its argument prototype would still apply. */
16972#ifdef __cplusplus
16973extern "C"
16974#endif
16975char $ac_func ();
16976/* The GNU C library defines this for functions which it implements
16977 to always fail with ENOSYS. Some functions are actually named
16978 something starting with __ and the normal name is an alias. */
16979#if defined __stub_$ac_func || defined __stub___$ac_func
16980choke me
16981#endif
16982
16983int
16984main ()
16985{
16986return $ac_func ();
16987 ;
16988 return 0;
16989}
16990_ACEOF
16991rm -f conftest.$ac_objext conftest$ac_exeext
16992if { (ac_try="$ac_link"
16993case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996esac
16997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_link") 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
17015 { ac_try='test -s conftest$ac_exeext'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17019esac
17020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_try") 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 eval "$as_ac_var=yes"
17026else
17027 echo "$as_me: failed program was:" >&5
17028sed 's/^/| /' conftest.$ac_ext >&5
17029
17030 eval "$as_ac_var=no"
17031fi
17032
17033rm -f core conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17035fi
17036ac_res=`eval echo '${'$as_ac_var'}'`
17037 { echo "$as_me:$LINENO: result: $ac_res" >&5
17038echo "${ECHO_T}$ac_res" >&6; }
17039if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017040 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017042_ACEOF
17043
17044fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017045done
John Criswell7a73b802003-06-30 21:59:07 +000017046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017047
17048
17049
17050
Reid Spencer96cf5872007-07-13 10:05:30 +000017051for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017052do
17053as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17054{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17055echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17056if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17058else
17059 cat >conftest.$ac_ext <<_ACEOF
17060/* confdefs.h. */
17061_ACEOF
17062cat confdefs.h >>conftest.$ac_ext
17063cat >>conftest.$ac_ext <<_ACEOF
17064/* end confdefs.h. */
17065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17067#define $ac_func innocuous_$ac_func
17068
17069/* System header to define __stub macros and hopefully few prototypes,
17070 which can conflict with char $ac_func (); below.
17071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17072 <limits.h> exists even on freestanding compilers. */
17073
17074#ifdef __STDC__
17075# include <limits.h>
17076#else
17077# include <assert.h>
17078#endif
17079
17080#undef $ac_func
17081
17082/* Override any GCC internal prototype to avoid an error.
17083 Use char because int might match the return type of a GCC
17084 builtin and then its argument prototype would still apply. */
17085#ifdef __cplusplus
17086extern "C"
17087#endif
17088char $ac_func ();
17089/* The GNU C library defines this for functions which it implements
17090 to always fail with ENOSYS. Some functions are actually named
17091 something starting with __ and the normal name is an alias. */
17092#if defined __stub_$ac_func || defined __stub___$ac_func
17093choke me
17094#endif
17095
17096int
17097main ()
17098{
17099return $ac_func ();
17100 ;
17101 return 0;
17102}
17103_ACEOF
17104rm -f conftest.$ac_objext conftest$ac_exeext
17105if { (ac_try="$ac_link"
17106case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109esac
17110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_link") 2>conftest.er1
17112 ac_status=$?
17113 grep -v '^ *+' conftest.er1 >conftest.err
17114 rm -f conftest.er1
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } &&
17118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17119 { (case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17122esac
17123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_try") 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; } &&
17128 { ac_try='test -s conftest$ac_exeext'
17129 { (case "(($ac_try" in
17130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131 *) ac_try_echo=$ac_try;;
17132esac
17133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134 (eval "$ac_try") 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 eval "$as_ac_var=yes"
17139else
17140 echo "$as_me: failed program was:" >&5
17141sed 's/^/| /' conftest.$ac_ext >&5
17142
17143 eval "$as_ac_var=no"
17144fi
17145
17146rm -f core conftest.err conftest.$ac_objext \
17147 conftest$ac_exeext conftest.$ac_ext
17148fi
17149ac_res=`eval echo '${'$as_ac_var'}'`
17150 { echo "$as_me:$LINENO: result: $ac_res" >&5
17151echo "${ECHO_T}$ac_res" >&6; }
17152if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017153 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017155_ACEOF
17156
17157fi
17158done
17159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017160
17161
17162
17163
17164
Reid Spencerb90645c2007-02-16 19:17:20 +000017165for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017166do
17167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17168{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17170if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172else
17173 cat >conftest.$ac_ext <<_ACEOF
17174/* confdefs.h. */
17175_ACEOF
17176cat confdefs.h >>conftest.$ac_ext
17177cat >>conftest.$ac_ext <<_ACEOF
17178/* end confdefs.h. */
17179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17181#define $ac_func innocuous_$ac_func
17182
17183/* System header to define __stub macros and hopefully few prototypes,
17184 which can conflict with char $ac_func (); below.
17185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17186 <limits.h> exists even on freestanding compilers. */
17187
17188#ifdef __STDC__
17189# include <limits.h>
17190#else
17191# include <assert.h>
17192#endif
17193
17194#undef $ac_func
17195
17196/* Override any GCC internal prototype to avoid an error.
17197 Use char because int might match the return type of a GCC
17198 builtin and then its argument prototype would still apply. */
17199#ifdef __cplusplus
17200extern "C"
17201#endif
17202char $ac_func ();
17203/* The GNU C library defines this for functions which it implements
17204 to always fail with ENOSYS. Some functions are actually named
17205 something starting with __ and the normal name is an alias. */
17206#if defined __stub_$ac_func || defined __stub___$ac_func
17207choke me
17208#endif
17209
17210int
17211main ()
17212{
17213return $ac_func ();
17214 ;
17215 return 0;
17216}
17217_ACEOF
17218rm -f conftest.$ac_objext conftest$ac_exeext
17219if { (ac_try="$ac_link"
17220case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17223esac
17224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_link") 2>conftest.er1
17226 ac_status=$?
17227 grep -v '^ *+' conftest.er1 >conftest.err
17228 rm -f conftest.er1
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236esac
17237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; } &&
17242 { ac_try='test -s conftest$ac_exeext'
17243 { (case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17246esac
17247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_try") 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 eval "$as_ac_var=yes"
17253else
17254 echo "$as_me: failed program was:" >&5
17255sed 's/^/| /' conftest.$ac_ext >&5
17256
17257 eval "$as_ac_var=no"
17258fi
17259
17260rm -f core conftest.err conftest.$ac_objext \
17261 conftest$ac_exeext conftest.$ac_ext
17262fi
17263ac_res=`eval echo '${'$as_ac_var'}'`
17264 { echo "$as_me:$LINENO: result: $ac_res" >&5
17265echo "${ECHO_T}$ac_res" >&6; }
17266if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017267 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017269_ACEOF
17270
17271fi
17272done
17273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017274
17275
17276
Reid Spencerb90645c2007-02-16 19:17:20 +000017277for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017278do
17279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17280{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17282if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17283 echo $ECHO_N "(cached) $ECHO_C" >&6
17284else
17285 cat >conftest.$ac_ext <<_ACEOF
17286/* confdefs.h. */
17287_ACEOF
17288cat confdefs.h >>conftest.$ac_ext
17289cat >>conftest.$ac_ext <<_ACEOF
17290/* end confdefs.h. */
17291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17293#define $ac_func innocuous_$ac_func
17294
17295/* System header to define __stub macros and hopefully few prototypes,
17296 which can conflict with char $ac_func (); below.
17297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17298 <limits.h> exists even on freestanding compilers. */
17299
17300#ifdef __STDC__
17301# include <limits.h>
17302#else
17303# include <assert.h>
17304#endif
17305
17306#undef $ac_func
17307
17308/* Override any GCC internal prototype to avoid an error.
17309 Use char because int might match the return type of a GCC
17310 builtin and then its argument prototype would still apply. */
17311#ifdef __cplusplus
17312extern "C"
17313#endif
17314char $ac_func ();
17315/* The GNU C library defines this for functions which it implements
17316 to always fail with ENOSYS. Some functions are actually named
17317 something starting with __ and the normal name is an alias. */
17318#if defined __stub_$ac_func || defined __stub___$ac_func
17319choke me
17320#endif
17321
17322int
17323main ()
17324{
17325return $ac_func ();
17326 ;
17327 return 0;
17328}
17329_ACEOF
17330rm -f conftest.$ac_objext conftest$ac_exeext
17331if { (ac_try="$ac_link"
17332case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17335esac
17336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_link") 2>conftest.er1
17338 ac_status=$?
17339 grep -v '^ *+' conftest.er1 >conftest.err
17340 rm -f conftest.er1
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } &&
17344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17345 { (case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17348esac
17349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_try") 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest$ac_exeext'
17355 { (case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17358esac
17359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_try") 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; }; then
17364 eval "$as_ac_var=yes"
17365else
17366 echo "$as_me: failed program was:" >&5
17367sed 's/^/| /' conftest.$ac_ext >&5
17368
17369 eval "$as_ac_var=no"
17370fi
17371
17372rm -f core conftest.err conftest.$ac_objext \
17373 conftest$ac_exeext conftest.$ac_ext
17374fi
17375ac_res=`eval echo '${'$as_ac_var'}'`
17376 { echo "$as_me:$LINENO: result: $ac_res" >&5
17377echo "${ECHO_T}$ac_res" >&6; }
17378if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017379 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017381_ACEOF
17382
17383fi
17384done
17385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017386
17387
17388
17389
17390
Eric Christophere4291822010-04-16 05:14:21 +000017391
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017392
17393for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017394do
17395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17396{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17398if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400else
17401 cat >conftest.$ac_ext <<_ACEOF
17402/* confdefs.h. */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h. */
17407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17409#define $ac_func innocuous_$ac_func
17410
17411/* System header to define __stub macros and hopefully few prototypes,
17412 which can conflict with char $ac_func (); below.
17413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17414 <limits.h> exists even on freestanding compilers. */
17415
17416#ifdef __STDC__
17417# include <limits.h>
17418#else
17419# include <assert.h>
17420#endif
17421
17422#undef $ac_func
17423
17424/* Override any GCC internal prototype to avoid an error.
17425 Use char because int might match the return type of a GCC
17426 builtin and then its argument prototype would still apply. */
17427#ifdef __cplusplus
17428extern "C"
17429#endif
17430char $ac_func ();
17431/* The GNU C library defines this for functions which it implements
17432 to always fail with ENOSYS. Some functions are actually named
17433 something starting with __ and the normal name is an alias. */
17434#if defined __stub_$ac_func || defined __stub___$ac_func
17435choke me
17436#endif
17437
17438int
17439main ()
17440{
17441return $ac_func ();
17442 ;
17443 return 0;
17444}
17445_ACEOF
17446rm -f conftest.$ac_objext conftest$ac_exeext
17447if { (ac_try="$ac_link"
17448case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451esac
17452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_link") 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461 { (case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17464esac
17465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_try") 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest$ac_exeext'
17471 { (case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17474esac
17475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_try") 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 eval "$as_ac_var=yes"
17481else
17482 echo "$as_me: failed program was:" >&5
17483sed 's/^/| /' conftest.$ac_ext >&5
17484
17485 eval "$as_ac_var=no"
17486fi
17487
17488rm -f core conftest.err conftest.$ac_objext \
17489 conftest$ac_exeext conftest.$ac_ext
17490fi
17491ac_res=`eval echo '${'$as_ac_var'}'`
17492 { echo "$as_me:$LINENO: result: $ac_res" >&5
17493echo "${ECHO_T}$ac_res" >&6; }
17494if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017495 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017497_ACEOF
17498
17499fi
17500done
Reid Spencerdf3be822006-01-23 08:15:53 +000017501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017502
17503
17504
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017505for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017506do
17507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17508{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17510if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17512else
17513 cat >conftest.$ac_ext <<_ACEOF
17514/* confdefs.h. */
17515_ACEOF
17516cat confdefs.h >>conftest.$ac_ext
17517cat >>conftest.$ac_ext <<_ACEOF
17518/* end confdefs.h. */
17519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17521#define $ac_func innocuous_$ac_func
17522
17523/* System header to define __stub macros and hopefully few prototypes,
17524 which can conflict with char $ac_func (); below.
17525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17526 <limits.h> exists even on freestanding compilers. */
17527
17528#ifdef __STDC__
17529# include <limits.h>
17530#else
17531# include <assert.h>
17532#endif
17533
17534#undef $ac_func
17535
17536/* Override any GCC internal prototype to avoid an error.
17537 Use char because int might match the return type of a GCC
17538 builtin and then its argument prototype would still apply. */
17539#ifdef __cplusplus
17540extern "C"
17541#endif
17542char $ac_func ();
17543/* The GNU C library defines this for functions which it implements
17544 to always fail with ENOSYS. Some functions are actually named
17545 something starting with __ and the normal name is an alias. */
17546#if defined __stub_$ac_func || defined __stub___$ac_func
17547choke me
17548#endif
17549
17550int
17551main ()
17552{
17553return $ac_func ();
17554 ;
17555 return 0;
17556}
17557_ACEOF
17558rm -f conftest.$ac_objext conftest$ac_exeext
17559if { (ac_try="$ac_link"
17560case "(($ac_try" in
17561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562 *) ac_try_echo=$ac_try;;
17563esac
17564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565 (eval "$ac_link") 2>conftest.er1
17566 ac_status=$?
17567 grep -v '^ *+' conftest.er1 >conftest.err
17568 rm -f conftest.er1
17569 cat conftest.err >&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
17572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17573 { (case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17576esac
17577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_try") 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try='test -s conftest$ac_exeext'
17583 { (case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17586esac
17587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_try") 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 eval "$as_ac_var=yes"
17593else
17594 echo "$as_me: failed program was:" >&5
17595sed 's/^/| /' conftest.$ac_ext >&5
17596
17597 eval "$as_ac_var=no"
17598fi
17599
17600rm -f core conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17602fi
17603ac_res=`eval echo '${'$as_ac_var'}'`
17604 { echo "$as_me:$LINENO: result: $ac_res" >&5
17605echo "${ECHO_T}$ac_res" >&6; }
17606if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017607 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017609_ACEOF
17610
17611fi
17612done
17613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017614
17615
17616
17617
Chris Lattner511f11d2005-11-14 07:25:50 +000017618for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017619do
17620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17621{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17623if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17625else
17626 cat >conftest.$ac_ext <<_ACEOF
17627/* confdefs.h. */
17628_ACEOF
17629cat confdefs.h >>conftest.$ac_ext
17630cat >>conftest.$ac_ext <<_ACEOF
17631/* end confdefs.h. */
17632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17634#define $ac_func innocuous_$ac_func
17635
17636/* System header to define __stub macros and hopefully few prototypes,
17637 which can conflict with char $ac_func (); below.
17638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17639 <limits.h> exists even on freestanding compilers. */
17640
17641#ifdef __STDC__
17642# include <limits.h>
17643#else
17644# include <assert.h>
17645#endif
17646
17647#undef $ac_func
17648
17649/* Override any GCC internal prototype to avoid an error.
17650 Use char because int might match the return type of a GCC
17651 builtin and then its argument prototype would still apply. */
17652#ifdef __cplusplus
17653extern "C"
17654#endif
17655char $ac_func ();
17656/* The GNU C library defines this for functions which it implements
17657 to always fail with ENOSYS. Some functions are actually named
17658 something starting with __ and the normal name is an alias. */
17659#if defined __stub_$ac_func || defined __stub___$ac_func
17660choke me
17661#endif
17662
17663int
17664main ()
17665{
17666return $ac_func ();
17667 ;
17668 return 0;
17669}
17670_ACEOF
17671rm -f conftest.$ac_objext conftest$ac_exeext
17672if { (ac_try="$ac_link"
17673case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676esac
17677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_link") 2>conftest.er1
17679 ac_status=$?
17680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686 { (case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17689esac
17690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_try") 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest$ac_exeext'
17696 { (case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17699esac
17700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_try") 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 eval "$as_ac_var=yes"
17706else
17707 echo "$as_me: failed program was:" >&5
17708sed 's/^/| /' conftest.$ac_ext >&5
17709
17710 eval "$as_ac_var=no"
17711fi
17712
17713rm -f core conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
17715fi
17716ac_res=`eval echo '${'$as_ac_var'}'`
17717 { echo "$as_me:$LINENO: result: $ac_res" >&5
17718echo "${ECHO_T}$ac_res" >&6; }
17719if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017720 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017722_ACEOF
17723
17724fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017725done
John Criswell7a73b802003-06-30 21:59:07 +000017726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017727
17728
17729
17730
Daniel Dunbar3e462932011-02-03 02:40:02 +000017731
17732for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017733do
17734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17735{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17737if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739else
17740 cat >conftest.$ac_ext <<_ACEOF
17741/* confdefs.h. */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h. */
17746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17748#define $ac_func innocuous_$ac_func
17749
17750/* System header to define __stub macros and hopefully few prototypes,
17751 which can conflict with char $ac_func (); below.
17752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17753 <limits.h> exists even on freestanding compilers. */
17754
17755#ifdef __STDC__
17756# include <limits.h>
17757#else
17758# include <assert.h>
17759#endif
17760
17761#undef $ac_func
17762
17763/* Override any GCC internal prototype to avoid an error.
17764 Use char because int might match the return type of a GCC
17765 builtin and then its argument prototype would still apply. */
17766#ifdef __cplusplus
17767extern "C"
17768#endif
17769char $ac_func ();
17770/* The GNU C library defines this for functions which it implements
17771 to always fail with ENOSYS. Some functions are actually named
17772 something starting with __ and the normal name is an alias. */
17773#if defined __stub_$ac_func || defined __stub___$ac_func
17774choke me
17775#endif
17776
17777int
17778main ()
17779{
17780return $ac_func ();
17781 ;
17782 return 0;
17783}
17784_ACEOF
17785rm -f conftest.$ac_objext conftest$ac_exeext
17786if { (ac_try="$ac_link"
17787case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17790esac
17791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_link") 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17800 { (case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17803esac
17804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_try") 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } &&
17809 { ac_try='test -s conftest$ac_exeext'
17810 { (case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813esac
17814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_try") 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 eval "$as_ac_var=yes"
17820else
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824 eval "$as_ac_var=no"
17825fi
17826
17827rm -f core conftest.err conftest.$ac_objext \
17828 conftest$ac_exeext conftest.$ac_ext
17829fi
17830ac_res=`eval echo '${'$as_ac_var'}'`
17831 { echo "$as_me:$LINENO: result: $ac_res" >&5
17832echo "${ECHO_T}$ac_res" >&6; }
17833if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017834 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017836_ACEOF
17837
17838fi
17839done
17840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017841{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17842echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17843if test "${llvm_cv_c_printf_a+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017845else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017846 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017847ac_cpp='$CPP $CPPFLAGS'
17848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17850ac_compiler_gnu=$ac_cv_c_compiler_gnu
17851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017852 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017853 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017855 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017857 /* confdefs.h. */
17858_ACEOF
17859cat confdefs.h >>conftest.$ac_ext
17860cat >>conftest.$ac_ext <<_ACEOF
17861/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017862
John Criswella0137d32003-10-13 16:22:01 +000017863#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017864#include <stdlib.h>
17865
John Criswella0137d32003-10-13 16:22:01 +000017866int
17867main ()
17868{
17869
Reid Spencer2706f8c2004-09-19 23:53:36 +000017870volatile double A, B;
17871char Buffer[100];
17872A = 1;
17873A /= 10.0;
17874sprintf(Buffer, "%a", A);
17875B = atof(Buffer);
17876if (A != B)
17877 return (1);
17878if (A != 0x1.999999999999ap-4)
17879 return (1);
17880return (0);
John Criswella0137d32003-10-13 16:22:01 +000017881 ;
17882 return 0;
17883}
17884_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017885rm -f conftest$ac_exeext
17886if { (ac_try="$ac_link"
17887case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890esac
17891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_link") 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17896 { (case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17899esac
17900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_try") 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017905 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017906else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017907 echo "$as_me: program exited with status $ac_status" >&5
17908echo "$as_me: failed program was:" >&5
17909sed 's/^/| /' conftest.$ac_ext >&5
17910
17911( exit $ac_status )
17912llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017913fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017914rm -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 +000017915fi
Reid Spencera773bd52006-08-04 18:18:08 +000017916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017917
Reid Spencer2706f8c2004-09-19 23:53:36 +000017918 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017919ac_cpp='$CPP $CPPFLAGS'
17920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17922ac_compiler_gnu=$ac_cv_c_compiler_gnu
17923
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017925{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17926echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017927 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017929cat >>confdefs.h <<\_ACEOF
17930#define HAVE_PRINTF_A 1
17931_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017932
Reid Spencer2706f8c2004-09-19 23:53:36 +000017933 fi
John Criswella0137d32003-10-13 16:22:01 +000017934
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017936{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17937echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17938if test "${ac_cv_func_rand48+set}" = set; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017940else
Reid Spencera773bd52006-08-04 18:18:08 +000017941 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017942ac_cpp='$CXXCPP $CPPFLAGS'
17943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017947 cat >conftest.$ac_ext <<_ACEOF
17948/* confdefs.h. */
17949_ACEOF
17950cat confdefs.h >>conftest.$ac_ext
17951cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017952/* end confdefs.h. */
17953#include <stdlib.h>
17954int
17955main ()
17956{
17957srand48(0);lrand48();drand48();
17958 ;
17959 return 0;
17960}
17961_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017962rm -f conftest.$ac_objext
17963if { (ac_try="$ac_compile"
17964case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17967esac
17968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_compile") 2>conftest.er1
17970 ac_status=$?
17971 grep -v '^ *+' conftest.er1 >conftest.err
17972 rm -f conftest.er1
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } &&
17976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17977 { (case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17980esac
17981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_try") 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; } &&
17986 { ac_try='test -s conftest.$ac_objext'
17987 { (case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17990esac
17991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_try") 2>&5
17993 ac_status=$?
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017996 ac_cv_func_rand48=yes
17997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017998 echo "$as_me: failed program was:" >&5
17999sed 's/^/| /' conftest.$ac_ext >&5
18000
18001 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018003
Reid Spencera773bd52006-08-04 18:18:08 +000018004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018005 ac_ext=c
18006ac_cpp='$CPP $CPPFLAGS'
18007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18009ac_compiler_gnu=$ac_cv_c_compiler_gnu
18010
18011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018012{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18013echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018014
18015if test "$ac_cv_func_rand48" = "yes" ; then
18016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018017cat >>confdefs.h <<\_ACEOF
18018#define HAVE_RAND48 1
18019_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018020
18021fi
John Criswell0021c312004-02-13 21:57:29 +000018022
18023
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018024{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18025echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18026if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18028else
18029 cat >conftest.$ac_ext <<_ACEOF
18030/* confdefs.h. */
18031_ACEOF
18032cat confdefs.h >>conftest.$ac_ext
18033cat >>conftest.$ac_ext <<_ACEOF
18034/* end confdefs.h. */
18035$ac_includes_default
18036int
18037main ()
18038{
18039#ifndef strerror_s
18040 char *p = (char *) strerror_s;
18041 return !p;
18042#endif
18043
18044 ;
18045 return 0;
18046}
18047_ACEOF
18048rm -f conftest.$ac_objext
18049if { (ac_try="$ac_compile"
18050case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18053esac
18054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_compile") 2>conftest.er1
18056 ac_status=$?
18057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } &&
18062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18063 { (case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18066esac
18067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_try") 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; } &&
18072 { ac_try='test -s conftest.$ac_objext'
18073 { (case "(($ac_try" in
18074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075 *) ac_try_echo=$ac_try;;
18076esac
18077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18078 (eval "$ac_try") 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 ac_cv_have_decl_strerror_s=yes
18083else
18084 echo "$as_me: failed program was:" >&5
18085sed 's/^/| /' conftest.$ac_ext >&5
18086
18087 ac_cv_have_decl_strerror_s=no
18088fi
18089
18090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18091fi
18092{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18093echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18094if test $ac_cv_have_decl_strerror_s = yes; then
18095
18096cat >>confdefs.h <<_ACEOF
18097#define HAVE_DECL_STRERROR_S 1
18098_ACEOF
18099
18100
18101else
18102 cat >>confdefs.h <<_ACEOF
18103#define HAVE_DECL_STRERROR_S 0
18104_ACEOF
18105
18106
18107fi
18108
18109
18110
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018111if test "$llvm_cv_os_type" = "MingW" ; then
18112 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18113echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18114if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116else
18117 ac_check_lib_save_LIBS=$LIBS
18118LIBS="-lgcc $LIBS"
18119cat >conftest.$ac_ext <<_ACEOF
18120/* confdefs.h. */
18121_ACEOF
18122cat confdefs.h >>conftest.$ac_ext
18123cat >>conftest.$ac_ext <<_ACEOF
18124/* end confdefs.h. */
18125
18126/* Override any GCC internal prototype to avoid an error.
18127 Use char because int might match the return type of a GCC
18128 builtin and then its argument prototype would still apply. */
18129#ifdef __cplusplus
18130extern "C"
18131#endif
18132char _alloca ();
18133int
18134main ()
18135{
18136return _alloca ();
18137 ;
18138 return 0;
18139}
18140_ACEOF
18141rm -f conftest.$ac_objext conftest$ac_exeext
18142if { (ac_try="$ac_link"
18143case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18146esac
18147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_link") 2>conftest.er1
18149 ac_status=$?
18150 grep -v '^ *+' conftest.er1 >conftest.err
18151 rm -f conftest.er1
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156 { (case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18159esac
18160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_try") 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest$ac_exeext'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169esac
18170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_cv_lib_gcc__alloca=yes
18176else
18177 echo "$as_me: failed program was:" >&5
18178sed 's/^/| /' conftest.$ac_ext >&5
18179
18180 ac_cv_lib_gcc__alloca=no
18181fi
18182
18183rm -f core conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18185LIBS=$ac_check_lib_save_LIBS
18186fi
18187{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18188echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18189if test $ac_cv_lib_gcc__alloca = yes; then
18190
18191cat >>confdefs.h <<\_ACEOF
18192#define HAVE__ALLOCA 1
18193_ACEOF
18194
18195fi
18196
18197 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18198echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18199if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18201else
18202 ac_check_lib_save_LIBS=$LIBS
18203LIBS="-lgcc $LIBS"
18204cat >conftest.$ac_ext <<_ACEOF
18205/* confdefs.h. */
18206_ACEOF
18207cat confdefs.h >>conftest.$ac_ext
18208cat >>conftest.$ac_ext <<_ACEOF
18209/* end confdefs.h. */
18210
18211/* Override any GCC internal prototype to avoid an error.
18212 Use char because int might match the return type of a GCC
18213 builtin and then its argument prototype would still apply. */
18214#ifdef __cplusplus
18215extern "C"
18216#endif
18217char __alloca ();
18218int
18219main ()
18220{
18221return __alloca ();
18222 ;
18223 return 0;
18224}
18225_ACEOF
18226rm -f conftest.$ac_objext conftest$ac_exeext
18227if { (ac_try="$ac_link"
18228case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18231esac
18232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_link") 2>conftest.er1
18234 ac_status=$?
18235 grep -v '^ *+' conftest.er1 >conftest.err
18236 rm -f conftest.er1
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18241 { (case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244esac
18245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_try") 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18254esac
18255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_try") 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
18260 ac_cv_lib_gcc___alloca=yes
18261else
18262 echo "$as_me: failed program was:" >&5
18263sed 's/^/| /' conftest.$ac_ext >&5
18264
18265 ac_cv_lib_gcc___alloca=no
18266fi
18267
18268rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18270LIBS=$ac_check_lib_save_LIBS
18271fi
18272{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18273echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18274if test $ac_cv_lib_gcc___alloca = yes; then
18275
18276cat >>confdefs.h <<\_ACEOF
18277#define HAVE___ALLOCA 1
18278_ACEOF
18279
18280fi
18281
18282 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18283echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18284if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286else
18287 ac_check_lib_save_LIBS=$LIBS
18288LIBS="-lgcc $LIBS"
18289cat >conftest.$ac_ext <<_ACEOF
18290/* confdefs.h. */
18291_ACEOF
18292cat confdefs.h >>conftest.$ac_ext
18293cat >>conftest.$ac_ext <<_ACEOF
18294/* end confdefs.h. */
18295
18296/* Override any GCC internal prototype to avoid an error.
18297 Use char because int might match the return type of a GCC
18298 builtin and then its argument prototype would still apply. */
18299#ifdef __cplusplus
18300extern "C"
18301#endif
18302char __chkstk ();
18303int
18304main ()
18305{
18306return __chkstk ();
18307 ;
18308 return 0;
18309}
18310_ACEOF
18311rm -f conftest.$ac_objext conftest$ac_exeext
18312if { (ac_try="$ac_link"
18313case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316esac
18317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_link") 2>conftest.er1
18319 ac_status=$?
18320 grep -v '^ *+' conftest.er1 >conftest.err
18321 rm -f conftest.er1
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18326 { (case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329esac
18330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_try") 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest$ac_exeext'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339esac
18340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_cv_lib_gcc___chkstk=yes
18346else
18347 echo "$as_me: failed program was:" >&5
18348sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 ac_cv_lib_gcc___chkstk=no
18351fi
18352
18353rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18355LIBS=$ac_check_lib_save_LIBS
18356fi
18357{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18358echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18359if test $ac_cv_lib_gcc___chkstk = yes; then
18360
18361cat >>confdefs.h <<\_ACEOF
18362#define HAVE___CHKSTK 1
18363_ACEOF
18364
18365fi
18366
18367 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18368echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18369if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18371else
18372 ac_check_lib_save_LIBS=$LIBS
18373LIBS="-lgcc $LIBS"
18374cat >conftest.$ac_ext <<_ACEOF
18375/* confdefs.h. */
18376_ACEOF
18377cat confdefs.h >>conftest.$ac_ext
18378cat >>conftest.$ac_ext <<_ACEOF
18379/* end confdefs.h. */
18380
18381/* Override any GCC internal prototype to avoid an error.
18382 Use char because int might match the return type of a GCC
18383 builtin and then its argument prototype would still apply. */
18384#ifdef __cplusplus
18385extern "C"
18386#endif
18387char ___chkstk ();
18388int
18389main ()
18390{
18391return ___chkstk ();
18392 ;
18393 return 0;
18394}
18395_ACEOF
18396rm -f conftest.$ac_objext conftest$ac_exeext
18397if { (ac_try="$ac_link"
18398case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18401esac
18402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_link") 2>conftest.er1
18404 ac_status=$?
18405 grep -v '^ *+' conftest.er1 >conftest.err
18406 rm -f conftest.er1
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18414esac
18415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest$ac_exeext'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424esac
18425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 ac_cv_lib_gcc____chkstk=yes
18431else
18432 echo "$as_me: failed program was:" >&5
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
18435 ac_cv_lib_gcc____chkstk=no
18436fi
18437
18438rm -f core conftest.err conftest.$ac_objext \
18439 conftest$ac_exeext conftest.$ac_ext
18440LIBS=$ac_check_lib_save_LIBS
18441fi
18442{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18443echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18444if test $ac_cv_lib_gcc____chkstk = yes; then
18445
18446cat >>confdefs.h <<\_ACEOF
18447#define HAVE____CHKSTK 1
18448_ACEOF
18449
18450fi
18451
18452
18453 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18454echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18455if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18457else
18458 ac_check_lib_save_LIBS=$LIBS
18459LIBS="-lgcc $LIBS"
18460cat >conftest.$ac_ext <<_ACEOF
18461/* confdefs.h. */
18462_ACEOF
18463cat confdefs.h >>conftest.$ac_ext
18464cat >>conftest.$ac_ext <<_ACEOF
18465/* end confdefs.h. */
18466
18467/* Override any GCC internal prototype to avoid an error.
18468 Use char because int might match the return type of a GCC
18469 builtin and then its argument prototype would still apply. */
18470#ifdef __cplusplus
18471extern "C"
18472#endif
18473char __ashldi3 ();
18474int
18475main ()
18476{
18477return __ashldi3 ();
18478 ;
18479 return 0;
18480}
18481_ACEOF
18482rm -f conftest.$ac_objext conftest$ac_exeext
18483if { (ac_try="$ac_link"
18484case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18487esac
18488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_link") 2>conftest.er1
18490 ac_status=$?
18491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } &&
18496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500esac
18501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest$ac_exeext'
18507 { (case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510esac
18511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_try") 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_cv_lib_gcc___ashldi3=yes
18517else
18518 echo "$as_me: failed program was:" >&5
18519sed 's/^/| /' conftest.$ac_ext >&5
18520
18521 ac_cv_lib_gcc___ashldi3=no
18522fi
18523
18524rm -f core conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18526LIBS=$ac_check_lib_save_LIBS
18527fi
18528{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18529echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18530if test $ac_cv_lib_gcc___ashldi3 = yes; then
18531
18532cat >>confdefs.h <<\_ACEOF
18533#define HAVE___ASHLDI3 1
18534_ACEOF
18535
18536fi
18537
18538 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18539echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18540if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18542else
18543 ac_check_lib_save_LIBS=$LIBS
18544LIBS="-lgcc $LIBS"
18545cat >conftest.$ac_ext <<_ACEOF
18546/* confdefs.h. */
18547_ACEOF
18548cat confdefs.h >>conftest.$ac_ext
18549cat >>conftest.$ac_ext <<_ACEOF
18550/* end confdefs.h. */
18551
18552/* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18555#ifdef __cplusplus
18556extern "C"
18557#endif
18558char __ashrdi3 ();
18559int
18560main ()
18561{
18562return __ashrdi3 ();
18563 ;
18564 return 0;
18565}
18566_ACEOF
18567rm -f conftest.$ac_objext conftest$ac_exeext
18568if { (ac_try="$ac_link"
18569case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18572esac
18573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_link") 2>conftest.er1
18575 ac_status=$?
18576 grep -v '^ *+' conftest.er1 >conftest.err
18577 rm -f conftest.er1
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18582 { (case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18585esac
18586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_try") 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try='test -s conftest$ac_exeext'
18592 { (case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18595esac
18596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_try") 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_lib_gcc___ashrdi3=yes
18602else
18603 echo "$as_me: failed program was:" >&5
18604sed 's/^/| /' conftest.$ac_ext >&5
18605
18606 ac_cv_lib_gcc___ashrdi3=no
18607fi
18608
18609rm -f core conftest.err conftest.$ac_objext \
18610 conftest$ac_exeext conftest.$ac_ext
18611LIBS=$ac_check_lib_save_LIBS
18612fi
18613{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18614echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18615if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18616
18617cat >>confdefs.h <<\_ACEOF
18618#define HAVE___ASHRDI3 1
18619_ACEOF
18620
18621fi
18622
18623 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18624echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18625if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18627else
18628 ac_check_lib_save_LIBS=$LIBS
18629LIBS="-lgcc $LIBS"
18630cat >conftest.$ac_ext <<_ACEOF
18631/* confdefs.h. */
18632_ACEOF
18633cat confdefs.h >>conftest.$ac_ext
18634cat >>conftest.$ac_ext <<_ACEOF
18635/* end confdefs.h. */
18636
18637/* Override any GCC internal prototype to avoid an error.
18638 Use char because int might match the return type of a GCC
18639 builtin and then its argument prototype would still apply. */
18640#ifdef __cplusplus
18641extern "C"
18642#endif
18643char __divdi3 ();
18644int
18645main ()
18646{
18647return __divdi3 ();
18648 ;
18649 return 0;
18650}
18651_ACEOF
18652rm -f conftest.$ac_objext conftest$ac_exeext
18653if { (ac_try="$ac_link"
18654case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657esac
18658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_link") 2>conftest.er1
18660 ac_status=$?
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18670esac
18671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest$ac_exeext'
18677 { (case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18680esac
18681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_try") 2>&5
18683 ac_status=$?
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
18686 ac_cv_lib_gcc___divdi3=yes
18687else
18688 echo "$as_me: failed program was:" >&5
18689sed 's/^/| /' conftest.$ac_ext >&5
18690
18691 ac_cv_lib_gcc___divdi3=no
18692fi
18693
18694rm -f core conftest.err conftest.$ac_objext \
18695 conftest$ac_exeext conftest.$ac_ext
18696LIBS=$ac_check_lib_save_LIBS
18697fi
18698{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18699echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18700if test $ac_cv_lib_gcc___divdi3 = yes; then
18701
18702cat >>confdefs.h <<\_ACEOF
18703#define HAVE___DIVDI3 1
18704_ACEOF
18705
18706fi
18707
18708 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18709echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18710if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712else
18713 ac_check_lib_save_LIBS=$LIBS
18714LIBS="-lgcc $LIBS"
18715cat >conftest.$ac_ext <<_ACEOF
18716/* confdefs.h. */
18717_ACEOF
18718cat confdefs.h >>conftest.$ac_ext
18719cat >>conftest.$ac_ext <<_ACEOF
18720/* end confdefs.h. */
18721
18722/* Override any GCC internal prototype to avoid an error.
18723 Use char because int might match the return type of a GCC
18724 builtin and then its argument prototype would still apply. */
18725#ifdef __cplusplus
18726extern "C"
18727#endif
18728char __fixdfdi ();
18729int
18730main ()
18731{
18732return __fixdfdi ();
18733 ;
18734 return 0;
18735}
18736_ACEOF
18737rm -f conftest.$ac_objext conftest$ac_exeext
18738if { (ac_try="$ac_link"
18739case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742esac
18743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_link") 2>conftest.er1
18745 ac_status=$?
18746 grep -v '^ *+' conftest.er1 >conftest.err
18747 rm -f conftest.er1
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18755esac
18756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18765esac
18766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_try") 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_lib_gcc___fixdfdi=yes
18772else
18773 echo "$as_me: failed program was:" >&5
18774sed 's/^/| /' conftest.$ac_ext >&5
18775
18776 ac_cv_lib_gcc___fixdfdi=no
18777fi
18778
18779rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18781LIBS=$ac_check_lib_save_LIBS
18782fi
18783{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18784echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18785if test $ac_cv_lib_gcc___fixdfdi = yes; then
18786
18787cat >>confdefs.h <<\_ACEOF
18788#define HAVE___FIXDFDI 1
18789_ACEOF
18790
18791fi
18792
18793 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18794echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18795if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18797else
18798 ac_check_lib_save_LIBS=$LIBS
18799LIBS="-lgcc $LIBS"
18800cat >conftest.$ac_ext <<_ACEOF
18801/* confdefs.h. */
18802_ACEOF
18803cat confdefs.h >>conftest.$ac_ext
18804cat >>conftest.$ac_ext <<_ACEOF
18805/* end confdefs.h. */
18806
18807/* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18810#ifdef __cplusplus
18811extern "C"
18812#endif
18813char __fixsfdi ();
18814int
18815main ()
18816{
18817return __fixsfdi ();
18818 ;
18819 return 0;
18820}
18821_ACEOF
18822rm -f conftest.$ac_objext conftest$ac_exeext
18823if { (ac_try="$ac_link"
18824case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18827esac
18828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_link") 2>conftest.er1
18830 ac_status=$?
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18837 { (case "(($ac_try" in
18838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839 *) ac_try_echo=$ac_try;;
18840esac
18841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842 (eval "$ac_try") 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest$ac_exeext'
18847 { (case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18850esac
18851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_try") 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_cv_lib_gcc___fixsfdi=yes
18857else
18858 echo "$as_me: failed program was:" >&5
18859sed 's/^/| /' conftest.$ac_ext >&5
18860
18861 ac_cv_lib_gcc___fixsfdi=no
18862fi
18863
18864rm -f core conftest.err conftest.$ac_objext \
18865 conftest$ac_exeext conftest.$ac_ext
18866LIBS=$ac_check_lib_save_LIBS
18867fi
18868{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18869echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18870if test $ac_cv_lib_gcc___fixsfdi = yes; then
18871
18872cat >>confdefs.h <<\_ACEOF
18873#define HAVE___FIXSFDI 1
18874_ACEOF
18875
18876fi
18877
18878 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18879echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18880if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18882else
18883 ac_check_lib_save_LIBS=$LIBS
18884LIBS="-lgcc $LIBS"
18885cat >conftest.$ac_ext <<_ACEOF
18886/* confdefs.h. */
18887_ACEOF
18888cat confdefs.h >>conftest.$ac_ext
18889cat >>conftest.$ac_ext <<_ACEOF
18890/* end confdefs.h. */
18891
18892/* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
18895#ifdef __cplusplus
18896extern "C"
18897#endif
18898char __floatdidf ();
18899int
18900main ()
18901{
18902return __floatdidf ();
18903 ;
18904 return 0;
18905}
18906_ACEOF
18907rm -f conftest.$ac_objext conftest$ac_exeext
18908if { (ac_try="$ac_link"
18909case "(($ac_try" in
18910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911 *) ac_try_echo=$ac_try;;
18912esac
18913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914 (eval "$ac_link") 2>conftest.er1
18915 ac_status=$?
18916 grep -v '^ *+' conftest.er1 >conftest.err
18917 rm -f conftest.er1
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925esac
18926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest$ac_exeext'
18932 { (case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18935esac
18936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_try") 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; }; then
18941 ac_cv_lib_gcc___floatdidf=yes
18942else
18943 echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
18946 ac_cv_lib_gcc___floatdidf=no
18947fi
18948
18949rm -f core conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18951LIBS=$ac_check_lib_save_LIBS
18952fi
18953{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18954echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18955if test $ac_cv_lib_gcc___floatdidf = yes; then
18956
18957cat >>confdefs.h <<\_ACEOF
18958#define HAVE___FLOATDIDF 1
18959_ACEOF
18960
18961fi
18962
18963 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18964echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18965if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18967else
18968 ac_check_lib_save_LIBS=$LIBS
18969LIBS="-lgcc $LIBS"
18970cat >conftest.$ac_ext <<_ACEOF
18971/* confdefs.h. */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h. */
18976
18977/* Override any GCC internal prototype to avoid an error.
18978 Use char because int might match the return type of a GCC
18979 builtin and then its argument prototype would still apply. */
18980#ifdef __cplusplus
18981extern "C"
18982#endif
18983char __lshrdi3 ();
18984int
18985main ()
18986{
18987return __lshrdi3 ();
18988 ;
18989 return 0;
18990}
18991_ACEOF
18992rm -f conftest.$ac_objext conftest$ac_exeext
18993if { (ac_try="$ac_link"
18994case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18997esac
18998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_link") 2>conftest.er1
19000 ac_status=$?
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19007 { (case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19010esac
19011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_try") 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; } &&
19016 { ac_try='test -s conftest$ac_exeext'
19017 { (case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19020esac
19021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_try") 2>&5
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 ac_cv_lib_gcc___lshrdi3=yes
19027else
19028 echo "$as_me: failed program was:" >&5
19029sed 's/^/| /' conftest.$ac_ext >&5
19030
19031 ac_cv_lib_gcc___lshrdi3=no
19032fi
19033
19034rm -f core conftest.err conftest.$ac_objext \
19035 conftest$ac_exeext conftest.$ac_ext
19036LIBS=$ac_check_lib_save_LIBS
19037fi
19038{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19039echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19040if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19041
19042cat >>confdefs.h <<\_ACEOF
19043#define HAVE___LSHRDI3 1
19044_ACEOF
19045
19046fi
19047
19048 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19049echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19050if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19052else
19053 ac_check_lib_save_LIBS=$LIBS
19054LIBS="-lgcc $LIBS"
19055cat >conftest.$ac_ext <<_ACEOF
19056/* confdefs.h. */
19057_ACEOF
19058cat confdefs.h >>conftest.$ac_ext
19059cat >>conftest.$ac_ext <<_ACEOF
19060/* end confdefs.h. */
19061
19062/* Override any GCC internal prototype to avoid an error.
19063 Use char because int might match the return type of a GCC
19064 builtin and then its argument prototype would still apply. */
19065#ifdef __cplusplus
19066extern "C"
19067#endif
19068char __moddi3 ();
19069int
19070main ()
19071{
19072return __moddi3 ();
19073 ;
19074 return 0;
19075}
19076_ACEOF
19077rm -f conftest.$ac_objext conftest$ac_exeext
19078if { (ac_try="$ac_link"
19079case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19082esac
19083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_link") 2>conftest.er1
19085 ac_status=$?
19086 grep -v '^ *+' conftest.er1 >conftest.err
19087 rm -f conftest.er1
19088 cat conftest.err >&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } &&
19091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19092 { (case "(($ac_try" in
19093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19095esac
19096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097 (eval "$ac_try") 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; } &&
19101 { ac_try='test -s conftest$ac_exeext'
19102 { (case "(($ac_try" in
19103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19105esac
19106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_try") 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_cv_lib_gcc___moddi3=yes
19112else
19113 echo "$as_me: failed program was:" >&5
19114sed 's/^/| /' conftest.$ac_ext >&5
19115
19116 ac_cv_lib_gcc___moddi3=no
19117fi
19118
19119rm -f core conftest.err conftest.$ac_objext \
19120 conftest$ac_exeext conftest.$ac_ext
19121LIBS=$ac_check_lib_save_LIBS
19122fi
19123{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19124echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19125if test $ac_cv_lib_gcc___moddi3 = yes; then
19126
19127cat >>confdefs.h <<\_ACEOF
19128#define HAVE___MODDI3 1
19129_ACEOF
19130
19131fi
19132
19133 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19134echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19135if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19137else
19138 ac_check_lib_save_LIBS=$LIBS
19139LIBS="-lgcc $LIBS"
19140cat >conftest.$ac_ext <<_ACEOF
19141/* confdefs.h. */
19142_ACEOF
19143cat confdefs.h >>conftest.$ac_ext
19144cat >>conftest.$ac_ext <<_ACEOF
19145/* end confdefs.h. */
19146
19147/* Override any GCC internal prototype to avoid an error.
19148 Use char because int might match the return type of a GCC
19149 builtin and then its argument prototype would still apply. */
19150#ifdef __cplusplus
19151extern "C"
19152#endif
19153char __udivdi3 ();
19154int
19155main ()
19156{
19157return __udivdi3 ();
19158 ;
19159 return 0;
19160}
19161_ACEOF
19162rm -f conftest.$ac_objext conftest$ac_exeext
19163if { (ac_try="$ac_link"
19164case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19167esac
19168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_link") 2>conftest.er1
19170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
19176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19177 { (case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19180esac
19181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_try") 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest$ac_exeext'
19187 { (case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19190esac
19191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_try") 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196 ac_cv_lib_gcc___udivdi3=yes
19197else
19198 echo "$as_me: failed program was:" >&5
19199sed 's/^/| /' conftest.$ac_ext >&5
19200
19201 ac_cv_lib_gcc___udivdi3=no
19202fi
19203
19204rm -f core conftest.err conftest.$ac_objext \
19205 conftest$ac_exeext conftest.$ac_ext
19206LIBS=$ac_check_lib_save_LIBS
19207fi
19208{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19209echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19210if test $ac_cv_lib_gcc___udivdi3 = yes; then
19211
19212cat >>confdefs.h <<\_ACEOF
19213#define HAVE___UDIVDI3 1
19214_ACEOF
19215
19216fi
19217
19218 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19219echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19220if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19222else
19223 ac_check_lib_save_LIBS=$LIBS
19224LIBS="-lgcc $LIBS"
19225cat >conftest.$ac_ext <<_ACEOF
19226/* confdefs.h. */
19227_ACEOF
19228cat confdefs.h >>conftest.$ac_ext
19229cat >>conftest.$ac_ext <<_ACEOF
19230/* end confdefs.h. */
19231
19232/* Override any GCC internal prototype to avoid an error.
19233 Use char because int might match the return type of a GCC
19234 builtin and then its argument prototype would still apply. */
19235#ifdef __cplusplus
19236extern "C"
19237#endif
19238char __umoddi3 ();
19239int
19240main ()
19241{
19242return __umoddi3 ();
19243 ;
19244 return 0;
19245}
19246_ACEOF
19247rm -f conftest.$ac_objext conftest$ac_exeext
19248if { (ac_try="$ac_link"
19249case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19252esac
19253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254 (eval "$ac_link") 2>conftest.er1
19255 ac_status=$?
19256 grep -v '^ *+' conftest.er1 >conftest.err
19257 rm -f conftest.er1
19258 cat conftest.err >&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } &&
19261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19262 { (case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19265esac
19266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_try") 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try='test -s conftest$ac_exeext'
19272 { (case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19275esac
19276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_try") 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281 ac_cv_lib_gcc___umoddi3=yes
19282else
19283 echo "$as_me: failed program was:" >&5
19284sed 's/^/| /' conftest.$ac_ext >&5
19285
19286 ac_cv_lib_gcc___umoddi3=no
19287fi
19288
19289rm -f core conftest.err conftest.$ac_objext \
19290 conftest$ac_exeext conftest.$ac_ext
19291LIBS=$ac_check_lib_save_LIBS
19292fi
19293{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19294echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19295if test $ac_cv_lib_gcc___umoddi3 = yes; then
19296
19297cat >>confdefs.h <<\_ACEOF
19298#define HAVE___UMODDI3 1
19299_ACEOF
19300
19301fi
19302
19303
19304 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19305echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19306if test "${ac_cv_lib_gcc___main+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19308else
19309 ac_check_lib_save_LIBS=$LIBS
19310LIBS="-lgcc $LIBS"
19311cat >conftest.$ac_ext <<_ACEOF
19312/* confdefs.h. */
19313_ACEOF
19314cat confdefs.h >>conftest.$ac_ext
19315cat >>conftest.$ac_ext <<_ACEOF
19316/* end confdefs.h. */
19317
19318/* Override any GCC internal prototype to avoid an error.
19319 Use char because int might match the return type of a GCC
19320 builtin and then its argument prototype would still apply. */
19321#ifdef __cplusplus
19322extern "C"
19323#endif
19324char __main ();
19325int
19326main ()
19327{
19328return __main ();
19329 ;
19330 return 0;
19331}
19332_ACEOF
19333rm -f conftest.$ac_objext conftest$ac_exeext
19334if { (ac_try="$ac_link"
19335case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19338esac
19339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_link") 2>conftest.er1
19341 ac_status=$?
19342 grep -v '^ *+' conftest.er1 >conftest.err
19343 rm -f conftest.er1
19344 cat conftest.err >&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } &&
19347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19348 { (case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19351esac
19352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_try") 2>&5
19354 ac_status=$?
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } &&
19357 { ac_try='test -s conftest$ac_exeext'
19358 { (case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361esac
19362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_try") 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_lib_gcc___main=yes
19368else
19369 echo "$as_me: failed program was:" >&5
19370sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 ac_cv_lib_gcc___main=no
19373fi
19374
19375rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377LIBS=$ac_check_lib_save_LIBS
19378fi
19379{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19380echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19381if test $ac_cv_lib_gcc___main = yes; then
19382
19383cat >>confdefs.h <<\_ACEOF
19384#define HAVE___MAIN 1
19385_ACEOF
19386
19387fi
19388
19389 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19390echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19391if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19393else
19394 ac_check_lib_save_LIBS=$LIBS
19395LIBS="-lgcc $LIBS"
19396cat >conftest.$ac_ext <<_ACEOF
19397/* confdefs.h. */
19398_ACEOF
19399cat confdefs.h >>conftest.$ac_ext
19400cat >>conftest.$ac_ext <<_ACEOF
19401/* end confdefs.h. */
19402
19403/* Override any GCC internal prototype to avoid an error.
19404 Use char because int might match the return type of a GCC
19405 builtin and then its argument prototype would still apply. */
19406#ifdef __cplusplus
19407extern "C"
19408#endif
19409char __cmpdi2 ();
19410int
19411main ()
19412{
19413return __cmpdi2 ();
19414 ;
19415 return 0;
19416}
19417_ACEOF
19418rm -f conftest.$ac_objext conftest$ac_exeext
19419if { (ac_try="$ac_link"
19420case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19423esac
19424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_link") 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19433 { (case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19436esac
19437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_try") 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest$ac_exeext'
19443 { (case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19446esac
19447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_try") 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_cv_lib_gcc___cmpdi2=yes
19453else
19454 echo "$as_me: failed program was:" >&5
19455sed 's/^/| /' conftest.$ac_ext >&5
19456
19457 ac_cv_lib_gcc___cmpdi2=no
19458fi
19459
19460rm -f core conftest.err conftest.$ac_objext \
19461 conftest$ac_exeext conftest.$ac_ext
19462LIBS=$ac_check_lib_save_LIBS
19463fi
19464{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19465echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19466if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19467
19468cat >>confdefs.h <<\_ACEOF
19469#define HAVE___CMPDI2 1
19470_ACEOF
19471
19472fi
19473
19474fi
19475
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019476if test "$llvm_cv_os_type" = "MingW" ; then
19477 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19478echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19479 cat >conftest.$ac_ext <<_ACEOF
19480#include <windows.h>
19481#include <imagehlp.h>
19482extern void foo(PENUMLOADED_MODULES_CALLBACK);
19483extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19484_ACEOF
19485rm -f conftest.$ac_objext
19486if { (ac_try="$ac_compile"
19487case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19490esac
19491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_compile") 2>conftest.er1
19493 ac_status=$?
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
19499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19500 { (case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19503esac
19504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_try") 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest.$ac_objext'
19510 { (case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19513esac
19514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_try") 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19519
19520 { echo "$as_me:$LINENO: result: yes" >&5
19521echo "${ECHO_T}yes" >&6; }
19522 llvm_cv_win32_elmcb_pcstr="PCSTR"
19523
19524else
19525 echo "$as_me: failed program was:" >&5
19526sed 's/^/| /' conftest.$ac_ext >&5
19527
19528
19529 { echo "$as_me:$LINENO: result: no" >&5
19530echo "${ECHO_T}no" >&6; }
19531 llvm_cv_win32_elmcb_pcstr="PSTR"
19532
19533fi
19534
19535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536
19537cat >>confdefs.h <<_ACEOF
19538#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19539_ACEOF
19540
19541fi
19542
Torok Edwin871384f2010-01-26 08:50:50 +000019543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019544{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19545echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19546if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019548else
Reid Spencera773bd52006-08-04 18:18:08 +000019549 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019550ac_cpp='$CXXCPP $CPPFLAGS'
19551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019555 cat >conftest.$ac_ext <<_ACEOF
19556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019560/* end confdefs.h. */
19561#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019562int
19563main ()
19564{
19565float f; isnan(f);
19566 ;
19567 return 0;
19568}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019569_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570rm -f conftest.$ac_objext
19571if { (ac_try="$ac_compile"
19572case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19575esac
19576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_compile") 2>conftest.er1
19578 ac_status=$?
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
19584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19585 { (case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19588esac
19589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_try") 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try='test -s conftest.$ac_objext'
19595 { (case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19598esac
19599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600 (eval "$ac_try") 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019604 ac_cv_func_isnan_in_math_h=yes
19605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019611
Reid Spencera773bd52006-08-04 18:18:08 +000019612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019613 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019614ac_cpp='$CPP $CPPFLAGS'
19615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617ac_compiler_gnu=$ac_cv_c_compiler_gnu
19618
19619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019620{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19621echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019622
19623
19624if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019626cat >>confdefs.h <<\_ACEOF
19627#define HAVE_ISNAN_IN_MATH_H 1
19628_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019629
Reid Spencerabec8f92004-10-27 23:03:44 +000019630fi
19631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019632{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19633echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19634if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019636else
Reid Spencera773bd52006-08-04 18:18:08 +000019637 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019638ac_cpp='$CXXCPP $CPPFLAGS'
19639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019643 cat >conftest.$ac_ext <<_ACEOF
19644/* confdefs.h. */
19645_ACEOF
19646cat confdefs.h >>conftest.$ac_ext
19647cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019648/* end confdefs.h. */
19649#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019650int
19651main ()
19652{
19653float f; isnan(f);
19654 ;
19655 return 0;
19656}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019657_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019658rm -f conftest.$ac_objext
19659if { (ac_try="$ac_compile"
19660case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19663esac
19664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_compile") 2>conftest.er1
19666 ac_status=$?
19667 grep -v '^ *+' conftest.er1 >conftest.err
19668 rm -f conftest.er1
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } &&
19672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19673 { (case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19676esac
19677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_try") 2>&5
19679 ac_status=$?
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; } &&
19682 { ac_try='test -s conftest.$ac_objext'
19683 { (case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19686esac
19687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_try") 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019692 ac_cv_func_isnan_in_cmath=yes
19693else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019694 echo "$as_me: failed program was:" >&5
19695sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019699
Reid Spencera773bd52006-08-04 18:18:08 +000019700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019701 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019702ac_cpp='$CPP $CPPFLAGS'
19703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19705ac_compiler_gnu=$ac_cv_c_compiler_gnu
19706
19707fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019708{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19709echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019710
19711if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019713cat >>confdefs.h <<\_ACEOF
19714#define HAVE_ISNAN_IN_CMATH 1
19715_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019716
Reid Spencerabec8f92004-10-27 23:03:44 +000019717fi
19718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019719{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19720echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19721if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019723else
Reid Spencera773bd52006-08-04 18:18:08 +000019724 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019725ac_cpp='$CXXCPP $CPPFLAGS'
19726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730 cat >conftest.$ac_ext <<_ACEOF
19731/* confdefs.h. */
19732_ACEOF
19733cat confdefs.h >>conftest.$ac_ext
19734cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019735/* end confdefs.h. */
19736#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019737int
19738main ()
19739{
19740float f; std::isnan(f);
19741 ;
19742 return 0;
19743}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019744_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019745rm -f conftest.$ac_objext
19746if { (ac_try="$ac_compile"
19747case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19750esac
19751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_compile") 2>conftest.er1
19753 ac_status=$?
19754 grep -v '^ *+' conftest.er1 >conftest.err
19755 rm -f conftest.er1
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } &&
19759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19760 { (case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19763esac
19764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_try") 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
19770 { (case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19773esac
19774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_try") 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019779 ac_cv_func_std_isnan_in_cmath=yes
19780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019781 echo "$as_me: failed program was:" >&5
19782sed 's/^/| /' conftest.$ac_ext >&5
19783
19784 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019786
Reid Spencera773bd52006-08-04 18:18:08 +000019787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019788 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019789ac_cpp='$CPP $CPPFLAGS'
19790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19792ac_compiler_gnu=$ac_cv_c_compiler_gnu
19793
19794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019795{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19796echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019797
19798if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019800cat >>confdefs.h <<\_ACEOF
19801#define HAVE_STD_ISNAN_IN_CMATH 1
19802_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019803
Reid Spencerabec8f92004-10-27 23:03:44 +000019804fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019805
19806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019807{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19808echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19809if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019811else
Reid Spencera773bd52006-08-04 18:18:08 +000019812 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019813ac_cpp='$CXXCPP $CPPFLAGS'
19814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019818 cat >conftest.$ac_ext <<_ACEOF
19819/* confdefs.h. */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019823/* end confdefs.h. */
19824#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019825int
19826main ()
19827{
19828float f; isinf(f);
19829 ;
19830 return 0;
19831}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019832_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019833rm -f conftest.$ac_objext
19834if { (ac_try="$ac_compile"
19835case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838esac
19839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_compile") 2>conftest.er1
19841 ac_status=$?
19842 grep -v '^ *+' conftest.er1 >conftest.err
19843 rm -f conftest.er1
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19848 { (case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19851esac
19852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_try") 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest.$ac_objext'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861esac
19862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019867 ac_cv_func_isinf_in_math_h=yes
19868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019869 echo "$as_me: failed program was:" >&5
19870sed 's/^/| /' conftest.$ac_ext >&5
19871
19872 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019874
Reid Spencera773bd52006-08-04 18:18:08 +000019875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019876 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019877ac_cpp='$CPP $CPPFLAGS'
19878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880ac_compiler_gnu=$ac_cv_c_compiler_gnu
19881
19882fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019883{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19884echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019885
19886if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019888cat >>confdefs.h <<\_ACEOF
19889#define HAVE_ISINF_IN_MATH_H 1
19890_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019891
Reid Spencerabec8f92004-10-27 23:03:44 +000019892fi
19893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019894{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19895echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19896if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019898else
Reid Spencera773bd52006-08-04 18:18:08 +000019899 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019900ac_cpp='$CXXCPP $CPPFLAGS'
19901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019905 cat >conftest.$ac_ext <<_ACEOF
19906/* confdefs.h. */
19907_ACEOF
19908cat confdefs.h >>conftest.$ac_ext
19909cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019910/* end confdefs.h. */
19911#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019912int
19913main ()
19914{
19915float f; isinf(f);
19916 ;
19917 return 0;
19918}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019919_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019920rm -f conftest.$ac_objext
19921if { (ac_try="$ac_compile"
19922case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925esac
19926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_compile") 2>conftest.er1
19928 ac_status=$?
19929 grep -v '^ *+' conftest.er1 >conftest.err
19930 rm -f conftest.er1
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19935 { (case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19938esac
19939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_try") 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest.$ac_objext'
19945 { (case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948esac
19949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_try") 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019954 ac_cv_func_isinf_in_cmath=yes
19955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019956 echo "$as_me: failed program was:" >&5
19957sed 's/^/| /' conftest.$ac_ext >&5
19958
19959 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019960fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019961
Reid Spencera773bd52006-08-04 18:18:08 +000019962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019963 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019964ac_cpp='$CPP $CPPFLAGS'
19965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19967ac_compiler_gnu=$ac_cv_c_compiler_gnu
19968
19969fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019970{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19971echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019972
19973if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019975cat >>confdefs.h <<\_ACEOF
19976#define HAVE_ISINF_IN_CMATH 1
19977_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019978
Reid Spencerabec8f92004-10-27 23:03:44 +000019979fi
19980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019981{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19982echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19983if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019985else
Reid Spencera773bd52006-08-04 18:18:08 +000019986 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019987ac_cpp='$CXXCPP $CPPFLAGS'
19988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019992 cat >conftest.$ac_ext <<_ACEOF
19993/* confdefs.h. */
19994_ACEOF
19995cat confdefs.h >>conftest.$ac_ext
19996cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019997/* end confdefs.h. */
19998#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019999int
20000main ()
20001{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000020002float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000020003 ;
20004 return 0;
20005}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020006_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020007rm -f conftest.$ac_objext
20008if { (ac_try="$ac_compile"
20009case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20012esac
20013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014 (eval "$ac_compile") 2>conftest.er1
20015 ac_status=$?
20016 grep -v '^ *+' conftest.er1 >conftest.err
20017 rm -f conftest.er1
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } &&
20021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20022 { (case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20025esac
20026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027 (eval "$ac_try") 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest.$ac_objext'
20032 { (case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20035esac
20036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_try") 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020041 ac_cv_func_std_isinf_in_cmath=yes
20042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020043 echo "$as_me: failed program was:" >&5
20044sed 's/^/| /' conftest.$ac_ext >&5
20045
20046 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020047fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020048
Reid Spencera773bd52006-08-04 18:18:08 +000020049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020050 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020051ac_cpp='$CPP $CPPFLAGS'
20052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20054ac_compiler_gnu=$ac_cv_c_compiler_gnu
20055
20056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020057{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20058echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020059
20060if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020062cat >>confdefs.h <<\_ACEOF
20063#define HAVE_STD_ISINF_IN_CMATH 1
20064_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020065
Reid Spencerabec8f92004-10-27 23:03:44 +000020066fi
20067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020068{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20069echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20070if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020072else
Reid Spencera773bd52006-08-04 18:18:08 +000020073 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020074ac_cpp='$CXXCPP $CPPFLAGS'
20075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020079 cat >conftest.$ac_ext <<_ACEOF
20080/* confdefs.h. */
20081_ACEOF
20082cat confdefs.h >>conftest.$ac_ext
20083cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020084/* end confdefs.h. */
20085#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020086int
20087main ()
20088{
20089float f; finite(f);
20090 ;
20091 return 0;
20092}
Brian Gaeked59a6472004-07-21 03:33:58 +000020093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020094rm -f conftest.$ac_objext
20095if { (ac_try="$ac_compile"
20096case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099esac
20100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_compile") 2>conftest.er1
20102 ac_status=$?
20103 grep -v '^ *+' conftest.er1 >conftest.err
20104 rm -f conftest.er1
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } &&
20108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20109 { (case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20112esac
20113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_try") 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest.$ac_objext'
20119 { (case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122esac
20123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_try") 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020128 ac_cv_func_finite_in_ieeefp_h=yes
20129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020130 echo "$as_me: failed program was:" >&5
20131sed 's/^/| /' conftest.$ac_ext >&5
20132
20133 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020135
Reid Spencera773bd52006-08-04 18:18:08 +000020136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020137 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020138ac_cpp='$CPP $CPPFLAGS'
20139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20141ac_compiler_gnu=$ac_cv_c_compiler_gnu
20142
20143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020144{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20145echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020146
Brian Gaeke6802b552004-10-28 05:06:45 +000020147if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020149cat >>confdefs.h <<\_ACEOF
20150#define HAVE_FINITE_IN_IEEEFP_H 1
20151_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020152
Reid Spencerabec8f92004-10-27 23:03:44 +000020153fi
20154
20155
20156
Reid Spencer30fe5262007-01-20 07:48:49 +000020157if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020158
20159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020160for ac_header in stdlib.h unistd.h
20161do
20162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20168fi
20169ac_res=`eval echo '${'$as_ac_Header'}'`
20170 { echo "$as_me:$LINENO: result: $ac_res" >&5
20171echo "${ECHO_T}$ac_res" >&6; }
20172else
20173 # Is the header compilable?
20174{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20176cat >conftest.$ac_ext <<_ACEOF
20177/* confdefs.h. */
20178_ACEOF
20179cat confdefs.h >>conftest.$ac_ext
20180cat >>conftest.$ac_ext <<_ACEOF
20181/* end confdefs.h. */
20182$ac_includes_default
20183#include <$ac_header>
20184_ACEOF
20185rm -f conftest.$ac_objext
20186if { (ac_try="$ac_compile"
20187case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20190esac
20191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_compile") 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
20199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20200 { (case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20203esac
20204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_try") 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; } &&
20209 { ac_try='test -s conftest.$ac_objext'
20210 { (case "(($ac_try" in
20211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212 *) ac_try_echo=$ac_try;;
20213esac
20214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215 (eval "$ac_try") 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
20219 ac_header_compiler=yes
20220else
20221 echo "$as_me: failed program was:" >&5
20222sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020224 ac_header_compiler=no
20225fi
20226
20227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20229echo "${ECHO_T}$ac_header_compiler" >&6; }
20230
20231# Is the header present?
20232{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20234cat >conftest.$ac_ext <<_ACEOF
20235/* confdefs.h. */
20236_ACEOF
20237cat confdefs.h >>conftest.$ac_ext
20238cat >>conftest.$ac_ext <<_ACEOF
20239/* end confdefs.h. */
20240#include <$ac_header>
20241_ACEOF
20242if { (ac_try="$ac_cpp conftest.$ac_ext"
20243case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246esac
20247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20249 ac_status=$?
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } >/dev/null; then
20255 if test -s conftest.err; then
20256 ac_cpp_err=$ac_c_preproc_warn_flag
20257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20258 else
20259 ac_cpp_err=
20260 fi
20261else
20262 ac_cpp_err=yes
20263fi
20264if test -z "$ac_cpp_err"; then
20265 ac_header_preproc=yes
20266else
20267 echo "$as_me: failed program was:" >&5
20268sed 's/^/| /' conftest.$ac_ext >&5
20269
20270 ac_header_preproc=no
20271fi
20272
20273rm -f conftest.err conftest.$ac_ext
20274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20275echo "${ECHO_T}$ac_header_preproc" >&6; }
20276
20277# So? What about this header?
20278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20279 yes:no: )
20280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20284 ac_header_preproc=yes
20285 ;;
20286 no:yes:* )
20287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20299 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020300## ------------------------------------ ##
20301## Report this to http://llvm.org/bugs/ ##
20302## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020303_ASBOX
20304 ) | sed "s/^/$as_me: WARNING: /" >&2
20305 ;;
20306esac
20307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20311else
20312 eval "$as_ac_Header=\$ac_header_preproc"
20313fi
20314ac_res=`eval echo '${'$as_ac_Header'}'`
20315 { echo "$as_me:$LINENO: result: $ac_res" >&5
20316echo "${ECHO_T}$ac_res" >&6; }
20317
20318fi
20319if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020320 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020322_ACEOF
20323
20324fi
20325
20326done
20327
20328
20329for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020330do
20331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20332{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20334if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20336else
20337 cat >conftest.$ac_ext <<_ACEOF
20338/* confdefs.h. */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h. */
20343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20345#define $ac_func innocuous_$ac_func
20346
20347/* System header to define __stub macros and hopefully few prototypes,
20348 which can conflict with char $ac_func (); below.
20349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20350 <limits.h> exists even on freestanding compilers. */
20351
20352#ifdef __STDC__
20353# include <limits.h>
20354#else
20355# include <assert.h>
20356#endif
20357
20358#undef $ac_func
20359
20360/* Override any GCC internal prototype to avoid an error.
20361 Use char because int might match the return type of a GCC
20362 builtin and then its argument prototype would still apply. */
20363#ifdef __cplusplus
20364extern "C"
20365#endif
20366char $ac_func ();
20367/* The GNU C library defines this for functions which it implements
20368 to always fail with ENOSYS. Some functions are actually named
20369 something starting with __ and the normal name is an alias. */
20370#if defined __stub_$ac_func || defined __stub___$ac_func
20371choke me
20372#endif
20373
20374int
20375main ()
20376{
20377return $ac_func ();
20378 ;
20379 return 0;
20380}
20381_ACEOF
20382rm -f conftest.$ac_objext conftest$ac_exeext
20383if { (ac_try="$ac_link"
20384case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20387esac
20388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_link") 2>conftest.er1
20390 ac_status=$?
20391 grep -v '^ *+' conftest.er1 >conftest.err
20392 rm -f conftest.er1
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } &&
20396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20397 { (case "(($ac_try" in
20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20400esac
20401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_try") 2>&5
20403 ac_status=$?
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest$ac_exeext'
20407 { (case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20410esac
20411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_try") 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 eval "$as_ac_var=yes"
20417else
20418 echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 eval "$as_ac_var=no"
20422fi
20423
20424rm -f core conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20426fi
20427ac_res=`eval echo '${'$as_ac_var'}'`
20428 { echo "$as_me:$LINENO: result: $ac_res" >&5
20429echo "${ECHO_T}$ac_res" >&6; }
20430if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020431 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020433_ACEOF
20434
20435fi
20436done
20437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020438{ echo "$as_me:$LINENO: checking for working mmap" >&5
20439echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20440if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020443 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020444 ac_cv_func_mmap_fixed_mapped=no
20445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020446 cat >conftest.$ac_ext <<_ACEOF
20447/* confdefs.h. */
20448_ACEOF
20449cat confdefs.h >>conftest.$ac_ext
20450cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020452$ac_includes_default
20453/* malloc might have been renamed as rpl_malloc. */
20454#undef malloc
20455
20456/* Thanks to Mike Haertel and Jim Avera for this test.
20457 Here is a matrix of mmap possibilities:
20458 mmap private not fixed
20459 mmap private fixed at somewhere currently unmapped
20460 mmap private fixed at somewhere already mapped
20461 mmap shared not fixed
20462 mmap shared fixed at somewhere currently unmapped
20463 mmap shared fixed at somewhere already mapped
20464 For private mappings, we should verify that changes cannot be read()
20465 back from the file, nor mmap's back from the file at a different
20466 address. (There have been systems where private was not correctly
20467 implemented like the infamous i386 svr4.0, and systems where the
20468 VM page cache was not coherent with the file system buffer cache
20469 like early versions of FreeBSD and possibly contemporary NetBSD.)
20470 For shared mappings, we should conversely verify that changes get
20471 propagated back to all the places they're supposed to be.
20472
20473 Grep wants private fixed already mapped.
20474 The main things grep needs to know about mmap are:
20475 * does it exist and is it safe to write into the mmap'd area
20476 * how to use it (BSD variants) */
20477
20478#include <fcntl.h>
20479#include <sys/mman.h>
20480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020482char *malloc ();
20483#endif
20484
20485/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020486#if !HAVE_GETPAGESIZE
20487/* Assume that all systems that can run configure have sys/param.h. */
20488# if !HAVE_SYS_PARAM_H
20489# define HAVE_SYS_PARAM_H 1
20490# endif
20491
John Criswell7a73b802003-06-30 21:59:07 +000020492# ifdef _SC_PAGESIZE
20493# define getpagesize() sysconf(_SC_PAGESIZE)
20494# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020495# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020496# include <sys/param.h>
20497# ifdef EXEC_PAGESIZE
20498# define getpagesize() EXEC_PAGESIZE
20499# else /* no EXEC_PAGESIZE */
20500# ifdef NBPG
20501# define getpagesize() NBPG * CLSIZE
20502# ifndef CLSIZE
20503# define CLSIZE 1
20504# endif /* no CLSIZE */
20505# else /* no NBPG */
20506# ifdef NBPC
20507# define getpagesize() NBPC
20508# else /* no NBPC */
20509# ifdef PAGESIZE
20510# define getpagesize() PAGESIZE
20511# endif /* PAGESIZE */
20512# endif /* no NBPC */
20513# endif /* no NBPG */
20514# endif /* no EXEC_PAGESIZE */
20515# else /* no HAVE_SYS_PARAM_H */
20516# define getpagesize() 8192 /* punt totally */
20517# endif /* no HAVE_SYS_PARAM_H */
20518# endif /* no _SC_PAGESIZE */
20519
20520#endif /* no HAVE_GETPAGESIZE */
20521
20522int
20523main ()
20524{
20525 char *data, *data2, *data3;
20526 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020527 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020528
20529 pagesize = getpagesize ();
20530
20531 /* First, make a file with some known garbage in it. */
20532 data = (char *) malloc (pagesize);
20533 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020534 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020535 for (i = 0; i < pagesize; ++i)
20536 *(data + i) = rand ();
20537 umask (0);
20538 fd = creat ("conftest.mmap", 0600);
20539 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020540 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020541 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020542 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020543 close (fd);
20544
20545 /* Next, try to mmap the file at a fixed address which already has
20546 something else allocated at it. If we can, also make sure that
20547 we see the same garbage. */
20548 fd = open ("conftest.mmap", O_RDWR);
20549 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020550 return 1;
20551 data2 = (char *) malloc (2 * pagesize);
20552 if (!data2)
20553 return 1;
20554 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020555 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020556 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020557 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020558 for (i = 0; i < pagesize; ++i)
20559 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020560 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020561
20562 /* Finally, make sure that changes to the mapped area do not
20563 percolate back to the file as seen by read(). (This is a bug on
20564 some variants of i386 svr4.0.) */
20565 for (i = 0; i < pagesize; ++i)
20566 *(data2 + i) = *(data2 + i) + 1;
20567 data3 = (char *) malloc (pagesize);
20568 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020569 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020570 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020572 for (i = 0; i < pagesize; ++i)
20573 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020575 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020576 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020577}
20578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020579rm -f conftest$ac_exeext
20580if { (ac_try="$ac_link"
20581case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20584esac
20585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_link") 2>&5
20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20590 { (case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20593esac
20594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_try") 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020599 ac_cv_func_mmap_fixed_mapped=yes
20600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020601 echo "$as_me: program exited with status $ac_status" >&5
20602echo "$as_me: failed program was:" >&5
20603sed 's/^/| /' conftest.$ac_ext >&5
20604
20605( exit $ac_status )
20606ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020608rm -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 +000020609fi
Reid Spencera773bd52006-08-04 18:18:08 +000020610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020611
John Criswell7a73b802003-06-30 21:59:07 +000020612fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020613{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20614echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020615if test $ac_cv_func_mmap_fixed_mapped = yes; then
20616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020617cat >>confdefs.h <<\_ACEOF
20618#define HAVE_MMAP 1
20619_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020620
20621fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020622rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020624 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20625echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20626if test "${ac_cv_func_mmap_file+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020628else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020629 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020630ac_cpp='$CPP $CPPFLAGS'
20631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20633ac_compiler_gnu=$ac_cv_c_compiler_gnu
20634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020635 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020636 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020638 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020640 /* confdefs.h. */
20641_ACEOF
20642cat confdefs.h >>conftest.$ac_ext
20643cat >>conftest.$ac_ext <<_ACEOF
20644/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020645
John Criswell7a73b802003-06-30 21:59:07 +000020646#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020647#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020648#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020649
20650int
20651main ()
20652{
John Criswell7a73b802003-06-30 21:59:07 +000020653
20654 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020655 fd = creat ("foo",0777);
20656 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20657 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020658 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020659 ;
20660 return 0;
20661}
John Criswell7a73b802003-06-30 21:59:07 +000020662_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020663rm -f conftest$ac_exeext
20664if { (ac_try="$ac_link"
20665case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20668esac
20669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_link") 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20674 { (case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20677esac
20678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_try") 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020683 ac_cv_func_mmap_file=yes
20684else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020685 echo "$as_me: program exited with status $ac_status" >&5
20686echo "$as_me: failed program was:" >&5
20687sed 's/^/| /' conftest.$ac_ext >&5
20688
20689( exit $ac_status )
20690ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692rm -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 +000020693fi
Reid Spencera773bd52006-08-04 18:18:08 +000020694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020695
John Criswell7a73b802003-06-30 21:59:07 +000020696 ac_ext=c
20697ac_cpp='$CPP $CPPFLAGS'
20698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700ac_compiler_gnu=$ac_cv_c_compiler_gnu
20701
20702
20703fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20705echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020706if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020708cat >>confdefs.h <<\_ACEOF
20709#define HAVE_MMAP_FILE
20710_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020711
20712 MMAP_FILE=yes
20713
20714fi
20715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020716 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20717echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20718if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020720else
Reid Spencer582a23c2004-12-29 07:07:57 +000020721 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020722 ac_cv_need_dev_zero_for_mmap=yes
20723 else
20724 ac_cv_need_dev_zero_for_mmap=no
20725 fi
20726
20727fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020728{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20729echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020730if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020732cat >>confdefs.h <<\_ACEOF
20733#define NEED_DEV_ZERO_FOR_MMAP 1
20734_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020735
20736fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020737
Reid Spencer30fe5262007-01-20 07:48:49 +000020738 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20739 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020740 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20741echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020742 fi
20743 if test "$ac_cv_func_mmap_file" = "no"
20744 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020745 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20746echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020747 fi
John Criswellb13092b2003-07-22 21:00:24 +000020748fi
John Criswell7a73b802003-06-30 21:59:07 +000020749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020750{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20751echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020752ac_ext=cpp
20753ac_cpp='$CXXCPP $CPPFLAGS'
20754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020758cat >conftest.$ac_ext <<_ACEOF
20759/* confdefs.h. */
20760_ACEOF
20761cat confdefs.h >>conftest.$ac_ext
20762cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020763/* end confdefs.h. */
20764int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020765 volatile unsigned long val = 1;
20766 __sync_synchronize();
20767 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020768 __sync_add_and_fetch(&val, 1);
20769 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020770 return 0;
20771 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020772
20773_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774rm -f conftest.$ac_objext conftest$ac_exeext
20775if { (ac_try="$ac_link"
20776case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779esac
20780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_link") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20789 { (case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20792esac
20793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_try") 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest$ac_exeext'
20799 { (case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20802esac
20803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020808 ac_ext=c
20809ac_cpp='$CPP $CPPFLAGS'
20810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20812ac_compiler_gnu=$ac_cv_c_compiler_gnu
20813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020814 { echo "$as_me:$LINENO: result: yes" >&5
20815echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020817cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020818#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020819_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020820
Owen Andersond4b272b2009-05-18 23:58:51 +000020821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020822 echo "$as_me: failed program was:" >&5
20823sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020824
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020825 { echo "$as_me:$LINENO: result: no" >&5
20826echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020828cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020829#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020830_ACEOF
20831
20832 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20833echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020834fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020835
Owen Andersond4b272b2009-05-18 23:58:51 +000020836rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020837 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020838
John Criswell7a73b802003-06-30 21:59:07 +000020839
Nick Lewycky4372e692009-09-29 06:18:23 +000020840if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020841 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20842echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20843if test "${llvm_cv_linux_mixed+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020845else
20846 ac_ext=c
20847ac_cpp='$CPP $CPPFLAGS'
20848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850ac_compiler_gnu=$ac_cv_c_compiler_gnu
20851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020852 cat >conftest.$ac_ext <<_ACEOF
20853/* confdefs.h. */
20854_ACEOF
20855cat confdefs.h >>conftest.$ac_ext
20856cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020857/* end confdefs.h. */
20858#ifndef __x86_64__
20859 error: Not x86-64 even if uname says so!
20860 #endif
20861
20862int
20863main ()
20864{
20865
20866 ;
20867 return 0;
20868}
20869_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020870rm -f conftest.$ac_objext
20871if { (ac_try="$ac_compile"
20872case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875esac
20876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_compile") 2>conftest.er1
20878 ac_status=$?
20879 grep -v '^ *+' conftest.er1 >conftest.err
20880 rm -f conftest.er1
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } &&
20884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20885 { (case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20888esac
20889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_try") 2>&5
20891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
20895 { (case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898esac
20899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_try") 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020904 llvm_cv_linux_mixed=no
20905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020906 echo "$as_me: failed program was:" >&5
20907sed 's/^/| /' conftest.$ac_ext >&5
20908
20909 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020911
Nick Lewycky4372e692009-09-29 06:18:23 +000020912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 ac_ext=c
20914ac_cpp='$CPP $CPPFLAGS'
20915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917ac_compiler_gnu=$ac_cv_c_compiler_gnu
20918
20919
20920fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020921{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20922echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020923
20924 if test "$llvm_cv_linux_mixed" = "yes"; then
20925 llvm_cv_target_arch="x86"
20926 ARCH="x86"
20927 fi
20928fi
20929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020930
Reid Spencer9372f152007-07-30 20:13:24 +000020931for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020932do
20933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20934{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20936if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20937 echo $ECHO_N "(cached) $ECHO_C" >&6
20938else
20939 cat >conftest.$ac_ext <<_ACEOF
20940/* confdefs.h. */
20941_ACEOF
20942cat confdefs.h >>conftest.$ac_ext
20943cat >>conftest.$ac_ext <<_ACEOF
20944/* end confdefs.h. */
20945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20947#define $ac_func innocuous_$ac_func
20948
20949/* System header to define __stub macros and hopefully few prototypes,
20950 which can conflict with char $ac_func (); below.
20951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20952 <limits.h> exists even on freestanding compilers. */
20953
20954#ifdef __STDC__
20955# include <limits.h>
20956#else
20957# include <assert.h>
20958#endif
20959
20960#undef $ac_func
20961
20962/* Override any GCC internal prototype to avoid an error.
20963 Use char because int might match the return type of a GCC
20964 builtin and then its argument prototype would still apply. */
20965#ifdef __cplusplus
20966extern "C"
20967#endif
20968char $ac_func ();
20969/* The GNU C library defines this for functions which it implements
20970 to always fail with ENOSYS. Some functions are actually named
20971 something starting with __ and the normal name is an alias. */
20972#if defined __stub_$ac_func || defined __stub___$ac_func
20973choke me
20974#endif
20975
20976int
20977main ()
20978{
20979return $ac_func ();
20980 ;
20981 return 0;
20982}
20983_ACEOF
20984rm -f conftest.$ac_objext conftest$ac_exeext
20985if { (ac_try="$ac_link"
20986case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20989esac
20990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_link") 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20999 { (case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21002esac
21003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_try") 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest$ac_exeext'
21009 { (case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21012esac
21013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_try") 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 eval "$as_ac_var=yes"
21019else
21020 echo "$as_me: failed program was:" >&5
21021sed 's/^/| /' conftest.$ac_ext >&5
21022
21023 eval "$as_ac_var=no"
21024fi
21025
21026rm -f core conftest.err conftest.$ac_objext \
21027 conftest$ac_exeext conftest.$ac_ext
21028fi
21029ac_res=`eval echo '${'$as_ac_var'}'`
21030 { echo "$as_me:$LINENO: result: $ac_res" >&5
21031echo "${ECHO_T}$ac_res" >&6; }
21032if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021033 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021035_ACEOF
21036
21037fi
21038done
21039
21040
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021041SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021042
21043
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021044SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21045
21046
Jeff Cohen28783c32007-01-12 18:22:38 +000021047if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021048 prefix="/usr/local"
21049fi
Reid Spencere9de0912004-08-20 09:03:57 +000021050eval LLVM_PREFIX="${prefix}";
21051eval LLVM_BINDIR="${prefix}/bin";
21052eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021053eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021054eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021055eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021056eval LLVM_INCLUDEDIR="${prefix}/include";
21057eval LLVM_INFODIR="${prefix}/info";
21058eval LLVM_MANDIR="${prefix}/man";
21059LLVM_CONFIGTIME=`date`
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021071if test "${ENABLE_TIMESTAMPS}" = "0"; then
21072 LLVM_CONFIGTIME="(timestamp not enabled)"
21073fi
21074
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021075
Reid Spencere9de0912004-08-20 09:03:57 +000021076cat >>confdefs.h <<_ACEOF
21077#define LLVM_PREFIX "$LLVM_PREFIX"
21078_ACEOF
21079
21080
21081cat >>confdefs.h <<_ACEOF
21082#define LLVM_BINDIR "$LLVM_BINDIR"
21083_ACEOF
21084
21085
21086cat >>confdefs.h <<_ACEOF
21087#define LLVM_LIBDIR "$LLVM_LIBDIR"
21088_ACEOF
21089
21090
21091cat >>confdefs.h <<_ACEOF
21092#define LLVM_DATADIR "$LLVM_DATADIR"
21093_ACEOF
21094
21095
21096cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021097#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021098_ACEOF
21099
21100
21101cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021102#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021103_ACEOF
21104
21105
21106cat >>confdefs.h <<_ACEOF
21107#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21108_ACEOF
21109
21110
21111cat >>confdefs.h <<_ACEOF
21112#define LLVM_INFODIR "$LLVM_INFODIR"
21113_ACEOF
21114
21115
21116cat >>confdefs.h <<_ACEOF
21117#define LLVM_MANDIR "$LLVM_MANDIR"
21118_ACEOF
21119
21120
21121cat >>confdefs.h <<_ACEOF
21122#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21123_ACEOF
21124
21125
Eric Christopher790e11c2007-12-01 00:34:39 +000021126cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021127#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021128_ACEOF
21129
21130
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021131if test "$BINDINGS_TO_BUILD" = auto ; then
21132 BINDINGS_TO_BUILD=""
21133 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21134 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21135 fi
21136fi
21137BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21138
21139
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021140ALL_BINDINGS=ocaml
21141
21142
Gordon Henriksenf0915682007-10-02 16:42:22 +000021143binding_prereqs_failed=0
21144for a_binding in $BINDINGS_TO_BUILD ; do
21145 case "$a_binding" in
21146 ocaml)
21147 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021148 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21149echo "$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 +000021150 binding_prereqs_failed=1
21151 fi
21152 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021153 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21154echo "$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 +000021155 binding_prereqs_failed=1
21156 fi
21157 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021158 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21159echo "$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 +000021160 fi
21161 if test "x$with_ocaml_libdir" != xauto ; then
21162 OCAML_LIBDIR=$with_ocaml_libdir
21163
21164 else
21165 ocaml_stdlib="`"$OCAMLC" -where`"
21166 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21167 then
21168 # ocaml stdlib is beneath our prefix; use stdlib
21169 OCAML_LIBDIR=$ocaml_stdlib
21170
21171 else
21172 # ocaml stdlib is outside our prefix; use libdir/ocaml
21173 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21174
21175 fi
21176 fi
21177 ;;
21178 esac
21179done
21180if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021181 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21182echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21183 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021184fi
21185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021186{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21187echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21188if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21189 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021190else
21191 ac_ext=cpp
21192ac_cpp='$CXXCPP $CPPFLAGS'
21193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21196
21197 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021198 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021199 cat >conftest.$ac_ext <<_ACEOF
21200/* confdefs.h. */
21201_ACEOF
21202cat confdefs.h >>conftest.$ac_ext
21203cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021204/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021205template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021206int
21207main ()
21208{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021209X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021210 ;
21211 return 0;
21212}
21213_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021214rm -f conftest.$ac_objext
21215if { (ac_try="$ac_compile"
21216case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21219esac
21220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_compile") 2>conftest.er1
21222 ac_status=$?
21223 grep -v '^ *+' conftest.er1 >conftest.err
21224 rm -f conftest.er1
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } &&
21228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21229 { (case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21232esac
21233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_try") 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; } &&
21238 { ac_try='test -s conftest.$ac_objext'
21239 { (case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21242esac
21243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244 (eval "$ac_try") 2>&5
21245 ac_status=$?
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021248 llvm_cv_cxx_visibility_inlines_hidden=yes
21249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021250 echo "$as_me: failed program was:" >&5
21251sed 's/^/| /' conftest.$ac_ext >&5
21252
21253 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021255
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 CXXFLAGS="$oldcxxflags"
21258 ac_ext=c
21259ac_cpp='$CPP $CPPFLAGS'
21260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21262ac_compiler_gnu=$ac_cv_c_compiler_gnu
21263
21264
21265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021266{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21267echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021268if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21269 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21270
21271else
21272 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21273
21274fi
21275
Gordon Henriksenf0915682007-10-02 16:42:22 +000021276
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021277if test "$llvm_cv_link_use_r" = "yes" ; then
21278 RPATH="-Wl,-R"
21279else
21280 RPATH="-Wl,-rpath"
21281fi
21282
21283
21284if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21285 RDYNAMIC="-Wl,-export-dynamic"
21286else
21287 RDYNAMIC=""
21288fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021289
21290
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021291
Eric Christophera1cba682010-08-08 02:44:25 +000021292ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021293
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021294
21295
21296
21297
21298
Douglas Gregor1555a232009-06-16 20:12:29 +000021299ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21300
21301ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21302
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021303ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21304
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021305ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21306
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021307ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021308
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021309
Reid Spencera773bd52006-08-04 18:18:08 +000021310ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021311
Eric Christopher360fa9a2011-10-26 00:42:12 +000021312
Reid Spencerea949cf2006-08-16 00:45:38 +000021313ac_config_files="$ac_config_files llvm.spec"
21314
21315
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021316ac_config_files="$ac_config_files docs/doxygen.cfg"
21317
Eric Christopher63c09512012-02-02 00:16:55 +000021318
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021319if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021320 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021321fi
Eric Christopher63c09512012-02-02 00:16:55 +000021322if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021323 configh="include/clang/Config/config.h"
21324 doxy="docs/doxygen.cfg"
21325 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021326
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021327 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021328
21329fi
21330
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021331ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021332
Eric Christopher360fa9a2011-10-26 00:42:12 +000021333
Reid Spencera773bd52006-08-04 18:18:08 +000021334ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021335
Reid Spencera773bd52006-08-04 18:18:08 +000021336ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021337
21338
Reid Spencera773bd52006-08-04 18:18:08 +000021339ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021340
21341
Reid Spencera773bd52006-08-04 18:18:08 +000021342ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021343
21344
Reid Spencera773bd52006-08-04 18:18:08 +000021345ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021346
21347
Reid Spencer8b2e1412006-11-17 03:32:33 +000021348ac_config_commands="$ac_config_commands runtime/Makefile"
21349
21350
Reid Spencera773bd52006-08-04 18:18:08 +000021351ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021352
21353
Reid Spencera773bd52006-08-04 18:18:08 +000021354ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021355
21356
Bill Wendlingf24eb392009-01-04 23:12:30 +000021357ac_config_commands="$ac_config_commands unittests/Makefile"
21358
21359
Reid Spencera773bd52006-08-04 18:18:08 +000021360ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021361
21362
Reid Spencera773bd52006-08-04 18:18:08 +000021363ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021364
21365
Reid Spencera773bd52006-08-04 18:18:08 +000021366ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021367
21368
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021369ac_config_commands="$ac_config_commands bindings/Makefile"
21370
21371
21372ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21373
21374
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021375
John Criswell7a73b802003-06-30 21:59:07 +000021376cat >confcache <<\_ACEOF
21377# This file is a shell script that caches the results of configure
21378# tests run on this system so they can be shared between configure
21379# scripts and configure runs, see configure's option --config-cache.
21380# It is not useful on other systems. If it contains results you don't
21381# want to keep, you may remove or edit it.
21382#
21383# config.status only pays attention to the cache file if you give it
21384# the --recheck option to rerun configure.
21385#
John Criswell0c38eaf2003-09-10 15:17:25 +000021386# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021387# loading this file, other *unset* `ac_cv_foo' will be assigned the
21388# following values.
21389
21390_ACEOF
21391
21392# The following way of writing the cache mishandles newlines in values,
21393# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021394# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021395# Ultrix sh set writes to stderr and can't be redirected directly,
21396# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021397(
21398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21399 eval ac_val=\$$ac_var
21400 case $ac_val in #(
21401 *${as_nl}*)
21402 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021403 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21404echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021405 esac
21406 case $ac_var in #(
21407 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021408 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021409 esac ;;
21410 esac
21411 done
21412
John Criswell7a73b802003-06-30 21:59:07 +000021413 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21415 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416 # `set' does not quote correctly, so add quotes (double-quote
21417 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021418 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021419 "s/'/'\\\\''/g;
21420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021421 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021422 *)
21423 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021425 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021426 esac |
21427 sort
21428) |
John Criswell7a73b802003-06-30 21:59:07 +000021429 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021430 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021431 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021432 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21434 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21436 :end' >>confcache
21437if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21438 if test -w "$cache_file"; then
21439 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021440 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21441echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021442 cat confcache >$cache_file
21443 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021444 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21445echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021446 fi
21447fi
21448rm -f confcache
21449
21450test "x$prefix" = xNONE && prefix=$ac_default_prefix
21451# Let make expand exec_prefix.
21452test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21453
John Criswell7a73b802003-06-30 21:59:07 +000021454DEFS=-DHAVE_CONFIG_H
21455
John Criswell0c38eaf2003-09-10 15:17:25 +000021456ac_libobjs=
21457ac_ltlibobjs=
21458for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21459 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021461 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21463 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021464 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21465 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021466done
21467LIBOBJS=$ac_libobjs
21468
21469LTLIBOBJS=$ac_ltlibobjs
21470
21471
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021472if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021473 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21474Usually this means the macro was only invoked conditionally." >&5
21475echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21476Usually this means the macro was only invoked conditionally." >&2;}
21477 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021478fi
21479if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021480 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21481Usually this means the macro was only invoked conditionally." >&5
21482echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21483Usually this means the macro was only invoked conditionally." >&2;}
21484 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021485fi
John Criswell7a73b802003-06-30 21:59:07 +000021486
21487: ${CONFIG_STATUS=./config.status}
21488ac_clean_files_save=$ac_clean_files
21489ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021490{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21491echo "$as_me: creating $CONFIG_STATUS" >&6;}
21492cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021493#! $SHELL
21494# Generated by $as_me.
21495# Run this file to recreate the current configuration.
21496# Compiler output produced by configure, useful for debugging
21497# configure, is in config.log if it exists.
21498
21499debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021500ac_cs_recheck=false
21501ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021502SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021505cat >>$CONFIG_STATUS <<\_ACEOF
21506## --------------------- ##
21507## M4sh Initialization. ##
21508## --------------------- ##
21509
21510# Be Bourne compatible
21511if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021512 emulate sh
21513 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021514 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021515 # is contrary to our usage. Disable this feature.
21516 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021517 setopt NO_GLOB_SUBST
21518else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021519 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021521BIN_SH=xpg4; export BIN_SH # for Tru64
21522DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021523
John Criswell7a73b802003-06-30 21:59:07 +000021524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021525# PATH needs CR
21526# Avoid depending upon Character Ranges.
21527as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21528as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21529as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21530as_cr_digits='0123456789'
21531as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021532
21533# The user is always right.
21534if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021535 echo "#! /bin/sh" >conf$$.sh
21536 echo "exit 0" >>conf$$.sh
21537 chmod +x conf$$.sh
21538 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21539 PATH_SEPARATOR=';'
21540 else
21541 PATH_SEPARATOR=:
21542 fi
21543 rm -f conf$$.sh
21544fi
21545
21546# Support unset when possible.
21547if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21548 as_unset=unset
21549else
21550 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021551fi
John Criswell7a73b802003-06-30 21:59:07 +000021552
Reid Spencera773bd52006-08-04 18:18:08 +000021553
21554# IFS
21555# We need space, tab and new line, in precisely that order. Quoting is
21556# there to prevent editors from complaining about space-tab.
21557# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21558# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021559as_nl='
21560'
Reid Spencera773bd52006-08-04 18:18:08 +000021561IFS=" "" $as_nl"
21562
21563# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021564case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021565 *[\\/]* ) as_myself=$0 ;;
21566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021567for as_dir in $PATH
21568do
21569 IFS=$as_save_IFS
21570 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21572done
Reid Spencera773bd52006-08-04 18:18:08 +000021573IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021574
Reid Spencera773bd52006-08-04 18:18:08 +000021575 ;;
21576esac
21577# We did not find ourselves, most probably we were run as `sh COMMAND'
21578# in which case we are not to be found in the path.
21579if test "x$as_myself" = x; then
21580 as_myself=$0
21581fi
21582if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021583 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21584 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021585fi
21586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021587# Work around bugs in pre-3.0 UWIN ksh.
21588for as_var in ENV MAIL MAILPATH
21589do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021590done
21591PS1='$ '
21592PS2='> '
21593PS4='+ '
21594
21595# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021596for as_var in \
21597 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21598 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21599 LC_TELEPHONE LC_TIME
21600do
21601 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21602 eval $as_var=C; export $as_var
21603 else
21604 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021605 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021606done
Torok Edwin871384f2010-01-26 08:50:50 +000021607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021608# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021609if expr a : '\(a\)' >/dev/null 2>&1 &&
21610 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21611 as_expr=expr
21612else
21613 as_expr=false
21614fi
21615
21616if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21617 as_basename=basename
21618else
21619 as_basename=false
21620fi
21621
21622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021623# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021624as_me=`$as_basename -- "$0" ||
21625$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21626 X"$0" : 'X\(//\)$' \| \
21627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021628echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021629 sed '/^.*\/\([^/][^/]*\)\/*$/{
21630 s//\1/
21631 q
21632 }
21633 /^X\/\(\/\/\)$/{
21634 s//\1/
21635 q
21636 }
21637 /^X\/\(\/\).*/{
21638 s//\1/
21639 q
21640 }
21641 s/.*/./; q'`
21642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021643# CDPATH.
21644$as_unset CDPATH
21645
21646
21647
21648 as_lineno_1=$LINENO
21649 as_lineno_2=$LINENO
21650 test "x$as_lineno_1" != "x$as_lineno_2" &&
21651 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21652
21653 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21654 # uniformly replaced by the line number. The first 'sed' inserts a
21655 # line-number line after each line using $LINENO; the second 'sed'
21656 # does the real work. The second script uses 'N' to pair each
21657 # line-number line with the line containing $LINENO, and appends
21658 # trailing '-' during substitution so that $LINENO is not a special
21659 # case at line end.
21660 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21661 # scripts with optimization help from Paolo Bonzini. Blame Lee
21662 # E. McMahon (1931-1989) for sed's syntax. :-)
21663 sed -n '
21664 p
21665 /[$]LINENO/=
21666 ' <$as_myself |
21667 sed '
21668 s/[$]LINENO.*/&-/
21669 t lineno
21670 b
21671 :lineno
21672 N
21673 :loop
21674 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21675 t loop
21676 s/-\n.*//
21677 ' >$as_me.lineno &&
21678 chmod +x "$as_me.lineno" ||
21679 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21680 { (exit 1); exit 1; }; }
21681
21682 # Don't try to exec as it changes $[0], causing all sort of problems
21683 # (the dirname of $[0] is not the place where we might find the
21684 # original and so on. Autoconf is especially sensitive to this).
21685 . "./$as_me.lineno"
21686 # Exit status is that of the last command.
21687 exit
21688}
21689
21690
21691if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21692 as_dirname=dirname
21693else
21694 as_dirname=false
21695fi
Reid Spencera773bd52006-08-04 18:18:08 +000021696
21697ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021698case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021699-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021700 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021701 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021702 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021703 esac;;
21704*)
21705 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021706esac
21707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021708if expr a : '\(a\)' >/dev/null 2>&1 &&
21709 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21710 as_expr=expr
21711else
21712 as_expr=false
21713fi
21714
John Criswell7a73b802003-06-30 21:59:07 +000021715rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021716if test -d conf$$.dir; then
21717 rm -f conf$$.dir/conf$$.file
21718else
21719 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021720 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021721fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021722echo >conf$$.file
21723if ln -s conf$$.file conf$$ 2>/dev/null; then
21724 as_ln_s='ln -s'
21725 # ... but there are two gotchas:
21726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21728 # In both cases, we have to default to `cp -p'.
21729 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021730 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021731elif ln conf$$.file conf$$ 2>/dev/null; then
21732 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021733else
21734 as_ln_s='cp -p'
21735fi
Reid Spencera773bd52006-08-04 18:18:08 +000021736rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21737rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021738
John Criswell0c38eaf2003-09-10 15:17:25 +000021739if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021740 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021741else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021742 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021743 as_mkdir_p=false
21744fi
21745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021746# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21747# systems may use methods other than mode bits to determine executability.
21748cat >conf$$.file <<_ASEOF
21749#! /bin/sh
21750exit 0
21751_ASEOF
21752chmod +x conf$$.file
21753if test -x conf$$.file >/dev/null 2>&1; then
21754 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021756 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021759
21760# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021761as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021762
21763# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021764as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021765
21766
John Criswell7a73b802003-06-30 21:59:07 +000021767exec 6>&1
21768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021769# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021770# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021771# values after options handling.
21772ac_log="
Eric Christopherf33ab862011-12-21 00:52:44 +000021773This file was extended by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021774generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021775
21776 CONFIG_FILES = $CONFIG_FILES
21777 CONFIG_HEADERS = $CONFIG_HEADERS
21778 CONFIG_LINKS = $CONFIG_LINKS
21779 CONFIG_COMMANDS = $CONFIG_COMMANDS
21780 $ $0 $@
21781
Reid Spencera773bd52006-08-04 18:18:08 +000021782on `(hostname || uname -n) 2>/dev/null | sed 1q`
21783"
21784
John Criswell7a73b802003-06-30 21:59:07 +000021785_ACEOF
21786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021787cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021788# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021789config_files="$ac_config_files"
21790config_headers="$ac_config_headers"
21791config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021792
Reid Spencera773bd52006-08-04 18:18:08 +000021793_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021795cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021796ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021797\`$as_me' instantiates files from templates according to the
21798current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021800Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021801
21802 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021803 -V, --version print version number, then exit
21804 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021805 -d, --debug don't remove temporary files
21806 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021807 --file=FILE[:TEMPLATE]
21808 instantiate the configuration file FILE
21809 --header=FILE[:TEMPLATE]
21810 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021811
21812Configuration files:
21813$config_files
21814
21815Configuration headers:
21816$config_headers
21817
John Criswellc764fbc2003-09-06 15:17:13 +000021818Configuration commands:
21819$config_commands
21820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021821Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021822
Reid Spencera773bd52006-08-04 18:18:08 +000021823_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021824cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021825ac_cs_version="\\
Eric Christopherf33ab862011-12-21 00:52:44 +000021826LLVM config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021827configured by $0, generated by GNU Autoconf 2.60,
21828 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021830Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021831This config.status script is free software; the Free Software Foundation
21832gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021833
21834ac_pwd='$ac_pwd'
21835srcdir='$srcdir'
21836INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021837_ACEOF
21838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021839cat >>$CONFIG_STATUS <<\_ACEOF
21840# If no file are specified by the user, then we need to provide default
21841# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021842ac_need_defaults=:
21843while test $# != 0
21844do
21845 case $1 in
21846 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21848 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021849 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021850 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021851 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021852 ac_option=$1
21853 ac_optarg=$2
21854 ac_shift=shift
21855 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021856 esac
21857
John Criswell0c38eaf2003-09-10 15:17:25 +000021858 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021859 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21861 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021862 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021863 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021864 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021865 debug=: ;;
21866 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021867 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021868 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021869 ac_need_defaults=false;;
21870 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021871 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021873 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021874 --he | --h)
21875 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021876 { echo "$as_me: error: ambiguous option: $1
21877Try \`$0 --help' for more information." >&2
21878 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021879 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021880 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21882 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21883 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021884
21885 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021886 -*) { echo "$as_me: error: unrecognized option: $1
21887Try \`$0 --help' for more information." >&2
21888 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021890 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021891 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021892
21893 esac
21894 shift
21895done
21896
John Criswell0c38eaf2003-09-10 15:17:25 +000021897ac_configure_extra_args=
21898
21899if $ac_cs_silent; then
21900 exec 6>/dev/null
21901 ac_configure_extra_args="$ac_configure_extra_args --silent"
21902fi
21903
21904_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021905cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021906if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21908 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021909 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021910 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021911fi
21912
John Criswell7a73b802003-06-30 21:59:07 +000021913_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021914cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021915exec 5>>config.log
21916{
21917 echo
21918 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21919## Running $as_me. ##
21920_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021921 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021922} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021923
Reid Spencera773bd52006-08-04 18:18:08 +000021924_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021925cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021926#
Reid Spencera773bd52006-08-04 18:18:08 +000021927# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021928#
Reid Spencerc0682832005-02-24 19:05:19 +000021929llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021930
21931_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021933cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021934
21935# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021936for ac_config_target in $ac_config_targets
21937do
Reid Spencera773bd52006-08-04 18:18:08 +000021938 case $ac_config_target in
21939 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021940 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021941 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21942 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021943 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021944 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021945 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021946 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021947 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021948 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021949 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21950 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021951 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021952 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21953 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21954 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21955 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21956 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021957 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021958 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21959 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021960 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021961 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21962 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21963 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021964 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21965 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021967 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21968echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21969 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021970 esac
21971done
21972
Reid Spencera773bd52006-08-04 18:18:08 +000021973
John Criswell7a73b802003-06-30 21:59:07 +000021974# If the user did not use the arguments to specify the items to instantiate,
21975# then the envvar interface is used. Set only those that are not.
21976# We use the long form for the default assignment because of an extremely
21977# bizarre bug on SunOS 4.1.3.
21978if $ac_need_defaults; then
21979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021981 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021982fi
21983
John Criswell0c38eaf2003-09-10 15:17:25 +000021984# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021985# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021986# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021987# Hook for its removal unless debugging.
21988# Note that there is a small window in which the directory will not be cleaned:
21989# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021990$debug ||
21991{
Reid Spencera773bd52006-08-04 18:18:08 +000021992 tmp=
21993 trap 'exit_status=$?
21994 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21995' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021996 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021997}
John Criswell7a73b802003-06-30 21:59:07 +000021998# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021999
John Criswell7a73b802003-06-30 21:59:07 +000022000{
Reid Spencera773bd52006-08-04 18:18:08 +000022001 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022002 test -n "$tmp" && test -d "$tmp"
22003} ||
22004{
Reid Spencera773bd52006-08-04 18:18:08 +000022005 tmp=./conf$$-$RANDOM
22006 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022007} ||
22008{
22009 echo "$me: cannot create a temporary directory in ." >&2
22010 { (exit 1); exit 1; }
22011}
John Criswell7a73b802003-06-30 21:59:07 +000022012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022013#
22014# Set up the sed scripts for CONFIG_FILES section.
22015#
22016
22017# No need to generate the scripts if there are no CONFIG_FILES.
22018# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022019if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022020
22021_ACEOF
22022
Reid Spencera773bd52006-08-04 18:18:08 +000022023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022024
Reid Spencera773bd52006-08-04 18:18:08 +000022025ac_delim='%!_!# '
22026for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022027 cat >conf$$subs.sed <<_ACEOF
22028SHELL!$SHELL$ac_delim
22029PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22030PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22031PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22032PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22033PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22034PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22035exec_prefix!$exec_prefix$ac_delim
22036prefix!$prefix$ac_delim
22037program_transform_name!$program_transform_name$ac_delim
22038bindir!$bindir$ac_delim
22039sbindir!$sbindir$ac_delim
22040libexecdir!$libexecdir$ac_delim
22041datarootdir!$datarootdir$ac_delim
22042datadir!$datadir$ac_delim
22043sysconfdir!$sysconfdir$ac_delim
22044sharedstatedir!$sharedstatedir$ac_delim
22045localstatedir!$localstatedir$ac_delim
22046includedir!$includedir$ac_delim
22047oldincludedir!$oldincludedir$ac_delim
22048docdir!$docdir$ac_delim
22049infodir!$infodir$ac_delim
22050htmldir!$htmldir$ac_delim
22051dvidir!$dvidir$ac_delim
22052pdfdir!$pdfdir$ac_delim
22053psdir!$psdir$ac_delim
22054libdir!$libdir$ac_delim
22055localedir!$localedir$ac_delim
22056mandir!$mandir$ac_delim
22057DEFS!$DEFS$ac_delim
22058ECHO_C!$ECHO_C$ac_delim
22059ECHO_N!$ECHO_N$ac_delim
22060ECHO_T!$ECHO_T$ac_delim
22061LIBS!$LIBS$ac_delim
22062build_alias!$build_alias$ac_delim
22063host_alias!$host_alias$ac_delim
22064target_alias!$target_alias$ac_delim
22065LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022066CC!$CC$ac_delim
22067CFLAGS!$CFLAGS$ac_delim
22068LDFLAGS!$LDFLAGS$ac_delim
22069CPPFLAGS!$CPPFLAGS$ac_delim
22070ac_ct_CC!$ac_ct_CC$ac_delim
22071EXEEXT!$EXEEXT$ac_delim
22072OBJEXT!$OBJEXT$ac_delim
22073CXX!$CXX$ac_delim
22074CXXFLAGS!$CXXFLAGS$ac_delim
22075ac_ct_CXX!$ac_ct_CXX$ac_delim
22076CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022077subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022078ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22079LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022080build!$build$ac_delim
22081build_cpu!$build_cpu$ac_delim
22082build_vendor!$build_vendor$ac_delim
22083build_os!$build_os$ac_delim
22084host!$host$ac_delim
22085host_cpu!$host_cpu$ac_delim
22086host_vendor!$host_vendor$ac_delim
22087host_os!$host_os$ac_delim
22088target!$target$ac_delim
22089target_cpu!$target_cpu$ac_delim
22090target_vendor!$target_vendor$ac_delim
22091target_os!$target_os$ac_delim
22092OS!$OS$ac_delim
22093HOST_OS!$HOST_OS$ac_delim
22094TARGET_OS!$TARGET_OS$ac_delim
22095LINKALL!$LINKALL$ac_delim
22096NOLINKALL!$NOLINKALL$ac_delim
22097LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22098LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22099ARCH!$ARCH$ac_delim
22100ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022101GREP!$GREP$ac_delim
22102EGREP!$EGREP$ac_delim
22103LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22104BUILD_CC!$BUILD_CC$ac_delim
22105BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22106BUILD_CXX!$BUILD_CXX$ac_delim
22107CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022108ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022109ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22110ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22111DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22112ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22113EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22114DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22115DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22116JIT!$JIT$ac_delim
22117TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022118ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022119ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000022120LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022121ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022122ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022123ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022124ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022125_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022127 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022128 break
22129 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022130 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22131echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22132 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022133 else
22134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022135 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022136done
22137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022138ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22139if test -n "$ac_eof"; then
22140 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22141 ac_eof=`expr $ac_eof + 1`
22142fi
22143
22144cat >>$CONFIG_STATUS <<_ACEOF
22145cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22146/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022147_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022148sed '
22149s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22150s/^/s,@/; s/!/@,|#_!!_#|/
22151:n
22152t n
22153s/'"$ac_delim"'$/,g/; t
22154s/$/\\/; p
22155N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22156' >>$CONFIG_STATUS <conf$$subs.sed
22157rm -f conf$$subs.sed
22158cat >>$CONFIG_STATUS <<_ACEOF
22159CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022160_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161
22162
22163ac_delim='%!_!# '
22164for ac_last_try in false false false false false :; do
22165 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000022166ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022167TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22168LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22169LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022170LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022171LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022172OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022173EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022174EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022175CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022176BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022177INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022178NM!$NM$ac_delim
22179ifGNUmake!$ifGNUmake$ac_delim
22180LN_S!$LN_S$ac_delim
22181CMP!$CMP$ac_delim
22182CP!$CP$ac_delim
22183DATE!$DATE$ac_delim
22184FIND!$FIND$ac_delim
22185MKDIR!$MKDIR$ac_delim
22186MV!$MV$ac_delim
22187RANLIB!$RANLIB$ac_delim
22188AR!$AR$ac_delim
22189RM!$RM$ac_delim
22190SED!$SED$ac_delim
22191TAR!$TAR$ac_delim
22192BINPWD!$BINPWD$ac_delim
22193GRAPHVIZ!$GRAPHVIZ$ac_delim
22194DOT!$DOT$ac_delim
22195FDP!$FDP$ac_delim
22196NEATO!$NEATO$ac_delim
22197TWOPI!$TWOPI$ac_delim
22198CIRCO!$CIRCO$ac_delim
22199GV!$GV$ac_delim
22200DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022201XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022202INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22203INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22204INSTALL_DATA!$INSTALL_DATA$ac_delim
22205BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022206CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022207DOXYGEN!$DOXYGEN$ac_delim
22208GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022209GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022210POD2HTML!$POD2HTML$ac_delim
22211POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022212PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022213RUNTEST!$RUNTEST$ac_delim
22214TCLSH!$TCLSH$ac_delim
22215ZIP!$ZIP$ac_delim
22216OCAMLC!$OCAMLC$ac_delim
22217OCAMLOPT!$OCAMLOPT$ac_delim
22218OCAMLDEP!$OCAMLDEP$ac_delim
22219OCAMLDOC!$OCAMLDOC$ac_delim
22220GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022221HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022222INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22223INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22224CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22225CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22226LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022227NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22228NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022229COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022230USE_UDIS86!$USE_UDIS86$ac_delim
22231USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022232USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22233INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22234INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022235HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22236HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22237MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022238SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022239SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022240LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22241LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22242LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22243LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22244LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22245LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22246LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22247LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22248LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22249LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22250BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22251ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022252OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22253ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22254RPATH!$RPATH$ac_delim
22255RDYNAMIC!$RDYNAMIC$ac_delim
22256LIBOBJS!$LIBOBJS$ac_delim
22257LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022258_ACEOF
22259
Eric Christophera443e5b2012-03-23 05:50:46 +000022260 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022261 break
22262 elif $ac_last_try; then
22263 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22264echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22265 { (exit 1); exit 1; }; }
22266 else
22267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22268 fi
22269done
22270
22271ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22272if test -n "$ac_eof"; then
22273 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22274 ac_eof=`expr $ac_eof + 1`
22275fi
22276
22277cat >>$CONFIG_STATUS <<_ACEOF
22278cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022279/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22280_ACEOF
22281sed '
22282s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22283s/^/s,@/; s/!/@,|#_!!_#|/
22284:n
22285t n
22286s/'"$ac_delim"'$/,g/; t
22287s/$/\\/; p
22288N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22289' >>$CONFIG_STATUS <conf$$subs.sed
22290rm -f conf$$subs.sed
22291cat >>$CONFIG_STATUS <<_ACEOF
22292:end
22293s/|#_!!_#|//g
22294CEOF$ac_eof
22295_ACEOF
22296
22297
Reid Spencera773bd52006-08-04 18:18:08 +000022298# VPATH may cause trouble with some makes, so we remove $(srcdir),
22299# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22300# trailing colons and then remove the whole line if VPATH becomes empty
22301# (actually we leave an empty line to preserve line numbers).
22302if test "x$srcdir" = x.; then
22303 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22304s/:*\$(srcdir):*/:/
22305s/:*\${srcdir}:*/:/
22306s/:*@srcdir@:*/:/
22307s/^\([^=]*=[ ]*\):*/\1/
22308s/:*$//
22309s/^[^=]*=[ ]*$//
22310}'
22311fi
22312
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022313cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022314fi # test -n "$CONFIG_FILES"
22315
Reid Spencera773bd52006-08-04 18:18:08 +000022316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022317for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022318do
22319 case $ac_tag in
22320 :[FHLC]) ac_mode=$ac_tag; continue;;
22321 esac
22322 case $ac_mode$ac_tag in
22323 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022324 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22325echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22326 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022327 :[FH]-) ac_tag=-:-;;
22328 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22329 esac
22330 ac_save_IFS=$IFS
22331 IFS=:
22332 set x $ac_tag
22333 IFS=$ac_save_IFS
22334 shift
22335 ac_file=$1
22336 shift
22337
22338 case $ac_mode in
22339 :L) ac_source=$1;;
22340 :[FH])
22341 ac_file_inputs=
22342 for ac_f
22343 do
22344 case $ac_f in
22345 -) ac_f="$tmp/stdin";;
22346 *) # Look for the file first in the build tree, then in the source tree
22347 # (if the path is not absolute). The absolute path cannot be DOS-style,
22348 # because $ac_f cannot contain `:'.
22349 test -f "$ac_f" ||
22350 case $ac_f in
22351 [\\/$]*) false;;
22352 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22353 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022354 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22355echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22356 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022357 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022358 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022359 done
22360
22361 # Let's still pretend it is `configure' which instantiates (i.e., don't
22362 # use $as_me), people would be surprised to read:
22363 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022364 configure_input="Generated from "`IFS=:
22365 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022366 if test x"$ac_file" != x-; then
22367 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022368 { echo "$as_me:$LINENO: creating $ac_file" >&5
22369echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022370 fi
22371
22372 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022373 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022374 esac
22375 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022376 esac
22377
Reid Spencera773bd52006-08-04 18:18:08 +000022378 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022379$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022380 X"$ac_file" : 'X\(//\)[^/]' \| \
22381 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022382 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022383echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22385 s//\1/
22386 q
22387 }
22388 /^X\(\/\/\)[^/].*/{
22389 s//\1/
22390 q
22391 }
22392 /^X\(\/\/\)$/{
22393 s//\1/
22394 q
22395 }
22396 /^X\(\/\).*/{
22397 s//\1/
22398 q
22399 }
22400 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022401 { as_dir="$ac_dir"
22402 case $as_dir in #(
22403 -*) as_dir=./$as_dir;;
22404 esac
22405 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22406 as_dirs=
22407 while :; do
22408 case $as_dir in #(
22409 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22410 *) as_qdir=$as_dir;;
22411 esac
22412 as_dirs="'$as_qdir' $as_dirs"
22413 as_dir=`$as_dirname -- "$as_dir" ||
22414$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22415 X"$as_dir" : 'X\(//\)[^/]' \| \
22416 X"$as_dir" : 'X\(//\)$' \| \
22417 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22418echo X"$as_dir" |
22419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22420 s//\1/
22421 q
22422 }
22423 /^X\(\/\/\)[^/].*/{
22424 s//\1/
22425 q
22426 }
22427 /^X\(\/\/\)$/{
22428 s//\1/
22429 q
22430 }
22431 /^X\(\/\).*/{
22432 s//\1/
22433 q
22434 }
22435 s/.*/./; q'`
22436 test -d "$as_dir" && break
22437 done
22438 test -z "$as_dirs" || eval "mkdir $as_dirs"
22439 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22440echo "$as_me: error: cannot create directory $as_dir" >&2;}
22441 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022442 ac_builddir=.
22443
Reid Spencera773bd52006-08-04 18:18:08 +000022444case "$ac_dir" in
22445.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22446*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022447 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022448 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022449 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022450 case $ac_top_builddir_sub in
22451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22453 esac ;;
22454esac
22455ac_abs_top_builddir=$ac_pwd
22456ac_abs_builddir=$ac_pwd$ac_dir_suffix
22457# for backward compatibility:
22458ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022459
22460case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022461 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022462 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022463 ac_top_srcdir=$ac_top_builddir_sub
22464 ac_abs_top_srcdir=$ac_pwd ;;
22465 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022466 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022467 ac_top_srcdir=$srcdir
22468 ac_abs_top_srcdir=$srcdir ;;
22469 *) # Relative name.
22470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22471 ac_top_srcdir=$ac_top_build_prefix$srcdir
22472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022473esac
Reid Spencera773bd52006-08-04 18:18:08 +000022474ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022475
John Criswell7a73b802003-06-30 21:59:07 +000022476
Reid Spencera773bd52006-08-04 18:18:08 +000022477 case $ac_mode in
22478 :F)
22479 #
22480 # CONFIG_FILE
22481 #
John Criswell7a73b802003-06-30 21:59:07 +000022482
22483 case $INSTALL in
22484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022485 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022486 esac
John Criswell7a73b802003-06-30 21:59:07 +000022487_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022489cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022490# If the template does not know about datarootdir, expand it.
22491# FIXME: This hack should be removed a few years after 2.60.
22492ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022493
22494case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022495 p
22496 q
22497}
22498/@datadir@/p
22499/@docdir@/p
22500/@infodir@/p
22501/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022502/@mandir@/p
22503' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022504*datarootdir*) ac_datarootdir_seen=yes;;
22505*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022506 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22507echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022508_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022509cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022510 ac_datarootdir_hack='
22511 s&@datadir@&$datadir&g
22512 s&@docdir@&$docdir&g
22513 s&@infodir@&$infodir&g
22514 s&@localedir@&$localedir&g
22515 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022516 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022517esac
22518_ACEOF
22519
22520# Neutralize VPATH when `$srcdir' = `.'.
22521# Shell code in configure.ac might set extrasub.
22522# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022523cat >>$CONFIG_STATUS <<_ACEOF
22524 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022525$extrasub
22526_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022527cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022528:t
22529/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022530s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022531s&@top_builddir@&$ac_top_builddir_sub&;t t
22532s&@srcdir@&$ac_srcdir&;t t
22533s&@abs_srcdir@&$ac_abs_srcdir&;t t
22534s&@top_srcdir@&$ac_top_srcdir&;t t
22535s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22536s&@builddir@&$ac_builddir&;t t
22537s&@abs_builddir@&$ac_abs_builddir&;t t
22538s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22539s&@INSTALL@&$ac_INSTALL&;t t
22540$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022541" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022542
Reid Spencera773bd52006-08-04 18:18:08 +000022543test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022546 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022547which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022548echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022549which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022550
Reid Spencera773bd52006-08-04 18:18:08 +000022551 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022552 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022553 -) cat "$tmp/out"; rm -f "$tmp/out";;
22554 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22555 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022556 ;;
22557 :H)
22558 #
22559 # CONFIG_HEADER
22560 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022561_ACEOF
22562
22563# Transform confdefs.h into a sed script `conftest.defines', that
22564# substitutes the proper values into config.h.in to produce config.h.
22565rm -f conftest.defines conftest.tail
22566# First, append a space to every undef/define line, to ease matching.
22567echo 's/$/ /' >conftest.defines
22568# Then, protect against being on the right side of a sed subst, or in
22569# an unquoted here document, in config.status. If some macros were
22570# called several times there might be several #defines for the same
22571# symbol, which is useless. But do not sort them, since the last
22572# AC_DEFINE must be honored.
22573ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22574# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22575# NAME is the cpp macro being defined, VALUE is the value it is being given.
22576# PARAMS is the parameter list in the macro definition--in most cases, it's
22577# just an empty string.
22578ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22579ac_dB='\\)[ (].*,\\1define\\2'
22580ac_dC=' '
22581ac_dD=' ,'
22582
22583uniq confdefs.h |
22584 sed -n '
22585 t rset
22586 :rset
22587 s/^[ ]*#[ ]*define[ ][ ]*//
22588 t ok
22589 d
22590 :ok
22591 s/[\\&,]/\\&/g
22592 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22593 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22594 ' >>conftest.defines
22595
22596# Remove the space that was appended to ease matching.
22597# Then replace #undef with comments. This is necessary, for
22598# example, in the case of _POSIX_SOURCE, which is predefined and required
22599# on some systems where configure will not decide to define it.
22600# (The regexp can be short, since the line contains either #define or #undef.)
22601echo 's/ $//
22602s,^[ #]*u.*,/* & */,' >>conftest.defines
22603
22604# Break up conftest.defines:
22605ac_max_sed_lines=50
22606
22607# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22608# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22609# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22610# et cetera.
22611ac_in='$ac_file_inputs'
22612ac_out='"$tmp/out1"'
22613ac_nxt='"$tmp/out2"'
22614
22615while :
22616do
22617 # Write a here document:
22618 cat >>$CONFIG_STATUS <<_ACEOF
22619 # First, check the format of the line:
22620 cat >"\$tmp/defines.sed" <<\\CEOF
22621/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22622/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22623b
22624:def
22625_ACEOF
22626 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22627 echo 'CEOF
22628 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22629 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22630 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22631 grep . conftest.tail >/dev/null || break
22632 rm -f conftest.defines
22633 mv conftest.tail conftest.defines
22634done
22635rm -f conftest.defines conftest.tail
22636
22637echo "ac_result=$ac_in" >>$CONFIG_STATUS
22638cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022639 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022640 echo "/* $configure_input */" >"$tmp/config.h"
22641 cat "$ac_result" >>"$tmp/config.h"
22642 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22643 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22644echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022645 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022646 rm -f $ac_file
22647 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022648 fi
22649 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022650 echo "/* $configure_input */"
22651 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022652 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022653 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022654 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022656 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22657echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022658 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022659 esac
John Criswell7a73b802003-06-30 21:59:07 +000022660
Reid Spencera773bd52006-08-04 18:18:08 +000022661
22662 case $ac_file$ac_mode in
22663 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022664 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022665 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022666 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022667 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022668 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022669 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022670 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022671 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022672 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022673 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022674 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022675 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022676 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022677 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022678 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022679 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022680 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022681 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022682 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022683 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022684 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022685 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022686 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022687 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022688 ${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 +000022689
22690 esac
22691done # for ac_tag
22692
John Criswell7a73b802003-06-30 21:59:07 +000022693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022694{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022695_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022696chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022697ac_clean_files=$ac_clean_files_save
22698
22699
22700# configure is writing to config.log, and then calls config.status.
22701# config.status does its own redirection, appending to config.log.
22702# Unfortunately, on DOS this fails, as config.log is still kept open
22703# by configure, so config.status won't be able to write to it; its
22704# output is simply discarded. So we exec the FD to /dev/null,
22705# effectively closing config.log, so it can be properly (re)opened and
22706# appended to by config.status. When coming back to configure, we
22707# need to make the FD available again.
22708if test "$no_create" != yes; then
22709 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022710 ac_config_status_args=
22711 test "$silent" = yes &&
22712 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022713 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022715 exec 5>>config.log
22716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22717 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022718 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022719fi
22720
John Criswell12399a12003-09-30 15:55:44 +000022721#
22722# CONFIG_SUBDIRS section.
22723#
22724if test "$no_recursion" != yes; then
22725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022726 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022727 ac_sub_configure_args=
22728 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022729 eval "set x $ac_configure_args"
22730 shift
22731 for ac_arg
22732 do
John Criswell12399a12003-09-30 15:55:44 +000022733 if test -n "$ac_prev"; then
22734 ac_prev=
22735 continue
22736 fi
22737 case $ac_arg in
22738 -cache-file | --cache-file | --cache-fil | --cache-fi \
22739 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22740 ac_prev=cache_file ;;
22741 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22742 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22743 | --c=*)
22744 ;;
22745 --config-cache | -C)
22746 ;;
22747 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22748 ac_prev=srcdir ;;
22749 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22750 ;;
22751 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22752 ac_prev=prefix ;;
22753 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22754 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022755 *)
22756 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022757 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022758 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022759 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022760 esac
22761 done
22762
22763 # Always prepend --prefix to ensure using the same prefix
22764 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022765 ac_arg="--prefix=$prefix"
22766 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022767 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022768 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022769 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022770
22771 ac_popdir=`pwd`
22772 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22773
22774 # Do not complain, so a configure script can configure whichever
22775 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022776 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022777
Reid Spencera773bd52006-08-04 18:18:08 +000022778 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022779 echo "$as_me:$LINENO: $ac_msg" >&5
22780 echo "$ac_msg" >&6
22781 { as_dir="$ac_dir"
22782 case $as_dir in #(
22783 -*) as_dir=./$as_dir;;
22784 esac
22785 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22786 as_dirs=
22787 while :; do
22788 case $as_dir in #(
22789 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22790 *) as_qdir=$as_dir;;
22791 esac
22792 as_dirs="'$as_qdir' $as_dirs"
22793 as_dir=`$as_dirname -- "$as_dir" ||
22794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22795 X"$as_dir" : 'X\(//\)[^/]' \| \
22796 X"$as_dir" : 'X\(//\)$' \| \
22797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22798echo X"$as_dir" |
22799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22800 s//\1/
22801 q
22802 }
22803 /^X\(\/\/\)[^/].*/{
22804 s//\1/
22805 q
22806 }
22807 /^X\(\/\/\)$/{
22808 s//\1/
22809 q
22810 }
22811 /^X\(\/\).*/{
22812 s//\1/
22813 q
22814 }
22815 s/.*/./; q'`
22816 test -d "$as_dir" && break
22817 done
22818 test -z "$as_dirs" || eval "mkdir $as_dirs"
22819 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22820echo "$as_me: error: cannot create directory $as_dir" >&2;}
22821 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022822 ac_builddir=.
22823
Reid Spencera773bd52006-08-04 18:18:08 +000022824case "$ac_dir" in
22825.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22826*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022827 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022828 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022829 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022830 case $ac_top_builddir_sub in
22831 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22832 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22833 esac ;;
22834esac
22835ac_abs_top_builddir=$ac_pwd
22836ac_abs_builddir=$ac_pwd$ac_dir_suffix
22837# for backward compatibility:
22838ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022839
22840case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022841 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022842 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022843 ac_top_srcdir=$ac_top_builddir_sub
22844 ac_abs_top_srcdir=$ac_pwd ;;
22845 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022846 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022847 ac_top_srcdir=$srcdir
22848 ac_abs_top_srcdir=$srcdir ;;
22849 *) # Relative name.
22850 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22851 ac_top_srcdir=$ac_top_build_prefix$srcdir
22852 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022853esac
Reid Spencera773bd52006-08-04 18:18:08 +000022854ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022855
22856
Reid Spencera773bd52006-08-04 18:18:08 +000022857 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022858
22859 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022860 if test -f "$ac_srcdir/configure.gnu"; then
22861 ac_sub_configure=$ac_srcdir/configure.gnu
22862 elif test -f "$ac_srcdir/configure"; then
22863 ac_sub_configure=$ac_srcdir/configure
22864 elif test -f "$ac_srcdir/configure.in"; then
22865 # This should be Cygnus configure.
22866 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022867 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022868 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22869echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022870 ac_sub_configure=
22871 fi
22872
22873 # The recursion is here.
22874 if test -n "$ac_sub_configure"; then
22875 # Make the cache file name correct relative to the subdirectory.
22876 case $cache_file in
22877 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022878 *) # Relative name.
22879 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022880 esac
22881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022882 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22883echo "$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 +000022884 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022885 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22886 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022887 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22888echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22889 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022890 fi
22891
Reid Spencera773bd52006-08-04 18:18:08 +000022892 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022893 done
22894fi
22895