blob: c24ae892aa1217079927bcf629fb8198bb17d692 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebc2fc12011-03-08 03:00:02 +00003# Generated by GNU Autoconf 2.60 for llvm 3.0svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
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#
Benjamin Kramerb73cd942011-06-12 15:26:54 +000012# Copyright (c) 2003-2011 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.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Bill Wendlingebc2fc12011-03-08 03:00:02 +0000564PACKAGE_VERSION='3.0svn'
565PACKAGE_STRING='llvm 3.0svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
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
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000694ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_DOXYGEN
696ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000697ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000698ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000699ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000700ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000701ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
707ENABLE_CBE_PRINTF_A
708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000735XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000736PERL
737HAVE_PERL
738INSTALL_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
765USE_UDIS86
766USE_OPROFILE
767HAVE_PTHREAD
768HUGE_VAL_SANITY
769MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000770SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000771SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772LLVM_PREFIX
773LLVM_BINDIR
774LLVM_LIBDIR
775LLVM_DATADIR
776LLVM_DOCSDIR
777LLVM_ETCDIR
778LLVM_INCLUDEDIR
779LLVM_INFODIR
780LLVM_MANDIR
781LLVM_CONFIGTIME
782BINDINGS_TO_BUILD
783ALL_BINDINGS
784OCAML_LIBDIR
785ENABLE_VISIBILITY_INLINES_HIDDEN
786RPATH
787RDYNAMIC
788LIBOBJS
789LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000790ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000798CXX
799CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000800CCC
801CPP'
John Criswell0157f502010-03-19 21:31:39 +0000802ac_subdirs_all='projects/llvm-gcc
803projects/test-suite
804projects/llvm-test
805projects/poolalloc
806projects/llvm-poolalloc
807projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000808projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000809projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000810projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/llvm-java
812projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000813projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000814projects/llvm-kernel
815tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000816
817# Initialize some variables set by options.
818ac_init_help=
819ac_init_version=false
820# The variables have the same names as the options, with
821# dashes changed to underlines.
822cache_file=/dev/null
823exec_prefix=NONE
824no_create=
825no_recursion=
826prefix=NONE
827program_prefix=NONE
828program_suffix=NONE
829program_transform_name=s,x,x,
830silent=
831site=
832srcdir=
833verbose=
834x_includes=NONE
835x_libraries=NONE
836
837# Installation directory options.
838# These are left unexpanded so users can "make install exec_prefix=/foo"
839# and all the variables that are supposed to be based on exec_prefix
840# by default will actually change.
841# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000842# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000843bindir='${exec_prefix}/bin'
844sbindir='${exec_prefix}/sbin'
845libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000846datarootdir='${prefix}/share'
847datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000848sysconfdir='${prefix}/etc'
849sharedstatedir='${prefix}/com'
850localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000851includedir='${prefix}/include'
852oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000862
863ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000864ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000865for ac_option
866do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000869 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000870 ac_prev=
871 continue
872 fi
873
Reid Spencera773bd52006-08-04 18:18:08 +0000874 case $ac_option in
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *) ac_optarg=yes ;;
877 esac
John Criswell7a73b802003-06-30 21:59:07 +0000878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
Reid Spencera773bd52006-08-04 18:18:08 +0000881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
Reid Spencera773bd52006-08-04 18:18:08 +0000905 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000906 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000908 datadir=$ac_optarg ;;
909
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
John Criswell7a73b802003-06-30 21:59:07 +0000917 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000918 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000919 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000925
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
930
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000935
936 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000937 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000938 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
Reid Spencera773bd52006-08-04 18:18:08 +0000970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
John Criswell7a73b802003-06-30 21:59:07 +0000976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
Reid Spencera773bd52006-08-04 18:18:08 +00001000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
John Criswell7a73b802003-06-30 21:59:07 +00001005 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001006 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
Reid Spencera773bd52006-08-04 18:18:08 +00001074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
John Criswell7a73b802003-06-30 21:59:07 +00001084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001134 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001135 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001136 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid package name: $ac_package" >&2
1138 { (exit 1); exit 1; }; }
1139 ac_package=`echo $ac_package| sed 's/-/_/g'`
1140 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001141
1142 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001143 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001144 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package | sed 's/-/_/g'`
1149 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001169 -*) { echo "$as_me: error: unrecognized option: $ac_option
1170Try \`$0 --help' for more information." >&2
1171 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001180 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001185 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 ;;
1190
1191 esac
1192done
1193
1194if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001196 { echo "$as_me: error: missing argument to $ac_option" >&2
1197 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001198fi
1199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001201for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001205do
Reid Spencera773bd52006-08-04 18:18:08 +00001206 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001207 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001210 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001211 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001226 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1230 fi
1231fi
1232
1233ac_tool_prefix=
1234test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236test "$silent" = yes && exec 6>/dev/null
1237
1238
Reid Spencera773bd52006-08-04 18:18:08 +00001239ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240ac_ls_di=`ls -di .` &&
1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001242 { echo "$as_me: error: Working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001244test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001245 { echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001247
1248
John Criswell7a73b802003-06-30 21:59:07 +00001249# Find the source files, if location was not specified.
1250if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001252 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001253 ac_confdir=`$as_dirname -- "$0" ||
1254$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$0" : 'X\(//\)[^/]' \| \
1256 X"$0" : 'X\(//\)$' \| \
1257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001276 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001277 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001278 srcdir=..
1279 fi
1280else
1281 ac_srcdir_defaulted=no
1282fi
Reid Spencera773bd52006-08-04 18:18:08 +00001283if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001285 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001287fi
Reid Spencera773bd52006-08-04 18:18:08 +00001288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001290 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001292 pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
John Criswell7a73b802003-06-30 21:59:07 +00001309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001317\`configure' configures llvm 3.0svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
John Criswell7a73b802003-06-30 21:59:07 +00001337Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001339 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001341 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001370_ACEOF
1371
1372 cat <<\_ACEOF
1373
1374System types:
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382 case $ac_init_help in
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001383 short | recursive ) echo "Configuration of llvm 3.0svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001384 esac
1385 cat <<\_ACEOF
1386
1387Optional Features:
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001390 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001391 --enable-optimized Compile with optimizations enabled (default is NO)
1392 --enable-profiling Compile with profiling enabled (default is NO)
1393 --enable-assertions Compile with assertion checks enabled (default is
1394 YES)
David Greenea696d242007-06-28 19:36:08 +00001395 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001396 Compile with expensive debug checks enabled (default
1397 is NO)
1398 --enable-debug-runtime Build runtime libs with debug symbols (default is
1399 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001400 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1401 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001402 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001403 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001404 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001405 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001406 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001407 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001408 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001409 --enable-shared Build a shared library and link tools against it
1410 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001411 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1412 Win32 DLL (default is YES)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001413 --enable-timestamps Enable embedding timestamp information in build
1414 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001415 --enable-targets Build specific host targets: all or
1416 target1,target2,... Valid targets are: host, x86,
1417 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001418 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1419 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001424 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001425 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001426
1427Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001430 --with-optimize-option Select the compiler options to use for optimized
1431 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001432 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001433 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001434 --with-ocaml-libdir Specify install location for ocaml bindings (default
1435 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001436 --with-clang-resource-dir
1437 Relative directory from the Clang binary for
1438 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001439 --with-c-include-dirs Colon separated list of directories clang will
1440 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001441 --with-cxx-include-root Directory with the libstdc++ headers.
1442 --with-cxx-include-arch Architecture of the libstdc++ headers.
1443 --with-cxx-include-32bit-dir
1444 32 bit multilib dir.
1445 --with-cxx-include-64bit-dir
1446 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001447 --with-binutils-include Specify path to binutils/include/ containing
1448 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001449 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001450 submitted (default=http://llvm.org/bugs/)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001451 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001452 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001453 --with-oprofile=<prefix>
1454 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001455
1456Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001457 CC C compiler command
1458 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001462 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001465 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Use these variables to override the choices made by `configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
1470Report bugs to <llvmbugs@cs.uiuc.edu>.
1471_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001472ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001473fi
1474
1475if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001478 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001479 ac_builddir=.
1480
Reid Spencera773bd52006-08-04 18:18:08 +00001481case "$ac_dir" in
1482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001485 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490 esac ;;
1491esac
1492ac_abs_top_builddir=$ac_pwd
1493ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494# for backward compatibility:
1495ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001496
1497case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001498 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001499 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001503 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1506 *) # Relative name.
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001510esac
Reid Spencera773bd52006-08-04 18:18:08 +00001511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001512
Reid Spencera773bd52006-08-04 18:18:08 +00001513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001521 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001523 fi || ac_status=$?
1524 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001525 done
1526fi
1527
Reid Spencera773bd52006-08-04 18:18:08 +00001528test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001529if $ac_init_version; then
1530 cat <<\_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001531llvm configure 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001532generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001534Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001536This configure script is free software; the Free Software Foundation
1537gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001538
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001539Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001540_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001541 exit
John Criswell7a73b802003-06-30 21:59:07 +00001542fi
Reid Spencera773bd52006-08-04 18:18:08 +00001543cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001544This file contains any messages produced by compilers while
1545running configure, to aid debugging if configure makes a mistake.
1546
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001547It was created by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001548generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001549
1550 $ $0 $@
1551
1552_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001553exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001554{
1555cat <<_ASUNAME
1556## --------- ##
1557## Platform. ##
1558## --------- ##
1559
1560hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565
1566/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1568
1569/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1570/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1571/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001572/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001573/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1574/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1575/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1576
1577_ASUNAME
1578
1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580for as_dir in $PATH
1581do
1582 IFS=$as_save_IFS
1583 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001584 echo "PATH: $as_dir"
1585done
Reid Spencera773bd52006-08-04 18:18:08 +00001586IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001587
1588} >&5
1589
1590cat >&5 <<_ACEOF
1591
1592
1593## ----------- ##
1594## Core tests. ##
1595## ----------- ##
1596
1597_ACEOF
1598
1599
1600# Keep a trace of the command line.
1601# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001602# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001603# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001604# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001605ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001606ac_configure_args0=
1607ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001608ac_must_keep_next=false
1609for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001610do
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 for ac_arg
1612 do
1613 case $ac_arg in
1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616 | -silent | --silent | --silen | --sile | --sil)
1617 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001618 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 esac
1621 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001626 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001628 case $ac_arg in
1629 *=* | --config-cache | -C | -disable-* | --disable-* \
1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632 | -with-* | --with-* | -without-* | --without-* | --x)
1633 case "$ac_configure_args0 " in
1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1635 esac
1636 ;;
1637 -* ) ac_must_keep_next=true ;;
1638 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001639 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001640 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ;;
1642 esac
1643 done
John Criswell7a73b802003-06-30 21:59:07 +00001644done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646$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 +00001647
1648# When interrupted or exit'd, cleanup temporary files, and complete
1649# config.log. We remove comments because anyway the quotes in there
1650# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001651# WARNING: Use '\'' to represent an apostrophe within the trap.
1652# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001653trap 'exit_status=$?
1654 # Save into config.log some information that might help in debugging.
1655 {
1656 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001657
John Criswell7a73b802003-06-30 21:59:07 +00001658 cat <<\_ASBOX
1659## ---------------- ##
1660## Cache variables. ##
1661## ---------------- ##
1662_ASBOX
1663 echo
1664 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001665(
1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667 eval ac_val=\$$ac_var
1668 case $ac_val in #(
1669 *${as_nl}*)
1670 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001673 esac
1674 case $ac_var in #(
1675 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001677 esac ;;
1678 esac
1679 done
John Criswell7a73b802003-06-30 21:59:07 +00001680 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001683 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001684 "s/'\''/'\''\\\\'\'''\''/g;
1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1686 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001687 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001689 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001690 esac |
1691 sort
1692)
John Criswell7a73b802003-06-30 21:59:07 +00001693 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001694
1695 cat <<\_ASBOX
1696## ----------------- ##
1697## Output variables. ##
1698## ----------------- ##
1699_ASBOX
1700 echo
1701 for ac_var in $ac_subst_vars
1702 do
Reid Spencera773bd52006-08-04 18:18:08 +00001703 eval ac_val=\$$ac_var
1704 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001706 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001707 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001708 done | sort
1709 echo
1710
1711 if test -n "$ac_subst_files"; then
1712 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001713## ------------------- ##
1714## File substitutions. ##
1715## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001716_ASBOX
1717 echo
1718 for ac_var in $ac_subst_files
1719 do
Reid Spencera773bd52006-08-04 18:18:08 +00001720 eval ac_val=\$$ac_var
1721 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001723 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001724 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 done | sort
1726 echo
1727 fi
1728
John Criswell7a73b802003-06-30 21:59:07 +00001729 if test -s confdefs.h; then
1730 cat <<\_ASBOX
1731## ----------- ##
1732## confdefs.h. ##
1733## ----------- ##
1734_ASBOX
1735 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001736 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001737 echo
1738 fi
1739 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001740 echo "$as_me: caught signal $ac_signal"
1741 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001742 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001743 rm -f core *.core core.conftest.* &&
1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001745 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001746' 0
John Criswell7a73b802003-06-30 21:59:07 +00001747for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001749done
1750ac_signal=0
1751
1752# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001753rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001754
1755# Predefined preprocessor variables.
1756
1757cat >>confdefs.h <<_ACEOF
1758#define PACKAGE_NAME "$PACKAGE_NAME"
1759_ACEOF
1760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001761
John Criswell7a73b802003-06-30 21:59:07 +00001762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_VERSION "$PACKAGE_VERSION"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_STRING "$PACKAGE_STRING"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1779_ACEOF
1780
1781
1782# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001783# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001784if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001786elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789 set x "$ac_default_prefix/share/config.site" \
1790 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792shift
1793for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001794do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 if test -r "$ac_site_file"; then
1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001798 sed 's/^/| /' "$ac_site_file" >&5
1799 . "$ac_site_file"
1800 fi
1801done
1802
1803if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001804 # Some versions of bash will fail to source /dev/null (special
1805 # files actually), so we avoid doing that.
1806 if test -f "$cache_file"; then
1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001809 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001810 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001812 esac
1813 fi
1814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001817 >$cache_file
1818fi
1819
1820# Check that the precious variables saved in the cache have kept the same
1821# value.
1822ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001823for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001828 case $ac_old_set,$ac_new_set in
1829 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001832 ac_cache_corrupted=: ;;
1833 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001836 ac_cache_corrupted=: ;;
1837 ,);;
1838 *)
1839 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1843echo "$as_me: former value: $ac_old_val" >&2;}
1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1845echo "$as_me: current value: $ac_new_val" >&2;}
1846 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001847 fi;;
1848 esac
1849 # Pass precious variables to config.status.
1850 if test "$ac_new_set" = set; then
1851 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001853 *) ac_arg=$ac_var=$ac_new_val ;;
1854 esac
1855 case " $ac_configure_args " in
1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 esac
1859 fi
1860done
1861if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001867fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
Reid Spencera773bd52006-08-04 18:18:08 +00001892
John Criswell7a73b802003-06-30 21:59:07 +00001893ac_ext=c
1894ac_cpp='$CPP $CPPFLAGS'
1895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898
1899
1900
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001901LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001902
1903
1904
1905
1906
1907
1908
John Criswell7a73b802003-06-30 21:59:07 +00001909ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001910for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001911 if test -f "$ac_dir/install-sh"; then
1912 ac_aux_dir=$ac_dir
1913 ac_install_sh="$ac_aux_dir/install-sh -c"
1914 break
1915 elif test -f "$ac_dir/install.sh"; then
1916 ac_aux_dir=$ac_dir
1917 ac_install_sh="$ac_aux_dir/install.sh -c"
1918 break
1919 elif test -f "$ac_dir/shtool"; then
1920 ac_aux_dir=$ac_dir
1921 ac_install_sh="$ac_aux_dir/shtool install -c"
1922 break
1923 fi
John Criswell7a73b802003-06-30 21:59:07 +00001924done
1925if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001926 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1927echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1928 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001929fi
Reid Spencera773bd52006-08-04 18:18:08 +00001930
1931# These three variables are undocumented and unsupported,
1932# and are intended to be withdrawn in a future Autoconf release.
1933# They can cause serious problems if a builder's source tree is in a directory
1934# whose full name contains unusual characters.
1935ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1936ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1937ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1938
John Criswell7a73b802003-06-30 21:59:07 +00001939
John Criswell392aaa32003-07-22 19:18:09 +00001940
Reid Spencer2706f8c2004-09-19 23:53:36 +00001941if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001942 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001943 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1944echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1945 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001946 fi
John Criswell93e1c722003-09-15 17:04:06 +00001947fi
1948
Nick Lewycky83fc4472009-09-29 05:48:51 +00001949ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001950ac_cpp='$CPP $CPPFLAGS'
1951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001954if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001955 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001956 do
1957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001959{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1961if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001963else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001966else
1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970 IFS=$as_save_IFS
1971 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 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 +00001974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001976 break 2
1977 fi
1978done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001979done
Reid Spencera773bd52006-08-04 18:18:08 +00001980IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001981
1982fi
1983fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001984CC=$ac_cv_prog_CC
1985if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001986 { echo "$as_me:$LINENO: result: $CC" >&5
1987echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001989 { echo "$as_me:$LINENO: result: no" >&5
1990echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001991fi
1992
Reid Spencera773bd52006-08-04 18:18:08 +00001993
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001994 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00001995 done
1996fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001997if test -z "$CC"; then
1998 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00001999 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002000do
2001 # Extract the first word of "$ac_prog", so it can be a program name with args.
2002set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002007else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002008 if test -n "$ac_ct_CC"; then
2009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002010else
2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012for as_dir in $PATH
2013do
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 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 +00002018 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002020 break 2
2021 fi
2022done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002023done
Reid Spencera773bd52006-08-04 18:18:08 +00002024IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002025
2026fi
2027fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002028ac_ct_CC=$ac_cv_prog_ac_ct_CC
2029if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002030 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2031echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002033 { echo "$as_me:$LINENO: result: no" >&5
2034echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002035fi
2036
Reid Spencera773bd52006-08-04 18:18:08 +00002037
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002039done
John Criswell7a73b802003-06-30 21:59:07 +00002040
Reid Spencera773bd52006-08-04 18:18:08 +00002041 if test "x$ac_ct_CC" = x; then
2042 CC=""
2043 else
2044 case $cross_compiling:$ac_tool_warned in
2045yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2047whose name does not start with the host triplet. If you think this
2048configuration is useful to you, please write to autoconf@gnu.org." >&5
2049echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2050whose name does not start with the host triplet. If you think this
2051configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002052ac_tool_warned=yes ;;
2053esac
2054 CC=$ac_ct_CC
2055 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002056fi
2057
John Criswell7a73b802003-06-30 21:59:07 +00002058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002059test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2060See \`config.log' for more details." >&5
2061echo "$as_me: error: no acceptable C compiler found in \$PATH
2062See \`config.log' for more details." >&2;}
2063 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002064
John Criswell7a73b802003-06-30 21:59:07 +00002065# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002066echo "$as_me:$LINENO: checking for C compiler version" >&5
2067ac_compiler=`set X $ac_compile; echo $2`
2068{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002069case "(($ac_try" in
2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071 *) ac_try_echo=$ac_try;;
2072esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2074 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002075 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }
2078{ (ac_try="$ac_compiler -v >&5"
2079case "(($ac_try" in
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2082esac
2083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084 (eval "$ac_compiler -v >&5") 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088{ (ac_try="$ac_compiler -V >&5"
2089case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092esac
2093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler -V >&5") 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002099cat >conftest.$ac_ext <<_ACEOF
2100/* confdefs.h. */
2101_ACEOF
2102cat confdefs.h >>conftest.$ac_ext
2103cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002104/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002105
John Criswell7a73b802003-06-30 21:59:07 +00002106int
2107main ()
2108{
2109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002115ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002116# Try to create an executable without -o first, disregard a.out.
2117# It will help us diagnose broken compilers, and finding out an intuition
2118# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002119{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2120echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2121ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2122#
2123# List of possible output files, starting from the most likely.
2124# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2125# only as a last resort. b.out is created by i960 compilers.
2126ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2127#
2128# The IRIX 6 linker writes into existing files which may not be
2129# executable, retaining their permissions. Remove them first so a
2130# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002131ac_rmfiles=
2132for ac_file in $ac_files
2133do
2134 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002136 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2137 esac
2138done
2139rm -f $ac_rmfiles
2140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002141if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002142case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002147 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002148 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002151 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2152# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2153# in a Makefile. We should not override ac_cv_exeext if it was cached,
2154# so that the user can short-circuit this test for compilers unknown to
2155# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002156for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002157do
2158 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002159 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002161 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002162 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002163 # We found the default executable, but exeext='' is most
2164 # certainly right.
2165 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002166 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002167 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002168 then :; else
2169 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2170 fi
2171 # We set ac_cv_exeext here because the later test for it is not
2172 # safe: cross compilers may not add the suffix if given an `-o'
2173 # argument, so we may need to know it at that point already.
2174 # Even if this section looks crufty: it has the advantage of
2175 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002176 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002177 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002178 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002179 esac
2180done
Reid Spencera773bd52006-08-04 18:18:08 +00002181test "$ac_cv_exeext" = no && ac_cv_exeext=
2182
John Criswell7a73b802003-06-30 21:59:07 +00002183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002184 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002185sed 's/^/| /' conftest.$ac_ext >&5
2186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002187{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2188See \`config.log' for more details." >&5
2189echo "$as_me: error: C compiler cannot create executables
2190See \`config.log' for more details." >&2;}
2191 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002192fi
John Criswell7a73b802003-06-30 21:59:07 +00002193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002194ac_exeext=$ac_cv_exeext
2195{ echo "$as_me:$LINENO: result: $ac_file" >&5
2196echo "${ECHO_T}$ac_file" >&6; }
2197
2198# Check that the compiler produces executables we can run. If not, either
2199# the compiler is broken, or we cross compile.
2200{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2201echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2202# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2203# If not cross compiling, check that we can run a simple program.
2204if test "$cross_compiling" != yes; then
2205 if { ac_try='./$ac_file'
2206 { (case "(($ac_try" in
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2209esac
2210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2211 (eval "$ac_try") 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 cross_compiling=no
2216 else
2217 if test "$cross_compiling" = maybe; then
2218 cross_compiling=yes
2219 else
2220 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2221If you meant to cross compile, use \`--host'.
2222See \`config.log' for more details." >&5
2223echo "$as_me: error: cannot run C compiled programs.
2224If you meant to cross compile, use \`--host'.
2225See \`config.log' for more details." >&2;}
2226 { (exit 1); exit 1; }; }
2227 fi
2228 fi
2229fi
2230{ echo "$as_me:$LINENO: result: yes" >&5
2231echo "${ECHO_T}yes" >&6; }
2232
2233rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002234ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002235# Check that the compiler produces executables we can run. If not, either
2236# the compiler is broken, or we cross compile.
2237{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2238echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2239{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2240echo "${ECHO_T}$cross_compiling" >&6; }
2241
2242{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2243echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2244if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002245case "(($ac_try" in
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2248esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002250 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002251 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002254 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2255# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2256# work properly (i.e., refer to `conftest.exe'), while it won't with
2257# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002258for ac_file in conftest.exe conftest conftest.*; do
2259 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002260 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002262 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002263 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002264 * ) break;;
2265 esac
2266done
2267else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269See \`config.log' for more details." >&5
2270echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002273fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002274
2275rm -f conftest$ac_cv_exeext
2276{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002278
2279rm -f conftest.$ac_ext
2280EXEEXT=$ac_cv_exeext
2281ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002282{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2284if test "${ac_cv_objext+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002287 cat >conftest.$ac_ext <<_ACEOF
2288/* confdefs.h. */
2289_ACEOF
2290cat confdefs.h >>conftest.$ac_ext
2291cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002292/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002293
John Criswell7a73b802003-06-30 21:59:07 +00002294int
2295main ()
2296{
2297
2298 ;
2299 return 0;
2300}
2301_ACEOF
2302rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002303if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002304case "(($ac_try" in
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2307esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002309 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002310 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002313 for ac_file in conftest.o conftest.obj conftest.*; do
2314 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002315 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2318 break;;
2319 esac
2320done
2321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002323sed 's/^/| /' conftest.$ac_ext >&5
2324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002325{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2326See \`config.log' for more details." >&5
2327echo "$as_me: error: cannot compute suffix of object files: cannot compile
2328See \`config.log' for more details." >&2;}
2329 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002331
John Criswell7a73b802003-06-30 21:59:07 +00002332rm -f conftest.$ac_cv_objext conftest.$ac_ext
2333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2335echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002336OBJEXT=$ac_cv_objext
2337ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2339echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2340if test "${ac_cv_c_compiler_gnu+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343 cat >conftest.$ac_ext <<_ACEOF
2344/* confdefs.h. */
2345_ACEOF
2346cat confdefs.h >>conftest.$ac_ext
2347cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002348/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002349
John Criswell7a73b802003-06-30 21:59:07 +00002350int
2351main ()
2352{
2353#ifndef __GNUC__
2354 choke me
2355#endif
2356
2357 ;
2358 return 0;
2359}
2360_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002361rm -f conftest.$ac_objext
2362if { (ac_try="$ac_compile"
2363case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366esac
2367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_compile") 2>conftest.er1
2369 ac_status=$?
2370 grep -v '^ *+' conftest.er1 >conftest.err
2371 rm -f conftest.er1
2372 cat conftest.err >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2376 { (case "(($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_try") 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389esac
2390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_try") 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002395 ac_compiler_gnu=yes
2396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002397 echo "$as_me: failed program was:" >&5
2398sed 's/^/| /' conftest.$ac_ext >&5
2399
2400 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002402
Reid Spencera773bd52006-08-04 18:18:08 +00002403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002405
2406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2408echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2409GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410ac_test_CFLAGS=${CFLAGS+set}
2411ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2414if test "${ac_cv_prog_cc_g+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002416else
Reid Spencera773bd52006-08-04 18:18:08 +00002417 ac_save_c_werror_flag=$ac_c_werror_flag
2418 ac_c_werror_flag=yes
2419 ac_cv_prog_cc_g=no
2420 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002421 cat >conftest.$ac_ext <<_ACEOF
2422/* confdefs.h. */
2423_ACEOF
2424cat confdefs.h >>conftest.$ac_ext
2425cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002426/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002427
John Criswell7a73b802003-06-30 21:59:07 +00002428int
2429main ()
2430{
2431
2432 ;
2433 return 0;
2434}
2435_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002436rm -f conftest.$ac_objext
2437if { (ac_try="$ac_compile"
2438case "(($ac_try" in
2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2441esac
2442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443 (eval "$ac_compile") 2>conftest.er1
2444 ac_status=$?
2445 grep -v '^ *+' conftest.er1 >conftest.err
2446 rm -f conftest.er1
2447 cat conftest.err >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2451 { (case "(($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_try") 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464esac
2465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_try") 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002471else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 CFLAGS=""
2476 cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002481/* end confdefs.h. */
2482
2483int
2484main ()
2485{
2486
2487 ;
2488 return 0;
2489}
2490_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002491rm -f conftest.$ac_objext
2492if { (ac_try="$ac_compile"
2493case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2496esac
2497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_compile") 2>conftest.er1
2499 ac_status=$?
2500 grep -v '^ *+' conftest.er1 >conftest.err
2501 rm -f conftest.er1
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2506 { (case "(($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_try") 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519esac
2520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_try") 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2525 :
Torok Edwin871384f2010-01-26 08:50:50 +00002526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002527 echo "$as_me: failed program was:" >&5
2528sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002531 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002532 cat >conftest.$ac_ext <<_ACEOF
2533/* confdefs.h. */
2534_ACEOF
2535cat confdefs.h >>conftest.$ac_ext
2536cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002537/* end confdefs.h. */
2538
2539int
2540main ()
2541{
2542
2543 ;
2544 return 0;
2545}
2546_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002547rm -f conftest.$ac_objext
2548if { (ac_try="$ac_compile"
2549case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552esac
2553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compile") 2>conftest.er1
2555 ac_status=$?
2556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562 { (case "(($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_try") 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575esac
2576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002581 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002582else
2583 echo "$as_me: failed program was:" >&5
2584sed 's/^/| /' conftest.$ac_ext >&5
2585
2586
John Criswell7a73b802003-06-30 21:59:07 +00002587fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002588
Reid Spencera773bd52006-08-04 18:18:08 +00002589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002591
Reid Spencera773bd52006-08-04 18:18:08 +00002592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002594
Reid Spencera773bd52006-08-04 18:18:08 +00002595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 ac_c_werror_flag=$ac_save_c_werror_flag
2597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002598{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2599echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600if test "$ac_test_CFLAGS" = set; then
2601 CFLAGS=$ac_save_CFLAGS
2602elif test $ac_cv_prog_cc_g = yes; then
2603 if test "$GCC" = yes; then
2604 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002605 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002606 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002607 fi
2608else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609 if test "$GCC" = yes; then
2610 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002611 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002613 fi
2614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002615{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2616echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2617if test "${ac_cv_prog_cc_c89+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619else
Reid Spencera773bd52006-08-04 18:18:08 +00002620 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002622cat >conftest.$ac_ext <<_ACEOF
2623/* confdefs.h. */
2624_ACEOF
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627/* end confdefs.h. */
2628#include <stdarg.h>
2629#include <stdio.h>
2630#include <sys/types.h>
2631#include <sys/stat.h>
2632/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2633struct buf { int x; };
2634FILE * (*rcsopen) (struct buf *, struct stat *, int);
2635static char *e (p, i)
2636 char **p;
2637 int i;
2638{
2639 return p[i];
2640}
2641static char *f (char * (*g) (char **, int), char **p, ...)
2642{
2643 char *s;
2644 va_list v;
2645 va_start (v,p);
2646 s = g (p, va_arg (v,int));
2647 va_end (v);
2648 return s;
2649}
2650
2651/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2652 function prototypes and stuff, but not '\xHH' hex character constants.
2653 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002654 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2656 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002657 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2659
Reid Spencera773bd52006-08-04 18:18:08 +00002660/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2661 inside strings and character constants. */
2662#define FOO(x) 'x'
2663int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2664
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665int test (int i, double x);
2666struct s1 {int (*f) (int a);};
2667struct s2 {int (*f) (double a);};
2668int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2669int argc;
2670char **argv;
2671int
2672main ()
2673{
2674return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2675 ;
2676 return 0;
2677}
2678_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002679for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2680 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681do
2682 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002683 rm -f conftest.$ac_objext
2684if { (ac_try="$ac_compile"
2685case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688esac
2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_compile") 2>conftest.er1
2691 ac_status=$?
2692 grep -v '^ *+' conftest.er1 >conftest.err
2693 rm -f conftest.er1
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2698 { (case "(($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_try") 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711esac
2712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_try") 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002717 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002718else
2719 echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002723fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002724
Reid Spencera773bd52006-08-04 18:18:08 +00002725rm -f core conftest.err conftest.$ac_objext
2726 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002727done
Reid Spencera773bd52006-08-04 18:18:08 +00002728rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002729CC=$ac_save_CC
2730
2731fi
Reid Spencera773bd52006-08-04 18:18:08 +00002732# AC_CACHE_VAL
2733case "x$ac_cv_prog_cc_c89" in
2734 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002735 { echo "$as_me:$LINENO: result: none needed" >&5
2736echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002737 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002738 { echo "$as_me:$LINENO: result: unsupported" >&5
2739echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002740 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002741 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002742 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2743echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002744esac
2745
John Criswell0c38eaf2003-09-10 15:17:25 +00002746
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002747ac_ext=c
2748ac_cpp='$CPP $CPPFLAGS'
2749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752
Eric Christopherffee5722011-09-16 20:36:25 +00002753ac_ext=cpp
2754ac_cpp='$CXXCPP $CPPFLAGS'
2755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2758if test -z "$CXX"; then
2759 if test -n "$CCC"; then
2760 CXX=$CCC
2761 else
2762 if test -n "$ac_tool_prefix"; then
2763 for ac_prog in clang++ llvm-g++ g++
2764 do
2765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2766set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2769if test "${ac_cv_prog_CXX+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771else
2772 if test -n "$CXX"; then
2773 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786done
2787done
2788IFS=$as_save_IFS
2789
2790fi
2791fi
2792CXX=$ac_cv_prog_CXX
2793if test -n "$CXX"; then
2794 { echo "$as_me:$LINENO: result: $CXX" >&5
2795echo "${ECHO_T}$CXX" >&6; }
2796else
2797 { echo "$as_me:$LINENO: result: no" >&5
2798echo "${ECHO_T}no" >&6; }
2799fi
2800
2801
2802 test -n "$CXX" && break
2803 done
2804fi
2805if test -z "$CXX"; then
2806 ac_ct_CXX=$CXX
2807 for ac_prog in clang++ llvm-g++ g++
2808do
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810set dummy $ac_prog; ac_word=$2
2811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
2816 if test -n "$ac_ct_CXX"; then
2817 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_ac_ct_CXX="$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831done
2832IFS=$as_save_IFS
2833
2834fi
2835fi
2836ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2837if test -n "$ac_ct_CXX"; then
2838 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2839echo "${ECHO_T}$ac_ct_CXX" >&6; }
2840else
2841 { echo "$as_me:$LINENO: result: no" >&5
2842echo "${ECHO_T}no" >&6; }
2843fi
2844
2845
2846 test -n "$ac_ct_CXX" && break
2847done
2848
2849 if test "x$ac_ct_CXX" = x; then
2850 CXX="g++"
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853yes:)
2854{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2855whose name does not start with the host triplet. If you think this
2856configuration is useful to you, please write to autoconf@gnu.org." >&5
2857echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2858whose name does not start with the host triplet. If you think this
2859configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2860ac_tool_warned=yes ;;
2861esac
2862 CXX=$ac_ct_CXX
2863 fi
2864fi
2865
2866 fi
2867fi
2868# Provide some information about the compiler.
2869echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2870ac_compiler=`set X $ac_compile; echo $2`
2871{ (ac_try="$ac_compiler --version >&5"
2872case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875esac
2876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compiler --version >&5") 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2881{ (ac_try="$ac_compiler -v >&5"
2882case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885esac
2886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compiler -v >&5") 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891{ (ac_try="$ac_compiler -V >&5"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler -V >&5") 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901
2902{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2903echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2904if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906else
2907 cat >conftest.$ac_ext <<_ACEOF
2908/* confdefs.h. */
2909_ACEOF
2910cat confdefs.h >>conftest.$ac_ext
2911cat >>conftest.$ac_ext <<_ACEOF
2912/* end confdefs.h. */
2913
2914int
2915main ()
2916{
2917#ifndef __GNUC__
2918 choke me
2919#endif
2920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext
2926if { (ac_try="$ac_compile"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compile") 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2940 { (case "(($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_try") 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953esac
2954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_try") 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 ac_compiler_gnu=yes
2960else
2961 echo "$as_me: failed program was:" >&5
2962sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 ac_compiler_gnu=no
2965fi
2966
2967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2969
2970fi
2971{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2972echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2973GXX=`test $ac_compiler_gnu = yes && echo yes`
2974ac_test_CXXFLAGS=${CXXFLAGS+set}
2975ac_save_CXXFLAGS=$CXXFLAGS
2976{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2977echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2978if test "${ac_cv_prog_cxx_g+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2982 ac_cxx_werror_flag=yes
2983 ac_cv_prog_cxx_g=no
2984 CXXFLAGS="-g"
2985 cat >conftest.$ac_ext <<_ACEOF
2986/* confdefs.h. */
2987_ACEOF
2988cat confdefs.h >>conftest.$ac_ext
2989cat >>conftest.$ac_ext <<_ACEOF
2990/* end confdefs.h. */
2991
2992int
2993main ()
2994{
2995
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000rm -f conftest.$ac_objext
3001if { (ac_try="$ac_compile"
3002case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3015 { (case "(($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_try") 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 ac_cv_prog_cxx_g=yes
3035else
3036 echo "$as_me: failed program was:" >&5
3037sed 's/^/| /' conftest.$ac_ext >&5
3038
3039 CXXFLAGS=""
3040 cat >conftest.$ac_ext <<_ACEOF
3041/* confdefs.h. */
3042_ACEOF
3043cat confdefs.h >>conftest.$ac_ext
3044cat >>conftest.$ac_ext <<_ACEOF
3045/* end confdefs.h. */
3046
3047int
3048main ()
3049{
3050
3051 ;
3052 return 0;
3053}
3054_ACEOF
3055rm -f conftest.$ac_objext
3056if { (ac_try="$ac_compile"
3057case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060esac
3061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>conftest.er1
3063 ac_status=$?
3064 grep -v '^ *+' conftest.er1 >conftest.err
3065 rm -f conftest.er1
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } &&
3069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3070 { (case "(($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_try") 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; } &&
3079 { ac_try='test -s conftest.$ac_objext'
3080 { (case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083esac
3084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_try") 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 :
3090else
3091 echo "$as_me: failed program was:" >&5
3092sed 's/^/| /' conftest.$ac_ext >&5
3093
3094 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3095 CXXFLAGS="-g"
3096 cat >conftest.$ac_ext <<_ACEOF
3097/* confdefs.h. */
3098_ACEOF
3099cat confdefs.h >>conftest.$ac_ext
3100cat >>conftest.$ac_ext <<_ACEOF
3101/* end confdefs.h. */
3102
3103int
3104main ()
3105{
3106
3107 ;
3108 return 0;
3109}
3110_ACEOF
3111rm -f conftest.$ac_objext
3112if { (ac_try="$ac_compile"
3113case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3126 { (case "(($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_try") 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 ac_cv_prog_cxx_g=yes
3146else
3147 echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150
3151fi
3152
3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154fi
3155
3156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157fi
3158
3159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3161fi
3162{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3163echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3164if test "$ac_test_CXXFLAGS" = set; then
3165 CXXFLAGS=$ac_save_CXXFLAGS
3166elif test $ac_cv_prog_cxx_g = yes; then
3167 if test "$GXX" = yes; then
3168 CXXFLAGS="-g -O2"
3169 else
3170 CXXFLAGS="-g"
3171 fi
3172else
3173 if test "$GXX" = yes; then
3174 CXXFLAGS="-O2"
3175 else
3176 CXXFLAGS=
3177 fi
3178fi
3179ac_ext=c
3180ac_cpp='$CPP $CPPFLAGS'
3181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003184
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003185ac_ext=c
3186ac_cpp='$CPP $CPPFLAGS'
3187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003190{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3191echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003192# On Suns, sometimes $CPP names a directory.
3193if test -n "$CPP" && test -d "$CPP"; then
3194 CPP=
3195fi
3196if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003197 if test "${ac_cv_prog_CPP+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003199else
3200 # Double quotes because CPP needs to be expanded
3201 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3202 do
3203 ac_preproc_ok=false
3204for ac_c_preproc_warn_flag in '' yes
3205do
3206 # Use a header file that comes with gcc, so configuring glibc
3207 # with a fresh cross-compiler works.
3208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3209 # <limits.h> exists even on freestanding compilers.
3210 # On the NeXT, cc -E runs the code through the compiler's parser,
3211 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003212 cat >conftest.$ac_ext <<_ACEOF
3213/* confdefs.h. */
3214_ACEOF
3215cat confdefs.h >>conftest.$ac_ext
3216cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003217/* end confdefs.h. */
3218#ifdef __STDC__
3219# include <limits.h>
3220#else
3221# include <assert.h>
3222#endif
3223 Syntax error
3224_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003225if { (ac_try="$ac_cpp conftest.$ac_ext"
3226case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229esac
3230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } >/dev/null; then
3238 if test -s conftest.err; then
3239 ac_cpp_err=$ac_c_preproc_warn_flag
3240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3241 else
3242 ac_cpp_err=
3243 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003244else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003245 ac_cpp_err=yes
3246fi
3247if test -z "$ac_cpp_err"; then
3248 :
3249else
3250 echo "$as_me: failed program was:" >&5
3251sed 's/^/| /' conftest.$ac_ext >&5
3252
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253 # Broken: fails on valid input.
3254continue
3255fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003256
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257rm -f conftest.err conftest.$ac_ext
3258
Reid Spencera773bd52006-08-04 18:18:08 +00003259 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003261 cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266/* end confdefs.h. */
3267#include <ac_nonexistent.h>
3268_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003269if { (ac_try="$ac_cpp conftest.$ac_ext"
3270case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
3274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285 else
3286 ac_cpp_err=
3287 fi
3288else
3289 ac_cpp_err=yes
3290fi
3291if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003292 # Broken: success on invalid input.
3293continue
3294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003295 echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298 # Passes both tests.
3299ac_preproc_ok=:
3300break
3301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003302
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303rm -f conftest.err conftest.$ac_ext
3304
3305done
3306# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3307rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003308if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003309 break
3310fi
3311
3312 done
3313 ac_cv_prog_CPP=$CPP
3314
3315fi
3316 CPP=$ac_cv_prog_CPP
3317else
3318 ac_cv_prog_CPP=$CPP
3319fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003320{ echo "$as_me:$LINENO: result: $CPP" >&5
3321echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322ac_preproc_ok=false
3323for ac_c_preproc_warn_flag in '' yes
3324do
3325 # Use a header file that comes with gcc, so configuring glibc
3326 # with a fresh cross-compiler works.
3327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3328 # <limits.h> exists even on freestanding compilers.
3329 # On the NeXT, cc -E runs the code through the compiler's parser,
3330 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003331 cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336/* end confdefs.h. */
3337#ifdef __STDC__
3338# include <limits.h>
3339#else
3340# include <assert.h>
3341#endif
3342 Syntax error
3343_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003344if { (ac_try="$ac_cpp conftest.$ac_ext"
3345case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348esac
3349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3351 ac_status=$?
3352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } >/dev/null; then
3357 if test -s conftest.err; then
3358 ac_cpp_err=$ac_c_preproc_warn_flag
3359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3360 else
3361 ac_cpp_err=
3362 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003363else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003364 ac_cpp_err=yes
3365fi
3366if test -z "$ac_cpp_err"; then
3367 :
3368else
3369 echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372 # Broken: fails on valid input.
3373continue
3374fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003375
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376rm -f conftest.err conftest.$ac_ext
3377
Reid Spencera773bd52006-08-04 18:18:08 +00003378 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003380 cat >conftest.$ac_ext <<_ACEOF
3381/* confdefs.h. */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385/* end confdefs.h. */
3386#include <ac_nonexistent.h>
3387_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003388if { (ac_try="$ac_cpp conftest.$ac_ext"
3389case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null; then
3401 if test -s conftest.err; then
3402 ac_cpp_err=$ac_c_preproc_warn_flag
3403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404 else
3405 ac_cpp_err=
3406 fi
3407else
3408 ac_cpp_err=yes
3409fi
3410if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003411 # Broken: success on invalid input.
3412continue
3413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003414 echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417 # Passes both tests.
3418ac_preproc_ok=:
3419break
3420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003421
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422rm -f conftest.err conftest.$ac_ext
3423
3424done
3425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3426rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003427if $ac_preproc_ok; then
3428 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003429else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003430 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3431See \`config.log' for more details." >&5
3432echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3433See \`config.log' for more details." >&2;}
3434 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435fi
3436
John Criswell7a73b802003-06-30 21:59:07 +00003437ac_ext=c
3438ac_cpp='$CPP $CPPFLAGS'
3439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442
John Criswell7a73b802003-06-30 21:59:07 +00003443
Eric Christopherffee5722011-09-16 20:36:25 +00003444
3445
3446if test -d ${srcdir}/projects/llvm-gcc ; then
3447 subdirs="$subdirs projects/llvm-gcc"
3448
3449fi
3450
3451if test -d ${srcdir}/projects/test-suite ; then
3452 subdirs="$subdirs projects/test-suite"
3453
3454fi
3455
3456if test -d ${srcdir}/projects/llvm-test ; then
3457 subdirs="$subdirs projects/llvm-test"
3458
3459fi
3460
3461if test -d ${srcdir}/projects/poolalloc ; then
3462 subdirs="$subdirs projects/poolalloc"
3463
3464fi
3465
3466if test -d ${srcdir}/projects/llvm-poolalloc ; then
3467 subdirs="$subdirs projects/llvm-poolalloc"
3468
3469fi
3470
3471for i in `ls ${srcdir}/projects`
3472do
3473 if test -d ${srcdir}/projects/${i} ; then
3474 case ${i} in
3475 sample) subdirs="$subdirs projects/sample"
3476 ;;
3477 privbracket) subdirs="$subdirs projects/privbracket"
3478 ;;
3479 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3480 ;;
3481 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3482;;
3483 llvm-java) subdirs="$subdirs projects/llvm-java"
3484 ;;
3485 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3486 ;;
3487 safecode) subdirs="$subdirs projects/safecode"
3488 ;;
3489 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3490 ;;
3491 llvm-gcc) ;;
3492 test-suite) ;;
3493 llvm-test) ;;
3494 poolalloc) ;;
3495 llvm-poolalloc) ;;
3496 *)
3497 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3498echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3499 ;;
3500 esac
3501 fi
3502done
3503
3504# Check whether --enable-polly was given.
3505if test "${enable_polly+set}" = set; then
3506 enableval=$enable_polly;
3507else
3508 enableval=default
3509fi
3510
3511case "$enableval" in
3512 yes) ENABLE_POLLY=1
3513 ;;
3514 no) ENABLE_POLLY=0
3515 ;;
3516 default) ENABLE_POLLY=1
3517 ;;
3518 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3519echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3520 { (exit 1); exit 1; }; } ;;
3521esac
3522
3523
3524if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3525 LLVM_HAS_POLLY=1
3526
3527 subdirs="$subdirs tools/polly"
3528
3529fi
3530
3531
3532# Make sure we can run config.sub.
3533$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3534 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3535echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3536 { (exit 1); exit 1; }; }
3537
3538{ echo "$as_me:$LINENO: checking build system type" >&5
3539echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3540if test "${ac_cv_build+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543 ac_build_alias=$build_alias
3544test "x$ac_build_alias" = x &&
3545 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3546test "x$ac_build_alias" = x &&
3547 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3548echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3549 { (exit 1); exit 1; }; }
3550ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3551 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3552echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3553 { (exit 1); exit 1; }; }
3554
3555fi
3556{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3557echo "${ECHO_T}$ac_cv_build" >&6; }
3558case $ac_cv_build in
3559*-*-*) ;;
3560*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3561echo "$as_me: error: invalid value of canonical build" >&2;}
3562 { (exit 1); exit 1; }; };;
3563esac
3564build=$ac_cv_build
3565ac_save_IFS=$IFS; IFS='-'
3566set x $ac_cv_build
3567shift
3568build_cpu=$1
3569build_vendor=$2
3570shift; shift
3571# Remember, the first character of IFS is used to create $*,
3572# except with old shells:
3573build_os=$*
3574IFS=$ac_save_IFS
3575case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3576
3577
3578{ echo "$as_me:$LINENO: checking host system type" >&5
3579echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3580if test "${ac_cv_host+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582else
3583 if test "x$host_alias" = x; then
3584 ac_cv_host=$ac_cv_build
3585else
3586 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3588echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3590fi
3591
3592fi
3593{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3594echo "${ECHO_T}$ac_cv_host" >&6; }
3595case $ac_cv_host in
3596*-*-*) ;;
3597*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3598echo "$as_me: error: invalid value of canonical host" >&2;}
3599 { (exit 1); exit 1; }; };;
3600esac
3601host=$ac_cv_host
3602ac_save_IFS=$IFS; IFS='-'
3603set x $ac_cv_host
3604shift
3605host_cpu=$1
3606host_vendor=$2
3607shift; shift
3608# Remember, the first character of IFS is used to create $*,
3609# except with old shells:
3610host_os=$*
3611IFS=$ac_save_IFS
3612case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3613
3614
3615{ echo "$as_me:$LINENO: checking target system type" >&5
3616echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3617if test "${ac_cv_target+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619else
3620 if test "x$target_alias" = x; then
3621 ac_cv_target=$ac_cv_host
3622else
3623 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3624 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3625echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3626 { (exit 1); exit 1; }; }
3627fi
3628
3629fi
3630{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3631echo "${ECHO_T}$ac_cv_target" >&6; }
3632case $ac_cv_target in
3633*-*-*) ;;
3634*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3635echo "$as_me: error: invalid value of canonical target" >&2;}
3636 { (exit 1); exit 1; }; };;
3637esac
3638target=$ac_cv_target
3639ac_save_IFS=$IFS; IFS='-'
3640set x $ac_cv_target
3641shift
3642target_cpu=$1
3643target_vendor=$2
3644shift; shift
3645# Remember, the first character of IFS is used to create $*,
3646# except with old shells:
3647target_os=$*
3648IFS=$ac_save_IFS
3649case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3650
3651
3652# The aliases save the names the user supplied, while $host etc.
3653# will get canonicalized.
3654test -n "$target_alias" &&
3655 test "$program_prefix$program_suffix$program_transform_name" = \
3656 NONENONEs,x,x, &&
3657 program_prefix=${target_alias}-
3658
3659{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3660echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3661if test "${llvm_cv_os_type+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664 case $host in
3665 *-*-aix*)
3666 llvm_cv_link_all_option="-Wl,--whole-archive"
3667 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3668 llvm_cv_os_type="AIX"
3669 llvm_cv_platform_type="Unix" ;;
3670 *-*-irix*)
3671 llvm_cv_link_all_option="-Wl,--whole-archive"
3672 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673 llvm_cv_os_type="IRIX"
3674 llvm_cv_platform_type="Unix" ;;
3675 *-*-cygwin*)
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="Cygwin"
3679 llvm_cv_platform_type="Unix" ;;
3680 *-*-darwin*)
3681 llvm_cv_link_all_option="-Wl,-all_load"
3682 llvm_cv_no_link_all_option="-Wl,-noall_load"
3683 llvm_cv_os_type="Darwin"
3684 llvm_cv_platform_type="Unix" ;;
3685 *-*-minix*)
3686 llvm_cv_link_all_option="-Wl,-all_load"
3687 llvm_cv_no_link_all_option="-Wl,-noall_load"
3688 llvm_cv_os_type="Minix"
3689 llvm_cv_platform_type="Unix" ;;
3690 *-*-freebsd*)
3691 llvm_cv_link_all_option="-Wl,--whole-archive"
3692 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693 llvm_cv_os_type="FreeBSD"
3694 llvm_cv_platform_type="Unix" ;;
3695 *-*-openbsd*)
3696 llvm_cv_link_all_option="-Wl,--whole-archive"
3697 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698 llvm_cv_os_type="OpenBSD"
3699 llvm_cv_platform_type="Unix" ;;
3700 *-*-netbsd*)
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="NetBSD"
3704 llvm_cv_platform_type="Unix" ;;
3705 *-*-dragonfly*)
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="DragonFly"
3709 llvm_cv_platform_type="Unix" ;;
3710 *-*-hpux*)
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="HP-UX"
3714 llvm_cv_platform_type="Unix" ;;
3715 *-*-interix*)
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="Interix"
3719 llvm_cv_platform_type="Unix" ;;
3720 *-*-linux*)
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="Linux"
3724 llvm_cv_platform_type="Unix" ;;
3725 *-*-solaris*)
3726 llvm_cv_link_all_option="-Wl,-z,allextract"
3727 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3728 llvm_cv_os_type="SunOS"
3729 llvm_cv_platform_type="Unix" ;;
3730 *-*-auroraux*)
3731 llvm_cv_link_all_option="-Wl,-z,allextract"
3732 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3733 llvm_cv_os_type="AuroraUX"
3734 llvm_cv_platform_type="Unix" ;;
3735 *-*-win32*)
3736 llvm_cv_link_all_option="-Wl,--whole-archive"
3737 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738 llvm_cv_os_type="Win32"
3739 llvm_cv_platform_type="Win32" ;;
3740 *-*-mingw*)
3741 llvm_cv_link_all_option="-Wl,--whole-archive"
3742 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743 llvm_cv_os_type="MingW"
3744 llvm_cv_platform_type="Win32" ;;
3745 *-*-haiku*)
3746 llvm_cv_link_all_option="-Wl,--whole-archive"
3747 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748 llvm_cv_os_type="Haiku"
3749 llvm_cv_platform_type="Unix" ;;
3750 *-unknown-eabi*)
3751 llvm_cv_link_all_option="-Wl,--whole-archive"
3752 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753 llvm_cv_os_type="Freestanding"
3754 llvm_cv_platform_type="Unix" ;;
3755 *-unknown-elf*)
3756 llvm_cv_link_all_option="-Wl,--whole-archive"
3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758 llvm_cv_os_type="Freestanding"
3759 llvm_cv_platform_type="Unix" ;;
3760 *)
3761 llvm_cv_link_all_option=""
3762 llvm_cv_no_link_all_option=""
3763 llvm_cv_os_type="Unknown"
3764 llvm_cv_platform_type="Unknown" ;;
3765esac
3766fi
3767{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3768echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3769
3770{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3771echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3772if test "${llvm_cv_target_os_type+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775 case $target in
3776 *-*-aix*)
3777 llvm_cv_target_os_type="AIX" ;;
3778 *-*-irix*)
3779 llvm_cv_target_os_type="IRIX" ;;
3780 *-*-cygwin*)
3781 llvm_cv_target_os_type="Cygwin" ;;
3782 *-*-darwin*)
3783 llvm_cv_target_os_type="Darwin" ;;
3784 *-*-minix*)
3785 llvm_cv_target_os_type="Minix" ;;
3786 *-*-freebsd*)
3787 llvm_cv_target_os_type="FreeBSD" ;;
3788 *-*-openbsd*)
3789 llvm_cv_target_os_type="OpenBSD" ;;
3790 *-*-netbsd*)
3791 llvm_cv_target_os_type="NetBSD" ;;
3792 *-*-dragonfly*)
3793 llvm_cv_target_os_type="DragonFly" ;;
3794 *-*-hpux*)
3795 llvm_cv_target_os_type="HP-UX" ;;
3796 *-*-interix*)
3797 llvm_cv_target_os_type="Interix" ;;
3798 *-*-linux*)
3799 llvm_cv_target_os_type="Linux" ;;
3800 *-*-solaris*)
3801 llvm_cv_target_os_type="SunOS" ;;
3802 *-*-auroraux*)
3803 llvm_cv_target_os_type="AuroraUX" ;;
3804 *-*-win32*)
3805 llvm_cv_target_os_type="Win32" ;;
3806 *-*-mingw*)
3807 llvm_cv_target_os_type="MingW" ;;
3808 *-*-haiku*)
3809 llvm_cv_target_os_type="Haiku" ;;
3810 *-*-rtems*)
3811 llvm_cv_target_os_type="RTEMS" ;;
3812 *-*-nacl*)
3813 llvm_cv_target_os_type="NativeClient" ;;
3814 *-unknown-eabi*)
3815 llvm_cv_target_os_type="Freestanding" ;;
3816 *)
3817 llvm_cv_target_os_type="Unknown" ;;
3818esac
3819fi
3820{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3821echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3822
3823if test "$llvm_cv_os_type" = "Unknown" ; then
3824 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3825echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3826 { (exit 1); exit 1; }; }
3827fi
3828
3829OS=$llvm_cv_os_type
3830
3831HOST_OS=$llvm_cv_os_type
3832
3833TARGET_OS=$llvm_cv_target_os_type
3834
3835
3836LINKALL=$llvm_cv_link_all_option
3837
3838NOLINKALL=$llvm_cv_no_link_all_option
3839
3840
3841case $llvm_cv_platform_type in
3842 Unix)
3843
3844cat >>confdefs.h <<\_ACEOF
3845#define LLVM_ON_UNIX 1
3846_ACEOF
3847
3848 LLVM_ON_UNIX=1
3849
3850 LLVM_ON_WIN32=0
3851
3852 ;;
3853 Win32)
3854
3855cat >>confdefs.h <<\_ACEOF
3856#define LLVM_ON_WIN32 1
3857_ACEOF
3858
3859 LLVM_ON_UNIX=0
3860
3861 LLVM_ON_WIN32=1
3862
3863 ;;
3864esac
3865
3866{ echo "$as_me:$LINENO: checking target architecture" >&5
3867echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3868if test "${llvm_cv_target_arch+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 case $target in
3872 i?86-*) llvm_cv_target_arch="x86" ;;
3873 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3874 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3875 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3876 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3877 arm*-*) llvm_cv_target_arch="ARM" ;;
3878 mips-*) llvm_cv_target_arch="Mips" ;;
3879 xcore-*) llvm_cv_target_arch="XCore" ;;
3880 msp430-*) llvm_cv_target_arch="MSP430" ;;
3881 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3882 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3883 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3884 ptx-*) llvm_cv_target_arch="PTX" ;;
3885 *) llvm_cv_target_arch="Unknown" ;;
3886esac
3887fi
3888{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3890
3891if test "$llvm_cv_target_arch" = "Unknown" ; then
3892 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3894fi
3895
3896# Determine the LLVM native architecture for the target
3897case "$llvm_cv_target_arch" in
3898 x86) LLVM_NATIVE_ARCH="X86" ;;
3899 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3900 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3901esac
3902
3903ARCH=$llvm_cv_target_arch
3904
3905
3906
3907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003908{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003913 # Extract the first word of "grep ggrep" to use in msg output
3914if test -z "$GREP"; then
3915set dummy grep ggrep; ac_prog_name=$2
3916if test "${ac_cv_path_GREP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
Reid Spencera773bd52006-08-04 18:18:08 +00003919 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003920# Loop through the user's path and test for each of PROGNAME-LIST
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 for ac_prog in grep ggrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003931 # Check for GNU $ac_path_GREP
3932case `"$ac_path_GREP" --version 2>&1` in
3933*GNU*)
3934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3935*)
3936 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003937 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003938 while :
3939 do
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003943 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003946 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP="$ac_path_GREP"
3950 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003951 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3954 done
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956esac
3957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003958
3959 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003960 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961done
3962
3963done
Reid Spencera773bd52006-08-04 18:18:08 +00003964IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003965
3966
3967fi
3968
3969GREP="$ac_cv_path_GREP"
3970if test -z "$GREP"; then
3971 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3974fi
3975
Reid Spencera773bd52006-08-04 18:18:08 +00003976else
3977 ac_cv_path_GREP=$GREP
3978fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980
Reid Spencera773bd52006-08-04 18:18:08 +00003981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003984 GREP="$ac_cv_path_GREP"
3985
3986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987{ echo "$as_me:$LINENO: checking for egrep" >&5
3988echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989if test "${ac_cv_path_EGREP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003991else
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3994 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003995 # Extract the first word of "egrep" to use in msg output
3996if test -z "$EGREP"; then
3997set dummy egrep; ac_prog_name=$2
3998if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
Reid Spencera773bd52006-08-04 18:18:08 +00004001 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002# Loop through the user's path and test for each of PROGNAME-LIST
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004013 # Check for GNU $ac_path_EGREP
4014case `"$ac_path_EGREP" --version 2>&1` in
4015*GNU*)
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017*)
4018 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004020 while :
4021 do
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004025 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4033 fi
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4036 done
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038esac
4039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004040
4041 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004042 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043done
4044
4045done
Reid Spencera773bd52006-08-04 18:18:08 +00004046IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004047
4048
4049fi
4050
4051EGREP="$ac_cv_path_EGREP"
4052if test -z "$EGREP"; then
4053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4056fi
4057
Reid Spencera773bd52006-08-04 18:18:08 +00004058else
4059 ac_cv_path_EGREP=$EGREP
4060fi
4061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004062
Reid Spencera773bd52006-08-04 18:18:08 +00004063 fi
4064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004065{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004067 EGREP="$ac_cv_path_EGREP"
4068
4069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004070{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072if test "${ac_cv_header_stdc+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004075 cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004081#include <stdlib.h>
4082#include <stdarg.h>
4083#include <string.h>
4084#include <float.h>
4085
John Criswell0c38eaf2003-09-10 15:17:25 +00004086int
4087main ()
4088{
4089
4090 ;
4091 return 0;
4092}
John Criswell7a73b802003-06-30 21:59:07 +00004093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094rm -f conftest.$ac_objext
4095if { (ac_try="$ac_compile"
4096case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004128 ac_cv_header_stdc=yes
4129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004130 echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135
Reid Spencera773bd52006-08-04 18:18:08 +00004136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004137
4138if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004145/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004146#include <string.h>
4147
4148_ACEOF
4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150 $EGREP "memchr" >/dev/null 2>&1; then
4151 :
John Criswell7a73b802003-06-30 21:59:07 +00004152else
4153 ac_cv_header_stdc=no
4154fi
4155rm -f conftest*
4156
4157fi
4158
4159if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004161 cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h. */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004167#include <stdlib.h>
4168
4169_ACEOF
4170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171 $EGREP "free" >/dev/null 2>&1; then
4172 :
John Criswell7a73b802003-06-30 21:59:07 +00004173else
4174 ac_cv_header_stdc=no
4175fi
4176rm -f conftest*
4177
4178fi
4179
4180if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004182 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004183 :
4184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004185 cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004190/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004191#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004192#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004193#if ((' ' & 0x0FF) == 0x020)
4194# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004197# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004201# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202#endif
4203
4204#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205int
4206main ()
4207{
4208 int i;
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004211 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004212 return 2;
4213 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004214}
4215_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004216rm -f conftest$ac_exeext
4217if { (ac_try="$ac_link"
4218case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_link") 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 :
John Criswell7a73b802003-06-30 21:59:07 +00004237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238 echo "$as_me: program exited with status $ac_status" >&5
4239echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242( exit $ac_status )
4243ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004245rm -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 +00004246fi
4247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004248
John Criswell7a73b802003-06-30 21:59:07 +00004249fi
4250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004251{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004253if test $ac_cv_header_stdc = yes; then
4254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255cat >>confdefs.h <<\_ACEOF
4256#define STDC_HEADERS 1
4257_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004258
4259fi
4260
Reid Spencera773bd52006-08-04 18:18:08 +00004261# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004262
4263
4264
4265
4266
4267
4268
4269
4270
Reid Spencera773bd52006-08-04 18:18:08 +00004271for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004273do
4274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280 cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h. */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
4285/* end confdefs.h. */
4286$ac_includes_default
4287
4288#include <$ac_header>
4289_ACEOF
4290rm -f conftest.$ac_objext
4291if { (ac_try="$ac_compile"
4292case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4298 ac_status=$?
4299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318esac
4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_Header=yes"
4325else
4326 echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 eval "$as_ac_Header=no"
4330fi
4331
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333fi
4334ac_res=`eval echo '${'$as_ac_Header'}'`
4335 { echo "$as_me:$LINENO: result: $ac_res" >&5
4336echo "${ECHO_T}$ac_res" >&6; }
4337if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004338 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004340_ACEOF
4341
4342fi
4343
4344done
4345
4346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349if test "${ac_cv_c_bigendian+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004352 # See if sys/param.h defines the BYTE_ORDER macro.
4353cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004358/* end confdefs.h. */
4359#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004360#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004361
4362int
4363main ()
4364{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004365#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4366 bogus endian macros
4367#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004368
4369 ;
4370 return 0;
4371}
4372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373rm -f conftest.$ac_objext
4374if { (ac_try="$ac_compile"
4375case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378esac
4379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
4402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004407 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004408cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004413/* end confdefs.h. */
4414#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004416
4417int
4418main ()
4419{
4420#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004421 not big endian
4422#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004423
4424 ;
4425 return 0;
4426}
4427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004428rm -f conftest.$ac_objext
4429if { (ac_try="$ac_compile"
4430case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433esac
4434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_compile") 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004462 ac_cv_c_bigendian=yes
4463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464 echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467 ac_cv_c_bigendian=no
4468fi
4469
4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471else
4472 echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 # It does not; compile a test program.
4476if test "$cross_compiling" = yes; then
4477 # try to guess the endianness by grepping values into an object file
4478 ac_cv_c_bigendian=unknown
4479 cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h. */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h. */
4485short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004491int
4492main ()
4493{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004494 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004495 ;
4496 return 0;
4497}
4498_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004499rm -f conftest.$ac_objext
4500if { (ac_try="$ac_compile"
4501case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504esac
4505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_compile") 2>conftest.er1
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517esac
4518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4527esac
4528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004534 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535fi
4536if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537 if test "$ac_cv_c_bigendian" = unknown; then
4538 ac_cv_c_bigendian=no
4539 else
4540 # finding both strings is unlikely to happen, but who knows?
4541 ac_cv_c_bigendian=unknown
4542 fi
4543fi
Reid Spencera773bd52006-08-04 18:18:08 +00004544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545 echo "$as_me: failed program was:" >&5
4546sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548
Torok Edwin871384f2010-01-26 08:50:50 +00004549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550
Reid Spencera773bd52006-08-04 18:18:08 +00004551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553 cat >conftest.$ac_ext <<_ACEOF
4554/* confdefs.h. */
4555_ACEOF
4556cat confdefs.h >>conftest.$ac_ext
4557cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004558/* end confdefs.h. */
4559$ac_includes_default
4560int
4561main ()
4562{
4563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564 /* Are we little or big endian? From Harbison&Steele. */
4565 union
4566 {
4567 long int l;
4568 char c[sizeof (long int)];
4569 } u;
4570 u.l = 1;
4571 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004572
4573 ;
4574 return 0;
4575}
4576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577rm -f conftest$ac_exeext
4578if { (ac_try="$ac_link"
4579case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
4583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004597 ac_cv_c_bigendian=no
4598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599 echo "$as_me: program exited with status $ac_status" >&5
4600echo "$as_me: failed program was:" >&5
4601sed 's/^/| /' conftest.$ac_ext >&5
4602
4603( exit $ac_status )
4604ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606rm -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 +00004607fi
4608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609
Reid Spencera773bd52006-08-04 18:18:08 +00004610fi
4611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613fi
4614{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616case $ac_cv_c_bigendian in
4617 yes)
4618 ENDIAN=big
4619 ;;
4620 no)
4621 ENDIAN=little
4622 ;;
4623 *)
4624 { { echo "$as_me:$LINENO: error: unknown endianness
4625presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626echo "$as_me: error: unknown endianness
4627presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4629esac
Reid Spencera773bd52006-08-04 18:18:08 +00004630
4631
4632if test "$cross_compiling" = yes; then
4633 LLVM_CROSS_COMPILING=1
4634
4635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004636{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638if test "${ac_cv_build_exeext+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004640else
4641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642 ac_cv_build_exeext=.exe
4643else
4644 ac_build_prefix=${build_alias}-
4645
4646 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004652else
4653 if test -n "$BUILD_CC"; then
4654 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 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 +00004663 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004665 break 2
4666 fi
4667done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668done
Reid Spencera773bd52006-08-04 18:18:08 +00004669IFS=$as_save_IFS
4670
4671fi
4672fi
4673BUILD_CC=$ac_cv_prog_BUILD_CC
4674if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678 { echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004680fi
4681
4682
4683 if test -z "$BUILD_CC"; then
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004690else
4691 if test -n "$BUILD_CC"; then
4692 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 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 +00004701 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004703 break 2
4704 fi
4705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706done
Reid Spencera773bd52006-08-04 18:18:08 +00004707IFS=$as_save_IFS
4708
4709fi
4710fi
4711BUILD_CC=$ac_cv_prog_BUILD_CC
4712if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004713 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716 { echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004718fi
4719
4720
4721 if test -z "$BUILD_CC"; then
4722 # Extract the first word of "cc", so it can be a program name with args.
4723set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004728else
4729 if test -n "$BUILD_CC"; then
4730 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4731else
4732 ac_prog_rejected=no
4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 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 +00004740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741 ac_prog_rejected=yes
4742 continue
4743 fi
4744 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004746 break 2
4747 fi
4748done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004749done
Reid Spencera773bd52006-08-04 18:18:08 +00004750IFS=$as_save_IFS
4751
4752if test $ac_prog_rejected = yes; then
4753 # We found a bogon in the path, so make sure we never use it.
4754 set dummy $ac_cv_prog_BUILD_CC
4755 shift
4756 if test $# != 0; then
4757 # We chose a different compiler from the bogus one.
4758 # However, it has the same basename, so the bogon will be chosen
4759 # first if we set BUILD_CC to just the basename; use the full file name.
4760 shift
4761 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4762 fi
4763fi
4764fi
4765fi
4766BUILD_CC=$ac_cv_prog_BUILD_CC
4767if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004771 { echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004773fi
4774
4775
4776 fi
4777 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004781 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782 rm -f conftest*
4783 echo 'int main () { return 0; }' > conftest.$ac_ext
4784 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004785 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004786 (eval $ac_build_link) 2>&5
4787 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004790 for file in conftest.*; do
4791 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004792 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004793 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4794 esac
4795 done
4796 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004800 fi
4801 rm -f conftest*
4802 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4803fi
4804fi
4805
4806BUILD_EXEEXT=""
4807test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004808{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004810ac_build_exeext=$BUILD_EXEEXT
4811
Jim Grosbach673612e2008-10-02 22:56:44 +00004812 ac_build_prefix=${build_alias}-
4813 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004819else
4820 if test -n "$BUILD_CXX"; then
4821 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4822else
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 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 +00004830 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004832 break 2
4833 fi
4834done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004835done
Jim Grosbach673612e2008-10-02 22:56:44 +00004836IFS=$as_save_IFS
4837
4838fi
4839fi
4840BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004845 { echo "$as_me:$LINENO: result: no" >&5
4846echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004847fi
4848
4849
4850 if test -z "$BUILD_CXX"; then
4851 # Extract the first word of "g++", so it can be a program name with args.
4852set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004857else
4858 if test -n "$BUILD_CXX"; then
4859 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 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 +00004868 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004870 break 2
4871 fi
4872done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873done
Jim Grosbach673612e2008-10-02 22:56:44 +00004874IFS=$as_save_IFS
4875
4876fi
4877fi
4878BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883 { echo "$as_me:$LINENO: result: no" >&5
4884echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004885fi
4886
4887
4888 if test -z "$BUILD_CXX"; then
4889 # Extract the first word of "c++", so it can be a program name with args.
4890set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004895else
4896 if test -n "$BUILD_CXX"; then
4897 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4898else
4899 ac_prog_rejected=no
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 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 +00004907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908 ac_prog_rejected=yes
4909 continue
4910 fi
4911 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004913 break 2
4914 fi
4915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004916done
Jim Grosbach673612e2008-10-02 22:56:44 +00004917IFS=$as_save_IFS
4918
4919if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CXX
4922 shift
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CXX to just the basename; use the full file name.
4927 shift
4928 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4929 fi
4930fi
4931fi
4932fi
4933BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004935 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004938 { echo "$as_me:$LINENO: result: no" >&5
4939echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004940fi
4941
4942
4943 fi
4944 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004945else
4946 LLVM_CROSS_COMPILING=0
4947
4948fi
4949
Dan Gohman56fb5f92010-08-04 16:25:01 +00004950if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004951 cvsbuild="yes"
4952 optimize="no"
4953 CVSBUILD=CVSBUILD=1
4954
4955else
4956 cvsbuild="no"
4957 optimize="yes"
4958fi
4959
4960
4961# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004962if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004963 enableval=$enable_optimized;
4964else
4965 enableval=$optimize
4966fi
4967
4968if test ${enableval} = "no" ; then
4969 ENABLE_OPTIMIZED=
4970
4971else
4972 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4973
4974fi
4975
David Greene2a5a12c2009-04-17 14:50:39 +00004976# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004977if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004978 enableval=$enable_profiling;
4979else
4980 enableval="no"
4981fi
4982
4983if test ${enableval} = "no" ; then
4984 ENABLE_PROFILING=
4985
4986else
4987 ENABLE_PROFILING=ENABLE_PROFILING=1
4988
4989fi
4990
Reid Spencera773bd52006-08-04 18:18:08 +00004991# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004992if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004993 enableval=$enable_assertions;
4994else
4995 enableval="yes"
4996fi
4997
4998if test ${enableval} = "yes" ; then
4999 DISABLE_ASSERTIONS=
5000
5001else
5002 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5003
5004fi
5005
David Greenea696d242007-06-28 19:36:08 +00005006# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005007if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005008 enableval=$enable_expensive_checks;
5009else
5010 enableval="no"
5011fi
5012
5013if test ${enableval} = "yes" ; then
5014 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5015
5016 EXPENSIVE_CHECKS=yes
5017
5018else
5019 ENABLE_EXPENSIVE_CHECKS=
5020
5021 EXPENSIVE_CHECKS=no
5022
5023fi
5024
Reid Spencer8b2e1412006-11-17 03:32:33 +00005025# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005026if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005027 enableval=$enable_debug_runtime;
5028else
5029 enableval=no
5030fi
5031
5032if test ${enableval} = "no" ; then
5033 DEBUG_RUNTIME=
5034
5035else
5036 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5037
5038fi
5039
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005040# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005041if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005042 enableval=$enable_debug_symbols;
5043else
5044 enableval=no
5045fi
5046
5047if test ${enableval} = "no" ; then
5048 DEBUG_SYMBOLS=
5049
5050else
5051 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5052
5053fi
5054
Reid Spencera773bd52006-08-04 18:18:08 +00005055# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005056if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005057 enableval=$enable_jit;
5058else
5059 enableval=default
5060fi
5061
5062if test ${enableval} = "no"
5063then
5064 JIT=
5065
5066else
5067 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005068 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005069 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005070 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005071 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005072 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005073 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005074 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005075 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00005076 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005077 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005078 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005079 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005080 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005081 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005082 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005083 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005084 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005085 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005086 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00005087 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005088 Blackfin) TARGET_HAS_JIT=0
5089 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005090 MBlaze) TARGET_HAS_JIT=0
5091 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005092 PTX) TARGET_HAS_JIT=0
5093 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005094 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005095 ;;
5096 esac
5097fi
5098
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005099# Check whether --enable-docs was given.
5100if test "${enable_docs+set}" = set; then
5101 enableval=$enable_docs;
5102else
5103 enableval=default
5104fi
5105
5106case "$enableval" in
5107 yes) ENABLE_DOCS=1
5108 ;;
5109 no) ENABLE_DOCS=0
5110 ;;
5111 default) ENABLE_DOCS=1
5112 ;;
5113 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5114echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5115 { (exit 1); exit 1; }; } ;;
5116esac
5117
Reid Spencera773bd52006-08-04 18:18:08 +00005118# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005119if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005120 enableval=$enable_doxygen;
5121else
5122 enableval=default
5123fi
5124
5125case "$enableval" in
5126 yes) ENABLE_DOXYGEN=1
5127 ;;
5128 no) ENABLE_DOXYGEN=0
5129 ;;
5130 default) ENABLE_DOXYGEN=0
5131 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005132 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5133echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5134 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005135esac
5136
5137# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005138if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005139 enableval=$enable_threads;
5140else
Reid Spencer65c5d752006-11-05 17:08:18 +00005141 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005142fi
5143
5144case "$enableval" in
5145 yes) ENABLE_THREADS=1
5146 ;;
5147 no) ENABLE_THREADS=0
5148 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005149 default) ENABLE_THREADS=1
5150 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005151 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5152echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5153 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005154esac
5155
Owen Andersona8603702009-05-19 22:18:56 +00005156cat >>confdefs.h <<_ACEOF
5157#define ENABLE_THREADS $ENABLE_THREADS
5158_ACEOF
5159
5160
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005161# Check whether --enable-pthreads was given.
5162if test "${enable_pthreads+set}" = set; then
5163 enableval=$enable_pthreads;
5164else
5165 enableval=default
5166fi
5167
5168case "$enableval" in
5169 yes) ENABLE_PTHREADS=1
5170 ;;
5171 no) ENABLE_PTHREADS=0
5172 ;;
5173 default) ENABLE_PTHREADS=1
5174 ;;
5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5176echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
5178esac
5179
Reid Spencer89b0d992006-12-16 22:07:52 +00005180# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005181if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005182 enableval=$enable_pic;
5183else
5184 enableval=default
5185fi
5186
5187case "$enableval" in
5188 yes) ENABLE_PIC=1
5189 ;;
5190 no) ENABLE_PIC=0
5191 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005192 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005193 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005194 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5195echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5196 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005197esac
5198
5199cat >>confdefs.h <<_ACEOF
5200#define ENABLE_PIC $ENABLE_PIC
5201_ACEOF
5202
5203
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005204# Check whether --enable-shared was given.
5205if test "${enable_shared+set}" = set; then
5206 enableval=$enable_shared;
5207else
5208 enableval=default
5209fi
5210
5211case "$enableval" in
5212 yes) ENABLE_SHARED=1
5213 ;;
5214 no) ENABLE_SHARED=0
5215 ;;
5216 default) ENABLE_SHARED=0
5217 ;;
5218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5219echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5221esac
5222
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005223# Check whether --enable-embed-stdcxx was given.
5224if test "${enable_embed_stdcxx+set}" = set; then
5225 enableval=$enable_embed_stdcxx;
5226else
5227 enableval=default
5228fi
5229
5230case "$enableval" in
5231 yes) ENABLE_EMBED_STDCXX=1
5232 ;;
5233 no) ENABLE_EMBED_STDCXX=0
5234 ;;
5235 default) ENABLE_EMBED_STDCXX=1
5236 ;;
5237 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5238echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5239 { (exit 1); exit 1; }; } ;;
5240esac
5241
Daniel Dunbardd464df2010-05-10 20:11:56 +00005242# Check whether --enable-timestamps was given.
5243if test "${enable_timestamps+set}" = set; then
5244 enableval=$enable_timestamps;
5245else
5246 enableval=default
5247fi
5248
5249case "$enableval" in
5250 yes) ENABLE_TIMESTAMPS=1
5251 ;;
5252 no) ENABLE_TIMESTAMPS=0
5253 ;;
5254 default) ENABLE_TIMESTAMPS=1
5255 ;;
5256 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5257echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5258 { (exit 1); exit 1; }; } ;;
5259esac
5260
5261cat >>confdefs.h <<_ACEOF
5262#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5263_ACEOF
5264
5265
Reid Spencera773bd52006-08-04 18:18:08 +00005266TARGETS_TO_BUILD=""
5267# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005268if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005269 enableval=$enable_targets;
5270else
5271 enableval=all
5272fi
5273
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005274if test "$enableval" = host-only ; then
5275 enableval=host
5276fi
Reid Spencera773bd52006-08-04 18:18:08 +00005277case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005278 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005279 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5280 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005281 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5282 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5283 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5284 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5285 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5286 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5287 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5288 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005289 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5290 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5291 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5292 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5293 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005294 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005295 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005296 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005297 host) case "$llvm_cv_target_arch" in
5298 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5299 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5300 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5301 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5302 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5303 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5304 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005305 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005306 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005307 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5308 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005309 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005310 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005311 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005312 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5313echo "$as_me: error: Can not set target to build" >&2;}
5314 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005315 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005316 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5317echo "$as_me: error: Unrecognized target $a_target" >&2;}
5318 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005319 esac
5320 done
5321 ;;
5322esac
Reid Spencera773bd52006-08-04 18:18:08 +00005323TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5324
5325
Douglas Gregor0711c302009-06-17 00:43:20 +00005326# Determine whether we are building LLVM support for the native architecture.
5327# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5328for a_target in $TARGETS_TO_BUILD; do
5329 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5330
5331cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005332#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5333_ACEOF
5334
5335 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5336 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005337 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005338 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005339 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5340 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5341 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005342
5343cat >>confdefs.h <<_ACEOF
5344#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005345_ACEOF
5346
5347
5348cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005349#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5350_ACEOF
5351
5352
5353cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005354#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005355_ACEOF
5356
5357
5358cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005359#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005360_ACEOF
5361
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005362 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005363
5364cat >>confdefs.h <<_ACEOF
5365#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5366_ACEOF
5367
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005368 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005369 fi
5370done
5371
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005372# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5373# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005374LLVM_ENUM_TARGETS=""
5375LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005376LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005377LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005378for target_to_build in $TARGETS_TO_BUILD; do
5379 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005380 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005381 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5382 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005383 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5384 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5385 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005386 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5387 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5388 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005389done
5390
5391
5392
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005393
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005394
Reid Spencer65c5d752006-11-05 17:08:18 +00005395# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005396if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005397 enableval=$enable_cbe_printf_a;
5398else
5399 enableval=default
5400fi
5401
5402case "$enableval" in
5403 yes) ENABLE_CBE_PRINTF_A=1
5404 ;;
5405 no) ENABLE_CBE_PRINTF_A=0
5406 ;;
5407 default) ENABLE_CBE_PRINTF_A=1
5408 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005409 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5410echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5411 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005412esac
5413
5414cat >>confdefs.h <<_ACEOF
5415#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5416_ACEOF
5417
5418
Reid Spencera773bd52006-08-04 18:18:08 +00005419
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005420# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005421if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005422 withval=$with_optimize_option;
5423else
5424 withval=default
5425fi
5426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005427{ echo "$as_me:$LINENO: checking optimization flags" >&5
5428echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005429case "$withval" in
5430 default)
5431 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005432 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005433 MingW) optimize_option=-O2 ;;
5434 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005435 esac ;;
5436 *) optimize_option="$withval" ;;
5437esac
5438OPTIMIZE_OPTION=$optimize_option
5439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005440{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5441echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005442
5443
Reid Spencera773bd52006-08-04 18:18:08 +00005444# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005445if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005446 withval=$with_extra_options;
5447else
5448 withval=default
5449fi
5450
5451case "$withval" in
5452 default) EXTRA_OPTIONS= ;;
5453 *) EXTRA_OPTIONS=$withval ;;
5454esac
5455EXTRA_OPTIONS=$EXTRA_OPTIONS
5456
5457
Daniel Dunbared344d22011-06-16 22:30:41 +00005458
5459# Check whether --with-extra-ld-options was given.
5460if test "${with_extra_ld_options+set}" = set; then
5461 withval=$with_extra_ld_options;
5462else
5463 withval=default
5464fi
5465
5466case "$withval" in
5467 default) EXTRA_LD_OPTIONS= ;;
5468 *) EXTRA_LD_OPTIONS=$withval ;;
5469esac
5470EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5471
5472
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005473# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005474if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005475 enableval=$enable_bindings;
5476else
5477 enableval=default
5478fi
5479
5480BINDINGS_TO_BUILD=""
5481case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005482 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005483 all ) BINDINGS_TO_BUILD="ocaml" ;;
5484 none | no) BINDINGS_TO_BUILD="" ;;
5485 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5486 case "$a_binding" in
5487 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005488 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5489echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5490 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005491 esac
5492 done
5493 ;;
5494esac
5495
Reid Spencera773bd52006-08-04 18:18:08 +00005496
Gordon Henriksenf0915682007-10-02 16:42:22 +00005497# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005498if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005499 withval=$with_ocaml_libdir;
5500else
5501 withval=auto
5502fi
5503
5504case "$withval" in
5505 auto) with_ocaml_libdir="$withval" ;;
5506 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005507 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5508echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5509 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005510esac
5511
5512
Chandler Carruth6b241162010-10-19 08:21:25 +00005513# Check whether --with-clang-resource-dir was given.
5514if test "${with_clang_resource_dir+set}" = set; then
5515 withval=$with_clang_resource_dir;
5516else
5517 withval=""
5518fi
5519
5520
5521cat >>confdefs.h <<_ACEOF
5522#define CLANG_RESOURCE_DIR "$withval"
5523_ACEOF
5524
5525
5526
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005527# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005528if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005529 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005530else
5531 withval=""
5532fi
5533
5534
5535cat >>confdefs.h <<_ACEOF
5536#define C_INCLUDE_DIRS "$withval"
5537_ACEOF
5538
5539
5540
Rafael Espindola420d23c2009-11-16 19:46:55 +00005541# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005542if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005543 withval=$with_cxx_include_root;
5544else
5545 withval=""
5546fi
5547
5548
5549cat >>confdefs.h <<_ACEOF
5550#define CXX_INCLUDE_ROOT "$withval"
5551_ACEOF
5552
5553
5554
5555# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005556if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005557 withval=$with_cxx_include_arch;
5558else
5559 withval=""
5560fi
5561
5562
5563cat >>confdefs.h <<_ACEOF
5564#define CXX_INCLUDE_ARCH "$withval"
5565_ACEOF
5566
5567
5568
5569# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005570if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005571 withval=$with_cxx_include_32bit_dir;
5572else
5573 withval=""
5574fi
5575
5576
5577cat >>confdefs.h <<_ACEOF
5578#define CXX_INCLUDE_32BIT_DIR "$withval"
5579_ACEOF
5580
5581
5582
5583# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005584if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005585 withval=$with_cxx_include_64bit_dir;
5586else
5587 withval=""
5588fi
5589
5590
5591cat >>confdefs.h <<_ACEOF
5592#define CXX_INCLUDE_64BIT_DIR "$withval"
5593_ACEOF
5594
5595
5596
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005597# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005598if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005599 withval=$with_binutils_include;
5600else
5601 withval=default
5602fi
5603
5604case "$withval" in
5605 default) WITH_BINUTILS_INCDIR=default ;;
5606 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005607 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5608echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5609 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005610esac
5611if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5612 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5613
5614 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5615 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5617echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5618 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005619 fi
5620fi
5621
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005622
5623# Check whether --with-bug-report-url was given.
5624if test "${with_bug_report_url+set}" = set; then
5625 withval=$with_bug_report_url;
5626else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005627 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005628fi
5629
5630
5631cat >>confdefs.h <<_ACEOF
5632#define BUG_REPORT_URL "$withval"
5633_ACEOF
5634
5635
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005636# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005637if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005638 enableval=$enable_libffi; case "$enableval" in
5639 yes) llvm_cv_enable_libffi="yes" ;;
5640 no) llvm_cv_enable_libffi="no" ;;
5641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005642echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5643 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005644 esac
5645else
5646 llvm_cv_enable_libffi=no
5647fi
5648
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005649
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005650
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
6897
6898# Extract the first word of "perl", so it can be a program name with args.
6899set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902if test "${ac_cv_path_PERL+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006904else
6905 case $PERL in
6906 [\\/]* | ?:[\\/]*)
6907 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6908 ;;
6909 *)
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 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 +00006917 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006919 break 2
6920 fi
6921done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922done
Reid Spencera773bd52006-08-04 18:18:08 +00006923IFS=$as_save_IFS
6924
6925 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6926 ;;
6927esac
6928fi
6929PERL=$ac_cv_path_PERL
6930if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931 { echo "$as_me:$LINENO: result: $PERL" >&5
6932echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006934 { echo "$as_me:$LINENO: result: no" >&5
6935echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006936fi
6937
6938
6939if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006940 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6941echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006942 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006943 { echo "$as_me:$LINENO: result: yes" >&5
6944echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006945 else
6946 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947 { echo "$as_me:$LINENO: result: not found" >&5
6948echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006949 fi
6950fi
6951
6952
6953if test x"$PERL" = xnone; then
6954 HAVE_PERL=0
6955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006956 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6957echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6958 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006959else
6960 HAVE_PERL=1
6961
6962fi
6963
6964# Find a good install program. We prefer a C program (faster),
6965# so one script is as good as another. But avoid the broken or
6966# incompatible versions:
6967# SysV /etc/install, /usr/sbin/install
6968# SunOS /usr/etc/install
6969# IRIX /sbin/install
6970# AIX /bin/install
6971# AmigaOS /C/install, which installs bootblocks on floppy discs
6972# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6973# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6974# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6975# OS/2's system install, which has a completely different semantic
6976# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006977{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6978echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006979if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006980if test "${ac_cv_path_install+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006982else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988 # Account for people who put trailing slashes in PATH elements.
6989case $as_dir/ in
6990 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006992 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006993 /usr/ucb/* ) ;;
6994 *)
6995 # OSF1 and SCO ODT 3.0 have their own names for install.
6996 # Don't use installbsd from OSF since it installs stuff as root
6997 # by default.
6998 for ac_prog in ginstall scoinst install; do
6999 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007000 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 +00007001 if test $ac_prog = install &&
7002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7003 # AIX install. It has an incompatible calling convention.
7004 :
7005 elif test $ac_prog = install &&
7006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7007 # program-specific install script used by HP pwplus--don't use.
7008 :
7009 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7011 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007012 fi
7013 fi
7014 done
7015 done
7016 ;;
7017esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007018done
Reid Spencera773bd52006-08-04 18:18:08 +00007019IFS=$as_save_IFS
7020
7021
7022fi
7023 if test "${ac_cv_path_install+set}" = set; then
7024 INSTALL=$ac_cv_path_install
7025 else
7026 # As a last resort, use the slow shell script. Don't cache a
7027 # value for INSTALL within a source directory, because that will
7028 # break other packages using the cache if that directory is
7029 # removed, or if the value is a relative name.
7030 INSTALL=$ac_install_sh
7031 fi
7032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007033{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7034echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007035
7036# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7037# It thinks the first close brace ends the variable substitution.
7038test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7039
7040test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7041
7042test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7043
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007044case "$INSTALL" in
7045 [\\/$]* | ?:[\\/]* ) ;;
7046 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7047esac
Reid Spencera773bd52006-08-04 18:18:08 +00007048
7049# Extract the first word of "bzip2", so it can be a program name with args.
7050set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053if test "${ac_cv_path_BZIP2+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007055else
7056 case $BZIP2 in
7057 [\\/]* | ?:[\\/]*)
7058 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7059 ;;
7060 *)
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 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 +00007068 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007070 break 2
7071 fi
7072done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073done
Reid Spencera773bd52006-08-04 18:18:08 +00007074IFS=$as_save_IFS
7075
Reid Spencera773bd52006-08-04 18:18:08 +00007076 ;;
7077esac
7078fi
7079BZIP2=$ac_cv_path_BZIP2
7080if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7082echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084 { echo "$as_me:$LINENO: result: no" >&5
7085echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007086fi
7087
7088
mike-m68cb3192010-05-06 23:45:43 +00007089# Extract the first word of "cat", so it can be a program name with args.
7090set dummy cat; ac_word=$2
7091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093if test "${ac_cv_path_CAT+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096 case $CAT in
7097 [\\/]* | ?:[\\/]*)
7098 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7099 ;;
7100 *)
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112done
7113done
7114IFS=$as_save_IFS
7115
7116 ;;
7117esac
7118fi
7119CAT=$ac_cv_path_CAT
7120if test -n "$CAT"; then
7121 { echo "$as_me:$LINENO: result: $CAT" >&5
7122echo "${ECHO_T}$CAT" >&6; }
7123else
7124 { echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6; }
7126fi
7127
7128
Reid Spencera773bd52006-08-04 18:18:08 +00007129# Extract the first word of "doxygen", so it can be a program name with args.
7130set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133if test "${ac_cv_path_DOXYGEN+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007135else
7136 case $DOXYGEN in
7137 [\\/]* | ?:[\\/]*)
7138 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7139 ;;
7140 *)
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142for as_dir in $PATH
7143do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 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 +00007148 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007150 break 2
7151 fi
7152done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153done
Reid Spencera773bd52006-08-04 18:18:08 +00007154IFS=$as_save_IFS
7155
Reid Spencera773bd52006-08-04 18:18:08 +00007156 ;;
7157esac
7158fi
7159DOXYGEN=$ac_cv_path_DOXYGEN
7160if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007161 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7162echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007163else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007164 { echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007166fi
7167
7168
Reid Spencera773bd52006-08-04 18:18:08 +00007169# Extract the first word of "groff", so it can be a program name with args.
7170set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173if test "${ac_cv_path_GROFF+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007175else
7176 case $GROFF in
7177 [\\/]* | ?:[\\/]*)
7178 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7179 ;;
7180 *)
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182for as_dir in $PATH
7183do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 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 +00007188 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007190 break 2
7191 fi
7192done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193done
Reid Spencera773bd52006-08-04 18:18:08 +00007194IFS=$as_save_IFS
7195
Reid Spencera773bd52006-08-04 18:18:08 +00007196 ;;
7197esac
7198fi
7199GROFF=$ac_cv_path_GROFF
7200if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007201 { echo "$as_me:$LINENO: result: $GROFF" >&5
7202echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204 { echo "$as_me:$LINENO: result: no" >&5
7205echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007206fi
7207
7208
7209# Extract the first word of "gzip", so it can be a program name with args.
7210set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007213if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007215else
Eric Christopher031d3072010-12-10 01:31:51 +00007216 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007217 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007218 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007219 ;;
7220 *)
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222for as_dir in $PATH
7223do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 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 +00007228 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007230 break 2
7231 fi
7232done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007233done
Reid Spencera773bd52006-08-04 18:18:08 +00007234IFS=$as_save_IFS
7235
Reid Spencera773bd52006-08-04 18:18:08 +00007236 ;;
7237esac
7238fi
Eric Christopher031d3072010-12-10 01:31:51 +00007239GZIPBIN=$ac_cv_path_GZIPBIN
7240if test -n "$GZIPBIN"; then
7241 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7242echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007243else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244 { echo "$as_me:$LINENO: result: no" >&5
7245echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007246fi
7247
7248
7249# Extract the first word of "pod2html", so it can be a program name with args.
7250set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007251{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7253if test "${ac_cv_path_POD2HTML+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007255else
7256 case $POD2HTML in
7257 [\\/]* | ?:[\\/]*)
7258 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7259 ;;
7260 *)
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 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 +00007268 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007270 break 2
7271 fi
7272done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273done
Reid Spencera773bd52006-08-04 18:18:08 +00007274IFS=$as_save_IFS
7275
Reid Spencera773bd52006-08-04 18:18:08 +00007276 ;;
7277esac
7278fi
7279POD2HTML=$ac_cv_path_POD2HTML
7280if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007281 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7282echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284 { echo "$as_me:$LINENO: result: no" >&5
7285echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007286fi
7287
7288
7289# Extract the first word of "pod2man", so it can be a program name with args.
7290set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007291{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7293if test "${ac_cv_path_POD2MAN+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007295else
7296 case $POD2MAN in
7297 [\\/]* | ?:[\\/]*)
7298 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7299 ;;
7300 *)
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 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 +00007308 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007310 break 2
7311 fi
7312done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313done
Reid Spencera773bd52006-08-04 18:18:08 +00007314IFS=$as_save_IFS
7315
Reid Spencera773bd52006-08-04 18:18:08 +00007316 ;;
7317esac
7318fi
7319POD2MAN=$ac_cv_path_POD2MAN
7320if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7322echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324 { echo "$as_me:$LINENO: result: no" >&5
7325echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007326fi
7327
7328
mike-m68cb3192010-05-06 23:45:43 +00007329# Extract the first word of "pdfroff", so it can be a program name with args.
7330set dummy pdfroff; ac_word=$2
7331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7333if test "${ac_cv_path_PDFROFF+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335else
7336 case $PDFROFF in
7337 [\\/]* | ?:[\\/]*)
7338 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7339 ;;
7340 *)
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342for as_dir in $PATH
7343do
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7348 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7351 fi
7352done
7353done
7354IFS=$as_save_IFS
7355
7356 ;;
7357esac
7358fi
7359PDFROFF=$ac_cv_path_PDFROFF
7360if test -n "$PDFROFF"; then
7361 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7362echo "${ECHO_T}$PDFROFF" >&6; }
7363else
7364 { echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6; }
7366fi
7367
7368
Reid Spencera773bd52006-08-04 18:18:08 +00007369# Extract the first word of "runtest", so it can be a program name with args.
7370set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7373if test "${ac_cv_path_RUNTEST+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007375else
7376 case $RUNTEST in
7377 [\\/]* | ?:[\\/]*)
7378 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7379 ;;
7380 *)
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382for as_dir in $PATH
7383do
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 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 +00007388 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007390 break 2
7391 fi
7392done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007393done
Reid Spencera773bd52006-08-04 18:18:08 +00007394IFS=$as_save_IFS
7395
Reid Spencera773bd52006-08-04 18:18:08 +00007396 ;;
7397esac
7398fi
7399RUNTEST=$ac_cv_path_RUNTEST
7400if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7402echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 { echo "$as_me:$LINENO: result: no" >&5
7405echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007406fi
7407
7408
7409
7410no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7412echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007413
7414# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007415if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007416 withval=$with_tclinclude; with_tclinclude=${withval}
7417else
7418 with_tclinclude=''
7419fi
7420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421if test "${ac_cv_path_tclsh+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007423else
7424
7425if test x"${with_tclinclude}" != x ; then
7426 if test -f ${with_tclinclude}/tclsh ; then
7427 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7428 elif test -f ${with_tclinclude}/src/tclsh ; then
7429 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7430 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007431 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7432echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7433 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007434 fi
7435fi
Torok Edwin871384f2010-01-26 08:50:50 +00007436fi
7437
Reid Spencera773bd52006-08-04 18:18:08 +00007438
7439if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007440 { echo "$as_me:$LINENO: result: none" >&5
7441echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007442 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
7443do
7444 # Extract the first word of "$ac_prog", so it can be a program name with args.
7445set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448if test "${ac_cv_path_TCLSH+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007450else
7451 case $TCLSH in
7452 [\\/]* | ?:[\\/]*)
7453 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7454 ;;
7455 *)
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 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 +00007463 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007465 break 2
7466 fi
7467done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468done
Reid Spencera773bd52006-08-04 18:18:08 +00007469IFS=$as_save_IFS
7470
7471 ;;
7472esac
7473fi
7474TCLSH=$ac_cv_path_TCLSH
7475if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7477echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007479 { echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007481fi
7482
7483
7484 test -n "$TCLSH" && break
7485done
7486
7487 if test x"${TCLSH}" = x ; then
7488 ac_cv_path_tclsh='';
7489 else
7490 ac_cv_path_tclsh="${TCLSH}";
7491 fi
7492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7494echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007495 TCLSH="${ac_cv_path_tclsh}"
7496
7497fi
7498
Reid Spencera773bd52006-08-04 18:18:08 +00007499# Extract the first word of "zip", so it can be a program name with args.
7500set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503if test "${ac_cv_path_ZIP+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007505else
7506 case $ZIP in
7507 [\\/]* | ?:[\\/]*)
7508 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7509 ;;
7510 *)
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 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 +00007518 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007520 break 2
7521 fi
7522done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007523done
Reid Spencera773bd52006-08-04 18:18:08 +00007524IFS=$as_save_IFS
7525
Reid Spencera773bd52006-08-04 18:18:08 +00007526 ;;
7527esac
7528fi
7529ZIP=$ac_cv_path_ZIP
7530if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007531 { echo "$as_me:$LINENO: result: $ZIP" >&5
7532echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007533else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007534 { echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007536fi
7537
7538
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007539for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007540do
7541 # Extract the first word of "$ac_prog", so it can be a program name with args.
7542set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545if test "${ac_cv_path_OCAMLC+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007547else
7548 case $OCAMLC in
7549 [\\/]* | ?:[\\/]*)
7550 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7551 ;;
7552 *)
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 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 +00007560 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007562 break 2
7563 fi
7564done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007565done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007566IFS=$as_save_IFS
7567
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007568 ;;
7569esac
7570fi
7571OCAMLC=$ac_cv_path_OCAMLC
7572if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007573 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7574echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007575else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576 { echo "$as_me:$LINENO: result: no" >&5
7577echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007578fi
7579
7580
Gordon Henriksene7072162008-03-07 18:20:01 +00007581 test -n "$OCAMLC" && break
7582done
7583
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007584for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007585do
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007592else
7593 case $OCAMLOPT in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 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 +00007605 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007607 break 2
7608 fi
7609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007611IFS=$as_save_IFS
7612
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007613 ;;
7614esac
7615fi
7616OCAMLOPT=$ac_cv_path_OCAMLOPT
7617if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007618 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7619echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007621 { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007623fi
7624
7625
Gordon Henriksene7072162008-03-07 18:20:01 +00007626 test -n "$OCAMLOPT" && break
7627done
7628
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007629for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007630do
7631 # Extract the first word of "$ac_prog", so it can be a program name with args.
7632set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7635if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007637else
7638 case $OCAMLDEP in
7639 [\\/]* | ?:[\\/]*)
7640 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7641 ;;
7642 *)
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644for as_dir in $PATH
7645do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 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 +00007650 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007652 break 2
7653 fi
7654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007655done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007656IFS=$as_save_IFS
7657
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007658 ;;
7659esac
7660fi
7661OCAMLDEP=$ac_cv_path_OCAMLDEP
7662if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007663 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7664echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666 { echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007668fi
7669
7670
Gordon Henriksene7072162008-03-07 18:20:01 +00007671 test -n "$OCAMLDEP" && break
7672done
7673
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007674for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007675do
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7680if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007682else
7683 case $OCAMLDOC in
7684 [\\/]* | ?:[\\/]*)
7685 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7686 ;;
7687 *)
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 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 +00007695 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007697 break 2
7698 fi
7699done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007701IFS=$as_save_IFS
7702
7703 ;;
7704esac
7705fi
7706OCAMLDOC=$ac_cv_path_OCAMLDOC
7707if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007708 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7709echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007711 { echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007713fi
7714
7715
7716 test -n "$OCAMLDOC" && break
7717done
7718
Torok Edwincc499a42008-10-22 09:56:27 +00007719for ac_prog in gas as
7720do
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725if test "${ac_cv_path_GAS+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007727else
7728 case $GAS in
7729 [\\/]* | ?:[\\/]*)
7730 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7731 ;;
7732 *)
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 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 +00007740 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007742 break 2
7743 fi
7744done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745done
Torok Edwincc499a42008-10-22 09:56:27 +00007746IFS=$as_save_IFS
7747
7748 ;;
7749esac
7750fi
7751GAS=$ac_cv_path_GAS
7752if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007753 { echo "$as_me:$LINENO: result: $GAS" >&5
7754echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756 { echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007758fi
7759
7760
7761 test -n "$GAS" && break
7762done
7763
Reid Spencera773bd52006-08-04 18:18:08 +00007764
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007765{ echo "$as_me:$LINENO: checking for linker version" >&5
7766echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7767if test "${llvm_cv_link_version+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7769else
7770
7771 version_string="$(ld -v 2>&1 | head -1)"
7772
7773 # Check for ld64.
7774 if (echo "$version_string" | grep -q "ld64"); then
7775 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7776 else
7777 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7778 fi
7779
7780fi
7781{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7782echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7783
7784cat >>confdefs.h <<_ACEOF
7785#define HOST_LINK_VERSION "$llvm_cv_link_version"
7786_ACEOF
7787
7788
7789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007790{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7791echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7792if test "${llvm_cv_link_use_r+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007794else
7795 ac_ext=c
7796ac_cpp='$CPP $CPPFLAGS'
7797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7799ac_compiler_gnu=$ac_cv_c_compiler_gnu
7800
7801 oldcflags="$CFLAGS"
7802 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007803 cat >conftest.$ac_ext <<_ACEOF
7804/* confdefs.h. */
7805_ACEOF
7806cat confdefs.h >>conftest.$ac_ext
7807cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007808/* end confdefs.h. */
7809
7810int
7811main ()
7812{
Dan Gohman39ed6782010-04-25 00:12:20 +00007813
Reid Spencera773bd52006-08-04 18:18:08 +00007814 ;
7815 return 0;
7816}
7817_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007818rm -f conftest.$ac_objext conftest$ac_exeext
7819if { (ac_try="$ac_link"
7820case "(($ac_try" in
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7823esac
7824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_link") 2>conftest.er1
7826 ac_status=$?
7827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7833 { (case "(($ac_try" in
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7836esac
7837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_try") 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7846esac
7847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_try") 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007852 llvm_cv_link_use_r=yes
7853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007854 echo "$as_me: failed program was:" >&5
7855sed 's/^/| /' conftest.$ac_ext >&5
7856
7857 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859
Bill Wendlingebcceee2009-04-18 11:20:33 +00007860rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007861 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007862 CFLAGS="$oldcflags"
7863 ac_ext=c
7864ac_cpp='$CPP $CPPFLAGS'
7865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7867ac_compiler_gnu=$ac_cv_c_compiler_gnu
7868
7869
7870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007871{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7872echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007873if test "$llvm_cv_link_use_r" = yes ; then
7874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007875cat >>confdefs.h <<\_ACEOF
7876#define HAVE_LINK_R 1
7877_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007878
7879 fi
7880
7881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007882{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7883echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7884if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007886else
7887 ac_ext=c
7888ac_cpp='$CPP $CPPFLAGS'
7889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892
7893 oldcflags="$CFLAGS"
7894 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007895 cat >conftest.$ac_ext <<_ACEOF
7896/* confdefs.h. */
7897_ACEOF
7898cat confdefs.h >>conftest.$ac_ext
7899cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007900/* end confdefs.h. */
7901
7902int
7903main ()
7904{
Dan Gohman39ed6782010-04-25 00:12:20 +00007905
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007906 ;
7907 return 0;
7908}
7909_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007910rm -f conftest.$ac_objext conftest$ac_exeext
7911if { (ac_try="$ac_link"
7912case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7915esac
7916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_link") 2>conftest.er1
7918 ac_status=$?
7919 grep -v '^ *+' conftest.er1 >conftest.err
7920 rm -f conftest.er1
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7925 { (case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_try") 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest$ac_exeext'
7935 { (case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938esac
7939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_try") 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007944 llvm_cv_link_use_export_dynamic=yes
7945else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007946 echo "$as_me: failed program was:" >&5
7947sed 's/^/| /' conftest.$ac_ext >&5
7948
7949 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007950fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007951
Bill Wendlingebcceee2009-04-18 11:20:33 +00007952rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007953 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007954 CFLAGS="$oldcflags"
7955 ac_ext=c
7956ac_cpp='$CPP $CPPFLAGS'
7957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960
7961
7962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007963{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7964echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007965if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007967cat >>confdefs.h <<\_ACEOF
7968#define HAVE_LINK_EXPORT_DYNAMIC 1
7969_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007970
7971 fi
7972
7973
Dan Gohmanda612d62010-06-01 14:56:56 +00007974{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7975echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7976if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007977 echo $ECHO_N "(cached) $ECHO_C" >&6
7978else
7979 ac_ext=c
7980ac_cpp='$CPP $CPPFLAGS'
7981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7983ac_compiler_gnu=$ac_cv_c_compiler_gnu
7984
7985 oldcflags="$CFLAGS"
7986
7987 # The following code is from the autoconf manual,
7988 # "11.13: Limitations of Usual Tools".
7989 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7990 # Use mktemp if possible; otherwise fall back on mkdir,
7991 # with $RANDOM to make collisions less likely.
7992 : ${TMPDIR=/tmp}
7993 {
7994 tmp=`
7995 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7996 ` &&
7997 test -n "$tmp" && test -d "$tmp"
7998 } || {
7999 tmp=$TMPDIR/foo$$-$RANDOM
8000 (umask 077 && mkdir "$tmp")
8001 } || exit $?
8002
Dan Gohmanda612d62010-06-01 14:56:56 +00008003 echo "{" > "$tmp/export.map"
8004 echo " global: main;" >> "$tmp/export.map"
8005 echo " local: *;" >> "$tmp/export.map"
8006 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008007
Dan Gohmanda612d62010-06-01 14:56:56 +00008008 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008009 cat >conftest.$ac_ext <<_ACEOF
8010/* confdefs.h. */
8011_ACEOF
8012cat confdefs.h >>conftest.$ac_ext
8013cat >>conftest.$ac_ext <<_ACEOF
8014/* end confdefs.h. */
8015
8016int
8017main ()
8018{
Dan Gohman39ed6782010-04-25 00:12:20 +00008019
Dan Gohman391569c2010-04-16 22:59:06 +00008020 ;
8021 return 0;
8022}
8023_ACEOF
8024rm -f conftest.$ac_objext conftest$ac_exeext
8025if { (ac_try="$ac_link"
8026case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029esac
8030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_link") 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8039 { (case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042esac
8043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_try") 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try='test -s conftest$ac_exeext'
8049 { (case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052esac
8053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_try") 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008058 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008059else
8060 echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
Dan Gohman943005e2010-06-01 16:22:27 +00008063 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008064fi
8065
8066rm -f core conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008068 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008069 rmdir "$tmp"
8070 CFLAGS="$oldcflags"
8071 ac_ext=c
8072ac_cpp='$CPP $CPPFLAGS'
8073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075ac_compiler_gnu=$ac_cv_c_compiler_gnu
8076
8077
8078fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008079{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8080echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8081if test "$llvm_cv_link_use_version_script" = yes ; then
8082 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008083
8084 fi
8085
8086
Reid Spencera773bd52006-08-04 18:18:08 +00008087
8088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008089{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8090echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8091if test "${ac_cv_c_const+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008094 cat >conftest.$ac_ext <<_ACEOF
8095/* confdefs.h. */
8096_ACEOF
8097cat confdefs.h >>conftest.$ac_ext
8098cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008099/* end confdefs.h. */
8100
8101int
8102main ()
8103{
8104/* FIXME: Include the comments suggested by Paul. */
8105#ifndef __cplusplus
8106 /* Ultrix mips cc rejects this. */
8107 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008108 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008109 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008110 char const *const *ccp;
8111 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008112 /* NEC SVR4.0.2 mips cc rejects this. */
8113 struct point {int x, y;};
8114 static struct point const zero = {0,0};
8115 /* AIX XL C 1.02.0.0 rejects this.
8116 It does not let you subtract one const X* pointer from another in
8117 an arm of an if-expression whose if-part is not a constant
8118 expression */
8119 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008120 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008121 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008122 ++ccp;
8123 p = (char**) ccp;
8124 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008125 { /* SCO 3.2v4 cc rejects this. */
8126 char *t;
8127 char const *s = 0 ? (char *) 0 : (char const *) 0;
8128
8129 *t++ = 0;
8130 if (s) return 0;
8131 }
8132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8133 int x[] = {25, 17};
8134 const int *foo = &x[0];
8135 ++foo;
8136 }
8137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8138 typedef const int *iptr;
8139 iptr p = 0;
8140 ++p;
8141 }
8142 { /* AIX XL C 1.02.0.0 rejects this saying
8143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8144 struct s { int j; const int *ap[3]; };
8145 struct s *b; b->j = 5;
8146 }
8147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8148 const int foo = 10;
8149 if (!foo) return 0;
8150 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008151 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008152#endif
8153
8154 ;
8155 return 0;
8156}
8157_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158rm -f conftest.$ac_objext
8159if { (ac_try="$ac_compile"
8160case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163esac
8164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_compile") 2>conftest.er1
8166 ac_status=$?
8167 grep -v '^ *+' conftest.er1 >conftest.err
8168 rm -f conftest.er1
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } &&
8172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8173 { (case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176esac
8177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_try") 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; } &&
8182 { ac_try='test -s conftest.$ac_objext'
8183 { (case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186esac
8187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_try") 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008192 ac_cv_c_const=yes
8193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194 echo "$as_me: failed program was:" >&5
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008198fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008199
Reid Spencera773bd52006-08-04 18:18:08 +00008200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008202{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8203echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008204if test $ac_cv_c_const = no; then
8205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008206cat >>confdefs.h <<\_ACEOF
8207#define const
8208_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008209
8210fi
8211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008212
8213
8214
8215
8216
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008217ac_header_dirent=no
8218for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008219 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8220{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8221echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008225 cat >conftest.$ac_ext <<_ACEOF
8226/* confdefs.h. */
8227_ACEOF
8228cat confdefs.h >>conftest.$ac_ext
8229cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008230/* end confdefs.h. */
8231#include <sys/types.h>
8232#include <$ac_hdr>
8233
8234int
8235main ()
8236{
8237if ((DIR *) 0)
8238return 0;
8239 ;
8240 return 0;
8241}
8242_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243rm -f conftest.$ac_objext
8244if { (ac_try="$ac_compile"
8245case "(($ac_try" in
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8248esac
8249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_compile") 2>conftest.er1
8251 ac_status=$?
8252 grep -v '^ *+' conftest.er1 >conftest.err
8253 rm -f conftest.er1
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8258 { (case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8261esac
8262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_try") 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; } &&
8267 { ac_try='test -s conftest.$ac_objext'
8268 { (case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271esac
8272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_try") 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008277 eval "$as_ac_Header=yes"
8278else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279 echo "$as_me: failed program was:" >&5
8280sed 's/^/| /' conftest.$ac_ext >&5
8281
8282 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008284
Reid Spencera773bd52006-08-04 18:18:08 +00008285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008287ac_res=`eval echo '${'$as_ac_Header'}'`
8288 { echo "$as_me:$LINENO: result: $ac_res" >&5
8289echo "${ECHO_T}$ac_res" >&6; }
8290if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008291 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008292#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008293_ACEOF
8294
8295ac_header_dirent=$ac_hdr; break
8296fi
8297
8298done
8299# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8300if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008301 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8302echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8303if test "${ac_cv_search_opendir+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008305else
8306 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008307cat >conftest.$ac_ext <<_ACEOF
8308/* confdefs.h. */
8309_ACEOF
8310cat confdefs.h >>conftest.$ac_ext
8311cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008312/* end confdefs.h. */
8313
Reid Spencera773bd52006-08-04 18:18:08 +00008314/* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008317#ifdef __cplusplus
8318extern "C"
8319#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008320char opendir ();
8321int
8322main ()
8323{
Reid Spencera773bd52006-08-04 18:18:08 +00008324return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008325 ;
8326 return 0;
8327}
8328_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008329for ac_lib in '' dir; do
8330 if test -z "$ac_lib"; then
8331 ac_res="none required"
8332 else
8333 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008335 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336 rm -f conftest.$ac_objext conftest$ac_exeext
8337if { (ac_try="$ac_link"
8338case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341esac
8342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_link") 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8351 { (case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_try") 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest$ac_exeext'
8361 { (case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8364esac
8365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_try") 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008370 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008371else
8372 echo "$as_me: failed program was:" >&5
8373sed 's/^/| /' conftest.$ac_ext >&5
8374
8375
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008377
Bill Wendlingebcceee2009-04-18 11:20:33 +00008378rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008379 conftest$ac_exeext
8380 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008381 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008382fi
John Criswell7a73b802003-06-30 21:59:07 +00008383done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008384if test "${ac_cv_search_opendir+set}" = set; then
8385 :
Reid Spencera773bd52006-08-04 18:18:08 +00008386else
8387 ac_cv_search_opendir=no
8388fi
8389rm conftest.$ac_ext
8390LIBS=$ac_func_search_save_LIBS
8391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8393echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008394ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008395if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008397
Reid Spencera773bd52006-08-04 18:18:08 +00008398fi
8399
8400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008401 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8402echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8403if test "${ac_cv_search_opendir+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008405else
8406 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008407cat >conftest.$ac_ext <<_ACEOF
8408/* confdefs.h. */
8409_ACEOF
8410cat confdefs.h >>conftest.$ac_ext
8411cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008412/* end confdefs.h. */
8413
8414/* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8417#ifdef __cplusplus
8418extern "C"
8419#endif
8420char opendir ();
8421int
8422main ()
8423{
8424return opendir ();
8425 ;
8426 return 0;
8427}
8428_ACEOF
8429for ac_lib in '' x; do
8430 if test -z "$ac_lib"; then
8431 ac_res="none required"
8432 else
8433 ac_res=-l$ac_lib
8434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8435 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008436 rm -f conftest.$ac_objext conftest$ac_exeext
8437if { (ac_try="$ac_link"
8438case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441esac
8442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_link") 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8451 { (case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454esac
8455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_try") 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464esac
8465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_try") 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008470 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475
Reid Spencera773bd52006-08-04 18:18:08 +00008476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008477
Bill Wendlingebcceee2009-04-18 11:20:33 +00008478rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479 conftest$ac_exeext
8480 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008481 break
8482fi
8483done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008484if test "${ac_cv_search_opendir+set}" = set; then
8485 :
Reid Spencera773bd52006-08-04 18:18:08 +00008486else
8487 ac_cv_search_opendir=no
8488fi
8489rm conftest.$ac_ext
8490LIBS=$ac_func_search_save_LIBS
8491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008492{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8493echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008494ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008495if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8497
8498fi
8499
8500fi
John Criswell7a73b802003-06-30 21:59:07 +00008501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008502
John Criswell7a73b802003-06-30 21:59:07 +00008503for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008504do
8505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511fi
8512ac_res=`eval echo '${'$as_ac_Header'}'`
8513 { echo "$as_me:$LINENO: result: $ac_res" >&5
8514echo "${ECHO_T}$ac_res" >&6; }
8515else
8516 # Is the header compilable?
8517{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8519cat >conftest.$ac_ext <<_ACEOF
8520/* confdefs.h. */
8521_ACEOF
8522cat confdefs.h >>conftest.$ac_ext
8523cat >>conftest.$ac_ext <<_ACEOF
8524/* end confdefs.h. */
8525$ac_includes_default
8526#include <$ac_header>
8527_ACEOF
8528rm -f conftest.$ac_objext
8529if { (ac_try="$ac_compile"
8530case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533esac
8534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_compile") 2>conftest.er1
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8543 { (case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546esac
8547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_try") 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try='test -s conftest.$ac_objext'
8553 { (case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556esac
8557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_try") 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_header_compiler=yes
8563else
8564 echo "$as_me: failed program was:" >&5
8565sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 ac_header_compiler=no
8568fi
8569
8570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8572echo "${ECHO_T}$ac_header_compiler" >&6; }
8573
8574# Is the header present?
8575{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8577cat >conftest.$ac_ext <<_ACEOF
8578/* confdefs.h. */
8579_ACEOF
8580cat confdefs.h >>conftest.$ac_ext
8581cat >>conftest.$ac_ext <<_ACEOF
8582/* end confdefs.h. */
8583#include <$ac_header>
8584_ACEOF
8585if { (ac_try="$ac_cpp conftest.$ac_ext"
8586case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589esac
8590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8592 ac_status=$?
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } >/dev/null; then
8598 if test -s conftest.err; then
8599 ac_cpp_err=$ac_c_preproc_warn_flag
8600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8601 else
8602 ac_cpp_err=
8603 fi
8604else
8605 ac_cpp_err=yes
8606fi
8607if test -z "$ac_cpp_err"; then
8608 ac_header_preproc=yes
8609else
8610 echo "$as_me: failed program was:" >&5
8611sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 ac_header_preproc=no
8614fi
8615
8616rm -f conftest.err conftest.$ac_ext
8617{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8618echo "${ECHO_T}$ac_header_preproc" >&6; }
8619
8620# So? What about this header?
8621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8622 yes:no: )
8623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8627 ac_header_preproc=yes
8628 ;;
8629 no:yes:* )
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8633echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8637echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8642 ( cat <<\_ASBOX
8643## ----------------------------------- ##
8644## Report this to llvmbugs@cs.uiuc.edu ##
8645## ----------------------------------- ##
8646_ASBOX
8647 ) | sed "s/^/$as_me: WARNING: /" >&2
8648 ;;
8649esac
8650{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654else
8655 eval "$as_ac_Header=\$ac_header_preproc"
8656fi
8657ac_res=`eval echo '${'$as_ac_Header'}'`
8658 { echo "$as_me:$LINENO: result: $ac_res" >&5
8659echo "${ECHO_T}$ac_res" >&6; }
8660
8661fi
8662if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008663 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008665_ACEOF
8666
8667fi
8668
8669done
8670
Reid Spencera773bd52006-08-04 18:18:08 +00008671# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008672if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008673 enableval=$enable_ltdl_install;
8674fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008675
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008677
8678
8679if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008680 INSTALL_LTDL_TRUE=
8681 INSTALL_LTDL_FALSE='#'
8682else
8683 INSTALL_LTDL_TRUE='#'
8684 INSTALL_LTDL_FALSE=
8685fi
8686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008687
8688
8689if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008690 CONVENIENCE_LTDL_TRUE=
8691 CONVENIENCE_LTDL_FALSE='#'
8692else
8693 CONVENIENCE_LTDL_TRUE='#'
8694 CONVENIENCE_LTDL_FALSE=
8695fi
8696
8697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008698{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8699echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008700library_names_spec=
8701libname_spec='lib$name'
8702soname_spec=
8703shrext_cmds=".so"
8704postinstall_cmds=
8705postuninstall_cmds=
8706finish_cmds=
8707finish_eval=
8708shlibpath_var=
8709shlibpath_overrides_runpath=unknown
8710version_type=none
8711dynamic_linker="$host_os ld.so"
8712sys_lib_dlsearch_path_spec="/lib /usr/lib"
8713if test "$GCC" = yes; then
8714 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8715 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8716 # if the path contains ";" then we assume it to be the separator
8717 # otherwise default to the standard path separator (i.e. ":") - it is
8718 # assumed that no part of a normal pathname contains ";" but that should
8719 # okay in the real world where ";" in dirpaths is itself problematic.
8720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8721 else
8722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8723 fi
8724else
8725 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8726fi
8727need_lib_prefix=unknown
8728hardcode_into_libs=no
8729
8730# when you set need_version to no, make sure it does not cause -set_version
8731# flags to be left without arguments
8732need_version=unknown
8733
8734case $host_os in
8735aix3*)
8736 version_type=linux
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8738 shlibpath_var=LIBPATH
8739
8740 # AIX 3 has no versioning support, so we append a major version to the name.
8741 soname_spec='${libname}${release}${shared_ext}$major'
8742 ;;
8743
8744aix4* | aix5*)
8745 version_type=linux
8746 need_lib_prefix=no
8747 need_version=no
8748 hardcode_into_libs=yes
8749 if test "$host_cpu" = ia64; then
8750 # AIX 5 supports IA64
8751 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8752 shlibpath_var=LD_LIBRARY_PATH
8753 else
8754 # With GCC up to 2.95.x, collect2 would create an import file
8755 # for dependence libraries. The import file would start with
8756 # the line `#! .'. This would cause the generated library to
8757 # depend on `.', always an invalid library. This was fixed in
8758 # development snapshots of GCC prior to 3.0.
8759 case $host_os in
8760 aix4 | aix4.[01] | aix4.[01].*)
8761 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8762 echo ' yes '
8763 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8764 :
8765 else
8766 can_build_shared=no
8767 fi
8768 ;;
8769 esac
8770 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8771 # soname into executable. Probably we can add versioning support to
8772 # collect2, so additional links can be useful in future.
8773 if test "$aix_use_runtimelinking" = yes; then
8774 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8775 # instead of lib<name>.a to let people know that these are not
8776 # typical AIX shared libraries.
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8778 else
8779 # We preserve .a as extension for shared libraries through AIX4.2
8780 # and later when we are not doing run time linking.
8781 library_names_spec='${libname}${release}.a $libname.a'
8782 soname_spec='${libname}${release}${shared_ext}$major'
8783 fi
8784 shlibpath_var=LIBPATH
8785 fi
8786 ;;
8787
8788amigaos*)
8789 library_names_spec='$libname.ixlibrary $libname.a'
8790 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8791 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'
8792 ;;
8793
8794beos*)
8795 library_names_spec='${libname}${shared_ext}'
8796 dynamic_linker="$host_os ld.so"
8797 shlibpath_var=LIBRARY_PATH
8798 ;;
8799
8800bsdi[45]*)
8801 version_type=linux
8802 need_version=no
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804 soname_spec='${libname}${release}${shared_ext}$major'
8805 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8806 shlibpath_var=LD_LIBRARY_PATH
8807 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8808 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8809 # the default ld.so.conf also contains /usr/contrib/lib and
8810 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8811 # libtool to hard-code these into programs
8812 ;;
8813
8814cygwin* | mingw* | pw32*)
8815 version_type=windows
8816 shrext_cmds=".dll"
8817 need_version=no
8818 need_lib_prefix=no
8819
8820 case $GCC,$host_os in
8821 yes,cygwin* | yes,mingw* | yes,pw32*)
8822 library_names_spec='$libname.dll.a'
8823 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8824 postinstall_cmds='base_file=`basename \${file}`~
8825 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8826 dldir=$destdir/`dirname \$dlpath`~
8827 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008828 $install_prog $dir/$dlname \$dldir/$dlname~
8829 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8831 dlpath=$dir/\$dldll~
8832 $rm \$dlpath'
8833 shlibpath_overrides_runpath=yes
8834
8835 case $host_os in
8836 cygwin*)
8837 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8838 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8839 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8840 ;;
8841 mingw*)
8842 # MinGW DLLs use traditional 'lib' prefix
8843 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8844 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8845 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8846 # It is most probably a Windows format PATH printed by
8847 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8848 # path with ; separators, and with drive letters. We can handle the
8849 # drive letters (cygwin fileutils understands them), so leave them,
8850 # especially as we might pass files found there to a mingw objdump,
8851 # which wouldn't understand a cygwinified path. Ahh.
8852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8853 else
8854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8855 fi
8856 ;;
8857 pw32*)
8858 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008859 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 +00008860 ;;
8861 esac
8862 ;;
8863
8864 *)
8865 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8866 ;;
8867 esac
8868 dynamic_linker='Win32 ld.exe'
8869 # FIXME: first we should search . and the directory the executable is in
8870 shlibpath_var=PATH
8871 ;;
8872
8873darwin* | rhapsody*)
8874 dynamic_linker="$host_os dyld"
8875 version_type=darwin
8876 need_lib_prefix=no
8877 need_version=no
8878 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8879 soname_spec='${libname}${release}${major}$shared_ext'
8880 shlibpath_overrides_runpath=yes
8881 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008882 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008883 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8884 if test "$GCC" = yes; then
8885 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"`
8886 else
8887 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8888 fi
8889 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8890 ;;
8891
8892dgux*)
8893 version_type=linux
8894 need_lib_prefix=no
8895 need_version=no
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 shlibpath_var=LD_LIBRARY_PATH
8899 ;;
8900
8901freebsd1*)
8902 dynamic_linker=no
8903 ;;
8904
8905kfreebsd*-gnu)
8906 version_type=linux
8907 need_lib_prefix=no
8908 need_version=no
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=no
8913 hardcode_into_libs=yes
8914 dynamic_linker='GNU ld.so'
8915 ;;
8916
Reid Spencera773bd52006-08-04 18:18:08 +00008917freebsd* | dragonfly*)
8918 # DragonFly does not have aout. When/if they implement a new
8919 # versioning mechanism, adjust this.
8920 if test -x /usr/bin/objformat; then
8921 objformat=`/usr/bin/objformat`
8922 else
8923 case $host_os in
8924 freebsd[123]*) objformat=aout ;;
8925 *) objformat=elf ;;
8926 esac
8927 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008928 version_type=freebsd-$objformat
8929 case $version_type in
8930 freebsd-elf*)
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8932 need_version=no
8933 need_lib_prefix=no
8934 ;;
8935 freebsd-*)
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8937 need_version=yes
8938 ;;
8939 esac
8940 shlibpath_var=LD_LIBRARY_PATH
8941 case $host_os in
8942 freebsd2*)
8943 shlibpath_overrides_runpath=yes
8944 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008945 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008946 shlibpath_overrides_runpath=yes
8947 hardcode_into_libs=yes
8948 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008949 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8950 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008951 shlibpath_overrides_runpath=no
8952 hardcode_into_libs=yes
8953 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008954 freebsd*) # from 4.6 on
8955 shlibpath_overrides_runpath=yes
8956 hardcode_into_libs=yes
8957 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008958 esac
8959 ;;
8960
8961gnu*)
8962 version_type=linux
8963 need_lib_prefix=no
8964 need_version=no
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 shlibpath_var=LD_LIBRARY_PATH
8968 hardcode_into_libs=yes
8969 ;;
8970
8971hpux9* | hpux10* | hpux11*)
8972 # Give a soname corresponding to the major version so that dld.sl refuses to
8973 # link against other versions.
8974 version_type=sunos
8975 need_lib_prefix=no
8976 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008977 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008978 ia64*)
8979 shrext_cmds='.so'
8980 hardcode_into_libs=yes
8981 dynamic_linker="$host_os dld.so"
8982 shlibpath_var=LD_LIBRARY_PATH
8983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8985 soname_spec='${libname}${release}${shared_ext}$major'
8986 if test "X$HPUX_IA64_MODE" = X32; then
8987 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8988 else
8989 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8990 fi
8991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8992 ;;
8993 hppa*64*)
8994 shrext_cmds='.sl'
8995 hardcode_into_libs=yes
8996 dynamic_linker="$host_os dld.sl"
8997 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9003 ;;
9004 *)
9005 shrext_cmds='.sl'
9006 dynamic_linker="$host_os dld.sl"
9007 shlibpath_var=SHLIB_PATH
9008 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
9012 esac
9013 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9014 postinstall_cmds='chmod 555 $lib'
9015 ;;
9016
Reid Spencera773bd52006-08-04 18:18:08 +00009017interix3*)
9018 version_type=linux
9019 need_lib_prefix=no
9020 need_version=no
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9022 soname_spec='${libname}${release}${shared_ext}$major'
9023 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=no
9026 hardcode_into_libs=yes
9027 ;;
9028
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009029irix5* | irix6* | nonstopux*)
9030 case $host_os in
9031 nonstopux*) version_type=nonstopux ;;
9032 *)
9033 if test "$lt_cv_prog_gnu_ld" = yes; then
9034 version_type=linux
9035 else
9036 version_type=irix
9037 fi ;;
9038 esac
9039 need_lib_prefix=no
9040 need_version=no
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9043 case $host_os in
9044 irix5* | nonstopux*)
9045 libsuff= shlibsuff=
9046 ;;
9047 *)
9048 case $LD in # libtool.m4 will add one of these switches to LD
9049 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9050 libsuff= shlibsuff= libmagic=32-bit;;
9051 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9052 libsuff=32 shlibsuff=N32 libmagic=N32;;
9053 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9054 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9055 *) libsuff= shlibsuff= libmagic=never-match;;
9056 esac
9057 ;;
9058 esac
9059 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9060 shlibpath_overrides_runpath=no
9061 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9062 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9063 hardcode_into_libs=yes
9064 ;;
9065
9066# No shared lib support for Linux oldld, aout, or coff.
9067linux*oldld* | linux*aout* | linux*coff*)
9068 dynamic_linker=no
9069 ;;
9070
9071# This must be Linux ELF.
9072linux*)
9073 version_type=linux
9074 need_lib_prefix=no
9075 need_version=no
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=no
9081 # This implies no fast_install, which is unacceptable.
9082 # Some rework will be needed to allow for fast_install
9083 # before this can be enabled.
9084 hardcode_into_libs=yes
9085
9086 # Append ld.so.conf contents to the search path
9087 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009088 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 +00009089 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9090 fi
9091
9092 # We used to test for /lib/ld.so.1 and disable shared libraries on
9093 # powerpc, because MkLinux only supported shared libraries with the
9094 # GNU dynamic linker. Since this was broken with cross compilers,
9095 # most powerpc-linux boxes support dynamic linking these days and
9096 # people can always --disable-shared, the test was removed, and we
9097 # assume the GNU/Linux dynamic linker is in use.
9098 dynamic_linker='GNU/Linux ld.so'
9099 ;;
9100
9101knetbsd*-gnu)
9102 version_type=linux
9103 need_lib_prefix=no
9104 need_version=no
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=no
9109 hardcode_into_libs=yes
9110 dynamic_linker='GNU ld.so'
9111 ;;
9112
9113netbsd*)
9114 version_type=sunos
9115 need_lib_prefix=no
9116 need_version=no
9117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9120 dynamic_linker='NetBSD (a.out) ld.so'
9121 else
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 dynamic_linker='NetBSD ld.elf_so'
9125 fi
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=yes
9128 hardcode_into_libs=yes
9129 ;;
9130
9131newsos6)
9132 version_type=linux
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 shlibpath_overrides_runpath=yes
9136 ;;
9137
9138nto-qnx*)
9139 version_type=linux
9140 need_lib_prefix=no
9141 need_version=no
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=yes
9146 ;;
9147
9148openbsd*)
9149 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009150 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009151 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009152 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9153 case $host_os in
9154 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9155 *) need_version=no ;;
9156 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9159 shlibpath_var=LD_LIBRARY_PATH
9160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9161 case $host_os in
9162 openbsd2.[89] | openbsd2.[89].*)
9163 shlibpath_overrides_runpath=no
9164 ;;
9165 *)
9166 shlibpath_overrides_runpath=yes
9167 ;;
9168 esac
9169 else
9170 shlibpath_overrides_runpath=yes
9171 fi
9172 ;;
9173
9174os2*)
9175 libname_spec='$name'
9176 shrext_cmds=".dll"
9177 need_lib_prefix=no
9178 library_names_spec='$libname${shared_ext} $libname.a'
9179 dynamic_linker='OS/2 ld.exe'
9180 shlibpath_var=LIBPATH
9181 ;;
9182
9183osf3* | osf4* | osf5*)
9184 version_type=osf
9185 need_lib_prefix=no
9186 need_version=no
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9191 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9192 ;;
9193
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009194solaris*)
9195 version_type=linux
9196 need_lib_prefix=no
9197 need_version=no
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 shlibpath_overrides_runpath=yes
9202 hardcode_into_libs=yes
9203 # ldd complains unless libraries are executable
9204 postinstall_cmds='chmod +x $lib'
9205 ;;
9206
9207sunos4*)
9208 version_type=sunos
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=yes
9213 if test "$with_gnu_ld" = yes; then
9214 need_lib_prefix=no
9215 fi
9216 need_version=yes
9217 ;;
9218
Reid Spencera773bd52006-08-04 18:18:08 +00009219sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009220 version_type=linux
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 case $host_vendor in
9225 sni)
9226 shlibpath_overrides_runpath=no
9227 need_lib_prefix=no
9228 export_dynamic_flag_spec='${wl}-Blargedynsym'
9229 runpath_var=LD_RUN_PATH
9230 ;;
9231 siemens)
9232 need_lib_prefix=no
9233 ;;
9234 motorola)
9235 need_lib_prefix=no
9236 need_version=no
9237 shlibpath_overrides_runpath=no
9238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9239 ;;
9240 esac
9241 ;;
9242
9243sysv4*MP*)
9244 if test -d /usr/nec ;then
9245 version_type=linux
9246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9247 soname_spec='$libname${shared_ext}.$major'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 fi
9250 ;;
9251
Reid Spencera773bd52006-08-04 18:18:08 +00009252sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9253 version_type=freebsd-elf
9254 need_lib_prefix=no
9255 need_version=no
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 hardcode_into_libs=yes
9260 if test "$with_gnu_ld" = yes; then
9261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9262 shlibpath_overrides_runpath=no
9263 else
9264 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9265 shlibpath_overrides_runpath=yes
9266 case $host_os in
9267 sco3.2v5*)
9268 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9269 ;;
9270 esac
9271 fi
9272 sys_lib_dlsearch_path_spec='/usr/lib'
9273 ;;
9274
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275uts4*)
9276 version_type=linux
9277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9278 soname_spec='${libname}${release}${shared_ext}$major'
9279 shlibpath_var=LD_LIBRARY_PATH
9280 ;;
9281
9282*)
9283 dynamic_linker=no
9284 ;;
9285esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009286{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9287echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009288test "$dynamic_linker" = no && can_build_shared=no
9289
Reid Spencera773bd52006-08-04 18:18:08 +00009290variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9291if test "$GCC" = yes; then
9292 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9293fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009294
Reid Spencera773bd52006-08-04 18:18:08 +00009295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009296{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9297echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9298if test "${libltdl_cv_shlibext+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009300else
9301
9302module=yes
9303eval libltdl_cv_shlibext=$shrext_cmds
9304
9305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009306{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9307echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009308if test -n "$libltdl_cv_shlibext"; then
9309
9310cat >>confdefs.h <<_ACEOF
9311#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9312_ACEOF
9313
9314fi
9315
9316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009317{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9318echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9319if test "${libltdl_cv_shlibpath_var+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009321else
9322 libltdl_cv_shlibpath_var="$shlibpath_var"
9323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009324{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9325echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009326if test -n "$libltdl_cv_shlibpath_var"; then
9327
9328cat >>confdefs.h <<_ACEOF
9329#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9330_ACEOF
9331
9332fi
9333
9334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009335{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9336echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9337if test "${libltdl_cv_sys_search_path+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009339else
9340 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009342{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9343echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009344if test -n "$libltdl_cv_sys_search_path"; then
9345 sys_search_path=
9346 for dir in $libltdl_cv_sys_search_path; do
9347 if test -z "$sys_search_path"; then
9348 sys_search_path="$dir"
9349 else
9350 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9351 fi
9352 done
9353
9354cat >>confdefs.h <<_ACEOF
9355#define LTDL_SYSSEARCHPATH "$sys_search_path"
9356_ACEOF
9357
9358fi
9359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009360{ echo "$as_me:$LINENO: checking for objdir" >&5
9361echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9362if test "${libltdl_cv_objdir+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009364else
9365 libltdl_cv_objdir="$objdir"
9366 if test -n "$objdir"; then
9367 :
9368 else
9369 rm -f .libs 2>/dev/null
9370 mkdir .libs 2>/dev/null
9371 if test -d .libs; then
9372 libltdl_cv_objdir=.libs
9373 else
9374 # MS-DOS does not allow filenames that begin with a dot.
9375 libltdl_cv_objdir=_libs
9376 fi
9377 rmdir .libs 2>/dev/null
9378 fi
9379
9380fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009381{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9382echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009383
9384cat >>confdefs.h <<_ACEOF
9385#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9386_ACEOF
9387
9388
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009389
9390
9391
9392
9393# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009394{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9395echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9396if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009398else
9399
9400# These are sane defaults that work on at least a few old systems.
9401# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9402
9403# Character class describing NM global symbol codes.
9404symcode='[BCDEGRST]'
9405
9406# Regexp to match symbols that can be accessed directly from C.
9407sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9408
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009409# Transform an extracted symbol line into a proper C declaration
9410lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9411
9412# Transform an extracted symbol line into symbol name and symbol address
9413lt_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'"
9414
9415# Define system-specific variables.
9416case $host_os in
9417aix*)
9418 symcode='[BCDT]'
9419 ;;
9420cygwin* | mingw* | pw32*)
9421 symcode='[ABCDGISTW]'
9422 ;;
9423hpux*) # Its linker distinguishes data from code symbols
9424 if test "$host_cpu" = ia64; then
9425 symcode='[ABCDEGRST]'
9426 fi
9427 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9428 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'"
9429 ;;
9430linux*)
9431 if test "$host_cpu" = ia64; then
9432 symcode='[ABCDGIRSTW]'
9433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9434 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'"
9435 fi
9436 ;;
9437irix* | nonstopux*)
9438 symcode='[BCDEGRST]'
9439 ;;
9440osf*)
9441 symcode='[BCDEGQRST]'
9442 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009443solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009444 symcode='[BDRT]'
9445 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009446sco3.2v5*)
9447 symcode='[DT]'
9448 ;;
9449sysv4.2uw2*)
9450 symcode='[DT]'
9451 ;;
9452sysv5* | sco5v6* | unixware* | OpenUNIX*)
9453 symcode='[ABDT]'
9454 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009455sysv4)
9456 symcode='[DFNSTU]'
9457 ;;
9458esac
9459
9460# Handle CRLF in mingw tool chain
9461opt_cr=
9462case $build_os in
9463mingw*)
9464 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9465 ;;
9466esac
9467
9468# If we're using GNU nm, then use its standard symbol codes.
9469case `$NM -V 2>&1` in
9470*GNU* | *'with BFD'*)
9471 symcode='[ABCDGIRSTW]' ;;
9472esac
9473
9474# Try without a prefix undercore, then with it.
9475for ac_symprfx in "" "_"; do
9476
Reid Spencera773bd52006-08-04 18:18:08 +00009477 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9478 symxfrm="\\1 $ac_symprfx\\2 \\2"
9479
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009480 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009481 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 +00009482
9483 # Check to see that the pipe works correctly.
9484 pipe_works=no
9485
9486 rm -f conftest*
9487 cat > conftest.$ac_ext <<EOF
9488#ifdef __cplusplus
9489extern "C" {
9490#endif
9491char nm_test_var;
9492void nm_test_func(){}
9493#ifdef __cplusplus
9494}
9495#endif
9496int main(){nm_test_var='a';nm_test_func();return(0);}
9497EOF
9498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009500 (eval $ac_compile) 2>&5
9501 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009504 # Now try to grab the symbols.
9505 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009506 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 +00009507 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9508 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511 # Try sorting and uniquifying the output.
9512 if sort "$nlist" | uniq > "$nlist"T; then
9513 mv -f "$nlist"T "$nlist"
9514 else
9515 rm -f "$nlist"T
9516 fi
9517
9518 # Make sure that we snagged all the symbols we need.
9519 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9520 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9521 cat <<EOF > conftest.$ac_ext
9522#ifdef __cplusplus
9523extern "C" {
9524#endif
9525
9526EOF
9527 # Now generate the symbol file.
9528 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9529
9530 cat <<EOF >> conftest.$ac_ext
9531#if defined (__STDC__) && __STDC__
9532# define lt_ptr_t void *
9533#else
9534# define lt_ptr_t char *
9535# define const
9536#endif
9537
9538/* The mapping between symbol names and symbols. */
9539const struct {
9540 const char *name;
9541 lt_ptr_t address;
9542}
9543lt_preloaded_symbols[] =
9544{
9545EOF
9546 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9547 cat <<\EOF >> conftest.$ac_ext
9548 {0, (lt_ptr_t) 0}
9549};
9550
9551#ifdef __cplusplus
9552}
9553#endif
9554EOF
9555 # Now try linking the two files.
9556 mv conftest.$ac_objext conftstm.$ac_objext
9557 lt_save_LIBS="$LIBS"
9558 lt_save_CFLAGS="$CFLAGS"
9559 LIBS="conftstm.$ac_objext"
9560 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009562 (eval $ac_link) 2>&5
9563 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009566 pipe_works=yes
9567 fi
9568 LIBS="$lt_save_LIBS"
9569 CFLAGS="$lt_save_CFLAGS"
9570 else
9571 echo "cannot find nm_test_func in $nlist" >&5
9572 fi
9573 else
9574 echo "cannot find nm_test_var in $nlist" >&5
9575 fi
9576 else
9577 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9578 fi
9579 else
9580 echo "$progname: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 fi
9583 rm -f conftest* conftst*
9584
9585 # Do not use the global_symbol_pipe unless it works.
9586 if test "$pipe_works" = yes; then
9587 break
9588 else
9589 lt_cv_sys_global_symbol_pipe=
9590 fi
9591done
9592
9593fi
9594
9595if test -z "$lt_cv_sys_global_symbol_pipe"; then
9596 lt_cv_sys_global_symbol_to_cdecl=
9597fi
9598if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009599 { echo "$as_me:$LINENO: result: failed" >&5
9600echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009602 { echo "$as_me:$LINENO: result: ok" >&5
9603echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009604fi
9605
9606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009607{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9608echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9609if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611else
9612 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9613 libltdl_cv_preloaded_symbols=yes
9614 else
9615 libltdl_cv_preloaded_symbols=no
9616 fi
9617
9618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009619{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9620echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009621if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009623cat >>confdefs.h <<\_ACEOF
9624#define HAVE_PRELOADED_SYMBOLS 1
9625_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009626
9627fi
9628
9629LIBADD_DL=
9630
9631ac_ext=c
9632ac_cpp='$CPP $CPPFLAGS'
9633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635ac_compiler_gnu=$ac_cv_c_compiler_gnu
9636
9637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009638{ echo "$as_me:$LINENO: checking for shl_load" >&5
9639echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9640if test "${ac_cv_func_shl_load+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9642else
9643 cat >conftest.$ac_ext <<_ACEOF
9644/* confdefs.h. */
9645_ACEOF
9646cat confdefs.h >>conftest.$ac_ext
9647cat >>conftest.$ac_ext <<_ACEOF
9648/* end confdefs.h. */
9649/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9651#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009653/* System header to define __stub macros and hopefully few prototypes,
9654 which can conflict with char shl_load (); below.
9655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9656 <limits.h> exists even on freestanding compilers. */
9657
9658#ifdef __STDC__
9659# include <limits.h>
9660#else
9661# include <assert.h>
9662#endif
9663
9664#undef shl_load
9665
9666/* Override any GCC internal prototype to avoid an error.
9667 Use char because int might match the return type of a GCC
9668 builtin and then its argument prototype would still apply. */
9669#ifdef __cplusplus
9670extern "C"
9671#endif
9672char shl_load ();
9673/* The GNU C library defines this for functions which it implements
9674 to always fail with ENOSYS. Some functions are actually named
9675 something starting with __ and the normal name is an alias. */
9676#if defined __stub_shl_load || defined __stub___shl_load
9677choke me
9678#endif
9679
9680int
9681main ()
9682{
9683return shl_load ();
9684 ;
9685 return 0;
9686}
9687_ACEOF
9688rm -f conftest.$ac_objext conftest$ac_exeext
9689if { (ac_try="$ac_link"
9690case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9693esac
9694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_link") 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9703 { (case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9706esac
9707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_try") 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; } &&
9712 { ac_try='test -s conftest$ac_exeext'
9713 { (case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716esac
9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_try") 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9722 ac_cv_func_shl_load=yes
9723else
9724 echo "$as_me: failed program was:" >&5
9725sed 's/^/| /' conftest.$ac_ext >&5
9726
9727 ac_cv_func_shl_load=no
9728fi
9729
9730rm -f core conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732fi
9733{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9734echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9735if test $ac_cv_func_shl_load = yes; then
9736
9737cat >>confdefs.h <<\_ACEOF
9738#define HAVE_SHL_LOAD 1
9739_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009740
9741else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009742 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9743echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9744if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009746else
9747 ac_check_lib_save_LIBS=$LIBS
9748LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009749cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h. */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009754/* end confdefs.h. */
9755
Reid Spencera773bd52006-08-04 18:18:08 +00009756/* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009759#ifdef __cplusplus
9760extern "C"
9761#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762char shl_load ();
9763int
9764main ()
9765{
Reid Spencera773bd52006-08-04 18:18:08 +00009766return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009767 ;
9768 return 0;
9769}
9770_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009771rm -f conftest.$ac_objext conftest$ac_exeext
9772if { (ac_try="$ac_link"
9773case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776esac
9777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_link") 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789esac
9790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest$ac_exeext'
9796 { (case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9799esac
9800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_try") 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009805 ac_cv_lib_dld_shl_load=yes
9806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009807 echo "$as_me: failed program was:" >&5
9808sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009812
Bill Wendlingebcceee2009-04-18 11:20:33 +00009813rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009814 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009815LIBS=$ac_check_lib_save_LIBS
9816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009817{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9818echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9819if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009821cat >>confdefs.h <<\_ACEOF
9822#define HAVE_SHL_LOAD 1
9823_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824
9825 LIBADD_DL="$LIBADD_DL -ldld"
9826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009827 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9828echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9829if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009831else
9832 ac_check_lib_save_LIBS=$LIBS
9833LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009834cat >conftest.$ac_ext <<_ACEOF
9835/* confdefs.h. */
9836_ACEOF
9837cat confdefs.h >>conftest.$ac_ext
9838cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839/* end confdefs.h. */
9840
Reid Spencera773bd52006-08-04 18:18:08 +00009841/* Override any GCC internal prototype to avoid an error.
9842 Use char because int might match the return type of a GCC
9843 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844#ifdef __cplusplus
9845extern "C"
9846#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847char dlopen ();
9848int
9849main ()
9850{
Reid Spencera773bd52006-08-04 18:18:08 +00009851return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852 ;
9853 return 0;
9854}
9855_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009856rm -f conftest.$ac_objext conftest$ac_exeext
9857if { (ac_try="$ac_link"
9858case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9861esac
9862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863 (eval "$ac_link") 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9871 { (case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874esac
9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_try") 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest$ac_exeext'
9881 { (case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9884esac
9885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_try") 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009890 ac_cv_lib_dl_dlopen=yes
9891else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009892 echo "$as_me: failed program was:" >&5
9893sed 's/^/| /' conftest.$ac_ext >&5
9894
9895 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009897
Bill Wendlingebcceee2009-04-18 11:20:33 +00009898rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009899 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009900LIBS=$ac_check_lib_save_LIBS
9901fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009902{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9903echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9904if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009906cat >>confdefs.h <<\_ACEOF
9907#define HAVE_LIBDL 1
9908_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909
9910 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9911else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009912 cat >conftest.$ac_ext <<_ACEOF
9913/* confdefs.h. */
9914_ACEOF
9915cat confdefs.h >>conftest.$ac_ext
9916cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917/* end confdefs.h. */
9918#if HAVE_DLFCN_H
9919# include <dlfcn.h>
9920#endif
9921
9922int
9923main ()
9924{
9925dlopen(0, 0);
9926 ;
9927 return 0;
9928}
9929_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009930rm -f conftest.$ac_objext conftest$ac_exeext
9931if { (ac_try="$ac_link"
9932case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935esac
9936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_link") 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9945 { (case "(($ac_try" in
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9948esac
9949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_try") 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9958esac
9959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_try") 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009965cat >>confdefs.h <<\_ACEOF
9966#define HAVE_LIBDL 1
9967_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009968 libltdl_cv_func_dlopen="yes"
9969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009970 echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
9972
9973 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9974echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9975if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009977else
9978 ac_check_lib_save_LIBS=$LIBS
9979LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009980cat >conftest.$ac_ext <<_ACEOF
9981/* confdefs.h. */
9982_ACEOF
9983cat confdefs.h >>conftest.$ac_ext
9984cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985/* end confdefs.h. */
9986
Reid Spencera773bd52006-08-04 18:18:08 +00009987/* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990#ifdef __cplusplus
9991extern "C"
9992#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009993char dlopen ();
9994int
9995main ()
9996{
Reid Spencera773bd52006-08-04 18:18:08 +00009997return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998 ;
9999 return 0;
10000}
10001_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010002rm -f conftest.$ac_objext conftest$ac_exeext
10003if { (ac_try="$ac_link"
10004case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007esac
10008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_link") 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10017 { (case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10020esac
10021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_try") 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } &&
10026 { ac_try='test -s conftest$ac_exeext'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10030esac
10031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010036 ac_cv_lib_svld_dlopen=yes
10037else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010038 echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010043
Bill Wendlingebcceee2009-04-18 11:20:33 +000010044rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010045 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010046LIBS=$ac_check_lib_save_LIBS
10047fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010048{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10049echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10050if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010052cat >>confdefs.h <<\_ACEOF
10053#define HAVE_LIBDL 1
10054_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055
10056 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10057else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010058 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10059echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10060if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010062else
10063 ac_check_lib_save_LIBS=$LIBS
10064LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010065cat >conftest.$ac_ext <<_ACEOF
10066/* confdefs.h. */
10067_ACEOF
10068cat confdefs.h >>conftest.$ac_ext
10069cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070/* end confdefs.h. */
10071
Reid Spencera773bd52006-08-04 18:18:08 +000010072/* Override any GCC internal prototype to avoid an error.
10073 Use char because int might match the return type of a GCC
10074 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010075#ifdef __cplusplus
10076extern "C"
10077#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078char dld_link ();
10079int
10080main ()
10081{
Reid Spencera773bd52006-08-04 18:18:08 +000010082return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083 ;
10084 return 0;
10085}
10086_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010087rm -f conftest.$ac_objext conftest$ac_exeext
10088if { (ac_try="$ac_link"
10089case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10092esac
10093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_link") 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
10101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10102 { (case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105esac
10106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_try") 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; } &&
10111 { ac_try='test -s conftest$ac_exeext'
10112 { (case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10115esac
10116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_try") 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010121 ac_cv_lib_dld_dld_link=yes
10122else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010123 echo "$as_me: failed program was:" >&5
10124sed 's/^/| /' conftest.$ac_ext >&5
10125
10126 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010128
Bill Wendlingebcceee2009-04-18 11:20:33 +000010129rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010130 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010131LIBS=$ac_check_lib_save_LIBS
10132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010133{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10134echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10135if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010137cat >>confdefs.h <<\_ACEOF
10138#define HAVE_DLD 1
10139_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010140
10141 LIBADD_DL="$LIBADD_DL -ldld"
10142else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010143 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10144echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10145if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148 cat >conftest.$ac_ext <<_ACEOF
10149/* confdefs.h. */
10150_ACEOF
10151cat confdefs.h >>conftest.$ac_ext
10152cat >>conftest.$ac_ext <<_ACEOF
10153/* end confdefs.h. */
10154/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10156#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010158/* System header to define __stub macros and hopefully few prototypes,
10159 which can conflict with char _dyld_func_lookup (); below.
10160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10161 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010163#ifdef __STDC__
10164# include <limits.h>
10165#else
10166# include <assert.h>
10167#endif
10168
10169#undef _dyld_func_lookup
10170
10171/* Override any GCC internal prototype to avoid an error.
10172 Use char because int might match the return type of a GCC
10173 builtin and then its argument prototype would still apply. */
10174#ifdef __cplusplus
10175extern "C"
10176#endif
10177char _dyld_func_lookup ();
10178/* The GNU C library defines this for functions which it implements
10179 to always fail with ENOSYS. Some functions are actually named
10180 something starting with __ and the normal name is an alias. */
10181#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10182choke me
10183#endif
10184
10185int
10186main ()
10187{
10188return _dyld_func_lookup ();
10189 ;
10190 return 0;
10191}
10192_ACEOF
10193rm -f conftest.$ac_objext conftest$ac_exeext
10194if { (ac_try="$ac_link"
10195case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10198esac
10199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_link") 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10208 { (case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10211esac
10212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10213 (eval "$ac_try") 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try='test -s conftest$ac_exeext'
10218 { (case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221esac
10222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_try") 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_cv_func__dyld_func_lookup=yes
10228else
10229 echo "$as_me: failed program was:" >&5
10230sed 's/^/| /' conftest.$ac_ext >&5
10231
10232 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010233fi
Reid Spencera773bd52006-08-04 18:18:08 +000010234
Bill Wendlingebcceee2009-04-18 11:20:33 +000010235rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010236 conftest$ac_exeext conftest.$ac_ext
10237fi
10238{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10239echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10240if test $ac_cv_func__dyld_func_lookup = yes; then
10241
10242cat >>confdefs.h <<\_ACEOF
10243#define HAVE_DYLD 1
10244_ACEOF
10245
10246fi
10247
10248
10249fi
10250
10251
10252fi
10253
10254
10255fi
10256
10257rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259
10260fi
10261
10262
10263fi
10264
10265
10266fi
10267
10268
10269if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10270then
10271 lt_save_LIBS="$LIBS"
10272 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010273
10274for ac_func in dlerror
10275do
10276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10277{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10279if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282 cat >conftest.$ac_ext <<_ACEOF
10283/* confdefs.h. */
10284_ACEOF
10285cat confdefs.h >>conftest.$ac_ext
10286cat >>conftest.$ac_ext <<_ACEOF
10287/* end confdefs.h. */
10288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10290#define $ac_func innocuous_$ac_func
10291
10292/* System header to define __stub macros and hopefully few prototypes,
10293 which can conflict with char $ac_func (); below.
10294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10295 <limits.h> exists even on freestanding compilers. */
10296
10297#ifdef __STDC__
10298# include <limits.h>
10299#else
10300# include <assert.h>
10301#endif
10302
10303#undef $ac_func
10304
10305/* Override any GCC internal prototype to avoid an error.
10306 Use char because int might match the return type of a GCC
10307 builtin and then its argument prototype would still apply. */
10308#ifdef __cplusplus
10309extern "C"
10310#endif
10311char $ac_func ();
10312/* The GNU C library defines this for functions which it implements
10313 to always fail with ENOSYS. Some functions are actually named
10314 something starting with __ and the normal name is an alias. */
10315#if defined __stub_$ac_func || defined __stub___$ac_func
10316choke me
10317#endif
10318
10319int
10320main ()
10321{
10322return $ac_func ();
10323 ;
10324 return 0;
10325}
10326_ACEOF
10327rm -f conftest.$ac_objext conftest$ac_exeext
10328if { (ac_try="$ac_link"
10329case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332esac
10333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_link") 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10342 { (case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10345esac
10346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_try") 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest$ac_exeext'
10352 { (case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10355esac
10356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_try") 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 eval "$as_ac_var=yes"
10362else
10363 echo "$as_me: failed program was:" >&5
10364sed 's/^/| /' conftest.$ac_ext >&5
10365
10366 eval "$as_ac_var=no"
10367fi
10368
10369rm -f core conftest.err conftest.$ac_objext \
10370 conftest$ac_exeext conftest.$ac_ext
10371fi
10372ac_res=`eval echo '${'$as_ac_var'}'`
10373 { echo "$as_me:$LINENO: result: $ac_res" >&5
10374echo "${ECHO_T}$ac_res" >&6; }
10375if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010376 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010378_ACEOF
10379
10380fi
10381done
10382
10383 LIBS="$lt_save_LIBS"
10384fi
10385ac_ext=c
10386ac_cpp='$CPP $CPPFLAGS'
10387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10389ac_compiler_gnu=$ac_cv_c_compiler_gnu
10390
10391
10392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010393{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10394echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10395if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010397else
10398 ac_cv_sys_symbol_underscore=no
10399 cat > conftest.$ac_ext <<EOF
10400void nm_test_func(){}
10401int main(){nm_test_func;return 0;}
10402EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404 (eval $ac_compile) 2>&5
10405 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408 # Now try to grab the symbols.
10409 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010410 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 +000010411 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10412 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415 # See whether the symbols have a leading underscore.
10416 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10417 ac_cv_sys_symbol_underscore=yes
10418 else
10419 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10420 :
10421 else
10422 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10423 fi
10424 fi
10425 else
10426 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10427 fi
10428 else
10429 echo "configure: failed program was:" >&5
10430 cat conftest.c >&5
10431 fi
10432 rm -rf conftest*
10433
10434fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010435{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10436echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010437
10438
10439if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10440 if test x"$libltdl_cv_func_dlopen" = xyes ||
10441 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010442 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10443echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10444if test "${libltdl_cv_need_uscore+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010446else
10447 libltdl_cv_need_uscore=unknown
10448 save_LIBS="$LIBS"
10449 LIBS="$LIBS $LIBADD_DL"
10450 if test "$cross_compiling" = yes; then :
10451 libltdl_cv_need_uscore=cross
10452else
10453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10454 lt_status=$lt_dlunknown
10455 cat > conftest.$ac_ext <<EOF
Eric Christopher73ec9522011-09-21 00:53:42 +000010456#line 10456 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457#include "confdefs.h"
10458
10459#if HAVE_DLFCN_H
10460#include <dlfcn.h>
10461#endif
10462
10463#include <stdio.h>
10464
10465#ifdef RTLD_GLOBAL
10466# define LT_DLGLOBAL RTLD_GLOBAL
10467#else
10468# ifdef DL_GLOBAL
10469# define LT_DLGLOBAL DL_GLOBAL
10470# else
10471# define LT_DLGLOBAL 0
10472# endif
10473#endif
10474
10475/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10476 find out it does not work in some platform. */
10477#ifndef LT_DLLAZY_OR_NOW
10478# ifdef RTLD_LAZY
10479# define LT_DLLAZY_OR_NOW RTLD_LAZY
10480# else
10481# ifdef DL_LAZY
10482# define LT_DLLAZY_OR_NOW DL_LAZY
10483# else
10484# ifdef RTLD_NOW
10485# define LT_DLLAZY_OR_NOW RTLD_NOW
10486# else
10487# ifdef DL_NOW
10488# define LT_DLLAZY_OR_NOW DL_NOW
10489# else
10490# define LT_DLLAZY_OR_NOW 0
10491# endif
10492# endif
10493# endif
10494# endif
10495#endif
10496
10497#ifdef __cplusplus
10498extern "C" void exit (int);
10499#endif
10500
10501void fnord() { int i=42;}
10502int main ()
10503{
10504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10505 int status = $lt_dlunknown;
10506
10507 if (self)
10508 {
10509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10511 /* dlclose (self); */
10512 }
Reid Spencera773bd52006-08-04 18:18:08 +000010513 else
10514 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010515
10516 exit (status);
10517}
10518EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010520 (eval $ac_link) 2>&5
10521 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010524 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525 lt_status=$?
10526 case x$lt_status in
10527 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10528 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010529 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530 esac
10531 else :
10532 # compilation failed
10533
10534 fi
10535fi
10536rm -fr conftest*
10537
10538 LIBS="$save_LIBS"
10539
10540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010541{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10542echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010543 fi
10544fi
10545
10546if test x"$libltdl_cv_need_uscore" = xyes; then
10547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010548cat >>confdefs.h <<\_ACEOF
10549#define NEED_USCORE 1
10550_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551
10552fi
10553
10554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010555{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10556echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10557if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559else
10560 # PORTME does your system automatically load deplibs for dlopen?
10561 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10562 # For now, we just catch OSes we know something about -- in the
10563 # future, we'll try test this programmatically.
10564 libltdl_cv_sys_dlopen_deplibs=unknown
10565 case "$host_os" in
10566 aix3*|aix4.1.*|aix4.2.*)
10567 # Unknown whether this is true for these versions of AIX, but
10568 # we want this `case' here to explicitly catch those versions.
10569 libltdl_cv_sys_dlopen_deplibs=unknown
10570 ;;
10571 aix[45]*)
10572 libltdl_cv_sys_dlopen_deplibs=yes
10573 ;;
10574 darwin*)
10575 # Assuming the user has installed a libdl from somewhere, this is true
10576 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10577 libltdl_cv_sys_dlopen_deplibs=yes
10578 ;;
10579 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10580 # GNU and its variants, using gnu ld.so (Glibc)
10581 libltdl_cv_sys_dlopen_deplibs=yes
10582 ;;
10583 hpux10*|hpux11*)
10584 libltdl_cv_sys_dlopen_deplibs=yes
10585 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010586 interix*)
10587 libltdl_cv_sys_dlopen_deplibs=yes
10588 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589 irix[12345]*|irix6.[01]*)
10590 # Catch all versions of IRIX before 6.2, and indicate that we don't
10591 # know how it worked for any of those versions.
10592 libltdl_cv_sys_dlopen_deplibs=unknown
10593 ;;
10594 irix*)
10595 # The case above catches anything before 6.2, and it's known that
10596 # at 6.2 and later dlopen does load deplibs.
10597 libltdl_cv_sys_dlopen_deplibs=yes
10598 ;;
10599 netbsd*)
10600 libltdl_cv_sys_dlopen_deplibs=yes
10601 ;;
10602 openbsd*)
10603 libltdl_cv_sys_dlopen_deplibs=yes
10604 ;;
10605 osf[1234]*)
10606 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10607 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010608 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609 libltdl_cv_sys_dlopen_deplibs=no
10610 ;;
10611 osf5.0|osf5.0a|osf5.1)
10612 # dlopen *does* load deplibs and with the right loader patch applied
10613 # it even uses RPATH in a shared library to search for shared objects
10614 # that the library depends on, but there's no easy way to know if that
10615 # patch is installed. Since this is the case, all we can really
10616 # say is unknown -- it depends on the patch being installed. If
10617 # it is, this changes to `yes'. Without it, it would be `no'.
10618 libltdl_cv_sys_dlopen_deplibs=unknown
10619 ;;
10620 osf*)
10621 # the two cases above should catch all versions of osf <= 5.1. Read
10622 # the comments above for what we know about them.
10623 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10624 # is used to find them so we can finally say `yes'.
10625 libltdl_cv_sys_dlopen_deplibs=yes
10626 ;;
10627 solaris*)
10628 libltdl_cv_sys_dlopen_deplibs=yes
10629 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10631 libltdl_cv_sys_dlopen_deplibs=yes
10632 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633 esac
10634
10635fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010636{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10637echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010638if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010640cat >>confdefs.h <<\_ACEOF
10641#define LTDL_DLOPEN_DEPLIBS 1
10642_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643
10644fi
10645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010646
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010648do
10649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10655fi
10656ac_res=`eval echo '${'$as_ac_Header'}'`
10657 { echo "$as_me:$LINENO: result: $ac_res" >&5
10658echo "${ECHO_T}$ac_res" >&6; }
10659else
10660 # Is the header compilable?
10661{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10662echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10663cat >conftest.$ac_ext <<_ACEOF
10664/* confdefs.h. */
10665_ACEOF
10666cat confdefs.h >>conftest.$ac_ext
10667cat >>conftest.$ac_ext <<_ACEOF
10668/* end confdefs.h. */
10669$ac_includes_default
10670#include <$ac_header>
10671_ACEOF
10672rm -f conftest.$ac_objext
10673if { (ac_try="$ac_compile"
10674case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10677esac
10678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_compile") 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } &&
10686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10687 { (case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690esac
10691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_try") 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; } &&
10696 { ac_try='test -s conftest.$ac_objext'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_try") 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 ac_header_compiler=yes
10707else
10708 echo "$as_me: failed program was:" >&5
10709sed 's/^/| /' conftest.$ac_ext >&5
10710
10711 ac_header_compiler=no
10712fi
10713
10714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10716echo "${ECHO_T}$ac_header_compiler" >&6; }
10717
10718# Is the header present?
10719{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10721cat >conftest.$ac_ext <<_ACEOF
10722/* confdefs.h. */
10723_ACEOF
10724cat confdefs.h >>conftest.$ac_ext
10725cat >>conftest.$ac_ext <<_ACEOF
10726/* end confdefs.h. */
10727#include <$ac_header>
10728_ACEOF
10729if { (ac_try="$ac_cpp conftest.$ac_ext"
10730case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733esac
10734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } >/dev/null; then
10742 if test -s conftest.err; then
10743 ac_cpp_err=$ac_c_preproc_warn_flag
10744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10745 else
10746 ac_cpp_err=
10747 fi
10748else
10749 ac_cpp_err=yes
10750fi
10751if test -z "$ac_cpp_err"; then
10752 ac_header_preproc=yes
10753else
10754 echo "$as_me: failed program was:" >&5
10755sed 's/^/| /' conftest.$ac_ext >&5
10756
10757 ac_header_preproc=no
10758fi
10759
10760rm -f conftest.err conftest.$ac_ext
10761{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10762echo "${ECHO_T}$ac_header_preproc" >&6; }
10763
10764# So? What about this header?
10765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10766 yes:no: )
10767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10768echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10770echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10771 ac_header_preproc=yes
10772 ;;
10773 no:yes:* )
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10775echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10777echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10779echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10781echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10783echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10785echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10786 ( cat <<\_ASBOX
10787## ----------------------------------- ##
10788## Report this to llvmbugs@cs.uiuc.edu ##
10789## ----------------------------------- ##
10790_ASBOX
10791 ) | sed "s/^/$as_me: WARNING: /" >&2
10792 ;;
10793esac
10794{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799 eval "$as_ac_Header=\$ac_header_preproc"
10800fi
10801ac_res=`eval echo '${'$as_ac_Header'}'`
10802 { echo "$as_me:$LINENO: result: $ac_res" >&5
10803echo "${ECHO_T}$ac_res" >&6; }
10804
10805fi
10806if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010807 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010809_ACEOF
10810
10811fi
10812
10813done
10814
10815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010816{ echo "$as_me:$LINENO: checking for error_t" >&5
10817echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10818if test "${ac_cv_type_error_t+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10820else
10821 cat >conftest.$ac_ext <<_ACEOF
10822/* confdefs.h. */
10823_ACEOF
10824cat confdefs.h >>conftest.$ac_ext
10825cat >>conftest.$ac_ext <<_ACEOF
10826/* end confdefs.h. */
10827#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828# include <argz.h>
10829#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010830
10831typedef error_t ac__type_new_;
10832int
10833main ()
10834{
10835if ((ac__type_new_ *) 0)
10836 return 0;
10837if (sizeof (ac__type_new_))
10838 return 0;
10839 ;
10840 return 0;
10841}
10842_ACEOF
10843rm -f conftest.$ac_objext
10844if { (ac_try="$ac_compile"
10845case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10848esac
10849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_compile") 2>conftest.er1
10851 ac_status=$?
10852 grep -v '^ *+' conftest.er1 >conftest.err
10853 rm -f conftest.er1
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10858 { (case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10861esac
10862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_try") 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; } &&
10867 { ac_try='test -s conftest.$ac_objext'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 ac_cv_type_error_t=yes
10878else
10879 echo "$as_me: failed program was:" >&5
10880sed 's/^/| /' conftest.$ac_ext >&5
10881
10882 ac_cv_type_error_t=no
10883fi
10884
10885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10886fi
10887{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10888echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10889if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010890
10891cat >>confdefs.h <<_ACEOF
10892#define HAVE_ERROR_T 1
10893_ACEOF
10894
10895
10896else
10897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010898cat >>confdefs.h <<\_ACEOF
10899#define error_t int
10900_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901
10902fi
10903
10904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010905
10906
10907
10908
10909
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010911do
10912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10915if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917else
10918 cat >conftest.$ac_ext <<_ACEOF
10919/* confdefs.h. */
10920_ACEOF
10921cat confdefs.h >>conftest.$ac_ext
10922cat >>conftest.$ac_ext <<_ACEOF
10923/* end confdefs.h. */
10924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10926#define $ac_func innocuous_$ac_func
10927
10928/* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func (); below.
10930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10931 <limits.h> exists even on freestanding compilers. */
10932
10933#ifdef __STDC__
10934# include <limits.h>
10935#else
10936# include <assert.h>
10937#endif
10938
10939#undef $ac_func
10940
10941/* Override any GCC internal prototype to avoid an error.
10942 Use char because int might match the return type of a GCC
10943 builtin and then its argument prototype would still apply. */
10944#ifdef __cplusplus
10945extern "C"
10946#endif
10947char $ac_func ();
10948/* The GNU C library defines this for functions which it implements
10949 to always fail with ENOSYS. Some functions are actually named
10950 something starting with __ and the normal name is an alias. */
10951#if defined __stub_$ac_func || defined __stub___$ac_func
10952choke me
10953#endif
10954
10955int
10956main ()
10957{
10958return $ac_func ();
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963rm -f conftest.$ac_objext conftest$ac_exeext
10964if { (ac_try="$ac_link"
10965case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968esac
10969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_link") 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10978 { (case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10981esac
10982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_try") 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; } &&
10987 { ac_try='test -s conftest$ac_exeext'
10988 { (case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10991esac
10992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_try") 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 eval "$as_ac_var=yes"
10998else
10999 echo "$as_me: failed program was:" >&5
11000sed 's/^/| /' conftest.$ac_ext >&5
11001
11002 eval "$as_ac_var=no"
11003fi
11004
11005rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007fi
11008ac_res=`eval echo '${'$as_ac_var'}'`
11009 { echo "$as_me:$LINENO: result: $ac_res" >&5
11010echo "${ECHO_T}$ac_res" >&6; }
11011if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011013#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011014_ACEOF
11015
11016fi
11017done
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011038
11039
11040
11041
11042
11043
11044
11045
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11047 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011048do
11049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11055fi
11056ac_res=`eval echo '${'$as_ac_Header'}'`
11057 { echo "$as_me:$LINENO: result: $ac_res" >&5
11058echo "${ECHO_T}$ac_res" >&6; }
11059else
11060 # Is the header compilable?
11061{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11062echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11063cat >conftest.$ac_ext <<_ACEOF
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
11068/* end confdefs.h. */
11069$ac_includes_default
11070#include <$ac_header>
11071_ACEOF
11072rm -f conftest.$ac_objext
11073if { (ac_try="$ac_compile"
11074case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11077esac
11078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_compile") 2>conftest.er1
11080 ac_status=$?
11081 grep -v '^ *+' conftest.er1 >conftest.err
11082 rm -f conftest.er1
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } &&
11086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11087 { (case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090esac
11091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_try") 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; } &&
11096 { ac_try='test -s conftest.$ac_objext'
11097 { (case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100esac
11101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_try") 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 ac_header_compiler=yes
11107else
11108 echo "$as_me: failed program was:" >&5
11109sed 's/^/| /' conftest.$ac_ext >&5
11110
11111 ac_header_compiler=no
11112fi
11113
11114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11116echo "${ECHO_T}$ac_header_compiler" >&6; }
11117
11118# Is the header present?
11119{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11121cat >conftest.$ac_ext <<_ACEOF
11122/* confdefs.h. */
11123_ACEOF
11124cat confdefs.h >>conftest.$ac_ext
11125cat >>conftest.$ac_ext <<_ACEOF
11126/* end confdefs.h. */
11127#include <$ac_header>
11128_ACEOF
11129if { (ac_try="$ac_cpp conftest.$ac_ext"
11130case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133esac
11134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } >/dev/null; then
11142 if test -s conftest.err; then
11143 ac_cpp_err=$ac_c_preproc_warn_flag
11144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11145 else
11146 ac_cpp_err=
11147 fi
11148else
11149 ac_cpp_err=yes
11150fi
11151if test -z "$ac_cpp_err"; then
11152 ac_header_preproc=yes
11153else
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 ac_header_preproc=no
11158fi
11159
11160rm -f conftest.err conftest.$ac_ext
11161{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11162echo "${ECHO_T}$ac_header_preproc" >&6; }
11163
11164# So? What about this header?
11165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11166 yes:no: )
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11171 ac_header_preproc=yes
11172 ;;
11173 no:yes:* )
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11181echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11186 ( cat <<\_ASBOX
11187## ----------------------------------- ##
11188## Report this to llvmbugs@cs.uiuc.edu ##
11189## ----------------------------------- ##
11190_ASBOX
11191 ) | sed "s/^/$as_me: WARNING: /" >&2
11192 ;;
11193esac
11194{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198else
11199 eval "$as_ac_Header=\$ac_header_preproc"
11200fi
11201ac_res=`eval echo '${'$as_ac_Header'}'`
11202 { echo "$as_me:$LINENO: result: $ac_res" >&5
11203echo "${ECHO_T}$ac_res" >&6; }
11204
11205fi
11206if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209_ACEOF
11210
11211fi
11212
11213done
11214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011215
11216
11217
11218
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011219for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011220do
11221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11227fi
11228ac_res=`eval echo '${'$as_ac_Header'}'`
11229 { echo "$as_me:$LINENO: result: $ac_res" >&5
11230echo "${ECHO_T}$ac_res" >&6; }
11231else
11232 # Is the header compilable?
11233{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11234echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11235cat >conftest.$ac_ext <<_ACEOF
11236/* confdefs.h. */
11237_ACEOF
11238cat confdefs.h >>conftest.$ac_ext
11239cat >>conftest.$ac_ext <<_ACEOF
11240/* end confdefs.h. */
11241$ac_includes_default
11242#include <$ac_header>
11243_ACEOF
11244rm -f conftest.$ac_objext
11245if { (ac_try="$ac_compile"
11246case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11249esac
11250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_compile") 2>conftest.er1
11252 ac_status=$?
11253 grep -v '^ *+' conftest.er1 >conftest.err
11254 rm -f conftest.er1
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11259 { (case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262esac
11263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_try") 2>&5
11265 ac_status=$?
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; } &&
11268 { ac_try='test -s conftest.$ac_objext'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272esac
11273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 ac_header_compiler=yes
11279else
11280 echo "$as_me: failed program was:" >&5
11281sed 's/^/| /' conftest.$ac_ext >&5
11282
11283 ac_header_compiler=no
11284fi
11285
11286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11288echo "${ECHO_T}$ac_header_compiler" >&6; }
11289
11290# Is the header present?
11291{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11293cat >conftest.$ac_ext <<_ACEOF
11294/* confdefs.h. */
11295_ACEOF
11296cat confdefs.h >>conftest.$ac_ext
11297cat >>conftest.$ac_ext <<_ACEOF
11298/* end confdefs.h. */
11299#include <$ac_header>
11300_ACEOF
11301if { (ac_try="$ac_cpp conftest.$ac_ext"
11302case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11305esac
11306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11308 ac_status=$?
11309 grep -v '^ *+' conftest.er1 >conftest.err
11310 rm -f conftest.er1
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } >/dev/null; then
11314 if test -s conftest.err; then
11315 ac_cpp_err=$ac_c_preproc_warn_flag
11316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11317 else
11318 ac_cpp_err=
11319 fi
11320else
11321 ac_cpp_err=yes
11322fi
11323if test -z "$ac_cpp_err"; then
11324 ac_header_preproc=yes
11325else
11326 echo "$as_me: failed program was:" >&5
11327sed 's/^/| /' conftest.$ac_ext >&5
11328
11329 ac_header_preproc=no
11330fi
11331
11332rm -f conftest.err conftest.$ac_ext
11333{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11334echo "${ECHO_T}$ac_header_preproc" >&6; }
11335
11336# So? What about this header?
11337case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11338 yes:no: )
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11340echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11342echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11343 ac_header_preproc=yes
11344 ;;
11345 no:yes:* )
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11347echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11349echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11351echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11353echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11355echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11357echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11358 ( cat <<\_ASBOX
11359## ----------------------------------- ##
11360## Report this to llvmbugs@cs.uiuc.edu ##
11361## ----------------------------------- ##
11362_ASBOX
11363 ) | sed "s/^/$as_me: WARNING: /" >&2
11364 ;;
11365esac
11366{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370else
11371 eval "$as_ac_Header=\$ac_header_preproc"
11372fi
11373ac_res=`eval echo '${'$as_ac_Header'}'`
11374 { echo "$as_me:$LINENO: result: $ac_res" >&5
11375echo "${ECHO_T}$ac_res" >&6; }
11376
11377fi
11378if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381_ACEOF
11382
11383fi
11384
11385done
11386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011387
11388
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011389for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011390do
11391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397fi
11398ac_res=`eval echo '${'$as_ac_Header'}'`
11399 { echo "$as_me:$LINENO: result: $ac_res" >&5
11400echo "${ECHO_T}$ac_res" >&6; }
11401else
11402 # Is the header compilable?
11403{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11405cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411$ac_includes_default
11412#include <$ac_header>
11413_ACEOF
11414rm -f conftest.$ac_objext
11415if { (ac_try="$ac_compile"
11416case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419esac
11420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_compile") 2>conftest.er1
11422 ac_status=$?
11423 grep -v '^ *+' conftest.er1 >conftest.err
11424 rm -f conftest.er1
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } &&
11428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11429 { (case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11432esac
11433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_try") 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442esac
11443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_try") 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 ac_header_compiler=yes
11449else
11450 echo "$as_me: failed program was:" >&5
11451sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 ac_header_compiler=no
11454fi
11455
11456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11458echo "${ECHO_T}$ac_header_compiler" >&6; }
11459
11460# Is the header present?
11461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11463cat >conftest.$ac_ext <<_ACEOF
11464/* confdefs.h. */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h. */
11469#include <$ac_header>
11470_ACEOF
11471if { (ac_try="$ac_cpp conftest.$ac_ext"
11472case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475esac
11476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } >/dev/null; then
11484 if test -s conftest.err; then
11485 ac_cpp_err=$ac_c_preproc_warn_flag
11486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11487 else
11488 ac_cpp_err=
11489 fi
11490else
11491 ac_cpp_err=yes
11492fi
11493if test -z "$ac_cpp_err"; then
11494 ac_header_preproc=yes
11495else
11496 echo "$as_me: failed program was:" >&5
11497sed 's/^/| /' conftest.$ac_ext >&5
11498
11499 ac_header_preproc=no
11500fi
11501
11502rm -f conftest.err conftest.$ac_ext
11503{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11504echo "${ECHO_T}$ac_header_preproc" >&6; }
11505
11506# So? What about this header?
11507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11508 yes:no: )
11509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11513 ac_header_preproc=yes
11514 ;;
11515 no:yes:* )
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11523echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11528 ( cat <<\_ASBOX
11529## ----------------------------------- ##
11530## Report this to llvmbugs@cs.uiuc.edu ##
11531## ----------------------------------- ##
11532_ASBOX
11533 ) | sed "s/^/$as_me: WARNING: /" >&2
11534 ;;
11535esac
11536{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11540else
11541 eval "$as_ac_Header=\$ac_header_preproc"
11542fi
11543ac_res=`eval echo '${'$as_ac_Header'}'`
11544 { echo "$as_me:$LINENO: result: $ac_res" >&5
11545echo "${ECHO_T}$ac_res" >&6; }
11546
11547fi
11548if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011549 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551_ACEOF
11552 break
11553fi
11554
11555done
11556
11557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011558
11559
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011561do
11562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11563{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11565if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567else
11568 cat >conftest.$ac_ext <<_ACEOF
11569/* confdefs.h. */
11570_ACEOF
11571cat confdefs.h >>conftest.$ac_ext
11572cat >>conftest.$ac_ext <<_ACEOF
11573/* end confdefs.h. */
11574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11576#define $ac_func innocuous_$ac_func
11577
11578/* System header to define __stub macros and hopefully few prototypes,
11579 which can conflict with char $ac_func (); below.
11580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11581 <limits.h> exists even on freestanding compilers. */
11582
11583#ifdef __STDC__
11584# include <limits.h>
11585#else
11586# include <assert.h>
11587#endif
11588
11589#undef $ac_func
11590
11591/* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11594#ifdef __cplusplus
11595extern "C"
11596#endif
11597char $ac_func ();
11598/* The GNU C library defines this for functions which it implements
11599 to always fail with ENOSYS. Some functions are actually named
11600 something starting with __ and the normal name is an alias. */
11601#if defined __stub_$ac_func || defined __stub___$ac_func
11602choke me
11603#endif
11604
11605int
11606main ()
11607{
11608return $ac_func ();
11609 ;
11610 return 0;
11611}
11612_ACEOF
11613rm -f conftest.$ac_objext conftest$ac_exeext
11614if { (ac_try="$ac_link"
11615case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618esac
11619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_link") 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest$ac_exeext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 eval "$as_ac_var=yes"
11648else
11649 echo "$as_me: failed program was:" >&5
11650sed 's/^/| /' conftest.$ac_ext >&5
11651
11652 eval "$as_ac_var=no"
11653fi
11654
11655rm -f core conftest.err conftest.$ac_objext \
11656 conftest$ac_exeext conftest.$ac_ext
11657fi
11658ac_res=`eval echo '${'$as_ac_var'}'`
11659 { echo "$as_me:$LINENO: result: $ac_res" >&5
11660echo "${ECHO_T}$ac_res" >&6; }
11661if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011662 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664_ACEOF
11665 break
11666fi
11667done
11668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011669
11670
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011672do
11673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679 cat >conftest.$ac_ext <<_ACEOF
11680/* confdefs.h. */
11681_ACEOF
11682cat confdefs.h >>conftest.$ac_ext
11683cat >>conftest.$ac_ext <<_ACEOF
11684/* end confdefs.h. */
11685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11687#define $ac_func innocuous_$ac_func
11688
11689/* System header to define __stub macros and hopefully few prototypes,
11690 which can conflict with char $ac_func (); below.
11691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11692 <limits.h> exists even on freestanding compilers. */
11693
11694#ifdef __STDC__
11695# include <limits.h>
11696#else
11697# include <assert.h>
11698#endif
11699
11700#undef $ac_func
11701
11702/* Override any GCC internal prototype to avoid an error.
11703 Use char because int might match the return type of a GCC
11704 builtin and then its argument prototype would still apply. */
11705#ifdef __cplusplus
11706extern "C"
11707#endif
11708char $ac_func ();
11709/* The GNU C library defines this for functions which it implements
11710 to always fail with ENOSYS. Some functions are actually named
11711 something starting with __ and the normal name is an alias. */
11712#if defined __stub_$ac_func || defined __stub___$ac_func
11713choke me
11714#endif
11715
11716int
11717main ()
11718{
11719return $ac_func ();
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext conftest$ac_exeext
11725if { (ac_try="$ac_link"
11726case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11729esac
11730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_link") 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11739 { (case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742esac
11743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_try") 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; } &&
11748 { ac_try='test -s conftest$ac_exeext'
11749 { (case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11752esac
11753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_try") 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 eval "$as_ac_var=yes"
11759else
11760 echo "$as_me: failed program was:" >&5
11761sed 's/^/| /' conftest.$ac_ext >&5
11762
11763 eval "$as_ac_var=no"
11764fi
11765
11766rm -f core conftest.err conftest.$ac_objext \
11767 conftest$ac_exeext conftest.$ac_ext
11768fi
11769ac_res=`eval echo '${'$as_ac_var'}'`
11770 { echo "$as_me:$LINENO: result: $ac_res" >&5
11771echo "${ECHO_T}$ac_res" >&6; }
11772if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775_ACEOF
11776 break
11777fi
11778done
11779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011780
11781
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011783do
11784as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11785{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11786echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11787if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11789else
11790 cat >conftest.$ac_ext <<_ACEOF
11791/* confdefs.h. */
11792_ACEOF
11793cat confdefs.h >>conftest.$ac_ext
11794cat >>conftest.$ac_ext <<_ACEOF
11795/* end confdefs.h. */
11796/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11798#define $ac_func innocuous_$ac_func
11799
11800/* System header to define __stub macros and hopefully few prototypes,
11801 which can conflict with char $ac_func (); below.
11802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11803 <limits.h> exists even on freestanding compilers. */
11804
11805#ifdef __STDC__
11806# include <limits.h>
11807#else
11808# include <assert.h>
11809#endif
11810
11811#undef $ac_func
11812
11813/* Override any GCC internal prototype to avoid an error.
11814 Use char because int might match the return type of a GCC
11815 builtin and then its argument prototype would still apply. */
11816#ifdef __cplusplus
11817extern "C"
11818#endif
11819char $ac_func ();
11820/* The GNU C library defines this for functions which it implements
11821 to always fail with ENOSYS. Some functions are actually named
11822 something starting with __ and the normal name is an alias. */
11823#if defined __stub_$ac_func || defined __stub___$ac_func
11824choke me
11825#endif
11826
11827int
11828main ()
11829{
11830return $ac_func ();
11831 ;
11832 return 0;
11833}
11834_ACEOF
11835rm -f conftest.$ac_objext conftest$ac_exeext
11836if { (ac_try="$ac_link"
11837case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11840esac
11841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_link") 2>conftest.er1
11843 ac_status=$?
11844 grep -v '^ *+' conftest.er1 >conftest.err
11845 rm -f conftest.er1
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
11849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11850 { (case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_try") 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest$ac_exeext'
11860 { (case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863esac
11864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_try") 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
11869 eval "$as_ac_var=yes"
11870else
11871 echo "$as_me: failed program was:" >&5
11872sed 's/^/| /' conftest.$ac_ext >&5
11873
11874 eval "$as_ac_var=no"
11875fi
11876
11877rm -f core conftest.err conftest.$ac_objext \
11878 conftest$ac_exeext conftest.$ac_ext
11879fi
11880ac_res=`eval echo '${'$as_ac_var'}'`
11881 { echo "$as_me:$LINENO: result: $ac_res" >&5
11882echo "${ECHO_T}$ac_res" >&6; }
11883if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011884 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011885#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011886_ACEOF
11887 break
11888fi
11889done
11890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011891
11892
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011894do
11895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11898if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11899 echo $ECHO_N "(cached) $ECHO_C" >&6
11900else
11901 cat >conftest.$ac_ext <<_ACEOF
11902/* confdefs.h. */
11903_ACEOF
11904cat confdefs.h >>conftest.$ac_ext
11905cat >>conftest.$ac_ext <<_ACEOF
11906/* end confdefs.h. */
11907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11909#define $ac_func innocuous_$ac_func
11910
11911/* System header to define __stub macros and hopefully few prototypes,
11912 which can conflict with char $ac_func (); below.
11913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 <limits.h> exists even on freestanding compilers. */
11915
11916#ifdef __STDC__
11917# include <limits.h>
11918#else
11919# include <assert.h>
11920#endif
11921
11922#undef $ac_func
11923
11924/* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11927#ifdef __cplusplus
11928extern "C"
11929#endif
11930char $ac_func ();
11931/* The GNU C library defines this for functions which it implements
11932 to always fail with ENOSYS. Some functions are actually named
11933 something starting with __ and the normal name is an alias. */
11934#if defined __stub_$ac_func || defined __stub___$ac_func
11935choke me
11936#endif
11937
11938int
11939main ()
11940{
11941return $ac_func ();
11942 ;
11943 return 0;
11944}
11945_ACEOF
11946rm -f conftest.$ac_objext conftest$ac_exeext
11947if { (ac_try="$ac_link"
11948case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951esac
11952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_link") 2>conftest.er1
11954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11961 { (case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11964esac
11965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_try") 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; } &&
11970 { ac_try='test -s conftest$ac_exeext'
11971 { (case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11974esac
11975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_try") 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 eval "$as_ac_var=yes"
11981else
11982 echo "$as_me: failed program was:" >&5
11983sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 eval "$as_ac_var=no"
11986fi
11987
11988rm -f core conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11990fi
11991ac_res=`eval echo '${'$as_ac_var'}'`
11992 { echo "$as_me:$LINENO: result: $ac_res" >&5
11993echo "${ECHO_T}$ac_res" >&6; }
11994if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011995 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011997_ACEOF
11998
11999fi
12000done
12001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012002
12003
12004
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012006do
12007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12008{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12010if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12012else
12013 cat >conftest.$ac_ext <<_ACEOF
12014/* confdefs.h. */
12015_ACEOF
12016cat confdefs.h >>conftest.$ac_ext
12017cat >>conftest.$ac_ext <<_ACEOF
12018/* end confdefs.h. */
12019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12021#define $ac_func innocuous_$ac_func
12022
12023/* System header to define __stub macros and hopefully few prototypes,
12024 which can conflict with char $ac_func (); below.
12025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12026 <limits.h> exists even on freestanding compilers. */
12027
12028#ifdef __STDC__
12029# include <limits.h>
12030#else
12031# include <assert.h>
12032#endif
12033
12034#undef $ac_func
12035
12036/* Override any GCC internal prototype to avoid an error.
12037 Use char because int might match the return type of a GCC
12038 builtin and then its argument prototype would still apply. */
12039#ifdef __cplusplus
12040extern "C"
12041#endif
12042char $ac_func ();
12043/* The GNU C library defines this for functions which it implements
12044 to always fail with ENOSYS. Some functions are actually named
12045 something starting with __ and the normal name is an alias. */
12046#if defined __stub_$ac_func || defined __stub___$ac_func
12047choke me
12048#endif
12049
12050int
12051main ()
12052{
12053return $ac_func ();
12054 ;
12055 return 0;
12056}
12057_ACEOF
12058rm -f conftest.$ac_objext conftest$ac_exeext
12059if { (ac_try="$ac_link"
12060case "(($ac_try" in
12061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062 *) ac_try_echo=$ac_try;;
12063esac
12064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065 (eval "$ac_link") 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } &&
12072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12073 { (case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_try") 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest$ac_exeext'
12083 { (case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12086esac
12087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_try") 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 eval "$as_ac_var=yes"
12093else
12094 echo "$as_me: failed program was:" >&5
12095sed 's/^/| /' conftest.$ac_ext >&5
12096
12097 eval "$as_ac_var=no"
12098fi
12099
12100rm -f core conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
12102fi
12103ac_res=`eval echo '${'$as_ac_var'}'`
12104 { echo "$as_me:$LINENO: result: $ac_res" >&5
12105echo "${ECHO_T}$ac_res" >&6; }
12106if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012107 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012108#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012109_ACEOF
12110
12111fi
12112done
12113
12114
Douglas Gregor01746742009-05-11 18:05:52 +000012115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012116{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12117echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012118
Reid Spencer86901802004-12-08 23:07:27 +000012119ICC=no
12120IXX=no
12121case $CC in
12122 icc*|icpc*)
12123 ICC=yes
12124 IXX=yes
12125 ;;
12126 *)
12127 ;;
12128esac
12129
Duraid Madina937c60a2006-02-15 07:57:42 +000012130if test "$GCC" != "yes" && test "$ICC" != "yes"
12131then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012132 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12133echo "$as_me: error: gcc|icc required but not found" >&2;}
12134 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012135fi
12136
12137if test "$GXX" != "yes" && test "$IXX" != "yes"
12138then
Eric Christopher73e36da2010-12-08 02:02:14 +000012139 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12140echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012141 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012142fi
12143
Reid Spencer86901802004-12-08 23:07:27 +000012144if test "$GCC" = "yes"
12145then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012146 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012147#if !defined(__GNUC__) || __GNUC__ < 3
12148#error Unsupported GCC version
12149#endif
12150
12151_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012152rm -f conftest.$ac_objext
12153if { (ac_try="$ac_compile"
12154case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12157esac
12158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_compile") 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12167 { (case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12170esac
12171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_try") 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; } &&
12176 { ac_try='test -s conftest.$ac_objext'
12177 { (case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180esac
12181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_try") 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12186 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012187else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012188 echo "$as_me: failed program was:" >&5
12189sed 's/^/| /' conftest.$ac_ext >&5
12190
12191 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12192echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12193 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012195
Chris Lattner399c7c72008-02-05 19:43:53 +000012196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012197fi
12198
12199if test -z "$llvm_cv_gnu_make_command"
12200then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012201 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12202echo "$as_me: error: GNU Make required but not found" >&2;}
12203 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012204fi
12205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012206{ echo "$as_me:$LINENO: result: ok" >&5
12207echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012209{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12210echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012211NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12212
12213NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012215{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12216echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012217
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012219
12220{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12221echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12222if test "${ac_cv_lib_m_sin+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012224else
12225 ac_check_lib_save_LIBS=$LIBS
12226LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012227cat >conftest.$ac_ext <<_ACEOF
12228/* confdefs.h. */
12229_ACEOF
12230cat confdefs.h >>conftest.$ac_ext
12231cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012232/* end confdefs.h. */
12233
Reid Spencera773bd52006-08-04 18:18:08 +000012234/* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012237#ifdef __cplusplus
12238extern "C"
12239#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012240char sin ();
12241int
12242main ()
12243{
Reid Spencera773bd52006-08-04 18:18:08 +000012244return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012245 ;
12246 return 0;
12247}
12248_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012249rm -f conftest.$ac_objext conftest$ac_exeext
12250if { (ac_try="$ac_link"
12251case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12254esac
12255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_link") 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
12263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12264 { (case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12267esac
12268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_try") 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest$ac_exeext'
12274 { (case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277esac
12278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_try") 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012283 ac_cv_lib_m_sin=yes
12284else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012285 echo "$as_me: failed program was:" >&5
12286sed 's/^/| /' conftest.$ac_ext >&5
12287
12288 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012290
Bill Wendlingebcceee2009-04-18 11:20:33 +000012291rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012292 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012293LIBS=$ac_check_lib_save_LIBS
12294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012295{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12296echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12297if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012298 cat >>confdefs.h <<_ACEOF
12299#define HAVE_LIBM 1
12300_ACEOF
12301
12302 LIBS="-lm $LIBS"
12303
12304fi
12305
Jeff Cohen28783c32007-01-12 18:22:38 +000012306if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012307
12308{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12309echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12310if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012312else
12313 ac_check_lib_save_LIBS=$LIBS
12314LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012315cat >conftest.$ac_ext <<_ACEOF
12316/* confdefs.h. */
12317_ACEOF
12318cat confdefs.h >>conftest.$ac_ext
12319cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012320/* end confdefs.h. */
12321
Reid Spencer48fdf912006-06-01 19:03:21 +000012322
Reid Spencer484fc8e2006-06-01 16:55:59 +000012323int
12324main ()
12325{
Reid Spencera773bd52006-08-04 18:18:08 +000012326return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012327 ;
12328 return 0;
12329}
12330_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012331rm -f conftest.$ac_objext conftest$ac_exeext
12332if { (ac_try="$ac_link"
12333case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336esac
12337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_link") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12346 { (case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349esac
12350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_try") 2>&5
12352 ac_status=$?
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; } &&
12355 { ac_try='test -s conftest$ac_exeext'
12356 { (case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_try") 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012365 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012366else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012367 echo "$as_me: failed program was:" >&5
12368sed 's/^/| /' conftest.$ac_ext >&5
12369
12370 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012371fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012372
Bill Wendlingebcceee2009-04-18 11:20:33 +000012373rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012374 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012375LIBS=$ac_check_lib_save_LIBS
12376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012377{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12378echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12379if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012380 cat >>confdefs.h <<_ACEOF
12381#define HAVE_LIBIMAGEHLP 1
12382_ACEOF
12383
12384 LIBS="-limagehlp $LIBS"
12385
12386fi
12387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012388
12389{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12390echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12391if test "${ac_cv_lib_psapi_main+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012393else
12394 ac_check_lib_save_LIBS=$LIBS
12395LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012396cat >conftest.$ac_ext <<_ACEOF
12397/* confdefs.h. */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012401/* end confdefs.h. */
12402
Reid Spencer48fdf912006-06-01 19:03:21 +000012403
Reid Spencer484fc8e2006-06-01 16:55:59 +000012404int
12405main ()
12406{
Reid Spencera773bd52006-08-04 18:18:08 +000012407return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012408 ;
12409 return 0;
12410}
12411_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012412rm -f conftest.$ac_objext conftest$ac_exeext
12413if { (ac_try="$ac_link"
12414case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417esac
12418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_link") 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } &&
12426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12427 { (case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430esac
12431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_try") 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest$ac_exeext'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440esac
12441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012446 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012448 echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
12451 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012453
Bill Wendlingebcceee2009-04-18 11:20:33 +000012454rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012455 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012456LIBS=$ac_check_lib_save_LIBS
12457fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012458{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12459echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12460if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012461 cat >>confdefs.h <<_ACEOF
12462#define HAVE_LIBPSAPI 1
12463_ACEOF
12464
12465 LIBS="-lpsapi $LIBS"
12466
12467fi
12468
12469fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012471{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12472echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12473if test "${ac_cv_search_dlopen+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012475else
12476 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012477cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012482/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012483
Reid Spencera773bd52006-08-04 18:18:08 +000012484/* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012487#ifdef __cplusplus
12488extern "C"
12489#endif
John Criswell7a73b802003-06-30 21:59:07 +000012490char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012491int
12492main ()
12493{
Reid Spencera773bd52006-08-04 18:18:08 +000012494return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012495 ;
12496 return 0;
12497}
12498_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012499for ac_lib in '' dl; do
12500 if test -z "$ac_lib"; then
12501 ac_res="none required"
12502 else
12503 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012505 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012506 rm -f conftest.$ac_objext conftest$ac_exeext
12507if { (ac_try="$ac_link"
12508case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12511esac
12512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12524esac
12525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534esac
12535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012540 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012541else
12542 echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545
John Criswell7a73b802003-06-30 21:59:07 +000012546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012547
Bill Wendlingebcceee2009-04-18 11:20:33 +000012548rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012549 conftest$ac_exeext
12550 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012551 break
John Criswell7a73b802003-06-30 21:59:07 +000012552fi
Reid Spencera773bd52006-08-04 18:18:08 +000012553done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012554if test "${ac_cv_search_dlopen+set}" = set; then
12555 :
Reid Spencera773bd52006-08-04 18:18:08 +000012556else
12557 ac_cv_search_dlopen=no
12558fi
12559rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012560LIBS=$ac_func_search_save_LIBS
12561fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012562{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12563echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012564ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012565if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012568cat >>confdefs.h <<\_ACEOF
12569#define HAVE_DLOPEN 1
12570_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012571
12572else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012573 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12574echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012575fi
12576
12577
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012578if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012579 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12580echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12581if test "${ac_cv_search_ffi_call+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012583else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012584 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012585cat >conftest.$ac_ext <<_ACEOF
12586/* confdefs.h. */
12587_ACEOF
12588cat confdefs.h >>conftest.$ac_ext
12589cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012590/* end confdefs.h. */
12591
12592/* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12595#ifdef __cplusplus
12596extern "C"
12597#endif
12598char ffi_call ();
12599int
12600main ()
12601{
12602return ffi_call ();
12603 ;
12604 return 0;
12605}
12606_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012607for ac_lib in '' ffi; do
12608 if test -z "$ac_lib"; then
12609 ac_res="none required"
12610 else
12611 ac_res=-l$ac_lib
12612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12613 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012614 rm -f conftest.$ac_objext conftest$ac_exeext
12615if { (ac_try="$ac_link"
12616case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12619esac
12620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 (eval "$ac_link") 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
12628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12629 { (case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_try") 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest$ac_exeext'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12642esac
12643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012648 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012649else
12650 echo "$as_me: failed program was:" >&5
12651sed 's/^/| /' conftest.$ac_ext >&5
12652
12653
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012655
Bill Wendlingebcceee2009-04-18 11:20:33 +000012656rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012657 conftest$ac_exeext
12658 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012659 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012660fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012661done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012662if test "${ac_cv_search_ffi_call+set}" = set; then
12663 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012664else
12665 ac_cv_search_ffi_call=no
12666fi
12667rm conftest.$ac_ext
12668LIBS=$ac_func_search_save_LIBS
12669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012670{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12671echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012672ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012673if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012676cat >>confdefs.h <<\_ACEOF
12677#define HAVE_FFI_CALL 1
12678_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012679
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012680else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012681 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12682echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12683 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012684fi
12685
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012686fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012688{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12689echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12690if test "${ac_cv_search_mallinfo+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012692else
12693 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012694cat >conftest.$ac_ext <<_ACEOF
12695/* confdefs.h. */
12696_ACEOF
12697cat confdefs.h >>conftest.$ac_ext
12698cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012699/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012700
Reid Spencera773bd52006-08-04 18:18:08 +000012701/* Override any GCC internal prototype to avoid an error.
12702 Use char because int might match the return type of a GCC
12703 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012704#ifdef __cplusplus
12705extern "C"
12706#endif
John Criswell7a73b802003-06-30 21:59:07 +000012707char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012708int
12709main ()
12710{
Reid Spencera773bd52006-08-04 18:18:08 +000012711return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012712 ;
12713 return 0;
12714}
12715_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012716for ac_lib in '' malloc; do
12717 if test -z "$ac_lib"; then
12718 ac_res="none required"
12719 else
12720 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012722 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012723 rm -f conftest.$ac_objext conftest$ac_exeext
12724if { (ac_try="$ac_link"
12725case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12728esac
12729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_link") 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
12737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12738 { (case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12741esac
12742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743 (eval "$ac_try") 2>&5
12744 ac_status=$?
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; } &&
12747 { ac_try='test -s conftest$ac_exeext'
12748 { (case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751esac
12752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_try") 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012757 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012758else
12759 echo "$as_me: failed program was:" >&5
12760sed 's/^/| /' conftest.$ac_ext >&5
12761
12762
John Criswell7a73b802003-06-30 21:59:07 +000012763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012764
Bill Wendlingebcceee2009-04-18 11:20:33 +000012765rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012766 conftest$ac_exeext
12767 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012768 break
John Criswell7a73b802003-06-30 21:59:07 +000012769fi
Reid Spencera773bd52006-08-04 18:18:08 +000012770done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012771if test "${ac_cv_search_mallinfo+set}" = set; then
12772 :
Reid Spencera773bd52006-08-04 18:18:08 +000012773else
12774 ac_cv_search_mallinfo=no
12775fi
12776rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012777LIBS=$ac_func_search_save_LIBS
12778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012779{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12780echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012781ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012782if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012785cat >>confdefs.h <<\_ACEOF
12786#define HAVE_MALLINFO 1
12787_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012788
12789fi
12790
12791
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000012792if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012793
12794{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12795echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12796if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012798else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012799 ac_check_lib_save_LIBS=$LIBS
12800LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012801cat >conftest.$ac_ext <<_ACEOF
12802/* confdefs.h. */
12803_ACEOF
12804cat confdefs.h >>conftest.$ac_ext
12805cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012806/* end confdefs.h. */
12807
Reid Spencera773bd52006-08-04 18:18:08 +000012808/* Override any GCC internal prototype to avoid an error.
12809 Use char because int might match the return type of a GCC
12810 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012811#ifdef __cplusplus
12812extern "C"
12813#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012814char pthread_mutex_init ();
12815int
12816main ()
12817{
Reid Spencera773bd52006-08-04 18:18:08 +000012818return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012819 ;
12820 return 0;
12821}
12822_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012823rm -f conftest.$ac_objext conftest$ac_exeext
12824if { (ac_try="$ac_link"
12825case "(($ac_try" in
12826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827 *) ac_try_echo=$ac_try;;
12828esac
12829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830 (eval "$ac_link") 2>conftest.er1
12831 ac_status=$?
12832 grep -v '^ *+' conftest.er1 >conftest.err
12833 rm -f conftest.er1
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12838 { (case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841esac
12842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_try") 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest$ac_exeext'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851esac
12852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012857 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012859 echo "$as_me: failed program was:" >&5
12860sed 's/^/| /' conftest.$ac_ext >&5
12861
12862 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012864
Bill Wendlingebcceee2009-04-18 11:20:33 +000012865rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012866 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012867LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012869{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12870echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12871if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012872 cat >>confdefs.h <<_ACEOF
12873#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012874_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012875
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012876 LIBS="-lpthread $LIBS"
12877
Reid Spencer22177fe2005-07-12 15:24:20 +000012878fi
12879
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012880 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12881echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12882if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012884else
12885 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012886cat >conftest.$ac_ext <<_ACEOF
12887/* confdefs.h. */
12888_ACEOF
12889cat confdefs.h >>conftest.$ac_ext
12890cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012891/* end confdefs.h. */
12892
Reid Spencera773bd52006-08-04 18:18:08 +000012893/* Override any GCC internal prototype to avoid an error.
12894 Use char because int might match the return type of a GCC
12895 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012896#ifdef __cplusplus
12897extern "C"
12898#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012899char pthread_mutex_lock ();
12900int
12901main ()
12902{
Reid Spencera773bd52006-08-04 18:18:08 +000012903return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012904 ;
12905 return 0;
12906}
12907_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012908for ac_lib in '' pthread; do
12909 if test -z "$ac_lib"; then
12910 ac_res="none required"
12911 else
12912 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012914 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012915 rm -f conftest.$ac_objext conftest$ac_exeext
12916if { (ac_try="$ac_link"
12917case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12920esac
12921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_link") 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12933esac
12934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12943esac
12944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_try") 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012949 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012950else
12951 echo "$as_me: failed program was:" >&5
12952sed 's/^/| /' conftest.$ac_ext >&5
12953
12954
Brian Gaeke5f268f72003-12-05 19:29:01 +000012955fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012956
Bill Wendlingebcceee2009-04-18 11:20:33 +000012957rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012958 conftest$ac_exeext
12959 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012960 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012961fi
Reid Spencera773bd52006-08-04 18:18:08 +000012962done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012963if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12964 :
Reid Spencera773bd52006-08-04 18:18:08 +000012965else
12966 ac_cv_search_pthread_mutex_lock=no
12967fi
12968rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012969LIBS=$ac_func_search_save_LIBS
12970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012971{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12972echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012973ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012974if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012977cat >>confdefs.h <<\_ACEOF
12978#define HAVE_PTHREAD_MUTEX_LOCK 1
12979_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012980
12981fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012983 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12984echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12985if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012987else
12988 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012989cat >conftest.$ac_ext <<_ACEOF
12990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012994/* end confdefs.h. */
12995
12996/* Override any GCC internal prototype to avoid an error.
12997 Use char because int might match the return type of a GCC
12998 builtin and then its argument prototype would still apply. */
12999#ifdef __cplusplus
13000extern "C"
13001#endif
13002char pthread_rwlock_init ();
13003int
13004main ()
13005{
13006return pthread_rwlock_init ();
13007 ;
13008 return 0;
13009}
13010_ACEOF
13011for ac_lib in '' pthread; do
13012 if test -z "$ac_lib"; then
13013 ac_res="none required"
13014 else
13015 ac_res=-l$ac_lib
13016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13017 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013018 rm -f conftest.$ac_objext conftest$ac_exeext
13019if { (ac_try="$ac_link"
13020case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13023esac
13024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_link") 2>conftest.er1
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
13032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13033 { (case "(($ac_try" in
13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035 *) ac_try_echo=$ac_try;;
13036esac
13037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038 (eval "$ac_try") 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest$ac_exeext'
13043 { (case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046esac
13047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_try") 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013052 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013053else
13054 echo "$as_me: failed program was:" >&5
13055sed 's/^/| /' conftest.$ac_ext >&5
13056
13057
Owen Andersonde8aed22009-06-16 18:20:20 +000013058fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013059
Owen Andersonde8aed22009-06-16 18:20:20 +000013060rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013061 conftest$ac_exeext
13062 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013063 break
13064fi
13065done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013066if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13067 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013068else
13069 ac_cv_search_pthread_rwlock_init=no
13070fi
13071rm conftest.$ac_ext
13072LIBS=$ac_func_search_save_LIBS
13073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013074{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13075echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013076ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013077if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013080cat >>confdefs.h <<\_ACEOF
13081#define HAVE_PTHREAD_RWLOCK_INIT 1
13082_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013083
13084fi
13085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013086 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13087echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13088if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013090else
13091 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013092cat >conftest.$ac_ext <<_ACEOF
13093/* confdefs.h. */
13094_ACEOF
13095cat confdefs.h >>conftest.$ac_ext
13096cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013097/* end confdefs.h. */
13098
13099/* Override any GCC internal prototype to avoid an error.
13100 Use char because int might match the return type of a GCC
13101 builtin and then its argument prototype would still apply. */
13102#ifdef __cplusplus
13103extern "C"
13104#endif
13105char pthread_getspecific ();
13106int
13107main ()
13108{
13109return pthread_getspecific ();
13110 ;
13111 return 0;
13112}
13113_ACEOF
13114for ac_lib in '' pthread; do
13115 if test -z "$ac_lib"; then
13116 ac_res="none required"
13117 else
13118 ac_res=-l$ac_lib
13119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13120 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013121 rm -f conftest.$ac_objext conftest$ac_exeext
13122if { (ac_try="$ac_link"
13123case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13126esac
13127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128 (eval "$ac_link") 2>conftest.er1
13129 ac_status=$?
13130 grep -v '^ *+' conftest.er1 >conftest.err
13131 rm -f conftest.er1
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13136 { (case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139esac
13140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_try") 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; } &&
13145 { ac_try='test -s conftest$ac_exeext'
13146 { (case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13149esac
13150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_try") 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013155 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013156else
13157 echo "$as_me: failed program was:" >&5
13158sed 's/^/| /' conftest.$ac_ext >&5
13159
13160
Owen Anderson27fcfe12009-06-25 23:10:26 +000013161fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013162
Owen Anderson27fcfe12009-06-25 23:10:26 +000013163rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013164 conftest$ac_exeext
13165 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013166 break
13167fi
13168done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013169if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13170 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013171else
13172 ac_cv_search_pthread_getspecific=no
13173fi
13174rm conftest.$ac_ext
13175LIBS=$ac_func_search_save_LIBS
13176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013177{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13178echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013179ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013180if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013183cat >>confdefs.h <<\_ACEOF
13184#define HAVE_PTHREAD_GETSPECIFIC 1
13185_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013186
13187fi
13188
Reid Spencer0a262ba2005-08-24 10:07:20 +000013189fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013190
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013191
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013192# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013193if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013194 withval=$with_udis86;
13195 USE_UDIS86=1
13196
13197 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013198 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013199 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13200 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013201
13202{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13203echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13204if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013206else
13207 ac_check_lib_save_LIBS=$LIBS
13208LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013209cat >conftest.$ac_ext <<_ACEOF
13210/* confdefs.h. */
13211_ACEOF
13212cat confdefs.h >>conftest.$ac_ext
13213cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013214/* end confdefs.h. */
13215
13216/* Override any GCC internal prototype to avoid an error.
13217 Use char because int might match the return type of a GCC
13218 builtin and then its argument prototype would still apply. */
13219#ifdef __cplusplus
13220extern "C"
13221#endif
13222char ud_init ();
13223int
13224main ()
13225{
13226return ud_init ();
13227 ;
13228 return 0;
13229}
13230_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013231rm -f conftest.$ac_objext conftest$ac_exeext
13232if { (ac_try="$ac_link"
13233case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13236esac
13237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_link") 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246 { (case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249esac
13250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_try") 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259esac
13260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013265 ac_cv_lib_udis86_ud_init=yes
13266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013267 echo "$as_me: failed program was:" >&5
13268sed 's/^/| /' conftest.$ac_ext >&5
13269
13270 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013272
Bill Wendlingebcceee2009-04-18 11:20:33 +000013273rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013274 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013275LIBS=$ac_check_lib_save_LIBS
13276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013277{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13278echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13279if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013280 cat >>confdefs.h <<_ACEOF
13281#define HAVE_LIBUDIS86 1
13282_ACEOF
13283
13284 LIBS="-ludis86 $LIBS"
13285
13286else
13287
13288 echo "Error! You need to have libudis86 around."
13289 exit -1
13290
13291fi
13292
13293
13294else
13295 USE_UDIS86=0
13296
13297fi
13298
13299
13300cat >>confdefs.h <<_ACEOF
13301#define USE_UDIS86 $USE_UDIS86
13302_ACEOF
13303
13304
13305
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013306# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013307if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013308 withval=$with_oprofile;
13309 USE_OPROFILE=1
13310
13311 case "$withval" in
13312 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013313 no) llvm_cv_oppath=
13314 USE_OPROFILE=0
13315 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013316 *) llvm_cv_oppath="${withval}/lib/oprofile"
13317 CPPFLAGS="-I${withval}/include";;
13318 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013319 if test -n "$llvm_cv_oppath" ; then
13320 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013321 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13322echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13323if test "${ac_cv_search_bfd_init+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013325else
13326 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013327cat >conftest.$ac_ext <<_ACEOF
13328/* confdefs.h. */
13329_ACEOF
13330cat confdefs.h >>conftest.$ac_ext
13331cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013332/* end confdefs.h. */
13333
13334/* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13337#ifdef __cplusplus
13338extern "C"
13339#endif
13340char bfd_init ();
13341int
13342main ()
13343{
13344return bfd_init ();
13345 ;
13346 return 0;
13347}
13348_ACEOF
13349for ac_lib in '' bfd; do
13350 if test -z "$ac_lib"; then
13351 ac_res="none required"
13352 else
13353 ac_res=-l$ac_lib
13354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13355 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013356 rm -f conftest.$ac_objext conftest$ac_exeext
13357if { (ac_try="$ac_link"
13358case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361esac
13362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_link") 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_try") 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384esac
13385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013390 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013391else
13392 echo "$as_me: failed program was:" >&5
13393sed 's/^/| /' conftest.$ac_ext >&5
13394
13395
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013397
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013398rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013399 conftest$ac_exeext
13400 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013401 break
13402fi
13403done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013404if test "${ac_cv_search_bfd_init+set}" = set; then
13405 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013406else
13407 ac_cv_search_bfd_init=no
13408fi
13409rm conftest.$ac_ext
13410LIBS=$ac_func_search_save_LIBS
13411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013412{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13413echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013414ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013415if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13417
13418fi
13419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013420 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13421echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13422if test "${ac_cv_search_op_open_agent+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013424else
13425 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013426cat >conftest.$ac_ext <<_ACEOF
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013431/* end confdefs.h. */
13432
13433/* Override any GCC internal prototype to avoid an error.
13434 Use char because int might match the return type of a GCC
13435 builtin and then its argument prototype would still apply. */
13436#ifdef __cplusplus
13437extern "C"
13438#endif
13439char op_open_agent ();
13440int
13441main ()
13442{
13443return op_open_agent ();
13444 ;
13445 return 0;
13446}
13447_ACEOF
13448for ac_lib in '' opagent; do
13449 if test -z "$ac_lib"; then
13450 ac_res="none required"
13451 else
13452 ac_res=-l$ac_lib
13453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13454 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013455 rm -f conftest.$ac_objext conftest$ac_exeext
13456if { (ac_try="$ac_link"
13457case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13460esac
13461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_link") 2>conftest.er1
13463 ac_status=$?
13464 grep -v '^ *+' conftest.er1 >conftest.err
13465 rm -f conftest.er1
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
13469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13470 { (case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13473esac
13474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_try") 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try='test -s conftest$ac_exeext'
13480 { (case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483esac
13484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_try") 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013489 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013490else
13491 echo "$as_me: failed program was:" >&5
13492sed 's/^/| /' conftest.$ac_ext >&5
13493
13494
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013495fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013496
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013497rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013498 conftest$ac_exeext
13499 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013500 break
13501fi
13502done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013503if test "${ac_cv_search_op_open_agent+set}" = set; then
13504 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013505else
13506 ac_cv_search_op_open_agent=no
13507fi
13508rm conftest.$ac_ext
13509LIBS=$ac_func_search_save_LIBS
13510fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013511{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13512echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013513ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013514if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13516
13517else
13518
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013519 echo "Error! You need to have libopagent around."
13520 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013521
13522fi
13523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013524 if test "${ac_cv_header_opagent_h+set}" = set; then
13525 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13526echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13527if test "${ac_cv_header_opagent_h+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13529fi
13530{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13531echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13532else
13533 # Is the header compilable?
13534{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13535echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13536cat >conftest.$ac_ext <<_ACEOF
13537/* confdefs.h. */
13538_ACEOF
13539cat confdefs.h >>conftest.$ac_ext
13540cat >>conftest.$ac_ext <<_ACEOF
13541/* end confdefs.h. */
13542$ac_includes_default
13543#include <opagent.h>
13544_ACEOF
13545rm -f conftest.$ac_objext
13546if { (ac_try="$ac_compile"
13547case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550esac
13551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_compile") 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13560 { (case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13563esac
13564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_try") 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try='test -s conftest.$ac_objext'
13570 { (case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573esac
13574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_try") 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_header_compiler=yes
13580else
13581 echo "$as_me: failed program was:" >&5
13582sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013584 ac_header_compiler=no
13585fi
13586
13587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589echo "${ECHO_T}$ac_header_compiler" >&6; }
13590
13591# Is the header present?
13592{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13593echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13594cat >conftest.$ac_ext <<_ACEOF
13595/* confdefs.h. */
13596_ACEOF
13597cat confdefs.h >>conftest.$ac_ext
13598cat >>conftest.$ac_ext <<_ACEOF
13599/* end confdefs.h. */
13600#include <opagent.h>
13601_ACEOF
13602if { (ac_try="$ac_cpp conftest.$ac_ext"
13603case "(($ac_try" in
13604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605 *) ac_try_echo=$ac_try;;
13606esac
13607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13609 ac_status=$?
13610 grep -v '^ *+' conftest.er1 >conftest.err
13611 rm -f conftest.er1
13612 cat conftest.err >&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } >/dev/null; then
13615 if test -s conftest.err; then
13616 ac_cpp_err=$ac_c_preproc_warn_flag
13617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13618 else
13619 ac_cpp_err=
13620 fi
13621else
13622 ac_cpp_err=yes
13623fi
13624if test -z "$ac_cpp_err"; then
13625 ac_header_preproc=yes
13626else
13627 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_header_preproc=no
13631fi
13632
13633rm -f conftest.err conftest.$ac_ext
13634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635echo "${ECHO_T}$ac_header_preproc" >&6; }
13636
13637# So? What about this header?
13638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13639 yes:no: )
13640 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13641echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13643echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13644 ac_header_preproc=yes
13645 ;;
13646 no:yes:* )
13647 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13648echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13650echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13652echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13654echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13656echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13658echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13659 ( cat <<\_ASBOX
13660## ----------------------------------- ##
13661## Report this to llvmbugs@cs.uiuc.edu ##
13662## ----------------------------------- ##
13663_ASBOX
13664 ) | sed "s/^/$as_me: WARNING: /" >&2
13665 ;;
13666esac
13667{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13668echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13669if test "${ac_cv_header_opagent_h+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671else
13672 ac_cv_header_opagent_h=$ac_header_preproc
13673fi
13674{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13675echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13676
13677fi
13678if test $ac_cv_header_opagent_h = yes; then
13679 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013680else
13681
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013682 echo "Error! You need to have opagent.h around."
13683 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013684
13685fi
13686
13687
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013688 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013689
13690else
13691
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013692 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013693
13694
13695fi
13696
13697
13698cat >>confdefs.h <<_ACEOF
13699#define USE_OPROFILE $USE_OPROFILE
13700_ACEOF
13701
13702
13703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013704
13705
13706
13707
13708
Reid Spencer59473af2004-12-25 07:31:29 +000013709ac_header_dirent=no
13710for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013711 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13712{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13713echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013717 cat >conftest.$ac_ext <<_ACEOF
13718/* confdefs.h. */
13719_ACEOF
13720cat confdefs.h >>conftest.$ac_ext
13721cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013722/* end confdefs.h. */
13723#include <sys/types.h>
13724#include <$ac_hdr>
13725
13726int
13727main ()
13728{
13729if ((DIR *) 0)
13730return 0;
13731 ;
13732 return 0;
13733}
13734_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013735rm -f conftest.$ac_objext
13736if { (ac_try="$ac_compile"
13737case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740esac
13741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_compile") 2>conftest.er1
13743 ac_status=$?
13744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13753esac
13754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest.$ac_objext'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13763esac
13764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013769 eval "$as_ac_Header=yes"
13770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013771 echo "$as_me: failed program was:" >&5
13772sed 's/^/| /' conftest.$ac_ext >&5
13773
13774 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013775fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013776
Reid Spencera773bd52006-08-04 18:18:08 +000013777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013779ac_res=`eval echo '${'$as_ac_Header'}'`
13780 { echo "$as_me:$LINENO: result: $ac_res" >&5
13781echo "${ECHO_T}$ac_res" >&6; }
13782if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013783 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013784#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013785_ACEOF
13786
13787ac_header_dirent=$ac_hdr; break
13788fi
13789
13790done
13791# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13792if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013793 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13794echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13795if test "${ac_cv_search_opendir+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013797else
13798 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013799cat >conftest.$ac_ext <<_ACEOF
13800/* confdefs.h. */
13801_ACEOF
13802cat confdefs.h >>conftest.$ac_ext
13803cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013804/* end confdefs.h. */
13805
Reid Spencera773bd52006-08-04 18:18:08 +000013806/* Override any GCC internal prototype to avoid an error.
13807 Use char because int might match the return type of a GCC
13808 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013809#ifdef __cplusplus
13810extern "C"
13811#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013812char opendir ();
13813int
13814main ()
13815{
Reid Spencera773bd52006-08-04 18:18:08 +000013816return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013817 ;
13818 return 0;
13819}
13820_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013821for ac_lib in '' dir; do
13822 if test -z "$ac_lib"; then
13823 ac_res="none required"
13824 else
13825 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013827 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013828 rm -f conftest.$ac_objext conftest$ac_exeext
13829if { (ac_try="$ac_link"
13830case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13833esac
13834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_link") 2>conftest.er1
13836 ac_status=$?
13837 grep -v '^ *+' conftest.er1 >conftest.err
13838 rm -f conftest.er1
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843 { (case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13846esac
13847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_try") 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest$ac_exeext'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13856esac
13857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013862 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013863else
13864 echo "$as_me: failed program was:" >&5
13865sed 's/^/| /' conftest.$ac_ext >&5
13866
13867
Reid Spencer59473af2004-12-25 07:31:29 +000013868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013869
Bill Wendlingebcceee2009-04-18 11:20:33 +000013870rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013871 conftest$ac_exeext
13872 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013873 break
Reid Spencer59473af2004-12-25 07:31:29 +000013874fi
Reid Spencera773bd52006-08-04 18:18:08 +000013875done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013876if test "${ac_cv_search_opendir+set}" = set; then
13877 :
Reid Spencera773bd52006-08-04 18:18:08 +000013878else
13879 ac_cv_search_opendir=no
13880fi
13881rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013882LIBS=$ac_func_search_save_LIBS
13883fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013884{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13885echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013886ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013887if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013889
13890fi
13891
13892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013893 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13894echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13895if test "${ac_cv_search_opendir+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013897else
13898 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013899cat >conftest.$ac_ext <<_ACEOF
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013904/* end confdefs.h. */
13905
Reid Spencera773bd52006-08-04 18:18:08 +000013906/* Override any GCC internal prototype to avoid an error.
13907 Use char because int might match the return type of a GCC
13908 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013909#ifdef __cplusplus
13910extern "C"
13911#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013912char opendir ();
13913int
13914main ()
13915{
Reid Spencera773bd52006-08-04 18:18:08 +000013916return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013917 ;
13918 return 0;
13919}
13920_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013921for ac_lib in '' x; do
13922 if test -z "$ac_lib"; then
13923 ac_res="none required"
13924 else
13925 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013927 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013928 rm -f conftest.$ac_objext conftest$ac_exeext
13929if { (ac_try="$ac_link"
13930case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13933esac
13934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_link") 2>conftest.er1
13936 ac_status=$?
13937 grep -v '^ *+' conftest.er1 >conftest.err
13938 rm -f conftest.er1
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13943 { (case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13946esac
13947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_try") 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try='test -s conftest$ac_exeext'
13953 { (case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13956esac
13957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_try") 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013962 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013963else
13964 echo "$as_me: failed program was:" >&5
13965sed 's/^/| /' conftest.$ac_ext >&5
13966
13967
Reid Spencer59473af2004-12-25 07:31:29 +000013968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013969
Bill Wendlingebcceee2009-04-18 11:20:33 +000013970rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971 conftest$ac_exeext
13972 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013973 break
Reid Spencer59473af2004-12-25 07:31:29 +000013974fi
Reid Spencera773bd52006-08-04 18:18:08 +000013975done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013976if test "${ac_cv_search_opendir+set}" = set; then
13977 :
Reid Spencera773bd52006-08-04 18:18:08 +000013978else
13979 ac_cv_search_opendir=no
13980fi
13981rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013982LIBS=$ac_func_search_save_LIBS
13983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013984{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13985echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013986ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013987if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013989
13990fi
13991
13992fi
13993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013994{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13995echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13996if test "${ac_cv_header_mmap_anon+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013998else
13999 ac_ext=c
14000ac_cpp='$CPP $CPPFLAGS'
14001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14003ac_compiler_gnu=$ac_cv_c_compiler_gnu
14004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014005 cat >conftest.$ac_ext <<_ACEOF
14006/* confdefs.h. */
14007_ACEOF
14008cat confdefs.h >>conftest.$ac_ext
14009cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014010/* end confdefs.h. */
14011#include <sys/mman.h>
14012#include <unistd.h>
14013#include <fcntl.h>
14014int
14015main ()
14016{
14017mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14018 ;
14019 return 0;
14020}
14021_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014022rm -f conftest.$ac_objext
14023if { (ac_try="$ac_compile"
14024case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027esac
14028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_compile") 2>conftest.er1
14030 ac_status=$?
14031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14037 { (case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040esac
14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_try") 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest.$ac_objext'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050esac
14051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014056 ac_cv_header_mmap_anon=yes
14057else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014058 echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
14061 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014063
Reid Spencera773bd52006-08-04 18:18:08 +000014064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014065 ac_ext=c
14066ac_cpp='$CPP $CPPFLAGS'
14067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14069ac_compiler_gnu=$ac_cv_c_compiler_gnu
14070
14071
14072fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014073{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14074echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014075if test "$ac_cv_header_mmap_anon" = yes; then
14076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014077cat >>confdefs.h <<\_ACEOF
14078#define HAVE_MMAP_ANONYMOUS 1
14079_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014080
14081fi
14082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014083{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14084echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14085if test "${ac_cv_header_stat_broken+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014088 cat >conftest.$ac_ext <<_ACEOF
14089/* confdefs.h. */
14090_ACEOF
14091cat confdefs.h >>conftest.$ac_ext
14092cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014093/* end confdefs.h. */
14094#include <sys/types.h>
14095#include <sys/stat.h>
14096
Reid Spencera773bd52006-08-04 18:18:08 +000014097#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014098# if S_ISBLK (S_IFDIR)
14099You lose.
14100# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014101#endif
14102
Reid Spencera773bd52006-08-04 18:18:08 +000014103#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014104# if S_ISBLK (S_IFCHR)
14105You lose.
14106# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014107#endif
14108
Reid Spencera773bd52006-08-04 18:18:08 +000014109#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014110# if S_ISLNK (S_IFREG)
14111You lose.
14112# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014113#endif
14114
Reid Spencera773bd52006-08-04 18:18:08 +000014115#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014116# if S_ISSOCK (S_IFREG)
14117You lose.
14118# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014119#endif
14120
14121_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14123 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014124 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014125else
14126 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014128rm -f conftest*
14129
Reid Spencer59473af2004-12-25 07:31:29 +000014130fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014131{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14132echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014133if test $ac_cv_header_stat_broken = yes; then
14134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135cat >>confdefs.h <<\_ACEOF
14136#define STAT_MACROS_BROKEN 1
14137_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014138
14139fi
14140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14142echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14143if test "${ac_cv_header_stdc+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014146 cat >conftest.$ac_ext <<_ACEOF
14147/* confdefs.h. */
14148_ACEOF
14149cat confdefs.h >>conftest.$ac_ext
14150cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014151/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014152#include <stdlib.h>
14153#include <stdarg.h>
14154#include <string.h>
14155#include <float.h>
14156
John Criswell0c38eaf2003-09-10 15:17:25 +000014157int
14158main ()
14159{
14160
14161 ;
14162 return 0;
14163}
John Criswell7a73b802003-06-30 21:59:07 +000014164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165rm -f conftest.$ac_objext
14166if { (ac_try="$ac_compile"
14167case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14170esac
14171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_compile") 2>conftest.er1
14173 ac_status=$?
14174 grep -v '^ *+' conftest.er1 >conftest.err
14175 rm -f conftest.er1
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14180 { (case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14183esac
14184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_try") 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest.$ac_objext'
14190 { (case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14193esac
14194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_try") 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014199 ac_cv_header_stdc=yes
14200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014201 echo "$as_me: failed program was:" >&5
14202sed 's/^/| /' conftest.$ac_ext >&5
14203
14204 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000014205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014206
Reid Spencera773bd52006-08-04 18:18:08 +000014207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014208
14209if test $ac_cv_header_stdc = yes; then
14210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014211 cat >conftest.$ac_ext <<_ACEOF
14212/* confdefs.h. */
14213_ACEOF
14214cat confdefs.h >>conftest.$ac_ext
14215cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014217#include <string.h>
14218
14219_ACEOF
14220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014221 $EGREP "memchr" >/dev/null 2>&1; then
14222 :
John Criswell7a73b802003-06-30 21:59:07 +000014223else
14224 ac_cv_header_stdc=no
14225fi
14226rm -f conftest*
14227
14228fi
14229
14230if test $ac_cv_header_stdc = yes; then
14231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014232 cat >conftest.$ac_ext <<_ACEOF
14233/* confdefs.h. */
14234_ACEOF
14235cat confdefs.h >>conftest.$ac_ext
14236cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014237/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014238#include <stdlib.h>
14239
14240_ACEOF
14241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014242 $EGREP "free" >/dev/null 2>&1; then
14243 :
John Criswell7a73b802003-06-30 21:59:07 +000014244else
14245 ac_cv_header_stdc=no
14246fi
14247rm -f conftest*
14248
14249fi
14250
14251if test $ac_cv_header_stdc = yes; then
14252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014253 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000014254 :
14255else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014256 cat >conftest.$ac_ext <<_ACEOF
14257/* confdefs.h. */
14258_ACEOF
14259cat confdefs.h >>conftest.$ac_ext
14260cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014261/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014262#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000014263#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000014264#if ((' ' & 0x0FF) == 0x020)
14265# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14266# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14267#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014268# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014269 (('a' <= (c) && (c) <= 'i') \
14270 || ('j' <= (c) && (c) <= 'r') \
14271 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000014272# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14273#endif
14274
14275#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14276int
14277main ()
14278{
14279 int i;
14280 for (i = 0; i < 256; i++)
14281 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000014282 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000014283 return 2;
14284 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000014285}
14286_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014287rm -f conftest$ac_exeext
14288if { (ac_try="$ac_link"
14289case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292esac
14293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_link") 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
14307 :
John Criswell7a73b802003-06-30 21:59:07 +000014308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014309 echo "$as_me: program exited with status $ac_status" >&5
14310echo "$as_me: failed program was:" >&5
14311sed 's/^/| /' conftest.$ac_ext >&5
14312
14313( exit $ac_status )
14314ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000014315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014316rm -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 +000014317fi
14318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014319
John Criswell7a73b802003-06-30 21:59:07 +000014320fi
14321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014322{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14323echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014324if test $ac_cv_header_stdc = yes; then
14325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014326cat >>confdefs.h <<\_ACEOF
14327#define STDC_HEADERS 1
14328_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014329
14330fi
14331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014332{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14333echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14334if test "${ac_cv_header_sys_wait_h+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014337 cat >conftest.$ac_ext <<_ACEOF
14338/* confdefs.h. */
14339_ACEOF
14340cat confdefs.h >>conftest.$ac_ext
14341cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014342/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014343#include <sys/types.h>
14344#include <sys/wait.h>
14345#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014346# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014347#endif
14348#ifndef WIFEXITED
14349# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14350#endif
14351
John Criswell7a73b802003-06-30 21:59:07 +000014352int
14353main ()
14354{
14355 int s;
14356 wait (&s);
14357 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14358 ;
14359 return 0;
14360}
14361_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014362rm -f conftest.$ac_objext
14363if { (ac_try="$ac_compile"
14364case "(($ac_try" in
14365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366 *) ac_try_echo=$ac_try;;
14367esac
14368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369 (eval "$ac_compile") 2>conftest.er1
14370 ac_status=$?
14371 grep -v '^ *+' conftest.er1 >conftest.err
14372 rm -f conftest.er1
14373 cat conftest.err >&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } &&
14376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14377 { (case "(($ac_try" in
14378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14380esac
14381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_try") 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } &&
14386 { ac_try='test -s conftest.$ac_objext'
14387 { (case "(($ac_try" in
14388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14390esac
14391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_try") 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014396 ac_cv_header_sys_wait_h=yes
14397else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014398 echo "$as_me: failed program was:" >&5
14399sed 's/^/| /' conftest.$ac_ext >&5
14400
14401 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014403
Reid Spencera773bd52006-08-04 18:18:08 +000014404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014405fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014406{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14407echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014408if test $ac_cv_header_sys_wait_h = yes; then
14409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410cat >>confdefs.h <<\_ACEOF
14411#define HAVE_SYS_WAIT_H 1
14412_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014413
14414fi
14415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014416{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14417echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14418if test "${ac_cv_header_time+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014421 cat >conftest.$ac_ext <<_ACEOF
14422/* confdefs.h. */
14423_ACEOF
14424cat confdefs.h >>conftest.$ac_ext
14425cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014426/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014427#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014428#include <sys/time.h>
14429#include <time.h>
14430
14431int
14432main ()
14433{
14434if ((struct tm *) 0)
14435return 0;
14436 ;
14437 return 0;
14438}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014439_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014440rm -f conftest.$ac_objext
14441if { (ac_try="$ac_compile"
14442case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445esac
14446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_compile") 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14455 { (case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458esac
14459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_try") 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest.$ac_objext'
14465 { (case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14468esac
14469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_try") 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014474 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014476 echo "$as_me: failed program was:" >&5
14477sed 's/^/| /' conftest.$ac_ext >&5
14478
14479 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014481
Reid Spencera773bd52006-08-04 18:18:08 +000014482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014484{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14485echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014486if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014488cat >>confdefs.h <<\_ACEOF
14489#define TIME_WITH_SYS_TIME 1
14490_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014491
14492fi
14493
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014495
14496
14497
14498
14499
14500
Reid Spencer59473af2004-12-25 07:31:29 +000014501for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014502do
14503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509fi
14510ac_res=`eval echo '${'$as_ac_Header'}'`
14511 { echo "$as_me:$LINENO: result: $ac_res" >&5
14512echo "${ECHO_T}$ac_res" >&6; }
14513else
14514 # Is the header compilable?
14515{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14517cat >conftest.$ac_ext <<_ACEOF
14518/* confdefs.h. */
14519_ACEOF
14520cat confdefs.h >>conftest.$ac_ext
14521cat >>conftest.$ac_ext <<_ACEOF
14522/* end confdefs.h. */
14523$ac_includes_default
14524#include <$ac_header>
14525_ACEOF
14526rm -f conftest.$ac_objext
14527if { (ac_try="$ac_compile"
14528case "(($ac_try" in
14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530 *) ac_try_echo=$ac_try;;
14531esac
14532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533 (eval "$ac_compile") 2>conftest.er1
14534 ac_status=$?
14535 grep -v '^ *+' conftest.er1 >conftest.err
14536 rm -f conftest.er1
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14541 { (case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14544esac
14545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_try") 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; } &&
14550 { ac_try='test -s conftest.$ac_objext'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554esac
14555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; }; then
14560 ac_header_compiler=yes
14561else
14562 echo "$as_me: failed program was:" >&5
14563sed 's/^/| /' conftest.$ac_ext >&5
14564
14565 ac_header_compiler=no
14566fi
14567
14568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14570echo "${ECHO_T}$ac_header_compiler" >&6; }
14571
14572# Is the header present?
14573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14575cat >conftest.$ac_ext <<_ACEOF
14576/* confdefs.h. */
14577_ACEOF
14578cat confdefs.h >>conftest.$ac_ext
14579cat >>conftest.$ac_ext <<_ACEOF
14580/* end confdefs.h. */
14581#include <$ac_header>
14582_ACEOF
14583if { (ac_try="$ac_cpp conftest.$ac_ext"
14584case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14587esac
14588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } >/dev/null; then
14596 if test -s conftest.err; then
14597 ac_cpp_err=$ac_c_preproc_warn_flag
14598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14599 else
14600 ac_cpp_err=
14601 fi
14602else
14603 ac_cpp_err=yes
14604fi
14605if test -z "$ac_cpp_err"; then
14606 ac_header_preproc=yes
14607else
14608 echo "$as_me: failed program was:" >&5
14609sed 's/^/| /' conftest.$ac_ext >&5
14610
14611 ac_header_preproc=no
14612fi
14613
14614rm -f conftest.err conftest.$ac_ext
14615{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14616echo "${ECHO_T}$ac_header_preproc" >&6; }
14617
14618# So? What about this header?
14619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14620 yes:no: )
14621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14625 ac_header_preproc=yes
14626 ;;
14627 no:yes:* )
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14631echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14635echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14640 ( cat <<\_ASBOX
14641## ----------------------------------- ##
14642## Report this to llvmbugs@cs.uiuc.edu ##
14643## ----------------------------------- ##
14644_ASBOX
14645 ) | sed "s/^/$as_me: WARNING: /" >&2
14646 ;;
14647esac
14648{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652else
14653 eval "$as_ac_Header=\$ac_header_preproc"
14654fi
14655ac_res=`eval echo '${'$as_ac_Header'}'`
14656 { echo "$as_me:$LINENO: result: $ac_res" >&5
14657echo "${ECHO_T}$ac_res" >&6; }
14658
14659fi
14660if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014661 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014663_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014664
14665fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014666
Reid Spencer59473af2004-12-25 07:31:29 +000014667done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014669
14670
14671
14672
14673
14674
Douglas Gregor071d73d2009-05-18 17:21:34 +000014675for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014676do
14677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683fi
14684ac_res=`eval echo '${'$as_ac_Header'}'`
14685 { echo "$as_me:$LINENO: result: $ac_res" >&5
14686echo "${ECHO_T}$ac_res" >&6; }
14687else
14688 # Is the header compilable?
14689{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14691cat >conftest.$ac_ext <<_ACEOF
14692/* confdefs.h. */
14693_ACEOF
14694cat confdefs.h >>conftest.$ac_ext
14695cat >>conftest.$ac_ext <<_ACEOF
14696/* end confdefs.h. */
14697$ac_includes_default
14698#include <$ac_header>
14699_ACEOF
14700rm -f conftest.$ac_objext
14701if { (ac_try="$ac_compile"
14702case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14705esac
14706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_compile") 2>conftest.er1
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
14714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14715 { (case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14718esac
14719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_try") 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try='test -s conftest.$ac_objext'
14725 { (case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14728esac
14729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_try") 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 ac_header_compiler=yes
14735else
14736 echo "$as_me: failed program was:" >&5
14737sed 's/^/| /' conftest.$ac_ext >&5
14738
14739 ac_header_compiler=no
14740fi
14741
14742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14744echo "${ECHO_T}$ac_header_compiler" >&6; }
14745
14746# Is the header present?
14747{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14749cat >conftest.$ac_ext <<_ACEOF
14750/* confdefs.h. */
14751_ACEOF
14752cat confdefs.h >>conftest.$ac_ext
14753cat >>conftest.$ac_ext <<_ACEOF
14754/* end confdefs.h. */
14755#include <$ac_header>
14756_ACEOF
14757if { (ac_try="$ac_cpp conftest.$ac_ext"
14758case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14761esac
14762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14764 ac_status=$?
14765 grep -v '^ *+' conftest.er1 >conftest.err
14766 rm -f conftest.er1
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } >/dev/null; then
14770 if test -s conftest.err; then
14771 ac_cpp_err=$ac_c_preproc_warn_flag
14772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14773 else
14774 ac_cpp_err=
14775 fi
14776else
14777 ac_cpp_err=yes
14778fi
14779if test -z "$ac_cpp_err"; then
14780 ac_header_preproc=yes
14781else
14782 echo "$as_me: failed program was:" >&5
14783sed 's/^/| /' conftest.$ac_ext >&5
14784
14785 ac_header_preproc=no
14786fi
14787
14788rm -f conftest.err conftest.$ac_ext
14789{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14790echo "${ECHO_T}$ac_header_preproc" >&6; }
14791
14792# So? What about this header?
14793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14794 yes:no: )
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14799 ac_header_preproc=yes
14800 ;;
14801 no:yes:* )
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14809echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14814 ( cat <<\_ASBOX
14815## ----------------------------------- ##
14816## Report this to llvmbugs@cs.uiuc.edu ##
14817## ----------------------------------- ##
14818_ASBOX
14819 ) | sed "s/^/$as_me: WARNING: /" >&2
14820 ;;
14821esac
14822{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14826else
14827 eval "$as_ac_Header=\$ac_header_preproc"
14828fi
14829ac_res=`eval echo '${'$as_ac_Header'}'`
14830 { echo "$as_me:$LINENO: result: $ac_res" >&5
14831echo "${ECHO_T}$ac_res" >&6; }
14832
14833fi
14834if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014835 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014837_ACEOF
14838
14839fi
14840
14841done
14842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014843
14844
Douglas Gregor071d73d2009-05-18 17:21:34 +000014845for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014846do
14847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853fi
14854ac_res=`eval echo '${'$as_ac_Header'}'`
14855 { echo "$as_me:$LINENO: result: $ac_res" >&5
14856echo "${ECHO_T}$ac_res" >&6; }
14857else
14858 # Is the header compilable?
14859{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14861cat >conftest.$ac_ext <<_ACEOF
14862/* confdefs.h. */
14863_ACEOF
14864cat confdefs.h >>conftest.$ac_ext
14865cat >>conftest.$ac_ext <<_ACEOF
14866/* end confdefs.h. */
14867$ac_includes_default
14868#include <$ac_header>
14869_ACEOF
14870rm -f conftest.$ac_objext
14871if { (ac_try="$ac_compile"
14872case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14875esac
14876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_compile") 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14888esac
14889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14898esac
14899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_try") 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 ac_header_compiler=yes
14905else
14906 echo "$as_me: failed program was:" >&5
14907sed 's/^/| /' conftest.$ac_ext >&5
14908
14909 ac_header_compiler=no
14910fi
14911
14912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14914echo "${ECHO_T}$ac_header_compiler" >&6; }
14915
14916# Is the header present?
14917{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14919cat >conftest.$ac_ext <<_ACEOF
14920/* confdefs.h. */
14921_ACEOF
14922cat confdefs.h >>conftest.$ac_ext
14923cat >>conftest.$ac_ext <<_ACEOF
14924/* end confdefs.h. */
14925#include <$ac_header>
14926_ACEOF
14927if { (ac_try="$ac_cpp conftest.$ac_ext"
14928case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14931esac
14932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14934 ac_status=$?
14935 grep -v '^ *+' conftest.er1 >conftest.err
14936 rm -f conftest.er1
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } >/dev/null; then
14940 if test -s conftest.err; then
14941 ac_cpp_err=$ac_c_preproc_warn_flag
14942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14943 else
14944 ac_cpp_err=
14945 fi
14946else
14947 ac_cpp_err=yes
14948fi
14949if test -z "$ac_cpp_err"; then
14950 ac_header_preproc=yes
14951else
14952 echo "$as_me: failed program was:" >&5
14953sed 's/^/| /' conftest.$ac_ext >&5
14954
14955 ac_header_preproc=no
14956fi
14957
14958rm -f conftest.err conftest.$ac_ext
14959{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14960echo "${ECHO_T}$ac_header_preproc" >&6; }
14961
14962# So? What about this header?
14963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14964 yes:no: )
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14969 ac_header_preproc=yes
14970 ;;
14971 no:yes:* )
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14984 ( cat <<\_ASBOX
14985## ----------------------------------- ##
14986## Report this to llvmbugs@cs.uiuc.edu ##
14987## ----------------------------------- ##
14988_ASBOX
14989 ) | sed "s/^/$as_me: WARNING: /" >&2
14990 ;;
14991esac
14992{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996else
14997 eval "$as_ac_Header=\$ac_header_preproc"
14998fi
14999ac_res=`eval echo '${'$as_ac_Header'}'`
15000 { echo "$as_me:$LINENO: result: $ac_res" >&5
15001echo "${ECHO_T}$ac_res" >&6; }
15002
15003fi
15004if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015005 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015007_ACEOF
15008
15009fi
15010
15011done
Reid Spencer59473af2004-12-25 07:31:29 +000015012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015013
15014
15015
15016
Daniel Dunbar3e462932011-02-03 02:40:02 +000015017
15018for 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 +000015019do
15020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15026fi
15027ac_res=`eval echo '${'$as_ac_Header'}'`
15028 { echo "$as_me:$LINENO: result: $ac_res" >&5
15029echo "${ECHO_T}$ac_res" >&6; }
15030else
15031 # Is the header compilable?
15032{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15033echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15034cat >conftest.$ac_ext <<_ACEOF
15035/* confdefs.h. */
15036_ACEOF
15037cat confdefs.h >>conftest.$ac_ext
15038cat >>conftest.$ac_ext <<_ACEOF
15039/* end confdefs.h. */
15040$ac_includes_default
15041#include <$ac_header>
15042_ACEOF
15043rm -f conftest.$ac_objext
15044if { (ac_try="$ac_compile"
15045case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048esac
15049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_compile") 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15058 { (case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15061esac
15062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_try") 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } &&
15067 { ac_try='test -s conftest.$ac_objext'
15068 { (case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071esac
15072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_try") 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15077 ac_header_compiler=yes
15078else
15079 echo "$as_me: failed program was:" >&5
15080sed 's/^/| /' conftest.$ac_ext >&5
15081
15082 ac_header_compiler=no
15083fi
15084
15085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15087echo "${ECHO_T}$ac_header_compiler" >&6; }
15088
15089# Is the header present?
15090{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15092cat >conftest.$ac_ext <<_ACEOF
15093/* confdefs.h. */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */
15098#include <$ac_header>
15099_ACEOF
15100if { (ac_try="$ac_cpp conftest.$ac_ext"
15101case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15107 ac_status=$?
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } >/dev/null; then
15113 if test -s conftest.err; then
15114 ac_cpp_err=$ac_c_preproc_warn_flag
15115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15116 else
15117 ac_cpp_err=
15118 fi
15119else
15120 ac_cpp_err=yes
15121fi
15122if test -z "$ac_cpp_err"; then
15123 ac_header_preproc=yes
15124else
15125 echo "$as_me: failed program was:" >&5
15126sed 's/^/| /' conftest.$ac_ext >&5
15127
15128 ac_header_preproc=no
15129fi
15130
15131rm -f conftest.err conftest.$ac_ext
15132{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15133echo "${ECHO_T}$ac_header_preproc" >&6; }
15134
15135# So? What about this header?
15136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15137 yes:no: )
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15139echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15141echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15142 ac_header_preproc=yes
15143 ;;
15144 no:yes:* )
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15146echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15148echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15150echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15152echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15154echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15156echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15157 ( cat <<\_ASBOX
15158## ----------------------------------- ##
15159## Report this to llvmbugs@cs.uiuc.edu ##
15160## ----------------------------------- ##
15161_ASBOX
15162 ) | sed "s/^/$as_me: WARNING: /" >&2
15163 ;;
15164esac
15165{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169else
15170 eval "$as_ac_Header=\$ac_header_preproc"
15171fi
15172ac_res=`eval echo '${'$as_ac_Header'}'`
15173 { echo "$as_me:$LINENO: result: $ac_res" >&5
15174echo "${ECHO_T}$ac_res" >&6; }
15175
15176fi
15177if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015178 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015180_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015181
15182fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015183
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015184done
15185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015186
15187
15188
15189
Douglas Gregor01746742009-05-11 18:05:52 +000015190for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015191do
15192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15198fi
15199ac_res=`eval echo '${'$as_ac_Header'}'`
15200 { echo "$as_me:$LINENO: result: $ac_res" >&5
15201echo "${ECHO_T}$ac_res" >&6; }
15202else
15203 # Is the header compilable?
15204{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15206cat >conftest.$ac_ext <<_ACEOF
15207/* confdefs.h. */
15208_ACEOF
15209cat confdefs.h >>conftest.$ac_ext
15210cat >>conftest.$ac_ext <<_ACEOF
15211/* end confdefs.h. */
15212$ac_includes_default
15213#include <$ac_header>
15214_ACEOF
15215rm -f conftest.$ac_objext
15216if { (ac_try="$ac_compile"
15217case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15220esac
15221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_compile") 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233esac
15234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try='test -s conftest.$ac_objext'
15240 { (case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15243esac
15244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_try") 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 ac_header_compiler=yes
15250else
15251 echo "$as_me: failed program was:" >&5
15252sed 's/^/| /' conftest.$ac_ext >&5
15253
15254 ac_header_compiler=no
15255fi
15256
15257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15259echo "${ECHO_T}$ac_header_compiler" >&6; }
15260
15261# Is the header present?
15262{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15264cat >conftest.$ac_ext <<_ACEOF
15265/* confdefs.h. */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
15269/* end confdefs.h. */
15270#include <$ac_header>
15271_ACEOF
15272if { (ac_try="$ac_cpp conftest.$ac_ext"
15273case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276esac
15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15279 ac_status=$?
15280 grep -v '^ *+' conftest.er1 >conftest.err
15281 rm -f conftest.er1
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } >/dev/null; then
15285 if test -s conftest.err; then
15286 ac_cpp_err=$ac_c_preproc_warn_flag
15287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15288 else
15289 ac_cpp_err=
15290 fi
15291else
15292 ac_cpp_err=yes
15293fi
15294if test -z "$ac_cpp_err"; then
15295 ac_header_preproc=yes
15296else
15297 echo "$as_me: failed program was:" >&5
15298sed 's/^/| /' conftest.$ac_ext >&5
15299
15300 ac_header_preproc=no
15301fi
15302
15303rm -f conftest.err conftest.$ac_ext
15304{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15305echo "${ECHO_T}$ac_header_preproc" >&6; }
15306
15307# So? What about this header?
15308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15309 yes:no: )
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15314 ac_header_preproc=yes
15315 ;;
15316 no:yes:* )
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15329 ( cat <<\_ASBOX
15330## ----------------------------------- ##
15331## Report this to llvmbugs@cs.uiuc.edu ##
15332## ----------------------------------- ##
15333_ASBOX
15334 ) | sed "s/^/$as_me: WARNING: /" >&2
15335 ;;
15336esac
15337{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341else
15342 eval "$as_ac_Header=\$ac_header_preproc"
15343fi
15344ac_res=`eval echo '${'$as_ac_Header'}'`
15345 { echo "$as_me:$LINENO: result: $ac_res" >&5
15346echo "${ECHO_T}$ac_res" >&6; }
15347
15348fi
15349if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015350 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015352_ACEOF
15353
15354fi
15355
15356done
15357
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015358
15359for ac_header in valgrind/valgrind.h
15360do
15361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15367fi
15368ac_res=`eval echo '${'$as_ac_Header'}'`
15369 { echo "$as_me:$LINENO: result: $ac_res" >&5
15370echo "${ECHO_T}$ac_res" >&6; }
15371else
15372 # Is the header compilable?
15373{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15375cat >conftest.$ac_ext <<_ACEOF
15376/* confdefs.h. */
15377_ACEOF
15378cat confdefs.h >>conftest.$ac_ext
15379cat >>conftest.$ac_ext <<_ACEOF
15380/* end confdefs.h. */
15381$ac_includes_default
15382#include <$ac_header>
15383_ACEOF
15384rm -f conftest.$ac_objext
15385if { (ac_try="$ac_compile"
15386case "(($ac_try" in
15387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388 *) ac_try_echo=$ac_try;;
15389esac
15390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391 (eval "$ac_compile") 2>conftest.er1
15392 ac_status=$?
15393 grep -v '^ *+' conftest.er1 >conftest.err
15394 rm -f conftest.er1
15395 cat conftest.err >&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
15398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15399 { (case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15402esac
15403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_try") 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try='test -s conftest.$ac_objext'
15409 { (case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15412esac
15413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_try") 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15418 ac_header_compiler=yes
15419else
15420 echo "$as_me: failed program was:" >&5
15421sed 's/^/| /' conftest.$ac_ext >&5
15422
15423 ac_header_compiler=no
15424fi
15425
15426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15428echo "${ECHO_T}$ac_header_compiler" >&6; }
15429
15430# Is the header present?
15431{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15432echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15433cat >conftest.$ac_ext <<_ACEOF
15434/* confdefs.h. */
15435_ACEOF
15436cat confdefs.h >>conftest.$ac_ext
15437cat >>conftest.$ac_ext <<_ACEOF
15438/* end confdefs.h. */
15439#include <$ac_header>
15440_ACEOF
15441if { (ac_try="$ac_cpp conftest.$ac_ext"
15442case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445esac
15446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } >/dev/null; then
15454 if test -s conftest.err; then
15455 ac_cpp_err=$ac_c_preproc_warn_flag
15456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15457 else
15458 ac_cpp_err=
15459 fi
15460else
15461 ac_cpp_err=yes
15462fi
15463if test -z "$ac_cpp_err"; then
15464 ac_header_preproc=yes
15465else
15466 echo "$as_me: failed program was:" >&5
15467sed 's/^/| /' conftest.$ac_ext >&5
15468
15469 ac_header_preproc=no
15470fi
15471
15472rm -f conftest.err conftest.$ac_ext
15473{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15474echo "${ECHO_T}$ac_header_preproc" >&6; }
15475
15476# So? What about this header?
15477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15478 yes:no: )
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15480echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15482echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15483 ac_header_preproc=yes
15484 ;;
15485 no:yes:* )
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15487echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15489echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15491echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15493echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15497echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15498 ( cat <<\_ASBOX
15499## ----------------------------------- ##
15500## Report this to llvmbugs@cs.uiuc.edu ##
15501## ----------------------------------- ##
15502_ASBOX
15503 ) | sed "s/^/$as_me: WARNING: /" >&2
15504 ;;
15505esac
15506{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15510else
15511 eval "$as_ac_Header=\$ac_header_preproc"
15512fi
15513ac_res=`eval echo '${'$as_ac_Header'}'`
15514 { echo "$as_me:$LINENO: result: $ac_res" >&5
15515echo "${ECHO_T}$ac_res" >&6; }
15516
15517fi
15518if test `eval echo '${'$as_ac_Header'}'` = yes; then
15519 cat >>confdefs.h <<_ACEOF
15520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15521_ACEOF
15522
15523fi
15524
15525done
15526
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015527
15528for ac_header in fenv.h
15529do
15530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536fi
15537ac_res=`eval echo '${'$as_ac_Header'}'`
15538 { echo "$as_me:$LINENO: result: $ac_res" >&5
15539echo "${ECHO_T}$ac_res" >&6; }
15540else
15541 # Is the header compilable?
15542{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15544cat >conftest.$ac_ext <<_ACEOF
15545/* confdefs.h. */
15546_ACEOF
15547cat confdefs.h >>conftest.$ac_ext
15548cat >>conftest.$ac_ext <<_ACEOF
15549/* end confdefs.h. */
15550$ac_includes_default
15551#include <$ac_header>
15552_ACEOF
15553rm -f conftest.$ac_objext
15554if { (ac_try="$ac_compile"
15555case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15558esac
15559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_compile") 2>conftest.er1
15561 ac_status=$?
15562 grep -v '^ *+' conftest.er1 >conftest.err
15563 rm -f conftest.er1
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15568 { (case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15571esac
15572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_try") 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; } &&
15577 { ac_try='test -s conftest.$ac_objext'
15578 { (case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15581esac
15582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_try") 2>&5
15584 ac_status=$?
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; }; then
15587 ac_header_compiler=yes
15588else
15589 echo "$as_me: failed program was:" >&5
15590sed 's/^/| /' conftest.$ac_ext >&5
15591
15592 ac_header_compiler=no
15593fi
15594
15595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15596{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15597echo "${ECHO_T}$ac_header_compiler" >&6; }
15598
15599# Is the header present?
15600{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15602cat >conftest.$ac_ext <<_ACEOF
15603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
15608#include <$ac_header>
15609_ACEOF
15610if { (ac_try="$ac_cpp conftest.$ac_ext"
15611case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15614esac
15615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15617 ac_status=$?
15618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } >/dev/null; then
15623 if test -s conftest.err; then
15624 ac_cpp_err=$ac_c_preproc_warn_flag
15625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15626 else
15627 ac_cpp_err=
15628 fi
15629else
15630 ac_cpp_err=yes
15631fi
15632if test -z "$ac_cpp_err"; then
15633 ac_header_preproc=yes
15634else
15635 echo "$as_me: failed program was:" >&5
15636sed 's/^/| /' conftest.$ac_ext >&5
15637
15638 ac_header_preproc=no
15639fi
15640
15641rm -f conftest.err conftest.$ac_ext
15642{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15643echo "${ECHO_T}$ac_header_preproc" >&6; }
15644
15645# So? What about this header?
15646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15647 yes:no: )
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15652 ac_header_preproc=yes
15653 ;;
15654 no:yes:* )
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15667 ( cat <<\_ASBOX
15668## ----------------------------------- ##
15669## Report this to llvmbugs@cs.uiuc.edu ##
15670## ----------------------------------- ##
15671_ASBOX
15672 ) | sed "s/^/$as_me: WARNING: /" >&2
15673 ;;
15674esac
15675{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679else
15680 eval "$as_ac_Header=\$ac_header_preproc"
15681fi
15682ac_res=`eval echo '${'$as_ac_Header'}'`
15683 { echo "$as_me:$LINENO: result: $ac_res" >&5
15684echo "${ECHO_T}$ac_res" >&6; }
15685
15686fi
15687if test `eval echo '${'$as_ac_Header'}'` = yes; then
15688 cat >>confdefs.h <<_ACEOF
15689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15690_ACEOF
15691
15692fi
15693
15694done
15695
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015696if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015697
15698for ac_header in pthread.h
15699do
15700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15706fi
15707ac_res=`eval echo '${'$as_ac_Header'}'`
15708 { echo "$as_me:$LINENO: result: $ac_res" >&5
15709echo "${ECHO_T}$ac_res" >&6; }
15710else
15711 # Is the header compilable?
15712{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15714cat >conftest.$ac_ext <<_ACEOF
15715/* confdefs.h. */
15716_ACEOF
15717cat confdefs.h >>conftest.$ac_ext
15718cat >>conftest.$ac_ext <<_ACEOF
15719/* end confdefs.h. */
15720$ac_includes_default
15721#include <$ac_header>
15722_ACEOF
15723rm -f conftest.$ac_objext
15724if { (ac_try="$ac_compile"
15725case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15728esac
15729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_compile") 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15738 { (case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741esac
15742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_try") 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try='test -s conftest.$ac_objext'
15748 { (case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15751esac
15752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_try") 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_header_compiler=yes
15758else
15759 echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5
15761
15762 ac_header_compiler=no
15763fi
15764
15765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15767echo "${ECHO_T}$ac_header_compiler" >&6; }
15768
15769# Is the header present?
15770{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15772cat >conftest.$ac_ext <<_ACEOF
15773/* confdefs.h. */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
15777/* end confdefs.h. */
15778#include <$ac_header>
15779_ACEOF
15780if { (ac_try="$ac_cpp conftest.$ac_ext"
15781case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15784esac
15785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } >/dev/null; then
15793 if test -s conftest.err; then
15794 ac_cpp_err=$ac_c_preproc_warn_flag
15795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15796 else
15797 ac_cpp_err=
15798 fi
15799else
15800 ac_cpp_err=yes
15801fi
15802if test -z "$ac_cpp_err"; then
15803 ac_header_preproc=yes
15804else
15805 echo "$as_me: failed program was:" >&5
15806sed 's/^/| /' conftest.$ac_ext >&5
15807
15808 ac_header_preproc=no
15809fi
15810
15811rm -f conftest.err conftest.$ac_ext
15812{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15813echo "${ECHO_T}$ac_header_preproc" >&6; }
15814
15815# So? What about this header?
15816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15817 yes:no: )
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15822 ac_header_preproc=yes
15823 ;;
15824 no:yes:* )
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15828echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15832echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15837 ( cat <<\_ASBOX
15838## ----------------------------------- ##
15839## Report this to llvmbugs@cs.uiuc.edu ##
15840## ----------------------------------- ##
15841_ASBOX
15842 ) | sed "s/^/$as_me: WARNING: /" >&2
15843 ;;
15844esac
15845{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15849else
15850 eval "$as_ac_Header=\$ac_header_preproc"
15851fi
15852ac_res=`eval echo '${'$as_ac_Header'}'`
15853 { echo "$as_me:$LINENO: result: $ac_res" >&5
15854echo "${ECHO_T}$ac_res" >&6; }
15855
15856fi
15857if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015858 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015860_ACEOF
15861 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015862
15863else
15864 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015865
15866fi
15867
Reid Spencerbe3e4192007-08-17 05:45:26 +000015868done
Reid Spencer1000b732006-12-01 00:37:14 +000015869
15870else
15871 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015872
15873fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015874
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015875if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015876
15877
15878for ac_header in ffi.h ffi/ffi.h
15879do
15880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886fi
15887ac_res=`eval echo '${'$as_ac_Header'}'`
15888 { echo "$as_me:$LINENO: result: $ac_res" >&5
15889echo "${ECHO_T}$ac_res" >&6; }
15890else
15891 # Is the header compilable?
15892{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15894cat >conftest.$ac_ext <<_ACEOF
15895/* confdefs.h. */
15896_ACEOF
15897cat confdefs.h >>conftest.$ac_ext
15898cat >>conftest.$ac_ext <<_ACEOF
15899/* end confdefs.h. */
15900$ac_includes_default
15901#include <$ac_header>
15902_ACEOF
15903rm -f conftest.$ac_objext
15904if { (ac_try="$ac_compile"
15905case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15908esac
15909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_compile") 2>conftest.er1
15911 ac_status=$?
15912 grep -v '^ *+' conftest.er1 >conftest.err
15913 rm -f conftest.er1
15914 cat conftest.err >&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
15917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15918 { (case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15921esac
15922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_try") 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; } &&
15927 { ac_try='test -s conftest.$ac_objext'
15928 { (case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15931esac
15932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_try") 2>&5
15934 ac_status=$?
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; }; then
15937 ac_header_compiler=yes
15938else
15939 echo "$as_me: failed program was:" >&5
15940sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 ac_header_compiler=no
15943fi
15944
15945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15947echo "${ECHO_T}$ac_header_compiler" >&6; }
15948
15949# Is the header present?
15950{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15952cat >conftest.$ac_ext <<_ACEOF
15953/* confdefs.h. */
15954_ACEOF
15955cat confdefs.h >>conftest.$ac_ext
15956cat >>conftest.$ac_ext <<_ACEOF
15957/* end confdefs.h. */
15958#include <$ac_header>
15959_ACEOF
15960if { (ac_try="$ac_cpp conftest.$ac_ext"
15961case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15964esac
15965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15967 ac_status=$?
15968 grep -v '^ *+' conftest.er1 >conftest.err
15969 rm -f conftest.er1
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } >/dev/null; then
15973 if test -s conftest.err; then
15974 ac_cpp_err=$ac_c_preproc_warn_flag
15975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15976 else
15977 ac_cpp_err=
15978 fi
15979else
15980 ac_cpp_err=yes
15981fi
15982if test -z "$ac_cpp_err"; then
15983 ac_header_preproc=yes
15984else
15985 echo "$as_me: failed program was:" >&5
15986sed 's/^/| /' conftest.$ac_ext >&5
15987
15988 ac_header_preproc=no
15989fi
15990
15991rm -f conftest.err conftest.$ac_ext
15992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15993echo "${ECHO_T}$ac_header_preproc" >&6; }
15994
15995# So? What about this header?
15996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15997 yes:no: )
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16002 ac_header_preproc=yes
16003 ;;
16004 no:yes:* )
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16017 ( cat <<\_ASBOX
16018## ----------------------------------- ##
16019## Report this to llvmbugs@cs.uiuc.edu ##
16020## ----------------------------------- ##
16021_ASBOX
16022 ) | sed "s/^/$as_me: WARNING: /" >&2
16023 ;;
16024esac
16025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16029else
16030 eval "$as_ac_Header=\$ac_header_preproc"
16031fi
16032ac_res=`eval echo '${'$as_ac_Header'}'`
16033 { echo "$as_me:$LINENO: result: $ac_res" >&5
16034echo "${ECHO_T}$ac_res" >&6; }
16035
16036fi
16037if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016038 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016040_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016041
16042fi
16043
16044done
16045
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016046fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016047
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016048
Eric Christopher654dee42010-06-22 21:01:04 +000016049for ac_header in CrashReporterClient.h
16050do
16051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057fi
16058ac_res=`eval echo '${'$as_ac_Header'}'`
16059 { echo "$as_me:$LINENO: result: $ac_res" >&5
16060echo "${ECHO_T}$ac_res" >&6; }
16061else
16062 # Is the header compilable?
16063{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16065cat >conftest.$ac_ext <<_ACEOF
16066/* confdefs.h. */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h. */
16071$ac_includes_default
16072#include <$ac_header>
16073_ACEOF
16074rm -f conftest.$ac_objext
16075if { (ac_try="$ac_compile"
16076case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16079esac
16080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_compile") 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16092esac
16093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try='test -s conftest.$ac_objext'
16099 { (case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16102esac
16103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_try") 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }; then
16108 ac_header_compiler=yes
16109else
16110 echo "$as_me: failed program was:" >&5
16111sed 's/^/| /' conftest.$ac_ext >&5
16112
16113 ac_header_compiler=no
16114fi
16115
16116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118echo "${ECHO_T}$ac_header_compiler" >&6; }
16119
16120# Is the header present?
16121{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16123cat >conftest.$ac_ext <<_ACEOF
16124/* confdefs.h. */
16125_ACEOF
16126cat confdefs.h >>conftest.$ac_ext
16127cat >>conftest.$ac_ext <<_ACEOF
16128/* end confdefs.h. */
16129#include <$ac_header>
16130_ACEOF
16131if { (ac_try="$ac_cpp conftest.$ac_ext"
16132case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16138 ac_status=$?
16139 grep -v '^ *+' conftest.er1 >conftest.err
16140 rm -f conftest.er1
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } >/dev/null; then
16144 if test -s conftest.err; then
16145 ac_cpp_err=$ac_c_preproc_warn_flag
16146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16147 else
16148 ac_cpp_err=
16149 fi
16150else
16151 ac_cpp_err=yes
16152fi
16153if test -z "$ac_cpp_err"; then
16154 ac_header_preproc=yes
16155else
16156 echo "$as_me: failed program was:" >&5
16157sed 's/^/| /' conftest.$ac_ext >&5
16158
16159 ac_header_preproc=no
16160fi
16161
16162rm -f conftest.err conftest.$ac_ext
16163{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16164echo "${ECHO_T}$ac_header_preproc" >&6; }
16165
16166# So? What about this header?
16167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16168 yes:no: )
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16173 ac_header_preproc=yes
16174 ;;
16175 no:yes:* )
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16188 ( cat <<\_ASBOX
16189## ----------------------------------- ##
16190## Report this to llvmbugs@cs.uiuc.edu ##
16191## ----------------------------------- ##
16192_ASBOX
16193 ) | sed "s/^/$as_me: WARNING: /" >&2
16194 ;;
16195esac
16196{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16200else
16201 eval "$as_ac_Header=\$ac_header_preproc"
16202fi
16203ac_res=`eval echo '${'$as_ac_Header'}'`
16204 { echo "$as_me:$LINENO: result: $ac_res" >&5
16205echo "${ECHO_T}$ac_res" >&6; }
16206
16207fi
16208if test `eval echo '${'$as_ac_Header'}'` = yes; then
16209 cat >>confdefs.h <<_ACEOF
16210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16211_ACEOF
16212
16213fi
16214
16215done
16216
16217
Eric Christopher51e57132010-12-07 02:05:42 +000016218{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16219echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016220cat >conftest.$ac_ext <<_ACEOF
16221/* confdefs.h. */
16222_ACEOF
16223cat confdefs.h >>conftest.$ac_ext
16224cat >>conftest.$ac_ext <<_ACEOF
16225/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016226extern const char *__crashreporter_info__;
16227 int main() {
16228 __crashreporter_info__ = "test";
16229 return 0;
16230 }
Eric Christopher481d4022010-12-03 07:45:22 +000016231
Eric Christopher481d4022010-12-03 07:45:22 +000016232_ACEOF
16233rm -f conftest.$ac_objext conftest$ac_exeext
16234if { (ac_try="$ac_link"
16235case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16238esac
16239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_link") 2>conftest.er1
16241 ac_status=$?
16242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16251esac
16252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest$ac_exeext'
16258 { (case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16261esac
16262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_try") 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016267 { echo "$as_me:$LINENO: result: yes" >&5
16268echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016269
16270cat >>confdefs.h <<\_ACEOF
16271#define HAVE_CRASHREPORTER_INFO 1
16272_ACEOF
16273
Eric Christopher51e57132010-12-07 02:05:42 +000016274else
16275 echo "$as_me: failed program was:" >&5
16276sed 's/^/| /' conftest.$ac_ext >&5
16277
16278 { echo "$as_me:$LINENO: result: no" >&5
16279echo "${ECHO_T}no" >&6; }
16280
16281cat >>confdefs.h <<\_ACEOF
16282#define HAVE_CRASHREPORTER_INFO 0
16283_ACEOF
16284
Eric Christopher481d4022010-12-03 07:45:22 +000016285fi
Eric Christopher654dee42010-06-22 21:01:04 +000016286
Eric Christopher51e57132010-12-07 02:05:42 +000016287rm -f core conftest.err conftest.$ac_objext \
16288 conftest$ac_exeext conftest.$ac_ext
16289
16290
Reid Spencer8085cff2005-01-16 02:58:39 +000016291
Torok Edwin871384f2010-01-26 08:50:50 +000016292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016293 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16294echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16295if test "${ac_cv_huge_val_sanity+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016297else
16298
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016299 ac_ext=cpp
16300ac_cpp='$CXXCPP $CPPFLAGS'
16301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016304
Eric Christopherc7718502010-03-02 05:06:54 +000016305 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016306 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016307 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016308 ac_cv_huge_val_sanity=yes
16309else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016310 cat >conftest.$ac_ext <<_ACEOF
16311/* confdefs.h. */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016315/* end confdefs.h. */
16316#include <math.h>
16317int
16318main ()
16319{
16320double x = HUGE_VAL; return x != x;
16321 ;
16322 return 0;
16323}
16324_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016325rm -f conftest$ac_exeext
16326if { (ac_try="$ac_link"
16327case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16330esac
16331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332 (eval "$ac_link") 2>&5
16333 ac_status=$?
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339esac
16340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016345 ac_cv_huge_val_sanity=yes
16346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016347 echo "$as_me: program exited with status $ac_status" >&5
16348echo "$as_me: failed program was:" >&5
16349sed 's/^/| /' conftest.$ac_ext >&5
16350
16351( exit $ac_status )
16352ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016354rm -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 +000016355fi
16356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016357
Eric Christopherc7718502010-03-02 05:06:54 +000016358 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016359 ac_ext=c
16360ac_cpp='$CPP $CPPFLAGS'
16361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16363ac_compiler_gnu=$ac_cv_c_compiler_gnu
16364
16365
16366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016367{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16368echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016369 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16370
16371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016372{ echo "$as_me:$LINENO: checking for pid_t" >&5
16373echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16374if test "${ac_cv_type_pid_t+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16376else
16377 cat >conftest.$ac_ext <<_ACEOF
16378/* confdefs.h. */
16379_ACEOF
16380cat confdefs.h >>conftest.$ac_ext
16381cat >>conftest.$ac_ext <<_ACEOF
16382/* end confdefs.h. */
16383$ac_includes_default
16384typedef pid_t ac__type_new_;
16385int
16386main ()
16387{
16388if ((ac__type_new_ *) 0)
16389 return 0;
16390if (sizeof (ac__type_new_))
16391 return 0;
16392 ;
16393 return 0;
16394}
16395_ACEOF
16396rm -f conftest.$ac_objext
16397if { (ac_try="$ac_compile"
16398case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401esac
16402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_compile") 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16411 { (case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16414esac
16415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_try") 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; } &&
16420 { ac_try='test -s conftest.$ac_objext'
16421 { (case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16424esac
16425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_try") 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_cv_type_pid_t=yes
16431else
16432 echo "$as_me: failed program was:" >&5
16433sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016435 ac_cv_type_pid_t=no
16436fi
16437
16438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439fi
16440{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16441echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16442if test $ac_cv_type_pid_t = yes; then
16443 :
John Criswell7a73b802003-06-30 21:59:07 +000016444else
16445
16446cat >>confdefs.h <<_ACEOF
16447#define pid_t int
16448_ACEOF
16449
16450fi
16451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016452{ echo "$as_me:$LINENO: checking for size_t" >&5
16453echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16454if test "${ac_cv_type_size_t+set}" = set; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16456else
16457 cat >conftest.$ac_ext <<_ACEOF
16458/* confdefs.h. */
16459_ACEOF
16460cat confdefs.h >>conftest.$ac_ext
16461cat >>conftest.$ac_ext <<_ACEOF
16462/* end confdefs.h. */
16463$ac_includes_default
16464typedef size_t ac__type_new_;
16465int
16466main ()
16467{
16468if ((ac__type_new_ *) 0)
16469 return 0;
16470if (sizeof (ac__type_new_))
16471 return 0;
16472 ;
16473 return 0;
16474}
16475_ACEOF
16476rm -f conftest.$ac_objext
16477if { (ac_try="$ac_compile"
16478case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16481esac
16482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_compile") 2>conftest.er1
16484 ac_status=$?
16485 grep -v '^ *+' conftest.er1 >conftest.err
16486 rm -f conftest.er1
16487 cat conftest.err >&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
16490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16500 { ac_try='test -s conftest.$ac_objext'
16501 { (case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16504esac
16505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_try") 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; }; then
16510 ac_cv_type_size_t=yes
16511else
16512 echo "$as_me: failed program was:" >&5
16513sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016515 ac_cv_type_size_t=no
16516fi
16517
16518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16519fi
16520{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16521echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16522if test $ac_cv_type_size_t = yes; then
16523 :
John Criswell7a73b802003-06-30 21:59:07 +000016524else
16525
16526cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016527#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016528_ACEOF
16529
16530fi
16531
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016532
16533cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016534#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016535_ACEOF
16536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016537{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16538echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16539if test "${ac_cv_struct_tm+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016542 cat >conftest.$ac_ext <<_ACEOF
16543/* confdefs.h. */
16544_ACEOF
16545cat confdefs.h >>conftest.$ac_ext
16546cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016547/* end confdefs.h. */
16548#include <sys/types.h>
16549#include <time.h>
16550
16551int
16552main ()
16553{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016554struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016555 ;
16556 return 0;
16557}
16558_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016559rm -f conftest.$ac_objext
16560if { (ac_try="$ac_compile"
16561case "(($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_compile") 2>conftest.er1
16567 ac_status=$?
16568 grep -v '^ *+' conftest.er1 >conftest.err
16569 rm -f conftest.er1
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16574 { (case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16577esac
16578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_try") 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; } &&
16583 { ac_try='test -s conftest.$ac_objext'
16584 { (case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587esac
16588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_try") 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016593 ac_cv_struct_tm=time.h
16594else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016595 echo "$as_me: failed program was:" >&5
16596sed 's/^/| /' conftest.$ac_ext >&5
16597
16598 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016600
Reid Spencera773bd52006-08-04 18:18:08 +000016601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016603{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16604echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016605if test $ac_cv_struct_tm = sys/time.h; then
16606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016607cat >>confdefs.h <<\_ACEOF
16608#define TM_IN_SYS_TIME 1
16609_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016610
16611fi
16612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016613{ echo "$as_me:$LINENO: checking for int64_t" >&5
16614echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16615if test "${ac_cv_type_int64_t+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16617else
16618 cat >conftest.$ac_ext <<_ACEOF
16619/* confdefs.h. */
16620_ACEOF
16621cat confdefs.h >>conftest.$ac_ext
16622cat >>conftest.$ac_ext <<_ACEOF
16623/* end confdefs.h. */
16624$ac_includes_default
16625typedef int64_t ac__type_new_;
16626int
16627main ()
16628{
16629if ((ac__type_new_ *) 0)
16630 return 0;
16631if (sizeof (ac__type_new_))
16632 return 0;
16633 ;
16634 return 0;
16635}
16636_ACEOF
16637rm -f conftest.$ac_objext
16638if { (ac_try="$ac_compile"
16639case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642esac
16643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_compile") 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16652 { (case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16655esac
16656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_try") 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; } &&
16661 { ac_try='test -s conftest.$ac_objext'
16662 { (case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16665esac
16666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_try") 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 ac_cv_type_int64_t=yes
16672else
16673 echo "$as_me: failed program was:" >&5
16674sed 's/^/| /' conftest.$ac_ext >&5
16675
16676 ac_cv_type_int64_t=no
16677fi
16678
16679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680fi
16681{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16682echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16683if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016684
16685cat >>confdefs.h <<_ACEOF
16686#define HAVE_INT64_T 1
16687_ACEOF
16688
16689
16690else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016691 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16692echo "$as_me: error: Type int64_t required but not found" >&2;}
16693 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016694fi
16695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016696{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16697echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16698if test "${ac_cv_type_uint64_t+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16700else
16701 cat >conftest.$ac_ext <<_ACEOF
16702/* confdefs.h. */
16703_ACEOF
16704cat confdefs.h >>conftest.$ac_ext
16705cat >>conftest.$ac_ext <<_ACEOF
16706/* end confdefs.h. */
16707$ac_includes_default
16708typedef uint64_t ac__type_new_;
16709int
16710main ()
16711{
16712if ((ac__type_new_ *) 0)
16713 return 0;
16714if (sizeof (ac__type_new_))
16715 return 0;
16716 ;
16717 return 0;
16718}
16719_ACEOF
16720rm -f conftest.$ac_objext
16721if { (ac_try="$ac_compile"
16722case "(($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_compile") 2>conftest.er1
16728 ac_status=$?
16729 grep -v '^ *+' conftest.er1 >conftest.err
16730 rm -f conftest.er1
16731 cat conftest.err >&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16735 { (case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16738esac
16739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_try") 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
16745 { (case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16748esac
16749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_try") 2>&5
16751 ac_status=$?
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_cv_type_uint64_t=yes
16755else
16756 echo "$as_me: failed program was:" >&5
16757sed 's/^/| /' conftest.$ac_ext >&5
16758
16759 ac_cv_type_uint64_t=no
16760fi
16761
16762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16763fi
16764{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16765echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16766if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016767
16768cat >>confdefs.h <<_ACEOF
16769#define HAVE_UINT64_T 1
16770_ACEOF
16771
16772
16773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016774 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16775echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16776if test "${ac_cv_type_u_int64_t+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778else
16779 cat >conftest.$ac_ext <<_ACEOF
16780/* confdefs.h. */
16781_ACEOF
16782cat confdefs.h >>conftest.$ac_ext
16783cat >>conftest.$ac_ext <<_ACEOF
16784/* end confdefs.h. */
16785$ac_includes_default
16786typedef u_int64_t ac__type_new_;
16787int
16788main ()
16789{
16790if ((ac__type_new_ *) 0)
16791 return 0;
16792if (sizeof (ac__type_new_))
16793 return 0;
16794 ;
16795 return 0;
16796}
16797_ACEOF
16798rm -f conftest.$ac_objext
16799if { (ac_try="$ac_compile"
16800case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16803esac
16804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_compile") 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813 { (case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816esac
16817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_try") 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest.$ac_objext'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826esac
16827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 ac_cv_type_u_int64_t=yes
16833else
16834 echo "$as_me: failed program was:" >&5
16835sed 's/^/| /' conftest.$ac_ext >&5
16836
16837 ac_cv_type_u_int64_t=no
16838fi
16839
16840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841fi
16842{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16843echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16844if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016845
16846cat >>confdefs.h <<_ACEOF
16847#define HAVE_U_INT64_T 1
16848_ACEOF
16849
16850
Misha Brukmanceca9042004-09-02 23:02:30 +000016851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016852 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16853echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16854 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016855fi
16856
John Criswell679ff312004-09-02 18:44:44 +000016857fi
16858
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016859
16860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016861
16862
16863
16864
16865
16866
16867
Reid Spencerdf3be822006-01-23 08:15:53 +000016868for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016869do
16870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16871{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875else
16876 cat >conftest.$ac_ext <<_ACEOF
16877/* confdefs.h. */
16878_ACEOF
16879cat confdefs.h >>conftest.$ac_ext
16880cat >>conftest.$ac_ext <<_ACEOF
16881/* end confdefs.h. */
16882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16884#define $ac_func innocuous_$ac_func
16885
16886/* System header to define __stub macros and hopefully few prototypes,
16887 which can conflict with char $ac_func (); below.
16888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16889 <limits.h> exists even on freestanding compilers. */
16890
16891#ifdef __STDC__
16892# include <limits.h>
16893#else
16894# include <assert.h>
16895#endif
16896
16897#undef $ac_func
16898
16899/* Override any GCC internal prototype to avoid an error.
16900 Use char because int might match the return type of a GCC
16901 builtin and then its argument prototype would still apply. */
16902#ifdef __cplusplus
16903extern "C"
16904#endif
16905char $ac_func ();
16906/* The GNU C library defines this for functions which it implements
16907 to always fail with ENOSYS. Some functions are actually named
16908 something starting with __ and the normal name is an alias. */
16909#if defined __stub_$ac_func || defined __stub___$ac_func
16910choke me
16911#endif
16912
16913int
16914main ()
16915{
16916return $ac_func ();
16917 ;
16918 return 0;
16919}
16920_ACEOF
16921rm -f conftest.$ac_objext conftest$ac_exeext
16922if { (ac_try="$ac_link"
16923case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16926esac
16927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_link") 2>conftest.er1
16929 ac_status=$?
16930 grep -v '^ *+' conftest.er1 >conftest.err
16931 rm -f conftest.er1
16932 cat conftest.err >&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
16935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16936 { (case "(($ac_try" in
16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938 *) ac_try_echo=$ac_try;;
16939esac
16940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941 (eval "$ac_try") 2>&5
16942 ac_status=$?
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; } &&
16945 { ac_try='test -s conftest$ac_exeext'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949esac
16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 eval "$as_ac_var=yes"
16956else
16957 echo "$as_me: failed program was:" >&5
16958sed 's/^/| /' conftest.$ac_ext >&5
16959
16960 eval "$as_ac_var=no"
16961fi
16962
16963rm -f core conftest.err conftest.$ac_objext \
16964 conftest$ac_exeext conftest.$ac_ext
16965fi
16966ac_res=`eval echo '${'$as_ac_var'}'`
16967 { echo "$as_me:$LINENO: result: $ac_res" >&5
16968echo "${ECHO_T}$ac_res" >&6; }
16969if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016970 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016972_ACEOF
16973
16974fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016975done
John Criswell7a73b802003-06-30 21:59:07 +000016976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016977
16978
16979
16980
Reid Spencer96cf5872007-07-13 10:05:30 +000016981for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016982do
16983as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16984{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16985echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16986if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16988else
16989 cat >conftest.$ac_ext <<_ACEOF
16990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
16995/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997#define $ac_func innocuous_$ac_func
16998
16999/* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char $ac_func (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17003
17004#ifdef __STDC__
17005# include <limits.h>
17006#else
17007# include <assert.h>
17008#endif
17009
17010#undef $ac_func
17011
17012/* Override any GCC internal prototype to avoid an error.
17013 Use char because int might match the return type of a GCC
17014 builtin and then its argument prototype would still apply. */
17015#ifdef __cplusplus
17016extern "C"
17017#endif
17018char $ac_func ();
17019/* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022#if defined __stub_$ac_func || defined __stub___$ac_func
17023choke me
17024#endif
17025
17026int
17027main ()
17028{
17029return $ac_func ();
17030 ;
17031 return 0;
17032}
17033_ACEOF
17034rm -f conftest.$ac_objext conftest$ac_exeext
17035if { (ac_try="$ac_link"
17036case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039esac
17040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_link") 2>conftest.er1
17042 ac_status=$?
17043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17049 { (case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052esac
17053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_try") 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; } &&
17058 { ac_try='test -s conftest$ac_exeext'
17059 { (case "(($ac_try" in
17060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061 *) ac_try_echo=$ac_try;;
17062esac
17063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064 (eval "$ac_try") 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 eval "$as_ac_var=yes"
17069else
17070 echo "$as_me: failed program was:" >&5
17071sed 's/^/| /' conftest.$ac_ext >&5
17072
17073 eval "$as_ac_var=no"
17074fi
17075
17076rm -f core conftest.err conftest.$ac_objext \
17077 conftest$ac_exeext conftest.$ac_ext
17078fi
17079ac_res=`eval echo '${'$as_ac_var'}'`
17080 { echo "$as_me:$LINENO: result: $ac_res" >&5
17081echo "${ECHO_T}$ac_res" >&6; }
17082if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017083 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017084#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017085_ACEOF
17086
17087fi
17088done
17089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017090
17091
17092
17093
17094
Reid Spencerb90645c2007-02-16 19:17:20 +000017095for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017096do
17097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17098{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17102else
17103 cat >conftest.$ac_ext <<_ACEOF
17104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
17109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17111#define $ac_func innocuous_$ac_func
17112
17113/* System header to define __stub macros and hopefully few prototypes,
17114 which can conflict with char $ac_func (); below.
17115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17116 <limits.h> exists even on freestanding compilers. */
17117
17118#ifdef __STDC__
17119# include <limits.h>
17120#else
17121# include <assert.h>
17122#endif
17123
17124#undef $ac_func
17125
17126/* Override any GCC internal prototype to avoid an error.
17127 Use char because int might match the return type of a GCC
17128 builtin and then its argument prototype would still apply. */
17129#ifdef __cplusplus
17130extern "C"
17131#endif
17132char $ac_func ();
17133/* The GNU C library defines this for functions which it implements
17134 to always fail with ENOSYS. Some functions are actually named
17135 something starting with __ and the normal name is an alias. */
17136#if defined __stub_$ac_func || defined __stub___$ac_func
17137choke me
17138#endif
17139
17140int
17141main ()
17142{
17143return $ac_func ();
17144 ;
17145 return 0;
17146}
17147_ACEOF
17148rm -f conftest.$ac_objext conftest$ac_exeext
17149if { (ac_try="$ac_link"
17150case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17153esac
17154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_link") 2>conftest.er1
17156 ac_status=$?
17157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
17162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17163 { (case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166esac
17167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_try") 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest$ac_exeext'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176esac
17177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
17182 eval "$as_ac_var=yes"
17183else
17184 echo "$as_me: failed program was:" >&5
17185sed 's/^/| /' conftest.$ac_ext >&5
17186
17187 eval "$as_ac_var=no"
17188fi
17189
17190rm -f core conftest.err conftest.$ac_objext \
17191 conftest$ac_exeext conftest.$ac_ext
17192fi
17193ac_res=`eval echo '${'$as_ac_var'}'`
17194 { echo "$as_me:$LINENO: result: $ac_res" >&5
17195echo "${ECHO_T}$ac_res" >&6; }
17196if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017197 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017199_ACEOF
17200
17201fi
17202done
17203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017204
17205
17206
Reid Spencerb90645c2007-02-16 19:17:20 +000017207for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017208do
17209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17210{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17212if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17214else
17215 cat >conftest.$ac_ext <<_ACEOF
17216/* confdefs.h. */
17217_ACEOF
17218cat confdefs.h >>conftest.$ac_ext
17219cat >>conftest.$ac_ext <<_ACEOF
17220/* end confdefs.h. */
17221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17223#define $ac_func innocuous_$ac_func
17224
17225/* System header to define __stub macros and hopefully few prototypes,
17226 which can conflict with char $ac_func (); below.
17227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17228 <limits.h> exists even on freestanding compilers. */
17229
17230#ifdef __STDC__
17231# include <limits.h>
17232#else
17233# include <assert.h>
17234#endif
17235
17236#undef $ac_func
17237
17238/* Override any GCC internal prototype to avoid an error.
17239 Use char because int might match the return type of a GCC
17240 builtin and then its argument prototype would still apply. */
17241#ifdef __cplusplus
17242extern "C"
17243#endif
17244char $ac_func ();
17245/* The GNU C library defines this for functions which it implements
17246 to always fail with ENOSYS. Some functions are actually named
17247 something starting with __ and the normal name is an alias. */
17248#if defined __stub_$ac_func || defined __stub___$ac_func
17249choke me
17250#endif
17251
17252int
17253main ()
17254{
17255return $ac_func ();
17256 ;
17257 return 0;
17258}
17259_ACEOF
17260rm -f conftest.$ac_objext conftest$ac_exeext
17261if { (ac_try="$ac_link"
17262case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17265esac
17266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_link") 2>conftest.er1
17268 ac_status=$?
17269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } &&
17274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17275 { (case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17278esac
17279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; } &&
17284 { ac_try='test -s conftest$ac_exeext'
17285 { (case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17288esac
17289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 eval "$as_ac_var=yes"
17295else
17296 echo "$as_me: failed program was:" >&5
17297sed 's/^/| /' conftest.$ac_ext >&5
17298
17299 eval "$as_ac_var=no"
17300fi
17301
17302rm -f core conftest.err conftest.$ac_objext \
17303 conftest$ac_exeext conftest.$ac_ext
17304fi
17305ac_res=`eval echo '${'$as_ac_var'}'`
17306 { echo "$as_me:$LINENO: result: $ac_res" >&5
17307echo "${ECHO_T}$ac_res" >&6; }
17308if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017309 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017311_ACEOF
17312
17313fi
17314done
17315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017316
17317
17318
17319
17320
Eric Christophere4291822010-04-16 05:14:21 +000017321
17322for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017323do
17324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17325{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17329else
17330 cat >conftest.$ac_ext <<_ACEOF
17331/* confdefs.h. */
17332_ACEOF
17333cat confdefs.h >>conftest.$ac_ext
17334cat >>conftest.$ac_ext <<_ACEOF
17335/* end confdefs.h. */
17336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17338#define $ac_func innocuous_$ac_func
17339
17340/* System header to define __stub macros and hopefully few prototypes,
17341 which can conflict with char $ac_func (); below.
17342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17343 <limits.h> exists even on freestanding compilers. */
17344
17345#ifdef __STDC__
17346# include <limits.h>
17347#else
17348# include <assert.h>
17349#endif
17350
17351#undef $ac_func
17352
17353/* Override any GCC internal prototype to avoid an error.
17354 Use char because int might match the return type of a GCC
17355 builtin and then its argument prototype would still apply. */
17356#ifdef __cplusplus
17357extern "C"
17358#endif
17359char $ac_func ();
17360/* The GNU C library defines this for functions which it implements
17361 to always fail with ENOSYS. Some functions are actually named
17362 something starting with __ and the normal name is an alias. */
17363#if defined __stub_$ac_func || defined __stub___$ac_func
17364choke me
17365#endif
17366
17367int
17368main ()
17369{
17370return $ac_func ();
17371 ;
17372 return 0;
17373}
17374_ACEOF
17375rm -f conftest.$ac_objext conftest$ac_exeext
17376if { (ac_try="$ac_link"
17377case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_link") 2>conftest.er1
17383 ac_status=$?
17384 grep -v '^ *+' conftest.er1 >conftest.err
17385 rm -f conftest.er1
17386 cat conftest.err >&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393esac
17394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest$ac_exeext'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403esac
17404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 eval "$as_ac_var=yes"
17410else
17411 echo "$as_me: failed program was:" >&5
17412sed 's/^/| /' conftest.$ac_ext >&5
17413
17414 eval "$as_ac_var=no"
17415fi
17416
17417rm -f core conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17419fi
17420ac_res=`eval echo '${'$as_ac_var'}'`
17421 { echo "$as_me:$LINENO: result: $ac_res" >&5
17422echo "${ECHO_T}$ac_res" >&6; }
17423if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017424 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017426_ACEOF
17427
17428fi
17429done
Reid Spencerdf3be822006-01-23 08:15:53 +000017430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017431
17432
17433
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017434for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017435do
17436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17437{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17439if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17441else
17442 cat >conftest.$ac_ext <<_ACEOF
17443/* confdefs.h. */
17444_ACEOF
17445cat confdefs.h >>conftest.$ac_ext
17446cat >>conftest.$ac_ext <<_ACEOF
17447/* end confdefs.h. */
17448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17450#define $ac_func innocuous_$ac_func
17451
17452/* System header to define __stub macros and hopefully few prototypes,
17453 which can conflict with char $ac_func (); below.
17454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17455 <limits.h> exists even on freestanding compilers. */
17456
17457#ifdef __STDC__
17458# include <limits.h>
17459#else
17460# include <assert.h>
17461#endif
17462
17463#undef $ac_func
17464
17465/* Override any GCC internal prototype to avoid an error.
17466 Use char because int might match the return type of a GCC
17467 builtin and then its argument prototype would still apply. */
17468#ifdef __cplusplus
17469extern "C"
17470#endif
17471char $ac_func ();
17472/* The GNU C library defines this for functions which it implements
17473 to always fail with ENOSYS. Some functions are actually named
17474 something starting with __ and the normal name is an alias. */
17475#if defined __stub_$ac_func || defined __stub___$ac_func
17476choke me
17477#endif
17478
17479int
17480main ()
17481{
17482return $ac_func ();
17483 ;
17484 return 0;
17485}
17486_ACEOF
17487rm -f conftest.$ac_objext conftest$ac_exeext
17488if { (ac_try="$ac_link"
17489case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492esac
17493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
17495 ac_status=$?
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505esac
17506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515esac
17516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 eval "$as_ac_var=yes"
17522else
17523 echo "$as_me: failed program was:" >&5
17524sed 's/^/| /' conftest.$ac_ext >&5
17525
17526 eval "$as_ac_var=no"
17527fi
17528
17529rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17531fi
17532ac_res=`eval echo '${'$as_ac_var'}'`
17533 { echo "$as_me:$LINENO: result: $ac_res" >&5
17534echo "${ECHO_T}$ac_res" >&6; }
17535if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017536 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017538_ACEOF
17539
17540fi
17541done
17542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017543
17544
17545
17546
Chris Lattner511f11d2005-11-14 07:25:50 +000017547for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017548do
17549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17550{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17553 echo $ECHO_N "(cached) $ECHO_C" >&6
17554else
17555 cat >conftest.$ac_ext <<_ACEOF
17556/* confdefs.h. */
17557_ACEOF
17558cat confdefs.h >>conftest.$ac_ext
17559cat >>conftest.$ac_ext <<_ACEOF
17560/* end confdefs.h. */
17561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17563#define $ac_func innocuous_$ac_func
17564
17565/* System header to define __stub macros and hopefully few prototypes,
17566 which can conflict with char $ac_func (); below.
17567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17568 <limits.h> exists even on freestanding compilers. */
17569
17570#ifdef __STDC__
17571# include <limits.h>
17572#else
17573# include <assert.h>
17574#endif
17575
17576#undef $ac_func
17577
17578/* Override any GCC internal prototype to avoid an error.
17579 Use char because int might match the return type of a GCC
17580 builtin and then its argument prototype would still apply. */
17581#ifdef __cplusplus
17582extern "C"
17583#endif
17584char $ac_func ();
17585/* The GNU C library defines this for functions which it implements
17586 to always fail with ENOSYS. Some functions are actually named
17587 something starting with __ and the normal name is an alias. */
17588#if defined __stub_$ac_func || defined __stub___$ac_func
17589choke me
17590#endif
17591
17592int
17593main ()
17594{
17595return $ac_func ();
17596 ;
17597 return 0;
17598}
17599_ACEOF
17600rm -f conftest.$ac_objext conftest$ac_exeext
17601if { (ac_try="$ac_link"
17602case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17605esac
17606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_link") 2>conftest.er1
17608 ac_status=$?
17609 grep -v '^ *+' conftest.er1 >conftest.err
17610 rm -f conftest.er1
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17615 { (case "(($ac_try" in
17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617 *) ac_try_echo=$ac_try;;
17618esac
17619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_try") 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest$ac_exeext'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628esac
17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 eval "$as_ac_var=yes"
17635else
17636 echo "$as_me: failed program was:" >&5
17637sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 eval "$as_ac_var=no"
17640fi
17641
17642rm -f core conftest.err conftest.$ac_objext \
17643 conftest$ac_exeext conftest.$ac_ext
17644fi
17645ac_res=`eval echo '${'$as_ac_var'}'`
17646 { echo "$as_me:$LINENO: result: $ac_res" >&5
17647echo "${ECHO_T}$ac_res" >&6; }
17648if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017649 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017651_ACEOF
17652
17653fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017654done
John Criswell7a73b802003-06-30 21:59:07 +000017655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017656
17657
17658
17659
Daniel Dunbar3e462932011-02-03 02:40:02 +000017660
17661for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017662do
17663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17664{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17666if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668else
17669 cat >conftest.$ac_ext <<_ACEOF
17670/* confdefs.h. */
17671_ACEOF
17672cat confdefs.h >>conftest.$ac_ext
17673cat >>conftest.$ac_ext <<_ACEOF
17674/* end confdefs.h. */
17675/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17677#define $ac_func innocuous_$ac_func
17678
17679/* System header to define __stub macros and hopefully few prototypes,
17680 which can conflict with char $ac_func (); below.
17681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17682 <limits.h> exists even on freestanding compilers. */
17683
17684#ifdef __STDC__
17685# include <limits.h>
17686#else
17687# include <assert.h>
17688#endif
17689
17690#undef $ac_func
17691
17692/* Override any GCC internal prototype to avoid an error.
17693 Use char because int might match the return type of a GCC
17694 builtin and then its argument prototype would still apply. */
17695#ifdef __cplusplus
17696extern "C"
17697#endif
17698char $ac_func ();
17699/* The GNU C library defines this for functions which it implements
17700 to always fail with ENOSYS. Some functions are actually named
17701 something starting with __ and the normal name is an alias. */
17702#if defined __stub_$ac_func || defined __stub___$ac_func
17703choke me
17704#endif
17705
17706int
17707main ()
17708{
17709return $ac_func ();
17710 ;
17711 return 0;
17712}
17713_ACEOF
17714rm -f conftest.$ac_objext conftest$ac_exeext
17715if { (ac_try="$ac_link"
17716case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719esac
17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_link") 2>conftest.er1
17722 ac_status=$?
17723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
17728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17729 { (case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17732esac
17733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_try") 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; } &&
17738 { ac_try='test -s conftest$ac_exeext'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742esac
17743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; }; then
17748 eval "$as_ac_var=yes"
17749else
17750 echo "$as_me: failed program was:" >&5
17751sed 's/^/| /' conftest.$ac_ext >&5
17752
17753 eval "$as_ac_var=no"
17754fi
17755
17756rm -f core conftest.err conftest.$ac_objext \
17757 conftest$ac_exeext conftest.$ac_ext
17758fi
17759ac_res=`eval echo '${'$as_ac_var'}'`
17760 { echo "$as_me:$LINENO: result: $ac_res" >&5
17761echo "${ECHO_T}$ac_res" >&6; }
17762if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017763 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017764#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017765_ACEOF
17766
17767fi
17768done
17769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017770{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17771echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17772if test "${llvm_cv_c_printf_a+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017774else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017775 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017776ac_cpp='$CPP $CPPFLAGS'
17777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17779ac_compiler_gnu=$ac_cv_c_compiler_gnu
17780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017781 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017782 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017784 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017786 /* confdefs.h. */
17787_ACEOF
17788cat confdefs.h >>conftest.$ac_ext
17789cat >>conftest.$ac_ext <<_ACEOF
17790/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017791
John Criswella0137d32003-10-13 16:22:01 +000017792#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017793#include <stdlib.h>
17794
John Criswella0137d32003-10-13 16:22:01 +000017795int
17796main ()
17797{
17798
Reid Spencer2706f8c2004-09-19 23:53:36 +000017799volatile double A, B;
17800char Buffer[100];
17801A = 1;
17802A /= 10.0;
17803sprintf(Buffer, "%a", A);
17804B = atof(Buffer);
17805if (A != B)
17806 return (1);
17807if (A != 0x1.999999999999ap-4)
17808 return (1);
17809return (0);
John Criswella0137d32003-10-13 16:22:01 +000017810 ;
17811 return 0;
17812}
17813_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017814rm -f conftest$ac_exeext
17815if { (ac_try="$ac_link"
17816case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819esac
17820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_link") 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17828esac
17829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017834 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017836 echo "$as_me: program exited with status $ac_status" >&5
17837echo "$as_me: failed program was:" >&5
17838sed 's/^/| /' conftest.$ac_ext >&5
17839
17840( exit $ac_status )
17841llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017843rm -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 +000017844fi
Reid Spencera773bd52006-08-04 18:18:08 +000017845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017846
Reid Spencer2706f8c2004-09-19 23:53:36 +000017847 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017848ac_cpp='$CPP $CPPFLAGS'
17849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17851ac_compiler_gnu=$ac_cv_c_compiler_gnu
17852
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017853fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017854{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17855echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017856 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017858cat >>confdefs.h <<\_ACEOF
17859#define HAVE_PRINTF_A 1
17860_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017861
Reid Spencer2706f8c2004-09-19 23:53:36 +000017862 fi
John Criswella0137d32003-10-13 16:22:01 +000017863
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017865{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17866echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17867if test "${ac_cv_func_rand48+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017869else
Reid Spencera773bd52006-08-04 18:18:08 +000017870 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017871ac_cpp='$CXXCPP $CPPFLAGS'
17872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017876 cat >conftest.$ac_ext <<_ACEOF
17877/* confdefs.h. */
17878_ACEOF
17879cat confdefs.h >>conftest.$ac_ext
17880cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017881/* end confdefs.h. */
17882#include <stdlib.h>
17883int
17884main ()
17885{
17886srand48(0);lrand48();drand48();
17887 ;
17888 return 0;
17889}
17890_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017891rm -f conftest.$ac_objext
17892if { (ac_try="$ac_compile"
17893case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896esac
17897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_compile") 2>conftest.er1
17899 ac_status=$?
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17906 { (case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17909esac
17910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_try") 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; } &&
17915 { ac_try='test -s conftest.$ac_objext'
17916 { (case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919esac
17920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_try") 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017925 ac_cv_func_rand48=yes
17926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017927 echo "$as_me: failed program was:" >&5
17928sed 's/^/| /' conftest.$ac_ext >&5
17929
17930 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017932
Reid Spencera773bd52006-08-04 18:18:08 +000017933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017934 ac_ext=c
17935ac_cpp='$CPP $CPPFLAGS'
17936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17938ac_compiler_gnu=$ac_cv_c_compiler_gnu
17939
17940fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017941{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17942echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017943
17944if test "$ac_cv_func_rand48" = "yes" ; then
17945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017946cat >>confdefs.h <<\_ACEOF
17947#define HAVE_RAND48 1
17948_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017949
17950fi
John Criswell0021c312004-02-13 21:57:29 +000017951
17952
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017953{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17954echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17955if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957else
17958 cat >conftest.$ac_ext <<_ACEOF
17959/* confdefs.h. */
17960_ACEOF
17961cat confdefs.h >>conftest.$ac_ext
17962cat >>conftest.$ac_ext <<_ACEOF
17963/* end confdefs.h. */
17964$ac_includes_default
17965int
17966main ()
17967{
17968#ifndef strerror_s
17969 char *p = (char *) strerror_s;
17970 return !p;
17971#endif
17972
17973 ;
17974 return 0;
17975}
17976_ACEOF
17977rm -f conftest.$ac_objext
17978if { (ac_try="$ac_compile"
17979case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17982esac
17983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_compile") 2>conftest.er1
17985 ac_status=$?
17986 grep -v '^ *+' conftest.er1 >conftest.err
17987 rm -f conftest.er1
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995esac
17996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18005esac
18006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_have_decl_strerror_s=yes
18012else
18013 echo "$as_me: failed program was:" >&5
18014sed 's/^/| /' conftest.$ac_ext >&5
18015
18016 ac_cv_have_decl_strerror_s=no
18017fi
18018
18019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020fi
18021{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18022echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18023if test $ac_cv_have_decl_strerror_s = yes; then
18024
18025cat >>confdefs.h <<_ACEOF
18026#define HAVE_DECL_STRERROR_S 1
18027_ACEOF
18028
18029
18030else
18031 cat >>confdefs.h <<_ACEOF
18032#define HAVE_DECL_STRERROR_S 0
18033_ACEOF
18034
18035
18036fi
18037
18038
18039
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018040if test "$llvm_cv_os_type" = "MingW" ; then
18041 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18042echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18043if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18045else
18046 ac_check_lib_save_LIBS=$LIBS
18047LIBS="-lgcc $LIBS"
18048cat >conftest.$ac_ext <<_ACEOF
18049/* confdefs.h. */
18050_ACEOF
18051cat confdefs.h >>conftest.$ac_ext
18052cat >>conftest.$ac_ext <<_ACEOF
18053/* end confdefs.h. */
18054
18055/* Override any GCC internal prototype to avoid an error.
18056 Use char because int might match the return type of a GCC
18057 builtin and then its argument prototype would still apply. */
18058#ifdef __cplusplus
18059extern "C"
18060#endif
18061char _alloca ();
18062int
18063main ()
18064{
18065return _alloca ();
18066 ;
18067 return 0;
18068}
18069_ACEOF
18070rm -f conftest.$ac_objext conftest$ac_exeext
18071if { (ac_try="$ac_link"
18072case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18075esac
18076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077 (eval "$ac_link") 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
18084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18088esac
18089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest$ac_exeext'
18095 { (case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18098esac
18099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100 (eval "$ac_try") 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 ac_cv_lib_gcc__alloca=yes
18105else
18106 echo "$as_me: failed program was:" >&5
18107sed 's/^/| /' conftest.$ac_ext >&5
18108
18109 ac_cv_lib_gcc__alloca=no
18110fi
18111
18112rm -f core conftest.err conftest.$ac_objext \
18113 conftest$ac_exeext conftest.$ac_ext
18114LIBS=$ac_check_lib_save_LIBS
18115fi
18116{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18117echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18118if test $ac_cv_lib_gcc__alloca = yes; then
18119
18120cat >>confdefs.h <<\_ACEOF
18121#define HAVE__ALLOCA 1
18122_ACEOF
18123
18124fi
18125
18126 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18127echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18128if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18130else
18131 ac_check_lib_save_LIBS=$LIBS
18132LIBS="-lgcc $LIBS"
18133cat >conftest.$ac_ext <<_ACEOF
18134/* confdefs.h. */
18135_ACEOF
18136cat confdefs.h >>conftest.$ac_ext
18137cat >>conftest.$ac_ext <<_ACEOF
18138/* end confdefs.h. */
18139
18140/* Override any GCC internal prototype to avoid an error.
18141 Use char because int might match the return type of a GCC
18142 builtin and then its argument prototype would still apply. */
18143#ifdef __cplusplus
18144extern "C"
18145#endif
18146char __alloca ();
18147int
18148main ()
18149{
18150return __alloca ();
18151 ;
18152 return 0;
18153}
18154_ACEOF
18155rm -f conftest.$ac_objext conftest$ac_exeext
18156if { (ac_try="$ac_link"
18157case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18160esac
18161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_link") 2>conftest.er1
18163 ac_status=$?
18164 grep -v '^ *+' conftest.er1 >conftest.err
18165 rm -f conftest.er1
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
18169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18170 { (case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18173esac
18174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_try") 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest$ac_exeext'
18180 { (case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18183esac
18184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_try") 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18189 ac_cv_lib_gcc___alloca=yes
18190else
18191 echo "$as_me: failed program was:" >&5
18192sed 's/^/| /' conftest.$ac_ext >&5
18193
18194 ac_cv_lib_gcc___alloca=no
18195fi
18196
18197rm -f core conftest.err conftest.$ac_objext \
18198 conftest$ac_exeext conftest.$ac_ext
18199LIBS=$ac_check_lib_save_LIBS
18200fi
18201{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18202echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18203if test $ac_cv_lib_gcc___alloca = yes; then
18204
18205cat >>confdefs.h <<\_ACEOF
18206#define HAVE___ALLOCA 1
18207_ACEOF
18208
18209fi
18210
18211 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18212echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18213if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18215else
18216 ac_check_lib_save_LIBS=$LIBS
18217LIBS="-lgcc $LIBS"
18218cat >conftest.$ac_ext <<_ACEOF
18219/* confdefs.h. */
18220_ACEOF
18221cat confdefs.h >>conftest.$ac_ext
18222cat >>conftest.$ac_ext <<_ACEOF
18223/* end confdefs.h. */
18224
18225/* Override any GCC internal prototype to avoid an error.
18226 Use char because int might match the return type of a GCC
18227 builtin and then its argument prototype would still apply. */
18228#ifdef __cplusplus
18229extern "C"
18230#endif
18231char __chkstk ();
18232int
18233main ()
18234{
18235return __chkstk ();
18236 ;
18237 return 0;
18238}
18239_ACEOF
18240rm -f conftest.$ac_objext conftest$ac_exeext
18241if { (ac_try="$ac_link"
18242case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18245esac
18246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_link") 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18255 { (case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18258esac
18259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_try") 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; } &&
18264 { ac_try='test -s conftest$ac_exeext'
18265 { (case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18268esac
18269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_try") 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18274 ac_cv_lib_gcc___chkstk=yes
18275else
18276 echo "$as_me: failed program was:" >&5
18277sed 's/^/| /' conftest.$ac_ext >&5
18278
18279 ac_cv_lib_gcc___chkstk=no
18280fi
18281
18282rm -f core conftest.err conftest.$ac_objext \
18283 conftest$ac_exeext conftest.$ac_ext
18284LIBS=$ac_check_lib_save_LIBS
18285fi
18286{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18287echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18288if test $ac_cv_lib_gcc___chkstk = yes; then
18289
18290cat >>confdefs.h <<\_ACEOF
18291#define HAVE___CHKSTK 1
18292_ACEOF
18293
18294fi
18295
18296 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18297echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18298if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300else
18301 ac_check_lib_save_LIBS=$LIBS
18302LIBS="-lgcc $LIBS"
18303cat >conftest.$ac_ext <<_ACEOF
18304/* confdefs.h. */
18305_ACEOF
18306cat confdefs.h >>conftest.$ac_ext
18307cat >>conftest.$ac_ext <<_ACEOF
18308/* end confdefs.h. */
18309
18310/* Override any GCC internal prototype to avoid an error.
18311 Use char because int might match the return type of a GCC
18312 builtin and then its argument prototype would still apply. */
18313#ifdef __cplusplus
18314extern "C"
18315#endif
18316char ___chkstk ();
18317int
18318main ()
18319{
18320return ___chkstk ();
18321 ;
18322 return 0;
18323}
18324_ACEOF
18325rm -f conftest.$ac_objext conftest$ac_exeext
18326if { (ac_try="$ac_link"
18327case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330esac
18331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_link") 2>conftest.er1
18333 ac_status=$?
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
18339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18340 { (case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18343esac
18344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_try") 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest$ac_exeext'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353esac
18354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
18359 ac_cv_lib_gcc____chkstk=yes
18360else
18361 echo "$as_me: failed program was:" >&5
18362sed 's/^/| /' conftest.$ac_ext >&5
18363
18364 ac_cv_lib_gcc____chkstk=no
18365fi
18366
18367rm -f core conftest.err conftest.$ac_objext \
18368 conftest$ac_exeext conftest.$ac_ext
18369LIBS=$ac_check_lib_save_LIBS
18370fi
18371{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18372echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18373if test $ac_cv_lib_gcc____chkstk = yes; then
18374
18375cat >>confdefs.h <<\_ACEOF
18376#define HAVE____CHKSTK 1
18377_ACEOF
18378
18379fi
18380
18381
18382 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18383echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18384if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18386else
18387 ac_check_lib_save_LIBS=$LIBS
18388LIBS="-lgcc $LIBS"
18389cat >conftest.$ac_ext <<_ACEOF
18390/* confdefs.h. */
18391_ACEOF
18392cat confdefs.h >>conftest.$ac_ext
18393cat >>conftest.$ac_ext <<_ACEOF
18394/* end confdefs.h. */
18395
18396/* Override any GCC internal prototype to avoid an error.
18397 Use char because int might match the return type of a GCC
18398 builtin and then its argument prototype would still apply. */
18399#ifdef __cplusplus
18400extern "C"
18401#endif
18402char __ashldi3 ();
18403int
18404main ()
18405{
18406return __ashldi3 ();
18407 ;
18408 return 0;
18409}
18410_ACEOF
18411rm -f conftest.$ac_objext conftest$ac_exeext
18412if { (ac_try="$ac_link"
18413case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18416esac
18417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_link") 2>conftest.er1
18419 ac_status=$?
18420 grep -v '^ *+' conftest.er1 >conftest.err
18421 rm -f conftest.er1
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
18425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18426 { (case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18429esac
18430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_try") 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } &&
18435 { ac_try='test -s conftest$ac_exeext'
18436 { (case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18439esac
18440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_try") 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 ac_cv_lib_gcc___ashldi3=yes
18446else
18447 echo "$as_me: failed program was:" >&5
18448sed 's/^/| /' conftest.$ac_ext >&5
18449
18450 ac_cv_lib_gcc___ashldi3=no
18451fi
18452
18453rm -f core conftest.err conftest.$ac_objext \
18454 conftest$ac_exeext conftest.$ac_ext
18455LIBS=$ac_check_lib_save_LIBS
18456fi
18457{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18458echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18459if test $ac_cv_lib_gcc___ashldi3 = yes; then
18460
18461cat >>confdefs.h <<\_ACEOF
18462#define HAVE___ASHLDI3 1
18463_ACEOF
18464
18465fi
18466
18467 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18468echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18469if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18471else
18472 ac_check_lib_save_LIBS=$LIBS
18473LIBS="-lgcc $LIBS"
18474cat >conftest.$ac_ext <<_ACEOF
18475/* confdefs.h. */
18476_ACEOF
18477cat confdefs.h >>conftest.$ac_ext
18478cat >>conftest.$ac_ext <<_ACEOF
18479/* end confdefs.h. */
18480
18481/* Override any GCC internal prototype to avoid an error.
18482 Use char because int might match the return type of a GCC
18483 builtin and then its argument prototype would still apply. */
18484#ifdef __cplusplus
18485extern "C"
18486#endif
18487char __ashrdi3 ();
18488int
18489main ()
18490{
18491return __ashrdi3 ();
18492 ;
18493 return 0;
18494}
18495_ACEOF
18496rm -f conftest.$ac_objext conftest$ac_exeext
18497if { (ac_try="$ac_link"
18498case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501esac
18502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_link") 2>conftest.er1
18504 ac_status=$?
18505 grep -v '^ *+' conftest.er1 >conftest.err
18506 rm -f conftest.er1
18507 cat conftest.err >&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
18510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18511 { (case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514esac
18515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_try") 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try='test -s conftest$ac_exeext'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18524esac
18525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18530 ac_cv_lib_gcc___ashrdi3=yes
18531else
18532 echo "$as_me: failed program was:" >&5
18533sed 's/^/| /' conftest.$ac_ext >&5
18534
18535 ac_cv_lib_gcc___ashrdi3=no
18536fi
18537
18538rm -f core conftest.err conftest.$ac_objext \
18539 conftest$ac_exeext conftest.$ac_ext
18540LIBS=$ac_check_lib_save_LIBS
18541fi
18542{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18543echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18544if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18545
18546cat >>confdefs.h <<\_ACEOF
18547#define HAVE___ASHRDI3 1
18548_ACEOF
18549
18550fi
18551
18552 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18553echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18554if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18556else
18557 ac_check_lib_save_LIBS=$LIBS
18558LIBS="-lgcc $LIBS"
18559cat >conftest.$ac_ext <<_ACEOF
18560/* confdefs.h. */
18561_ACEOF
18562cat confdefs.h >>conftest.$ac_ext
18563cat >>conftest.$ac_ext <<_ACEOF
18564/* end confdefs.h. */
18565
18566/* Override any GCC internal prototype to avoid an error.
18567 Use char because int might match the return type of a GCC
18568 builtin and then its argument prototype would still apply. */
18569#ifdef __cplusplus
18570extern "C"
18571#endif
18572char __divdi3 ();
18573int
18574main ()
18575{
18576return __divdi3 ();
18577 ;
18578 return 0;
18579}
18580_ACEOF
18581rm -f conftest.$ac_objext conftest$ac_exeext
18582if { (ac_try="$ac_link"
18583case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18586esac
18587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_link") 2>conftest.er1
18589 ac_status=$?
18590 grep -v '^ *+' conftest.er1 >conftest.err
18591 rm -f conftest.er1
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18596 { (case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18599esac
18600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_try") 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; } &&
18605 { ac_try='test -s conftest$ac_exeext'
18606 { (case "(($ac_try" in
18607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608 *) ac_try_echo=$ac_try;;
18609esac
18610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611 (eval "$ac_try") 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 ac_cv_lib_gcc___divdi3=yes
18616else
18617 echo "$as_me: failed program was:" >&5
18618sed 's/^/| /' conftest.$ac_ext >&5
18619
18620 ac_cv_lib_gcc___divdi3=no
18621fi
18622
18623rm -f core conftest.err conftest.$ac_objext \
18624 conftest$ac_exeext conftest.$ac_ext
18625LIBS=$ac_check_lib_save_LIBS
18626fi
18627{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18628echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18629if test $ac_cv_lib_gcc___divdi3 = yes; then
18630
18631cat >>confdefs.h <<\_ACEOF
18632#define HAVE___DIVDI3 1
18633_ACEOF
18634
18635fi
18636
18637 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18638echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18639if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18641else
18642 ac_check_lib_save_LIBS=$LIBS
18643LIBS="-lgcc $LIBS"
18644cat >conftest.$ac_ext <<_ACEOF
18645/* confdefs.h. */
18646_ACEOF
18647cat confdefs.h >>conftest.$ac_ext
18648cat >>conftest.$ac_ext <<_ACEOF
18649/* end confdefs.h. */
18650
18651/* Override any GCC internal prototype to avoid an error.
18652 Use char because int might match the return type of a GCC
18653 builtin and then its argument prototype would still apply. */
18654#ifdef __cplusplus
18655extern "C"
18656#endif
18657char __fixdfdi ();
18658int
18659main ()
18660{
18661return __fixdfdi ();
18662 ;
18663 return 0;
18664}
18665_ACEOF
18666rm -f conftest.$ac_objext conftest$ac_exeext
18667if { (ac_try="$ac_link"
18668case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18671esac
18672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_link") 2>conftest.er1
18674 ac_status=$?
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18681 { (case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18684esac
18685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_try") 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; } &&
18690 { ac_try='test -s conftest$ac_exeext'
18691 { (case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18694esac
18695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_try") 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 ac_cv_lib_gcc___fixdfdi=yes
18701else
18702 echo "$as_me: failed program was:" >&5
18703sed 's/^/| /' conftest.$ac_ext >&5
18704
18705 ac_cv_lib_gcc___fixdfdi=no
18706fi
18707
18708rm -f core conftest.err conftest.$ac_objext \
18709 conftest$ac_exeext conftest.$ac_ext
18710LIBS=$ac_check_lib_save_LIBS
18711fi
18712{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18713echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18714if test $ac_cv_lib_gcc___fixdfdi = yes; then
18715
18716cat >>confdefs.h <<\_ACEOF
18717#define HAVE___FIXDFDI 1
18718_ACEOF
18719
18720fi
18721
18722 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18723echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18724if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18726else
18727 ac_check_lib_save_LIBS=$LIBS
18728LIBS="-lgcc $LIBS"
18729cat >conftest.$ac_ext <<_ACEOF
18730/* confdefs.h. */
18731_ACEOF
18732cat confdefs.h >>conftest.$ac_ext
18733cat >>conftest.$ac_ext <<_ACEOF
18734/* end confdefs.h. */
18735
18736/* Override any GCC internal prototype to avoid an error.
18737 Use char because int might match the return type of a GCC
18738 builtin and then its argument prototype would still apply. */
18739#ifdef __cplusplus
18740extern "C"
18741#endif
18742char __fixsfdi ();
18743int
18744main ()
18745{
18746return __fixsfdi ();
18747 ;
18748 return 0;
18749}
18750_ACEOF
18751rm -f conftest.$ac_objext conftest$ac_exeext
18752if { (ac_try="$ac_link"
18753case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18756esac
18757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_link") 2>conftest.er1
18759 ac_status=$?
18760 grep -v '^ *+' conftest.er1 >conftest.err
18761 rm -f conftest.er1
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } &&
18765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18766 { (case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18769esac
18770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_try") 2>&5
18772 ac_status=$?
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; } &&
18775 { ac_try='test -s conftest$ac_exeext'
18776 { (case "(($ac_try" in
18777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18778 *) ac_try_echo=$ac_try;;
18779esac
18780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781 (eval "$ac_try") 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_cv_lib_gcc___fixsfdi=yes
18786else
18787 echo "$as_me: failed program was:" >&5
18788sed 's/^/| /' conftest.$ac_ext >&5
18789
18790 ac_cv_lib_gcc___fixsfdi=no
18791fi
18792
18793rm -f core conftest.err conftest.$ac_objext \
18794 conftest$ac_exeext conftest.$ac_ext
18795LIBS=$ac_check_lib_save_LIBS
18796fi
18797{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18798echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18799if test $ac_cv_lib_gcc___fixsfdi = yes; then
18800
18801cat >>confdefs.h <<\_ACEOF
18802#define HAVE___FIXSFDI 1
18803_ACEOF
18804
18805fi
18806
18807 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18808echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18809if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18811else
18812 ac_check_lib_save_LIBS=$LIBS
18813LIBS="-lgcc $LIBS"
18814cat >conftest.$ac_ext <<_ACEOF
18815/* confdefs.h. */
18816_ACEOF
18817cat confdefs.h >>conftest.$ac_ext
18818cat >>conftest.$ac_ext <<_ACEOF
18819/* end confdefs.h. */
18820
18821/* Override any GCC internal prototype to avoid an error.
18822 Use char because int might match the return type of a GCC
18823 builtin and then its argument prototype would still apply. */
18824#ifdef __cplusplus
18825extern "C"
18826#endif
18827char __floatdidf ();
18828int
18829main ()
18830{
18831return __floatdidf ();
18832 ;
18833 return 0;
18834}
18835_ACEOF
18836rm -f conftest.$ac_objext conftest$ac_exeext
18837if { (ac_try="$ac_link"
18838case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18841esac
18842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_link") 2>conftest.er1
18844 ac_status=$?
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18854esac
18855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; } &&
18860 { ac_try='test -s conftest$ac_exeext'
18861 { (case "(($ac_try" in
18862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863 *) ac_try_echo=$ac_try;;
18864esac
18865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866 (eval "$ac_try") 2>&5
18867 ac_status=$?
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; }; then
18870 ac_cv_lib_gcc___floatdidf=yes
18871else
18872 echo "$as_me: failed program was:" >&5
18873sed 's/^/| /' conftest.$ac_ext >&5
18874
18875 ac_cv_lib_gcc___floatdidf=no
18876fi
18877
18878rm -f core conftest.err conftest.$ac_objext \
18879 conftest$ac_exeext conftest.$ac_ext
18880LIBS=$ac_check_lib_save_LIBS
18881fi
18882{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18883echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18884if test $ac_cv_lib_gcc___floatdidf = yes; then
18885
18886cat >>confdefs.h <<\_ACEOF
18887#define HAVE___FLOATDIDF 1
18888_ACEOF
18889
18890fi
18891
18892 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18893echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18894if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18895 echo $ECHO_N "(cached) $ECHO_C" >&6
18896else
18897 ac_check_lib_save_LIBS=$LIBS
18898LIBS="-lgcc $LIBS"
18899cat >conftest.$ac_ext <<_ACEOF
18900/* confdefs.h. */
18901_ACEOF
18902cat confdefs.h >>conftest.$ac_ext
18903cat >>conftest.$ac_ext <<_ACEOF
18904/* end confdefs.h. */
18905
18906/* Override any GCC internal prototype to avoid an error.
18907 Use char because int might match the return type of a GCC
18908 builtin and then its argument prototype would still apply. */
18909#ifdef __cplusplus
18910extern "C"
18911#endif
18912char __lshrdi3 ();
18913int
18914main ()
18915{
18916return __lshrdi3 ();
18917 ;
18918 return 0;
18919}
18920_ACEOF
18921rm -f conftest.$ac_objext conftest$ac_exeext
18922if { (ac_try="$ac_link"
18923case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18926esac
18927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_link") 2>conftest.er1
18929 ac_status=$?
18930 grep -v '^ *+' conftest.er1 >conftest.err
18931 rm -f conftest.er1
18932 cat conftest.err >&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
18935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939esac
18940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } &&
18945 { ac_try='test -s conftest$ac_exeext'
18946 { (case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18949esac
18950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951 (eval "$ac_try") 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 ac_cv_lib_gcc___lshrdi3=yes
18956else
18957 echo "$as_me: failed program was:" >&5
18958sed 's/^/| /' conftest.$ac_ext >&5
18959
18960 ac_cv_lib_gcc___lshrdi3=no
18961fi
18962
18963rm -f core conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext conftest.$ac_ext
18965LIBS=$ac_check_lib_save_LIBS
18966fi
18967{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18968echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18969if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18970
18971cat >>confdefs.h <<\_ACEOF
18972#define HAVE___LSHRDI3 1
18973_ACEOF
18974
18975fi
18976
18977 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18978echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18979if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18981else
18982 ac_check_lib_save_LIBS=$LIBS
18983LIBS="-lgcc $LIBS"
18984cat >conftest.$ac_ext <<_ACEOF
18985/* confdefs.h. */
18986_ACEOF
18987cat confdefs.h >>conftest.$ac_ext
18988cat >>conftest.$ac_ext <<_ACEOF
18989/* end confdefs.h. */
18990
18991/* Override any GCC internal prototype to avoid an error.
18992 Use char because int might match the return type of a GCC
18993 builtin and then its argument prototype would still apply. */
18994#ifdef __cplusplus
18995extern "C"
18996#endif
18997char __moddi3 ();
18998int
18999main ()
19000{
19001return __moddi3 ();
19002 ;
19003 return 0;
19004}
19005_ACEOF
19006rm -f conftest.$ac_objext conftest$ac_exeext
19007if { (ac_try="$ac_link"
19008case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011esac
19012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_link") 2>conftest.er1
19014 ac_status=$?
19015 grep -v '^ *+' conftest.er1 >conftest.err
19016 rm -f conftest.er1
19017 cat conftest.err >&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } &&
19020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19021 { (case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19024esac
19025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_try") 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; } &&
19030 { ac_try='test -s conftest$ac_exeext'
19031 { (case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19034esac
19035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_try") 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 ac_cv_lib_gcc___moddi3=yes
19041else
19042 echo "$as_me: failed program was:" >&5
19043sed 's/^/| /' conftest.$ac_ext >&5
19044
19045 ac_cv_lib_gcc___moddi3=no
19046fi
19047
19048rm -f core conftest.err conftest.$ac_objext \
19049 conftest$ac_exeext conftest.$ac_ext
19050LIBS=$ac_check_lib_save_LIBS
19051fi
19052{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19053echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19054if test $ac_cv_lib_gcc___moddi3 = yes; then
19055
19056cat >>confdefs.h <<\_ACEOF
19057#define HAVE___MODDI3 1
19058_ACEOF
19059
19060fi
19061
19062 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19063echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19064if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19065 echo $ECHO_N "(cached) $ECHO_C" >&6
19066else
19067 ac_check_lib_save_LIBS=$LIBS
19068LIBS="-lgcc $LIBS"
19069cat >conftest.$ac_ext <<_ACEOF
19070/* confdefs.h. */
19071_ACEOF
19072cat confdefs.h >>conftest.$ac_ext
19073cat >>conftest.$ac_ext <<_ACEOF
19074/* end confdefs.h. */
19075
19076/* Override any GCC internal prototype to avoid an error.
19077 Use char because int might match the return type of a GCC
19078 builtin and then its argument prototype would still apply. */
19079#ifdef __cplusplus
19080extern "C"
19081#endif
19082char __udivdi3 ();
19083int
19084main ()
19085{
19086return __udivdi3 ();
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext conftest$ac_exeext
19092if { (ac_try="$ac_link"
19093case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096esac
19097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_link") 2>conftest.er1
19099 ac_status=$?
19100 grep -v '^ *+' conftest.er1 >conftest.err
19101 rm -f conftest.er1
19102 cat conftest.err >&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } &&
19105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19106 { (case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19109esac
19110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_try") 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; } &&
19115 { ac_try='test -s conftest$ac_exeext'
19116 { (case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19119esac
19120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_try") 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_cv_lib_gcc___udivdi3=yes
19126else
19127 echo "$as_me: failed program was:" >&5
19128sed 's/^/| /' conftest.$ac_ext >&5
19129
19130 ac_cv_lib_gcc___udivdi3=no
19131fi
19132
19133rm -f core conftest.err conftest.$ac_objext \
19134 conftest$ac_exeext conftest.$ac_ext
19135LIBS=$ac_check_lib_save_LIBS
19136fi
19137{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19138echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19139if test $ac_cv_lib_gcc___udivdi3 = yes; then
19140
19141cat >>confdefs.h <<\_ACEOF
19142#define HAVE___UDIVDI3 1
19143_ACEOF
19144
19145fi
19146
19147 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19148echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19149if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19151else
19152 ac_check_lib_save_LIBS=$LIBS
19153LIBS="-lgcc $LIBS"
19154cat >conftest.$ac_ext <<_ACEOF
19155/* confdefs.h. */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
19159/* end confdefs.h. */
19160
19161/* Override any GCC internal prototype to avoid an error.
19162 Use char because int might match the return type of a GCC
19163 builtin and then its argument prototype would still apply. */
19164#ifdef __cplusplus
19165extern "C"
19166#endif
19167char __umoddi3 ();
19168int
19169main ()
19170{
19171return __umoddi3 ();
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext conftest$ac_exeext
19177if { (ac_try="$ac_link"
19178case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181esac
19182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_link") 2>conftest.er1
19184 ac_status=$?
19185 grep -v '^ *+' conftest.er1 >conftest.err
19186 rm -f conftest.er1
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
19190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19191 { (case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194esac
19195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_try") 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest$ac_exeext'
19201 { (case "(($ac_try" in
19202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203 *) ac_try_echo=$ac_try;;
19204esac
19205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206 (eval "$ac_try") 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 ac_cv_lib_gcc___umoddi3=yes
19211else
19212 echo "$as_me: failed program was:" >&5
19213sed 's/^/| /' conftest.$ac_ext >&5
19214
19215 ac_cv_lib_gcc___umoddi3=no
19216fi
19217
19218rm -f core conftest.err conftest.$ac_objext \
19219 conftest$ac_exeext conftest.$ac_ext
19220LIBS=$ac_check_lib_save_LIBS
19221fi
19222{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19223echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19224if test $ac_cv_lib_gcc___umoddi3 = yes; then
19225
19226cat >>confdefs.h <<\_ACEOF
19227#define HAVE___UMODDI3 1
19228_ACEOF
19229
19230fi
19231
19232
19233 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19234echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19235if test "${ac_cv_lib_gcc___main+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19237else
19238 ac_check_lib_save_LIBS=$LIBS
19239LIBS="-lgcc $LIBS"
19240cat >conftest.$ac_ext <<_ACEOF
19241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
19246
19247/* Override any GCC internal prototype to avoid an error.
19248 Use char because int might match the return type of a GCC
19249 builtin and then its argument prototype would still apply. */
19250#ifdef __cplusplus
19251extern "C"
19252#endif
19253char __main ();
19254int
19255main ()
19256{
19257return __main ();
19258 ;
19259 return 0;
19260}
19261_ACEOF
19262rm -f conftest.$ac_objext conftest$ac_exeext
19263if { (ac_try="$ac_link"
19264case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19267esac
19268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_link") 2>conftest.er1
19270 ac_status=$?
19271 grep -v '^ *+' conftest.er1 >conftest.err
19272 rm -f conftest.er1
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
19276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19277 { (case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280esac
19281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_try") 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; } &&
19286 { ac_try='test -s conftest$ac_exeext'
19287 { (case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19290esac
19291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_try") 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 ac_cv_lib_gcc___main=yes
19297else
19298 echo "$as_me: failed program was:" >&5
19299sed 's/^/| /' conftest.$ac_ext >&5
19300
19301 ac_cv_lib_gcc___main=no
19302fi
19303
19304rm -f core conftest.err conftest.$ac_objext \
19305 conftest$ac_exeext conftest.$ac_ext
19306LIBS=$ac_check_lib_save_LIBS
19307fi
19308{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19309echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19310if test $ac_cv_lib_gcc___main = yes; then
19311
19312cat >>confdefs.h <<\_ACEOF
19313#define HAVE___MAIN 1
19314_ACEOF
19315
19316fi
19317
19318 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19319echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19320if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322else
19323 ac_check_lib_save_LIBS=$LIBS
19324LIBS="-lgcc $LIBS"
19325cat >conftest.$ac_ext <<_ACEOF
19326/* confdefs.h. */
19327_ACEOF
19328cat confdefs.h >>conftest.$ac_ext
19329cat >>conftest.$ac_ext <<_ACEOF
19330/* end confdefs.h. */
19331
19332/* Override any GCC internal prototype to avoid an error.
19333 Use char because int might match the return type of a GCC
19334 builtin and then its argument prototype would still apply. */
19335#ifdef __cplusplus
19336extern "C"
19337#endif
19338char __cmpdi2 ();
19339int
19340main ()
19341{
19342return __cmpdi2 ();
19343 ;
19344 return 0;
19345}
19346_ACEOF
19347rm -f conftest.$ac_objext conftest$ac_exeext
19348if { (ac_try="$ac_link"
19349case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19352esac
19353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_link") 2>conftest.er1
19355 ac_status=$?
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19362 { (case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19365esac
19366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_try") 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest$ac_exeext'
19372 { (case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19375esac
19376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_try") 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; }; then
19381 ac_cv_lib_gcc___cmpdi2=yes
19382else
19383 echo "$as_me: failed program was:" >&5
19384sed 's/^/| /' conftest.$ac_ext >&5
19385
19386 ac_cv_lib_gcc___cmpdi2=no
19387fi
19388
19389rm -f core conftest.err conftest.$ac_objext \
19390 conftest$ac_exeext conftest.$ac_ext
19391LIBS=$ac_check_lib_save_LIBS
19392fi
19393{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19394echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19395if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19396
19397cat >>confdefs.h <<\_ACEOF
19398#define HAVE___CMPDI2 1
19399_ACEOF
19400
19401fi
19402
19403fi
19404
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019405if test "$llvm_cv_os_type" = "MingW" ; then
19406 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19407echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19408 cat >conftest.$ac_ext <<_ACEOF
19409#include <windows.h>
19410#include <imagehlp.h>
19411extern void foo(PENUMLOADED_MODULES_CALLBACK);
19412extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19413_ACEOF
19414rm -f conftest.$ac_objext
19415if { (ac_try="$ac_compile"
19416case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19419esac
19420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_compile") 2>conftest.er1
19422 ac_status=$?
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
19428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19429 { (case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432esac
19433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_try") 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest.$ac_objext'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19442esac
19443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448
19449 { echo "$as_me:$LINENO: result: yes" >&5
19450echo "${ECHO_T}yes" >&6; }
19451 llvm_cv_win32_elmcb_pcstr="PCSTR"
19452
19453else
19454 echo "$as_me: failed program was:" >&5
19455sed 's/^/| /' conftest.$ac_ext >&5
19456
19457
19458 { echo "$as_me:$LINENO: result: no" >&5
19459echo "${ECHO_T}no" >&6; }
19460 llvm_cv_win32_elmcb_pcstr="PSTR"
19461
19462fi
19463
19464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19465
19466cat >>confdefs.h <<_ACEOF
19467#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19468_ACEOF
19469
19470fi
19471
Torok Edwin871384f2010-01-26 08:50:50 +000019472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019473{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19474echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19475if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019477else
Reid Spencera773bd52006-08-04 18:18:08 +000019478 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019479ac_cpp='$CXXCPP $CPPFLAGS'
19480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019484 cat >conftest.$ac_ext <<_ACEOF
19485/* confdefs.h. */
19486_ACEOF
19487cat confdefs.h >>conftest.$ac_ext
19488cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019489/* end confdefs.h. */
19490#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019491int
19492main ()
19493{
19494float f; isnan(f);
19495 ;
19496 return 0;
19497}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019498_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019499rm -f conftest.$ac_objext
19500if { (ac_try="$ac_compile"
19501case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19504esac
19505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_compile") 2>conftest.er1
19507 ac_status=$?
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
19513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19514 { (case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19517esac
19518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_try") 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (case "(($ac_try" in
19525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19527esac
19528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_try") 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019533 ac_cv_func_isnan_in_math_h=yes
19534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019535 echo "$as_me: failed program was:" >&5
19536sed 's/^/| /' conftest.$ac_ext >&5
19537
19538 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019540
Reid Spencera773bd52006-08-04 18:18:08 +000019541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019542 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019543ac_cpp='$CPP $CPPFLAGS'
19544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19546ac_compiler_gnu=$ac_cv_c_compiler_gnu
19547
19548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019549{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19550echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019551
19552
19553if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019555cat >>confdefs.h <<\_ACEOF
19556#define HAVE_ISNAN_IN_MATH_H 1
19557_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019558
Reid Spencerabec8f92004-10-27 23:03:44 +000019559fi
19560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019561{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19562echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19563if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019565else
Reid Spencera773bd52006-08-04 18:18:08 +000019566 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019567ac_cpp='$CXXCPP $CPPFLAGS'
19568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019572 cat >conftest.$ac_ext <<_ACEOF
19573/* confdefs.h. */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019577/* end confdefs.h. */
19578#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019579int
19580main ()
19581{
19582float f; isnan(f);
19583 ;
19584 return 0;
19585}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019586_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019587rm -f conftest.$ac_objext
19588if { (ac_try="$ac_compile"
19589case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592esac
19593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19602 { (case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605esac
19606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_try") 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest.$ac_objext'
19612 { (case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615esac
19616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_try") 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019621 ac_cv_func_isnan_in_cmath=yes
19622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019628
Reid Spencera773bd52006-08-04 18:18:08 +000019629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019630 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019631ac_cpp='$CPP $CPPFLAGS'
19632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19634ac_compiler_gnu=$ac_cv_c_compiler_gnu
19635
19636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019637{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19638echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019639
19640if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019642cat >>confdefs.h <<\_ACEOF
19643#define HAVE_ISNAN_IN_CMATH 1
19644_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019645
Reid Spencerabec8f92004-10-27 23:03:44 +000019646fi
19647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019648{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19649echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19650if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019652else
Reid Spencera773bd52006-08-04 18:18:08 +000019653 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019654ac_cpp='$CXXCPP $CPPFLAGS'
19655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019659 cat >conftest.$ac_ext <<_ACEOF
19660/* confdefs.h. */
19661_ACEOF
19662cat confdefs.h >>conftest.$ac_ext
19663cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019664/* end confdefs.h. */
19665#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019666int
19667main ()
19668{
19669float f; std::isnan(f);
19670 ;
19671 return 0;
19672}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019673_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019674rm -f conftest.$ac_objext
19675if { (ac_try="$ac_compile"
19676case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19679esac
19680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_compile") 2>conftest.er1
19682 ac_status=$?
19683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19689 { (case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19692esac
19693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_try") 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; } &&
19698 { ac_try='test -s conftest.$ac_objext'
19699 { (case "(($ac_try" in
19700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701 *) ac_try_echo=$ac_try;;
19702esac
19703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704 (eval "$ac_try") 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019708 ac_cv_func_std_isnan_in_cmath=yes
19709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019710 echo "$as_me: failed program was:" >&5
19711sed 's/^/| /' conftest.$ac_ext >&5
19712
19713 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019714fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019715
Reid Spencera773bd52006-08-04 18:18:08 +000019716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019717 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019718ac_cpp='$CPP $CPPFLAGS'
19719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19721ac_compiler_gnu=$ac_cv_c_compiler_gnu
19722
19723fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019724{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19725echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019726
19727if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019729cat >>confdefs.h <<\_ACEOF
19730#define HAVE_STD_ISNAN_IN_CMATH 1
19731_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019732
Reid Spencerabec8f92004-10-27 23:03:44 +000019733fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019734
19735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019736{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19737echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19738if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019740else
Reid Spencera773bd52006-08-04 18:18:08 +000019741 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019742ac_cpp='$CXXCPP $CPPFLAGS'
19743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019747 cat >conftest.$ac_ext <<_ACEOF
19748/* confdefs.h. */
19749_ACEOF
19750cat confdefs.h >>conftest.$ac_ext
19751cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019752/* end confdefs.h. */
19753#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019754int
19755main ()
19756{
19757float f; isinf(f);
19758 ;
19759 return 0;
19760}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019761_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019762rm -f conftest.$ac_objext
19763if { (ac_try="$ac_compile"
19764case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19767esac
19768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_compile") 2>conftest.er1
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19780esac
19781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019796 ac_cv_func_isinf_in_math_h=yes
19797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019798 echo "$as_me: failed program was:" >&5
19799sed 's/^/| /' conftest.$ac_ext >&5
19800
19801 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019803
Reid Spencera773bd52006-08-04 18:18:08 +000019804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019805 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019806ac_cpp='$CPP $CPPFLAGS'
19807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809ac_compiler_gnu=$ac_cv_c_compiler_gnu
19810
19811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019812{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19813echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019814
19815if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019817cat >>confdefs.h <<\_ACEOF
19818#define HAVE_ISINF_IN_MATH_H 1
19819_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019820
Reid Spencerabec8f92004-10-27 23:03:44 +000019821fi
19822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019823{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19824echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19825if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019827else
Reid Spencera773bd52006-08-04 18:18:08 +000019828 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019829ac_cpp='$CXXCPP $CPPFLAGS'
19830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019834 cat >conftest.$ac_ext <<_ACEOF
19835/* confdefs.h. */
19836_ACEOF
19837cat confdefs.h >>conftest.$ac_ext
19838cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019839/* end confdefs.h. */
19840#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019841int
19842main ()
19843{
19844float f; isinf(f);
19845 ;
19846 return 0;
19847}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019848_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019849rm -f conftest.$ac_objext
19850if { (ac_try="$ac_compile"
19851case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19854esac
19855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_compile") 2>conftest.er1
19857 ac_status=$?
19858 grep -v '^ *+' conftest.er1 >conftest.err
19859 rm -f conftest.er1
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
19863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19864 { (case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19867esac
19868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_try") 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } &&
19873 { ac_try='test -s conftest.$ac_objext'
19874 { (case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19877esac
19878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_try") 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019883 ac_cv_func_isinf_in_cmath=yes
19884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019885 echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019889fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019890
Reid Spencera773bd52006-08-04 18:18:08 +000019891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019892 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019893ac_cpp='$CPP $CPPFLAGS'
19894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19896ac_compiler_gnu=$ac_cv_c_compiler_gnu
19897
19898fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019899{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19900echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019901
19902if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019904cat >>confdefs.h <<\_ACEOF
19905#define HAVE_ISINF_IN_CMATH 1
19906_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019907
Reid Spencerabec8f92004-10-27 23:03:44 +000019908fi
19909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019910{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19911echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19912if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019914else
Reid Spencera773bd52006-08-04 18:18:08 +000019915 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019916ac_cpp='$CXXCPP $CPPFLAGS'
19917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019921 cat >conftest.$ac_ext <<_ACEOF
19922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019926/* end confdefs.h. */
19927#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019928int
19929main ()
19930{
19931float f; std::isinf(f)}
19932 ;
19933 return 0;
19934}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019935_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019936rm -f conftest.$ac_objext
19937if { (ac_try="$ac_compile"
19938case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19941esac
19942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_compile") 2>conftest.er1
19944 ac_status=$?
19945 grep -v '^ *+' conftest.er1 >conftest.err
19946 rm -f conftest.er1
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19951 { (case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954esac
19955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_try") 2>&5
19957 ac_status=$?
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; } &&
19960 { ac_try='test -s conftest.$ac_objext'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964esac
19965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019970 ac_cv_func_std_isinf_in_cmath=yes
19971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019972 echo "$as_me: failed program was:" >&5
19973sed 's/^/| /' conftest.$ac_ext >&5
19974
19975 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019976fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019977
Reid Spencera773bd52006-08-04 18:18:08 +000019978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019979 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019980ac_cpp='$CPP $CPPFLAGS'
19981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983ac_compiler_gnu=$ac_cv_c_compiler_gnu
19984
19985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019986{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19987echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019988
19989if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019991cat >>confdefs.h <<\_ACEOF
19992#define HAVE_STD_ISINF_IN_CMATH 1
19993_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019994
Reid Spencerabec8f92004-10-27 23:03:44 +000019995fi
19996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019997{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19998echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19999if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020001else
Reid Spencera773bd52006-08-04 18:18:08 +000020002 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020003ac_cpp='$CXXCPP $CPPFLAGS'
20004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020008 cat >conftest.$ac_ext <<_ACEOF
20009/* confdefs.h. */
20010_ACEOF
20011cat confdefs.h >>conftest.$ac_ext
20012cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020013/* end confdefs.h. */
20014#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020015int
20016main ()
20017{
20018float f; finite(f);
20019 ;
20020 return 0;
20021}
Brian Gaeked59a6472004-07-21 03:33:58 +000020022_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020023rm -f conftest.$ac_objext
20024if { (ac_try="$ac_compile"
20025case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028esac
20029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_compile") 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041esac
20042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_try") 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest.$ac_objext'
20048 { (case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20051esac
20052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_try") 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020057 ac_cv_func_finite_in_ieeefp_h=yes
20058else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020059 echo "$as_me: failed program was:" >&5
20060sed 's/^/| /' conftest.$ac_ext >&5
20061
20062 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020063fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020064
Reid Spencera773bd52006-08-04 18:18:08 +000020065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020066 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020067ac_cpp='$CPP $CPPFLAGS'
20068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20070ac_compiler_gnu=$ac_cv_c_compiler_gnu
20071
20072fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020073{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20074echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020075
Brian Gaeke6802b552004-10-28 05:06:45 +000020076if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020078cat >>confdefs.h <<\_ACEOF
20079#define HAVE_FINITE_IN_IEEEFP_H 1
20080_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020081
Reid Spencerabec8f92004-10-27 23:03:44 +000020082fi
20083
20084
20085
Reid Spencer30fe5262007-01-20 07:48:49 +000020086if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020087
20088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020089for ac_header in stdlib.h unistd.h
20090do
20091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097fi
20098ac_res=`eval echo '${'$as_ac_Header'}'`
20099 { echo "$as_me:$LINENO: result: $ac_res" >&5
20100echo "${ECHO_T}$ac_res" >&6; }
20101else
20102 # Is the header compilable?
20103{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20105cat >conftest.$ac_ext <<_ACEOF
20106/* confdefs.h. */
20107_ACEOF
20108cat confdefs.h >>conftest.$ac_ext
20109cat >>conftest.$ac_ext <<_ACEOF
20110/* end confdefs.h. */
20111$ac_includes_default
20112#include <$ac_header>
20113_ACEOF
20114rm -f conftest.$ac_objext
20115if { (ac_try="$ac_compile"
20116case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20119esac
20120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_compile") 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } &&
20128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20129 { (case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132esac
20133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_try") 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; } &&
20138 { ac_try='test -s conftest.$ac_objext'
20139 { (case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20142esac
20143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_try") 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 ac_header_compiler=yes
20149else
20150 echo "$as_me: failed program was:" >&5
20151sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020153 ac_header_compiler=no
20154fi
20155
20156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20158echo "${ECHO_T}$ac_header_compiler" >&6; }
20159
20160# Is the header present?
20161{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20162echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20163cat >conftest.$ac_ext <<_ACEOF
20164/* confdefs.h. */
20165_ACEOF
20166cat confdefs.h >>conftest.$ac_ext
20167cat >>conftest.$ac_ext <<_ACEOF
20168/* end confdefs.h. */
20169#include <$ac_header>
20170_ACEOF
20171if { (ac_try="$ac_cpp conftest.$ac_ext"
20172case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20175esac
20176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20178 ac_status=$?
20179 grep -v '^ *+' conftest.er1 >conftest.err
20180 rm -f conftest.er1
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } >/dev/null; then
20184 if test -s conftest.err; then
20185 ac_cpp_err=$ac_c_preproc_warn_flag
20186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20187 else
20188 ac_cpp_err=
20189 fi
20190else
20191 ac_cpp_err=yes
20192fi
20193if test -z "$ac_cpp_err"; then
20194 ac_header_preproc=yes
20195else
20196 echo "$as_me: failed program was:" >&5
20197sed 's/^/| /' conftest.$ac_ext >&5
20198
20199 ac_header_preproc=no
20200fi
20201
20202rm -f conftest.err conftest.$ac_ext
20203{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20204echo "${ECHO_T}$ac_header_preproc" >&6; }
20205
20206# So? What about this header?
20207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20208 yes:no: )
20209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20210echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20212echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20213 ac_header_preproc=yes
20214 ;;
20215 no:yes:* )
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20219echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20221echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20223echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20227echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20228 ( cat <<\_ASBOX
20229## ----------------------------------- ##
20230## Report this to llvmbugs@cs.uiuc.edu ##
20231## ----------------------------------- ##
20232_ASBOX
20233 ) | sed "s/^/$as_me: WARNING: /" >&2
20234 ;;
20235esac
20236{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240else
20241 eval "$as_ac_Header=\$ac_header_preproc"
20242fi
20243ac_res=`eval echo '${'$as_ac_Header'}'`
20244 { echo "$as_me:$LINENO: result: $ac_res" >&5
20245echo "${ECHO_T}$ac_res" >&6; }
20246
20247fi
20248if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020249 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020251_ACEOF
20252
20253fi
20254
20255done
20256
20257
20258for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020259do
20260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20261{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20263if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20265else
20266 cat >conftest.$ac_ext <<_ACEOF
20267/* confdefs.h. */
20268_ACEOF
20269cat confdefs.h >>conftest.$ac_ext
20270cat >>conftest.$ac_ext <<_ACEOF
20271/* end confdefs.h. */
20272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20274#define $ac_func innocuous_$ac_func
20275
20276/* System header to define __stub macros and hopefully few prototypes,
20277 which can conflict with char $ac_func (); below.
20278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20279 <limits.h> exists even on freestanding compilers. */
20280
20281#ifdef __STDC__
20282# include <limits.h>
20283#else
20284# include <assert.h>
20285#endif
20286
20287#undef $ac_func
20288
20289/* Override any GCC internal prototype to avoid an error.
20290 Use char because int might match the return type of a GCC
20291 builtin and then its argument prototype would still apply. */
20292#ifdef __cplusplus
20293extern "C"
20294#endif
20295char $ac_func ();
20296/* The GNU C library defines this for functions which it implements
20297 to always fail with ENOSYS. Some functions are actually named
20298 something starting with __ and the normal name is an alias. */
20299#if defined __stub_$ac_func || defined __stub___$ac_func
20300choke me
20301#endif
20302
20303int
20304main ()
20305{
20306return $ac_func ();
20307 ;
20308 return 0;
20309}
20310_ACEOF
20311rm -f conftest.$ac_objext conftest$ac_exeext
20312if { (ac_try="$ac_link"
20313case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20316esac
20317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_link") 2>conftest.er1
20319 ac_status=$?
20320 grep -v '^ *+' conftest.er1 >conftest.err
20321 rm -f conftest.er1
20322 cat conftest.err >&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); } &&
20325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20326 { (case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329esac
20330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_try") 2>&5
20332 ac_status=$?
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; } &&
20335 { ac_try='test -s conftest$ac_exeext'
20336 { (case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20339esac
20340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_try") 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 eval "$as_ac_var=yes"
20346else
20347 echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
20349
20350 eval "$as_ac_var=no"
20351fi
20352
20353rm -f core conftest.err conftest.$ac_objext \
20354 conftest$ac_exeext conftest.$ac_ext
20355fi
20356ac_res=`eval echo '${'$as_ac_var'}'`
20357 { echo "$as_me:$LINENO: result: $ac_res" >&5
20358echo "${ECHO_T}$ac_res" >&6; }
20359if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020360 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020362_ACEOF
20363
20364fi
20365done
20366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020367{ echo "$as_me:$LINENO: checking for working mmap" >&5
20368echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20369if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020371else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020372 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020373 ac_cv_func_mmap_fixed_mapped=no
20374else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020375 cat >conftest.$ac_ext <<_ACEOF
20376/* confdefs.h. */
20377_ACEOF
20378cat confdefs.h >>conftest.$ac_ext
20379cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020381$ac_includes_default
20382/* malloc might have been renamed as rpl_malloc. */
20383#undef malloc
20384
20385/* Thanks to Mike Haertel and Jim Avera for this test.
20386 Here is a matrix of mmap possibilities:
20387 mmap private not fixed
20388 mmap private fixed at somewhere currently unmapped
20389 mmap private fixed at somewhere already mapped
20390 mmap shared not fixed
20391 mmap shared fixed at somewhere currently unmapped
20392 mmap shared fixed at somewhere already mapped
20393 For private mappings, we should verify that changes cannot be read()
20394 back from the file, nor mmap's back from the file at a different
20395 address. (There have been systems where private was not correctly
20396 implemented like the infamous i386 svr4.0, and systems where the
20397 VM page cache was not coherent with the file system buffer cache
20398 like early versions of FreeBSD and possibly contemporary NetBSD.)
20399 For shared mappings, we should conversely verify that changes get
20400 propagated back to all the places they're supposed to be.
20401
20402 Grep wants private fixed already mapped.
20403 The main things grep needs to know about mmap are:
20404 * does it exist and is it safe to write into the mmap'd area
20405 * how to use it (BSD variants) */
20406
20407#include <fcntl.h>
20408#include <sys/mman.h>
20409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020410#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020411char *malloc ();
20412#endif
20413
20414/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020415#if !HAVE_GETPAGESIZE
20416/* Assume that all systems that can run configure have sys/param.h. */
20417# if !HAVE_SYS_PARAM_H
20418# define HAVE_SYS_PARAM_H 1
20419# endif
20420
John Criswell7a73b802003-06-30 21:59:07 +000020421# ifdef _SC_PAGESIZE
20422# define getpagesize() sysconf(_SC_PAGESIZE)
20423# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020424# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020425# include <sys/param.h>
20426# ifdef EXEC_PAGESIZE
20427# define getpagesize() EXEC_PAGESIZE
20428# else /* no EXEC_PAGESIZE */
20429# ifdef NBPG
20430# define getpagesize() NBPG * CLSIZE
20431# ifndef CLSIZE
20432# define CLSIZE 1
20433# endif /* no CLSIZE */
20434# else /* no NBPG */
20435# ifdef NBPC
20436# define getpagesize() NBPC
20437# else /* no NBPC */
20438# ifdef PAGESIZE
20439# define getpagesize() PAGESIZE
20440# endif /* PAGESIZE */
20441# endif /* no NBPC */
20442# endif /* no NBPG */
20443# endif /* no EXEC_PAGESIZE */
20444# else /* no HAVE_SYS_PARAM_H */
20445# define getpagesize() 8192 /* punt totally */
20446# endif /* no HAVE_SYS_PARAM_H */
20447# endif /* no _SC_PAGESIZE */
20448
20449#endif /* no HAVE_GETPAGESIZE */
20450
20451int
20452main ()
20453{
20454 char *data, *data2, *data3;
20455 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020456 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020457
20458 pagesize = getpagesize ();
20459
20460 /* First, make a file with some known garbage in it. */
20461 data = (char *) malloc (pagesize);
20462 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020463 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020464 for (i = 0; i < pagesize; ++i)
20465 *(data + i) = rand ();
20466 umask (0);
20467 fd = creat ("conftest.mmap", 0600);
20468 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020469 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020470 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020471 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020472 close (fd);
20473
20474 /* Next, try to mmap the file at a fixed address which already has
20475 something else allocated at it. If we can, also make sure that
20476 we see the same garbage. */
20477 fd = open ("conftest.mmap", O_RDWR);
20478 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020479 return 1;
20480 data2 = (char *) malloc (2 * pagesize);
20481 if (!data2)
20482 return 1;
20483 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020484 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020485 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020486 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020487 for (i = 0; i < pagesize; ++i)
20488 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020489 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020490
20491 /* Finally, make sure that changes to the mapped area do not
20492 percolate back to the file as seen by read(). (This is a bug on
20493 some variants of i386 svr4.0.) */
20494 for (i = 0; i < pagesize; ++i)
20495 *(data2 + i) = *(data2 + i) + 1;
20496 data3 = (char *) malloc (pagesize);
20497 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020498 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020499 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020500 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020501 for (i = 0; i < pagesize; ++i)
20502 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020503 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020504 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020505 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020506}
20507_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020508rm -f conftest$ac_exeext
20509if { (ac_try="$ac_link"
20510case "(($ac_try" in
20511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512 *) ac_try_echo=$ac_try;;
20513esac
20514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20515 (eval "$ac_link") 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20519 { (case "(($ac_try" in
20520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20522esac
20523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_try") 2>&5
20525 ac_status=$?
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020528 ac_cv_func_mmap_fixed_mapped=yes
20529else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020530 echo "$as_me: program exited with status $ac_status" >&5
20531echo "$as_me: failed program was:" >&5
20532sed 's/^/| /' conftest.$ac_ext >&5
20533
20534( exit $ac_status )
20535ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020536fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020537rm -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 +000020538fi
Reid Spencera773bd52006-08-04 18:18:08 +000020539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020540
John Criswell7a73b802003-06-30 21:59:07 +000020541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020542{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20543echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020544if test $ac_cv_func_mmap_fixed_mapped = yes; then
20545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020546cat >>confdefs.h <<\_ACEOF
20547#define HAVE_MMAP 1
20548_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020549
20550fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020551rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020553 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20554echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20555if test "${ac_cv_func_mmap_file+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020557else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020558 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020559ac_cpp='$CPP $CPPFLAGS'
20560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20562ac_compiler_gnu=$ac_cv_c_compiler_gnu
20563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020564 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020565 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020567 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020569 /* confdefs.h. */
20570_ACEOF
20571cat confdefs.h >>conftest.$ac_ext
20572cat >>conftest.$ac_ext <<_ACEOF
20573/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020574
John Criswell7a73b802003-06-30 21:59:07 +000020575#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020576#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020577#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020578
20579int
20580main ()
20581{
John Criswell7a73b802003-06-30 21:59:07 +000020582
20583 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020584 fd = creat ("foo",0777);
20585 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20586 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020587 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020588 ;
20589 return 0;
20590}
John Criswell7a73b802003-06-30 21:59:07 +000020591_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020592rm -f conftest$ac_exeext
20593if { (ac_try="$ac_link"
20594case "(($ac_try" in
20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20597esac
20598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599 (eval "$ac_link") 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20603 { (case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20606esac
20607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_try") 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020612 ac_cv_func_mmap_file=yes
20613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020614 echo "$as_me: program exited with status $ac_status" >&5
20615echo "$as_me: failed program was:" >&5
20616sed 's/^/| /' conftest.$ac_ext >&5
20617
20618( exit $ac_status )
20619ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020621rm -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 +000020622fi
Reid Spencera773bd52006-08-04 18:18:08 +000020623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020624
John Criswell7a73b802003-06-30 21:59:07 +000020625 ac_ext=c
20626ac_cpp='$CPP $CPPFLAGS'
20627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20629ac_compiler_gnu=$ac_cv_c_compiler_gnu
20630
20631
20632fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020633{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20634echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020635if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020637cat >>confdefs.h <<\_ACEOF
20638#define HAVE_MMAP_FILE
20639_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020640
20641 MMAP_FILE=yes
20642
20643fi
20644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020645 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20646echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20647if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020649else
Reid Spencer582a23c2004-12-29 07:07:57 +000020650 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020651 ac_cv_need_dev_zero_for_mmap=yes
20652 else
20653 ac_cv_need_dev_zero_for_mmap=no
20654 fi
20655
20656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020657{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20658echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020659if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020661cat >>confdefs.h <<\_ACEOF
20662#define NEED_DEV_ZERO_FOR_MMAP 1
20663_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020664
20665fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020666
Reid Spencer30fe5262007-01-20 07:48:49 +000020667 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20668 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020669 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20670echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020671 fi
20672 if test "$ac_cv_func_mmap_file" = "no"
20673 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020674 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20675echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020676 fi
John Criswellb13092b2003-07-22 21:00:24 +000020677fi
John Criswell7a73b802003-06-30 21:59:07 +000020678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020679{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20680echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020681ac_ext=cpp
20682ac_cpp='$CXXCPP $CPPFLAGS'
20683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020687cat >conftest.$ac_ext <<_ACEOF
20688/* confdefs.h. */
20689_ACEOF
20690cat confdefs.h >>conftest.$ac_ext
20691cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020692/* end confdefs.h. */
20693int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020694 volatile unsigned long val = 1;
20695 __sync_synchronize();
20696 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020697 __sync_add_and_fetch(&val, 1);
20698 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020699 return 0;
20700 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020701
20702_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020703rm -f conftest.$ac_objext conftest$ac_exeext
20704if { (ac_try="$ac_link"
20705case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20708esac
20709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_link") 2>conftest.er1
20711 ac_status=$?
20712 grep -v '^ *+' conftest.er1 >conftest.err
20713 rm -f conftest.er1
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
20717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20718 { (case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20721esac
20722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_try") 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; } &&
20727 { ac_try='test -s conftest$ac_exeext'
20728 { (case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20731esac
20732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_try") 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020737 ac_ext=c
20738ac_cpp='$CPP $CPPFLAGS'
20739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20741ac_compiler_gnu=$ac_cv_c_compiler_gnu
20742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020743 { echo "$as_me:$LINENO: result: yes" >&5
20744echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020746cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020747#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020748_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020749
Owen Andersond4b272b2009-05-18 23:58:51 +000020750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020751 echo "$as_me: failed program was:" >&5
20752sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020754 { echo "$as_me:$LINENO: result: no" >&5
20755echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020757cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020758#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020759_ACEOF
20760
20761 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20762echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020764
Owen Andersond4b272b2009-05-18 23:58:51 +000020765rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020766 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020767
John Criswell7a73b802003-06-30 21:59:07 +000020768
Nick Lewycky4372e692009-09-29 06:18:23 +000020769if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020770 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20771echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20772if test "${llvm_cv_linux_mixed+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020774else
20775 ac_ext=c
20776ac_cpp='$CPP $CPPFLAGS'
20777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20779ac_compiler_gnu=$ac_cv_c_compiler_gnu
20780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020781 cat >conftest.$ac_ext <<_ACEOF
20782/* confdefs.h. */
20783_ACEOF
20784cat confdefs.h >>conftest.$ac_ext
20785cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020786/* end confdefs.h. */
20787#ifndef __x86_64__
20788 error: Not x86-64 even if uname says so!
20789 #endif
20790
20791int
20792main ()
20793{
20794
20795 ;
20796 return 0;
20797}
20798_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020799rm -f conftest.$ac_objext
20800if { (ac_try="$ac_compile"
20801case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804esac
20805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_compile") 2>conftest.er1
20807 ac_status=$?
20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
20813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20814 { (case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20817esac
20818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_try") 2>&5
20820 ac_status=$?
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; } &&
20823 { ac_try='test -s conftest.$ac_objext'
20824 { (case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20827esac
20828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_try") 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020833 llvm_cv_linux_mixed=no
20834else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020835 echo "$as_me: failed program was:" >&5
20836sed 's/^/| /' conftest.$ac_ext >&5
20837
20838 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020840
Nick Lewycky4372e692009-09-29 06:18:23 +000020841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842 ac_ext=c
20843ac_cpp='$CPP $CPPFLAGS'
20844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20846ac_compiler_gnu=$ac_cv_c_compiler_gnu
20847
20848
20849fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020850{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20851echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020852
20853 if test "$llvm_cv_linux_mixed" = "yes"; then
20854 llvm_cv_target_arch="x86"
20855 ARCH="x86"
20856 fi
20857fi
20858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020859
Reid Spencer9372f152007-07-30 20:13:24 +000020860for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020861do
20862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20863{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20865if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20867else
20868 cat >conftest.$ac_ext <<_ACEOF
20869/* confdefs.h. */
20870_ACEOF
20871cat confdefs.h >>conftest.$ac_ext
20872cat >>conftest.$ac_ext <<_ACEOF
20873/* end confdefs.h. */
20874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20876#define $ac_func innocuous_$ac_func
20877
20878/* System header to define __stub macros and hopefully few prototypes,
20879 which can conflict with char $ac_func (); below.
20880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20881 <limits.h> exists even on freestanding compilers. */
20882
20883#ifdef __STDC__
20884# include <limits.h>
20885#else
20886# include <assert.h>
20887#endif
20888
20889#undef $ac_func
20890
20891/* Override any GCC internal prototype to avoid an error.
20892 Use char because int might match the return type of a GCC
20893 builtin and then its argument prototype would still apply. */
20894#ifdef __cplusplus
20895extern "C"
20896#endif
20897char $ac_func ();
20898/* The GNU C library defines this for functions which it implements
20899 to always fail with ENOSYS. Some functions are actually named
20900 something starting with __ and the normal name is an alias. */
20901#if defined __stub_$ac_func || defined __stub___$ac_func
20902choke me
20903#endif
20904
20905int
20906main ()
20907{
20908return $ac_func ();
20909 ;
20910 return 0;
20911}
20912_ACEOF
20913rm -f conftest.$ac_objext conftest$ac_exeext
20914if { (ac_try="$ac_link"
20915case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20918esac
20919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920 (eval "$ac_link") 2>conftest.er1
20921 ac_status=$?
20922 grep -v '^ *+' conftest.er1 >conftest.err
20923 rm -f conftest.er1
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
20927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20928 { (case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20931esac
20932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_try") 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest$ac_exeext'
20938 { (case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20941esac
20942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_try") 2>&5
20944 ac_status=$?
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20947 eval "$as_ac_var=yes"
20948else
20949 echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5
20951
20952 eval "$as_ac_var=no"
20953fi
20954
20955rm -f core conftest.err conftest.$ac_objext \
20956 conftest$ac_exeext conftest.$ac_ext
20957fi
20958ac_res=`eval echo '${'$as_ac_var'}'`
20959 { echo "$as_me:$LINENO: result: $ac_res" >&5
20960echo "${ECHO_T}$ac_res" >&6; }
20961if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020962 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020964_ACEOF
20965
20966fi
20967done
20968
20969
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020970SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020971
20972
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020973SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20974
20975
Reid Spencere9de0912004-08-20 09:03:57 +000020976# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020977# information into substitutions that will end up in Makefile.config.in
20978# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020979if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020980 prefix="/usr/local"
20981fi
Reid Spencere9de0912004-08-20 09:03:57 +000020982eval LLVM_PREFIX="${prefix}";
20983eval LLVM_BINDIR="${prefix}/bin";
20984eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020985eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020986eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020987eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020988eval LLVM_INCLUDEDIR="${prefix}/include";
20989eval LLVM_INFODIR="${prefix}/info";
20990eval LLVM_MANDIR="${prefix}/man";
20991LLVM_CONFIGTIME=`date`
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021003# Place the various directores into the config.h file as #defines so that we
21004# can know about the installation paths within LLVM.
21005
Reid Spencere9de0912004-08-20 09:03:57 +000021006cat >>confdefs.h <<_ACEOF
21007#define LLVM_PREFIX "$LLVM_PREFIX"
21008_ACEOF
21009
21010
21011cat >>confdefs.h <<_ACEOF
21012#define LLVM_BINDIR "$LLVM_BINDIR"
21013_ACEOF
21014
21015
21016cat >>confdefs.h <<_ACEOF
21017#define LLVM_LIBDIR "$LLVM_LIBDIR"
21018_ACEOF
21019
21020
21021cat >>confdefs.h <<_ACEOF
21022#define LLVM_DATADIR "$LLVM_DATADIR"
21023_ACEOF
21024
21025
21026cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021027#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021028_ACEOF
21029
21030
21031cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021032#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021033_ACEOF
21034
21035
21036cat >>confdefs.h <<_ACEOF
21037#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21038_ACEOF
21039
21040
21041cat >>confdefs.h <<_ACEOF
21042#define LLVM_INFODIR "$LLVM_INFODIR"
21043_ACEOF
21044
21045
21046cat >>confdefs.h <<_ACEOF
21047#define LLVM_MANDIR "$LLVM_MANDIR"
21048_ACEOF
21049
21050
21051cat >>confdefs.h <<_ACEOF
21052#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21053_ACEOF
21054
21055
Eric Christopher790e11c2007-12-01 00:34:39 +000021056cat >>confdefs.h <<_ACEOF
21057#define LLVM_HOSTTRIPLE "$host"
21058_ACEOF
21059
21060
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021061# Determine which bindings to build.
21062if test "$BINDINGS_TO_BUILD" = auto ; then
21063 BINDINGS_TO_BUILD=""
21064 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21065 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21066 fi
21067fi
21068BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21069
21070
21071# This isn't really configurey, but it avoids having to repeat the list in
21072# other files.
21073ALL_BINDINGS=ocaml
21074
21075
Gordon Henriksenf0915682007-10-02 16:42:22 +000021076# Do any work necessary to ensure that bindings have what they need.
21077binding_prereqs_failed=0
21078for a_binding in $BINDINGS_TO_BUILD ; do
21079 case "$a_binding" in
21080 ocaml)
21081 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021082 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21083echo "$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 +000021084 binding_prereqs_failed=1
21085 fi
21086 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021087 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21088echo "$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 +000021089 binding_prereqs_failed=1
21090 fi
21091 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021092 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21093echo "$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 +000021094 fi
21095 if test "x$with_ocaml_libdir" != xauto ; then
21096 OCAML_LIBDIR=$with_ocaml_libdir
21097
21098 else
21099 ocaml_stdlib="`"$OCAMLC" -where`"
21100 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21101 then
21102 # ocaml stdlib is beneath our prefix; use stdlib
21103 OCAML_LIBDIR=$ocaml_stdlib
21104
21105 else
21106 # ocaml stdlib is outside our prefix; use libdir/ocaml
21107 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21108
21109 fi
21110 fi
21111 ;;
21112 esac
21113done
21114if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021115 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21116echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21117 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021118fi
21119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021120{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21121echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21122if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021124else
21125 ac_ext=cpp
21126ac_cpp='$CXXCPP $CPPFLAGS'
21127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21130
21131 oldcxxflags="$CXXFLAGS"
21132 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021133 cat >conftest.$ac_ext <<_ACEOF
21134/* confdefs.h. */
21135_ACEOF
21136cat confdefs.h >>conftest.$ac_ext
21137cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021138/* end confdefs.h. */
21139
21140int
21141main ()
21142{
21143
21144 ;
21145 return 0;
21146}
21147_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021148rm -f conftest.$ac_objext
21149if { (ac_try="$ac_compile"
21150case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21153esac
21154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_compile") 2>conftest.er1
21156 ac_status=$?
21157 grep -v '^ *+' conftest.er1 >conftest.err
21158 rm -f conftest.er1
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } &&
21162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21163 { (case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166esac
21167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_try") 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; } &&
21172 { ac_try='test -s conftest.$ac_objext'
21173 { (case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21176esac
21177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_try") 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021182 llvm_cv_cxx_visibility_inlines_hidden=yes
21183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021184 echo "$as_me: failed program was:" >&5
21185sed 's/^/| /' conftest.$ac_ext >&5
21186
21187 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021188fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021189
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21191 CXXFLAGS="$oldcxxflags"
21192 ac_ext=c
21193ac_cpp='$CPP $CPPFLAGS'
21194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196ac_compiler_gnu=$ac_cv_c_compiler_gnu
21197
21198
21199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021200{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21201echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021202if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21203 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21204
21205else
21206 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21207
21208fi
21209
Gordon Henriksenf0915682007-10-02 16:42:22 +000021210
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021211if test "$llvm_cv_link_use_r" = "yes" ; then
21212 RPATH="-Wl,-R"
21213else
21214 RPATH="-Wl,-rpath"
21215fi
21216
21217
21218if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21219 RDYNAMIC="-Wl,-export-dynamic"
21220else
21221 RDYNAMIC=""
21222fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021223
21224
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021225
Eric Christophera1cba682010-08-08 02:44:25 +000021226ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021227
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021228
21229
21230
21231
21232
Douglas Gregor1555a232009-06-16 20:12:29 +000021233ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21234
21235ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21236
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021237ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21238
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021239ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21240
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021241ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021242
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021243
Reid Spencera773bd52006-08-04 18:18:08 +000021244ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021245
21246
Reid Spencerea949cf2006-08-16 00:45:38 +000021247ac_config_files="$ac_config_files llvm.spec"
21248
21249
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021250ac_config_files="$ac_config_files docs/doxygen.cfg"
21251
21252if test -f ${srcdir}/tools/clang/README.txt; then
21253 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21254
21255fi
21256
Reid Spencera773bd52006-08-04 18:18:08 +000021257ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021258
21259
Reid Spencera773bd52006-08-04 18:18:08 +000021260ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021261
Reid Spencera773bd52006-08-04 18:18:08 +000021262ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021263
21264
Reid Spencera773bd52006-08-04 18:18:08 +000021265ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021266
21267
Reid Spencera773bd52006-08-04 18:18:08 +000021268ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021269
21270
Reid Spencera773bd52006-08-04 18:18:08 +000021271ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021272
21273
Reid Spencer8b2e1412006-11-17 03:32:33 +000021274ac_config_commands="$ac_config_commands runtime/Makefile"
21275
21276
Reid Spencera773bd52006-08-04 18:18:08 +000021277ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021278
21279
Reid Spencera773bd52006-08-04 18:18:08 +000021280ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021281
21282
Bill Wendlingf24eb392009-01-04 23:12:30 +000021283ac_config_commands="$ac_config_commands unittests/Makefile"
21284
21285
Reid Spencera773bd52006-08-04 18:18:08 +000021286ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021287
21288
Reid Spencera773bd52006-08-04 18:18:08 +000021289ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021290
21291
Reid Spencera773bd52006-08-04 18:18:08 +000021292ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021293
21294
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021295ac_config_commands="$ac_config_commands bindings/Makefile"
21296
21297
21298ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21299
21300
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021301
John Criswell7a73b802003-06-30 21:59:07 +000021302cat >confcache <<\_ACEOF
21303# This file is a shell script that caches the results of configure
21304# tests run on this system so they can be shared between configure
21305# scripts and configure runs, see configure's option --config-cache.
21306# It is not useful on other systems. If it contains results you don't
21307# want to keep, you may remove or edit it.
21308#
21309# config.status only pays attention to the cache file if you give it
21310# the --recheck option to rerun configure.
21311#
John Criswell0c38eaf2003-09-10 15:17:25 +000021312# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021313# loading this file, other *unset* `ac_cv_foo' will be assigned the
21314# following values.
21315
21316_ACEOF
21317
21318# The following way of writing the cache mishandles newlines in values,
21319# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021320# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021321# Ultrix sh set writes to stderr and can't be redirected directly,
21322# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021323(
21324 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21325 eval ac_val=\$$ac_var
21326 case $ac_val in #(
21327 *${as_nl}*)
21328 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021329 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21330echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021331 esac
21332 case $ac_var in #(
21333 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021334 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021335 esac ;;
21336 esac
21337 done
21338
John Criswell7a73b802003-06-30 21:59:07 +000021339 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021340 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21341 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021342 # `set' does not quote correctly, so add quotes (double-quote
21343 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021344 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021345 "s/'/'\\\\''/g;
21346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021347 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021348 *)
21349 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021350 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021351 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021352 esac |
21353 sort
21354) |
John Criswell7a73b802003-06-30 21:59:07 +000021355 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021356 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021357 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021358 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021359 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21360 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021361 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21362 :end' >>confcache
21363if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21364 if test -w "$cache_file"; then
21365 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021366 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21367echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021368 cat confcache >$cache_file
21369 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021370 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21371echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021372 fi
21373fi
21374rm -f confcache
21375
21376test "x$prefix" = xNONE && prefix=$ac_default_prefix
21377# Let make expand exec_prefix.
21378test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21379
John Criswell7a73b802003-06-30 21:59:07 +000021380DEFS=-DHAVE_CONFIG_H
21381
John Criswell0c38eaf2003-09-10 15:17:25 +000021382ac_libobjs=
21383ac_ltlibobjs=
21384for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21385 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021386 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021387 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021388 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21389 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021390 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21391 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021392done
21393LIBOBJS=$ac_libobjs
21394
21395LTLIBOBJS=$ac_ltlibobjs
21396
21397
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021398if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021399 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21400Usually this means the macro was only invoked conditionally." >&5
21401echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21402Usually this means the macro was only invoked conditionally." >&2;}
21403 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021404fi
21405if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021406 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21407Usually this means the macro was only invoked conditionally." >&5
21408echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21409Usually this means the macro was only invoked conditionally." >&2;}
21410 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021411fi
John Criswell7a73b802003-06-30 21:59:07 +000021412
21413: ${CONFIG_STATUS=./config.status}
21414ac_clean_files_save=$ac_clean_files
21415ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21417echo "$as_me: creating $CONFIG_STATUS" >&6;}
21418cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021419#! $SHELL
21420# Generated by $as_me.
21421# Run this file to recreate the current configuration.
21422# Compiler output produced by configure, useful for debugging
21423# configure, is in config.log if it exists.
21424
21425debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021426ac_cs_recheck=false
21427ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021428SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021431cat >>$CONFIG_STATUS <<\_ACEOF
21432## --------------------- ##
21433## M4sh Initialization. ##
21434## --------------------- ##
21435
21436# Be Bourne compatible
21437if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021438 emulate sh
21439 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021440 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021441 # is contrary to our usage. Disable this feature.
21442 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021443 setopt NO_GLOB_SUBST
21444else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021445 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021446fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021447BIN_SH=xpg4; export BIN_SH # for Tru64
21448DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021449
John Criswell7a73b802003-06-30 21:59:07 +000021450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021451# PATH needs CR
21452# Avoid depending upon Character Ranges.
21453as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21454as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21455as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21456as_cr_digits='0123456789'
21457as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021458
21459# The user is always right.
21460if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021461 echo "#! /bin/sh" >conf$$.sh
21462 echo "exit 0" >>conf$$.sh
21463 chmod +x conf$$.sh
21464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21465 PATH_SEPARATOR=';'
21466 else
21467 PATH_SEPARATOR=:
21468 fi
21469 rm -f conf$$.sh
21470fi
21471
21472# Support unset when possible.
21473if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21474 as_unset=unset
21475else
21476 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021477fi
John Criswell7a73b802003-06-30 21:59:07 +000021478
Reid Spencera773bd52006-08-04 18:18:08 +000021479
21480# IFS
21481# We need space, tab and new line, in precisely that order. Quoting is
21482# there to prevent editors from complaining about space-tab.
21483# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21484# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485as_nl='
21486'
Reid Spencera773bd52006-08-04 18:18:08 +000021487IFS=" "" $as_nl"
21488
21489# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021490case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021491 *[\\/]* ) as_myself=$0 ;;
21492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021493for as_dir in $PATH
21494do
21495 IFS=$as_save_IFS
21496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21498done
Reid Spencera773bd52006-08-04 18:18:08 +000021499IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021500
Reid Spencera773bd52006-08-04 18:18:08 +000021501 ;;
21502esac
21503# We did not find ourselves, most probably we were run as `sh COMMAND'
21504# in which case we are not to be found in the path.
21505if test "x$as_myself" = x; then
21506 as_myself=$0
21507fi
21508if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021509 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21510 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021511fi
21512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021513# Work around bugs in pre-3.0 UWIN ksh.
21514for as_var in ENV MAIL MAILPATH
21515do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021516done
21517PS1='$ '
21518PS2='> '
21519PS4='+ '
21520
21521# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522for as_var in \
21523 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21524 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21525 LC_TELEPHONE LC_TIME
21526do
21527 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21528 eval $as_var=C; export $as_var
21529 else
21530 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021531 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021532done
Torok Edwin871384f2010-01-26 08:50:50 +000021533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021534# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021535if expr a : '\(a\)' >/dev/null 2>&1 &&
21536 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21537 as_expr=expr
21538else
21539 as_expr=false
21540fi
21541
21542if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21543 as_basename=basename
21544else
21545 as_basename=false
21546fi
21547
21548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021550as_me=`$as_basename -- "$0" ||
21551$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21552 X"$0" : 'X\(//\)$' \| \
21553 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021554echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021555 sed '/^.*\/\([^/][^/]*\)\/*$/{
21556 s//\1/
21557 q
21558 }
21559 /^X\/\(\/\/\)$/{
21560 s//\1/
21561 q
21562 }
21563 /^X\/\(\/\).*/{
21564 s//\1/
21565 q
21566 }
21567 s/.*/./; q'`
21568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021569# CDPATH.
21570$as_unset CDPATH
21571
21572
21573
21574 as_lineno_1=$LINENO
21575 as_lineno_2=$LINENO
21576 test "x$as_lineno_1" != "x$as_lineno_2" &&
21577 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21578
21579 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21580 # uniformly replaced by the line number. The first 'sed' inserts a
21581 # line-number line after each line using $LINENO; the second 'sed'
21582 # does the real work. The second script uses 'N' to pair each
21583 # line-number line with the line containing $LINENO, and appends
21584 # trailing '-' during substitution so that $LINENO is not a special
21585 # case at line end.
21586 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21587 # scripts with optimization help from Paolo Bonzini. Blame Lee
21588 # E. McMahon (1931-1989) for sed's syntax. :-)
21589 sed -n '
21590 p
21591 /[$]LINENO/=
21592 ' <$as_myself |
21593 sed '
21594 s/[$]LINENO.*/&-/
21595 t lineno
21596 b
21597 :lineno
21598 N
21599 :loop
21600 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21601 t loop
21602 s/-\n.*//
21603 ' >$as_me.lineno &&
21604 chmod +x "$as_me.lineno" ||
21605 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21606 { (exit 1); exit 1; }; }
21607
21608 # Don't try to exec as it changes $[0], causing all sort of problems
21609 # (the dirname of $[0] is not the place where we might find the
21610 # original and so on. Autoconf is especially sensitive to this).
21611 . "./$as_me.lineno"
21612 # Exit status is that of the last command.
21613 exit
21614}
21615
21616
21617if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21618 as_dirname=dirname
21619else
21620 as_dirname=false
21621fi
Reid Spencera773bd52006-08-04 18:18:08 +000021622
21623ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021624case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021625-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021626 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021627 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021628 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021629 esac;;
21630*)
21631 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021632esac
21633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021634if expr a : '\(a\)' >/dev/null 2>&1 &&
21635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21636 as_expr=expr
21637else
21638 as_expr=false
21639fi
21640
John Criswell7a73b802003-06-30 21:59:07 +000021641rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021642if test -d conf$$.dir; then
21643 rm -f conf$$.dir/conf$$.file
21644else
21645 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021646 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021647fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021648echo >conf$$.file
21649if ln -s conf$$.file conf$$ 2>/dev/null; then
21650 as_ln_s='ln -s'
21651 # ... but there are two gotchas:
21652 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21653 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21654 # In both cases, we have to default to `cp -p'.
21655 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021656 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021657elif ln conf$$.file conf$$ 2>/dev/null; then
21658 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021659else
21660 as_ln_s='cp -p'
21661fi
Reid Spencera773bd52006-08-04 18:18:08 +000021662rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21663rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021664
John Criswell0c38eaf2003-09-10 15:17:25 +000021665if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021667else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021668 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021669 as_mkdir_p=false
21670fi
21671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021672# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21673# systems may use methods other than mode bits to determine executability.
21674cat >conf$$.file <<_ASEOF
21675#! /bin/sh
21676exit 0
21677_ASEOF
21678chmod +x conf$$.file
21679if test -x conf$$.file >/dev/null 2>&1; then
21680 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021682 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021684rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021685
21686# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021687as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021688
21689# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021690as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021691
21692
John Criswell7a73b802003-06-30 21:59:07 +000021693exec 6>&1
21694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021695# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021696# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021697# values after options handling.
21698ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000021699This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021700generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021701
21702 CONFIG_FILES = $CONFIG_FILES
21703 CONFIG_HEADERS = $CONFIG_HEADERS
21704 CONFIG_LINKS = $CONFIG_LINKS
21705 CONFIG_COMMANDS = $CONFIG_COMMANDS
21706 $ $0 $@
21707
Reid Spencera773bd52006-08-04 18:18:08 +000021708on `(hostname || uname -n) 2>/dev/null | sed 1q`
21709"
21710
John Criswell7a73b802003-06-30 21:59:07 +000021711_ACEOF
21712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021713cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021714# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021715config_files="$ac_config_files"
21716config_headers="$ac_config_headers"
21717config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021718
Reid Spencera773bd52006-08-04 18:18:08 +000021719_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021721cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021722ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021723\`$as_me' instantiates files from templates according to the
21724current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021726Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021727
21728 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021729 -V, --version print version number, then exit
21730 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021731 -d, --debug don't remove temporary files
21732 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021733 --file=FILE[:TEMPLATE]
21734 instantiate the configuration file FILE
21735 --header=FILE[:TEMPLATE]
21736 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021737
21738Configuration files:
21739$config_files
21740
21741Configuration headers:
21742$config_headers
21743
John Criswellc764fbc2003-09-06 15:17:13 +000021744Configuration commands:
21745$config_commands
21746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021747Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021748
Reid Spencera773bd52006-08-04 18:18:08 +000021749_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021750cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021751ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000021752llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021753configured by $0, generated by GNU Autoconf 2.60,
21754 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021756Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021757This config.status script is free software; the Free Software Foundation
21758gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021759
21760ac_pwd='$ac_pwd'
21761srcdir='$srcdir'
21762INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021763_ACEOF
21764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021765cat >>$CONFIG_STATUS <<\_ACEOF
21766# If no file are specified by the user, then we need to provide default
21767# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021768ac_need_defaults=:
21769while test $# != 0
21770do
21771 case $1 in
21772 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021773 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21774 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021775 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021776 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021777 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021778 ac_option=$1
21779 ac_optarg=$2
21780 ac_shift=shift
21781 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021782 esac
21783
John Criswell0c38eaf2003-09-10 15:17:25 +000021784 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021785 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021786 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21787 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021788 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021789 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021790 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021791 debug=: ;;
21792 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021793 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021794 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021795 ac_need_defaults=false;;
21796 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021797 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021798 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021799 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021800 --he | --h)
21801 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021802 { echo "$as_me: error: ambiguous option: $1
21803Try \`$0 --help' for more information." >&2
21804 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021805 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021806 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21808 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21809 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021810
21811 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021812 -*) { echo "$as_me: error: unrecognized option: $1
21813Try \`$0 --help' for more information." >&2
21814 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021816 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021817 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021818
21819 esac
21820 shift
21821done
21822
John Criswell0c38eaf2003-09-10 15:17:25 +000021823ac_configure_extra_args=
21824
21825if $ac_cs_silent; then
21826 exec 6>/dev/null
21827 ac_configure_extra_args="$ac_configure_extra_args --silent"
21828fi
21829
21830_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021831cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021832if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021833 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21834 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021835 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021836 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021837fi
21838
John Criswell7a73b802003-06-30 21:59:07 +000021839_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021840cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021841exec 5>>config.log
21842{
21843 echo
21844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21845## Running $as_me. ##
21846_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021848} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021849
Reid Spencera773bd52006-08-04 18:18:08 +000021850_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021851cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021852#
Reid Spencera773bd52006-08-04 18:18:08 +000021853# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021854#
Reid Spencerc0682832005-02-24 19:05:19 +000021855llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021856
21857_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021859cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021860
21861# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021862for ac_config_target in $ac_config_targets
21863do
Reid Spencera773bd52006-08-04 18:18:08 +000021864 case $ac_config_target in
21865 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021866 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021867 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21868 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021869 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021870 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021871 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021872 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021873 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021874 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21875 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021876 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21877 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21878 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21879 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21880 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21881 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021882 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021883 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21884 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021885 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021886 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21887 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21888 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021889 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21890 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021892 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21893echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21894 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021895 esac
21896done
21897
Reid Spencera773bd52006-08-04 18:18:08 +000021898
John Criswell7a73b802003-06-30 21:59:07 +000021899# If the user did not use the arguments to specify the items to instantiate,
21900# then the envvar interface is used. Set only those that are not.
21901# We use the long form for the default assignment because of an extremely
21902# bizarre bug on SunOS 4.1.3.
21903if $ac_need_defaults; then
21904 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21905 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021906 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021907fi
21908
John Criswell0c38eaf2003-09-10 15:17:25 +000021909# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021910# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021911# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021912# Hook for its removal unless debugging.
21913# Note that there is a small window in which the directory will not be cleaned:
21914# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021915$debug ||
21916{
Reid Spencera773bd52006-08-04 18:18:08 +000021917 tmp=
21918 trap 'exit_status=$?
21919 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21920' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021921 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021922}
John Criswell7a73b802003-06-30 21:59:07 +000021923# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021924
John Criswell7a73b802003-06-30 21:59:07 +000021925{
Reid Spencera773bd52006-08-04 18:18:08 +000021926 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021927 test -n "$tmp" && test -d "$tmp"
21928} ||
21929{
Reid Spencera773bd52006-08-04 18:18:08 +000021930 tmp=./conf$$-$RANDOM
21931 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021932} ||
21933{
21934 echo "$me: cannot create a temporary directory in ." >&2
21935 { (exit 1); exit 1; }
21936}
John Criswell7a73b802003-06-30 21:59:07 +000021937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021938#
21939# Set up the sed scripts for CONFIG_FILES section.
21940#
21941
21942# No need to generate the scripts if there are no CONFIG_FILES.
21943# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021944if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021945
21946_ACEOF
21947
Reid Spencera773bd52006-08-04 18:18:08 +000021948
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021949
Reid Spencera773bd52006-08-04 18:18:08 +000021950ac_delim='%!_!# '
21951for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021952 cat >conf$$subs.sed <<_ACEOF
21953SHELL!$SHELL$ac_delim
21954PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21955PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21956PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21957PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21958PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21959PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21960exec_prefix!$exec_prefix$ac_delim
21961prefix!$prefix$ac_delim
21962program_transform_name!$program_transform_name$ac_delim
21963bindir!$bindir$ac_delim
21964sbindir!$sbindir$ac_delim
21965libexecdir!$libexecdir$ac_delim
21966datarootdir!$datarootdir$ac_delim
21967datadir!$datadir$ac_delim
21968sysconfdir!$sysconfdir$ac_delim
21969sharedstatedir!$sharedstatedir$ac_delim
21970localstatedir!$localstatedir$ac_delim
21971includedir!$includedir$ac_delim
21972oldincludedir!$oldincludedir$ac_delim
21973docdir!$docdir$ac_delim
21974infodir!$infodir$ac_delim
21975htmldir!$htmldir$ac_delim
21976dvidir!$dvidir$ac_delim
21977pdfdir!$pdfdir$ac_delim
21978psdir!$psdir$ac_delim
21979libdir!$libdir$ac_delim
21980localedir!$localedir$ac_delim
21981mandir!$mandir$ac_delim
21982DEFS!$DEFS$ac_delim
21983ECHO_C!$ECHO_C$ac_delim
21984ECHO_N!$ECHO_N$ac_delim
21985ECHO_T!$ECHO_T$ac_delim
21986LIBS!$LIBS$ac_delim
21987build_alias!$build_alias$ac_delim
21988host_alias!$host_alias$ac_delim
21989target_alias!$target_alias$ac_delim
21990LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021991CC!$CC$ac_delim
21992CFLAGS!$CFLAGS$ac_delim
21993LDFLAGS!$LDFLAGS$ac_delim
21994CPPFLAGS!$CPPFLAGS$ac_delim
21995ac_ct_CC!$ac_ct_CC$ac_delim
21996EXEEXT!$EXEEXT$ac_delim
21997OBJEXT!$OBJEXT$ac_delim
21998CXX!$CXX$ac_delim
21999CXXFLAGS!$CXXFLAGS$ac_delim
22000ac_ct_CXX!$ac_ct_CXX$ac_delim
22001CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022002subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022003ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22004LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022005build!$build$ac_delim
22006build_cpu!$build_cpu$ac_delim
22007build_vendor!$build_vendor$ac_delim
22008build_os!$build_os$ac_delim
22009host!$host$ac_delim
22010host_cpu!$host_cpu$ac_delim
22011host_vendor!$host_vendor$ac_delim
22012host_os!$host_os$ac_delim
22013target!$target$ac_delim
22014target_cpu!$target_cpu$ac_delim
22015target_vendor!$target_vendor$ac_delim
22016target_os!$target_os$ac_delim
22017OS!$OS$ac_delim
22018HOST_OS!$HOST_OS$ac_delim
22019TARGET_OS!$TARGET_OS$ac_delim
22020LINKALL!$LINKALL$ac_delim
22021NOLINKALL!$NOLINKALL$ac_delim
22022LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22023LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22024ARCH!$ARCH$ac_delim
22025ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022026GREP!$GREP$ac_delim
22027EGREP!$EGREP$ac_delim
22028LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22029BUILD_CC!$BUILD_CC$ac_delim
22030BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22031BUILD_CXX!$BUILD_CXX$ac_delim
22032CVSBUILD!$CVSBUILD$ac_delim
22033ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22034ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22035DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22036ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22037EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22038DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22039DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22040JIT!$JIT$ac_delim
22041TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022042ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022043ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22044ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022045ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022046ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022047ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022048ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000022049ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022050_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022052 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022053 break
22054 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022055 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22056echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22057 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022058 else
22059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022060 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022061done
22062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022063ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22064if test -n "$ac_eof"; then
22065 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22066 ac_eof=`expr $ac_eof + 1`
22067fi
22068
22069cat >>$CONFIG_STATUS <<_ACEOF
22070cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22071/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022072_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022073sed '
22074s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22075s/^/s,@/; s/!/@,|#_!!_#|/
22076:n
22077t n
22078s/'"$ac_delim"'$/,g/; t
22079s/$/\\/; p
22080N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22081' >>$CONFIG_STATUS <conf$$subs.sed
22082rm -f conf$$subs.sed
22083cat >>$CONFIG_STATUS <<_ACEOF
22084CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022085_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022086
22087
22088ac_delim='%!_!# '
22089for ac_last_try in false false false false false :; do
22090 cat >conf$$subs.sed <<_ACEOF
Eric Christopherffee5722011-09-16 20:36:25 +000022091TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22092LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22093LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022094LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022095LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022096ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022097OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022098EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022099EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022100BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022101NM!$NM$ac_delim
22102ifGNUmake!$ifGNUmake$ac_delim
22103LN_S!$LN_S$ac_delim
22104CMP!$CMP$ac_delim
22105CP!$CP$ac_delim
22106DATE!$DATE$ac_delim
22107FIND!$FIND$ac_delim
22108MKDIR!$MKDIR$ac_delim
22109MV!$MV$ac_delim
22110RANLIB!$RANLIB$ac_delim
22111AR!$AR$ac_delim
22112RM!$RM$ac_delim
22113SED!$SED$ac_delim
22114TAR!$TAR$ac_delim
22115BINPWD!$BINPWD$ac_delim
22116GRAPHVIZ!$GRAPHVIZ$ac_delim
22117DOT!$DOT$ac_delim
22118FDP!$FDP$ac_delim
22119NEATO!$NEATO$ac_delim
22120TWOPI!$TWOPI$ac_delim
22121CIRCO!$CIRCO$ac_delim
22122GV!$GV$ac_delim
22123DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022124XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022125PERL!$PERL$ac_delim
22126HAVE_PERL!$HAVE_PERL$ac_delim
22127INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22128INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22129INSTALL_DATA!$INSTALL_DATA$ac_delim
22130BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022131CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022132DOXYGEN!$DOXYGEN$ac_delim
22133GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022134GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022135POD2HTML!$POD2HTML$ac_delim
22136POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022137PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022138RUNTEST!$RUNTEST$ac_delim
22139TCLSH!$TCLSH$ac_delim
22140ZIP!$ZIP$ac_delim
22141OCAMLC!$OCAMLC$ac_delim
22142OCAMLOPT!$OCAMLOPT$ac_delim
22143OCAMLDEP!$OCAMLDEP$ac_delim
22144OCAMLDOC!$OCAMLDOC$ac_delim
22145GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022146HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022147INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22148INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22149CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22150CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22151LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022152NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22153NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22154USE_UDIS86!$USE_UDIS86$ac_delim
22155USE_OPROFILE!$USE_OPROFILE$ac_delim
22156HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22157HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22158MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022159SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022160SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22162LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22163LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22164LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22165LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22166LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22167LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22168LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22169LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22170LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22171BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22172ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022173OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22174ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22175RPATH!$RPATH$ac_delim
22176RDYNAMIC!$RDYNAMIC$ac_delim
22177LIBOBJS!$LIBOBJS$ac_delim
22178LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022179_ACEOF
22180
Eric Christopher73ec9522011-09-21 00:53:42 +000022181 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022182 break
22183 elif $ac_last_try; then
22184 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22185echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22186 { (exit 1); exit 1; }; }
22187 else
22188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22189 fi
22190done
22191
22192ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22193if test -n "$ac_eof"; then
22194 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22195 ac_eof=`expr $ac_eof + 1`
22196fi
22197
22198cat >>$CONFIG_STATUS <<_ACEOF
22199cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022200/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22201_ACEOF
22202sed '
22203s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22204s/^/s,@/; s/!/@,|#_!!_#|/
22205:n
22206t n
22207s/'"$ac_delim"'$/,g/; t
22208s/$/\\/; p
22209N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22210' >>$CONFIG_STATUS <conf$$subs.sed
22211rm -f conf$$subs.sed
22212cat >>$CONFIG_STATUS <<_ACEOF
22213:end
22214s/|#_!!_#|//g
22215CEOF$ac_eof
22216_ACEOF
22217
22218
Reid Spencera773bd52006-08-04 18:18:08 +000022219# VPATH may cause trouble with some makes, so we remove $(srcdir),
22220# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22221# trailing colons and then remove the whole line if VPATH becomes empty
22222# (actually we leave an empty line to preserve line numbers).
22223if test "x$srcdir" = x.; then
22224 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22225s/:*\$(srcdir):*/:/
22226s/:*\${srcdir}:*/:/
22227s/:*@srcdir@:*/:/
22228s/^\([^=]*=[ ]*\):*/\1/
22229s/:*$//
22230s/^[^=]*=[ ]*$//
22231}'
22232fi
22233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022234cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022235fi # test -n "$CONFIG_FILES"
22236
Reid Spencera773bd52006-08-04 18:18:08 +000022237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022238for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022239do
22240 case $ac_tag in
22241 :[FHLC]) ac_mode=$ac_tag; continue;;
22242 esac
22243 case $ac_mode$ac_tag in
22244 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022245 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22246echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22247 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022248 :[FH]-) ac_tag=-:-;;
22249 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22250 esac
22251 ac_save_IFS=$IFS
22252 IFS=:
22253 set x $ac_tag
22254 IFS=$ac_save_IFS
22255 shift
22256 ac_file=$1
22257 shift
22258
22259 case $ac_mode in
22260 :L) ac_source=$1;;
22261 :[FH])
22262 ac_file_inputs=
22263 for ac_f
22264 do
22265 case $ac_f in
22266 -) ac_f="$tmp/stdin";;
22267 *) # Look for the file first in the build tree, then in the source tree
22268 # (if the path is not absolute). The absolute path cannot be DOS-style,
22269 # because $ac_f cannot contain `:'.
22270 test -f "$ac_f" ||
22271 case $ac_f in
22272 [\\/$]*) false;;
22273 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22274 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022275 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22276echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22277 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022278 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022279 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022280 done
22281
22282 # Let's still pretend it is `configure' which instantiates (i.e., don't
22283 # use $as_me), people would be surprised to read:
22284 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022285 configure_input="Generated from "`IFS=:
22286 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022287 if test x"$ac_file" != x-; then
22288 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022289 { echo "$as_me:$LINENO: creating $ac_file" >&5
22290echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022291 fi
22292
22293 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022294 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022295 esac
22296 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022297 esac
22298
Reid Spencera773bd52006-08-04 18:18:08 +000022299 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022300$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022301 X"$ac_file" : 'X\(//\)[^/]' \| \
22302 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022303 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022304echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22306 s//\1/
22307 q
22308 }
22309 /^X\(\/\/\)[^/].*/{
22310 s//\1/
22311 q
22312 }
22313 /^X\(\/\/\)$/{
22314 s//\1/
22315 q
22316 }
22317 /^X\(\/\).*/{
22318 s//\1/
22319 q
22320 }
22321 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022322 { as_dir="$ac_dir"
22323 case $as_dir in #(
22324 -*) as_dir=./$as_dir;;
22325 esac
22326 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22327 as_dirs=
22328 while :; do
22329 case $as_dir in #(
22330 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22331 *) as_qdir=$as_dir;;
22332 esac
22333 as_dirs="'$as_qdir' $as_dirs"
22334 as_dir=`$as_dirname -- "$as_dir" ||
22335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22336 X"$as_dir" : 'X\(//\)[^/]' \| \
22337 X"$as_dir" : 'X\(//\)$' \| \
22338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22339echo X"$as_dir" |
22340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22341 s//\1/
22342 q
22343 }
22344 /^X\(\/\/\)[^/].*/{
22345 s//\1/
22346 q
22347 }
22348 /^X\(\/\/\)$/{
22349 s//\1/
22350 q
22351 }
22352 /^X\(\/\).*/{
22353 s//\1/
22354 q
22355 }
22356 s/.*/./; q'`
22357 test -d "$as_dir" && break
22358 done
22359 test -z "$as_dirs" || eval "mkdir $as_dirs"
22360 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22361echo "$as_me: error: cannot create directory $as_dir" >&2;}
22362 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022363 ac_builddir=.
22364
Reid Spencera773bd52006-08-04 18:18:08 +000022365case "$ac_dir" in
22366.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22367*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022368 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022369 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022370 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022371 case $ac_top_builddir_sub in
22372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22374 esac ;;
22375esac
22376ac_abs_top_builddir=$ac_pwd
22377ac_abs_builddir=$ac_pwd$ac_dir_suffix
22378# for backward compatibility:
22379ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022380
22381case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022382 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022383 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022384 ac_top_srcdir=$ac_top_builddir_sub
22385 ac_abs_top_srcdir=$ac_pwd ;;
22386 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022387 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022388 ac_top_srcdir=$srcdir
22389 ac_abs_top_srcdir=$srcdir ;;
22390 *) # Relative name.
22391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22392 ac_top_srcdir=$ac_top_build_prefix$srcdir
22393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022394esac
Reid Spencera773bd52006-08-04 18:18:08 +000022395ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022396
John Criswell7a73b802003-06-30 21:59:07 +000022397
Reid Spencera773bd52006-08-04 18:18:08 +000022398 case $ac_mode in
22399 :F)
22400 #
22401 # CONFIG_FILE
22402 #
John Criswell7a73b802003-06-30 21:59:07 +000022403
22404 case $INSTALL in
22405 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022406 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022407 esac
John Criswell7a73b802003-06-30 21:59:07 +000022408_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022410cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022411# If the template does not know about datarootdir, expand it.
22412# FIXME: This hack should be removed a few years after 2.60.
22413ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022414
22415case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022416 p
22417 q
22418}
22419/@datadir@/p
22420/@docdir@/p
22421/@infodir@/p
22422/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022423/@mandir@/p
22424' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022425*datarootdir*) ac_datarootdir_seen=yes;;
22426*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022427 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22428echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022429_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022430cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022431 ac_datarootdir_hack='
22432 s&@datadir@&$datadir&g
22433 s&@docdir@&$docdir&g
22434 s&@infodir@&$infodir&g
22435 s&@localedir@&$localedir&g
22436 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022437 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022438esac
22439_ACEOF
22440
22441# Neutralize VPATH when `$srcdir' = `.'.
22442# Shell code in configure.ac might set extrasub.
22443# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022444cat >>$CONFIG_STATUS <<_ACEOF
22445 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022446$extrasub
22447_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022448cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022449:t
22450/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022451s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022452s&@top_builddir@&$ac_top_builddir_sub&;t t
22453s&@srcdir@&$ac_srcdir&;t t
22454s&@abs_srcdir@&$ac_abs_srcdir&;t t
22455s&@top_srcdir@&$ac_top_srcdir&;t t
22456s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22457s&@builddir@&$ac_builddir&;t t
22458s&@abs_builddir@&$ac_abs_builddir&;t t
22459s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22460s&@INSTALL@&$ac_INSTALL&;t t
22461$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022462" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022463
Reid Spencera773bd52006-08-04 18:18:08 +000022464test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22465 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022467 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022468which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022469echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022470which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022471
Reid Spencera773bd52006-08-04 18:18:08 +000022472 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022473 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022474 -) cat "$tmp/out"; rm -f "$tmp/out";;
22475 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22476 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022477 ;;
22478 :H)
22479 #
22480 # CONFIG_HEADER
22481 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022482_ACEOF
22483
22484# Transform confdefs.h into a sed script `conftest.defines', that
22485# substitutes the proper values into config.h.in to produce config.h.
22486rm -f conftest.defines conftest.tail
22487# First, append a space to every undef/define line, to ease matching.
22488echo 's/$/ /' >conftest.defines
22489# Then, protect against being on the right side of a sed subst, or in
22490# an unquoted here document, in config.status. If some macros were
22491# called several times there might be several #defines for the same
22492# symbol, which is useless. But do not sort them, since the last
22493# AC_DEFINE must be honored.
22494ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22495# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22496# NAME is the cpp macro being defined, VALUE is the value it is being given.
22497# PARAMS is the parameter list in the macro definition--in most cases, it's
22498# just an empty string.
22499ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22500ac_dB='\\)[ (].*,\\1define\\2'
22501ac_dC=' '
22502ac_dD=' ,'
22503
22504uniq confdefs.h |
22505 sed -n '
22506 t rset
22507 :rset
22508 s/^[ ]*#[ ]*define[ ][ ]*//
22509 t ok
22510 d
22511 :ok
22512 s/[\\&,]/\\&/g
22513 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22514 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22515 ' >>conftest.defines
22516
22517# Remove the space that was appended to ease matching.
22518# Then replace #undef with comments. This is necessary, for
22519# example, in the case of _POSIX_SOURCE, which is predefined and required
22520# on some systems where configure will not decide to define it.
22521# (The regexp can be short, since the line contains either #define or #undef.)
22522echo 's/ $//
22523s,^[ #]*u.*,/* & */,' >>conftest.defines
22524
22525# Break up conftest.defines:
22526ac_max_sed_lines=50
22527
22528# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22529# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22530# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22531# et cetera.
22532ac_in='$ac_file_inputs'
22533ac_out='"$tmp/out1"'
22534ac_nxt='"$tmp/out2"'
22535
22536while :
22537do
22538 # Write a here document:
22539 cat >>$CONFIG_STATUS <<_ACEOF
22540 # First, check the format of the line:
22541 cat >"\$tmp/defines.sed" <<\\CEOF
22542/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22543/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22544b
22545:def
22546_ACEOF
22547 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22548 echo 'CEOF
22549 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22550 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22551 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22552 grep . conftest.tail >/dev/null || break
22553 rm -f conftest.defines
22554 mv conftest.tail conftest.defines
22555done
22556rm -f conftest.defines conftest.tail
22557
22558echo "ac_result=$ac_in" >>$CONFIG_STATUS
22559cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022560 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022561 echo "/* $configure_input */" >"$tmp/config.h"
22562 cat "$ac_result" >>"$tmp/config.h"
22563 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22564 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22565echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022566 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022567 rm -f $ac_file
22568 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022569 fi
22570 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022571 echo "/* $configure_input */"
22572 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022573 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022574 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022575 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022577 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22578echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022579 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022580 esac
John Criswell7a73b802003-06-30 21:59:07 +000022581
Reid Spencera773bd52006-08-04 18:18:08 +000022582
22583 case $ac_file$ac_mode in
22584 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022585 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022586 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022587 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022588 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022589 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022590 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022591 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022592 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022593 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022594 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022595 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022596 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022597 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022598 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022599 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022600 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022601 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022602 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022603 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022604 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022605 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022606 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022607 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022608 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022609 ${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 +000022610
22611 esac
22612done # for ac_tag
22613
John Criswell7a73b802003-06-30 21:59:07 +000022614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022615{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022616_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022617chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022618ac_clean_files=$ac_clean_files_save
22619
22620
22621# configure is writing to config.log, and then calls config.status.
22622# config.status does its own redirection, appending to config.log.
22623# Unfortunately, on DOS this fails, as config.log is still kept open
22624# by configure, so config.status won't be able to write to it; its
22625# output is simply discarded. So we exec the FD to /dev/null,
22626# effectively closing config.log, so it can be properly (re)opened and
22627# appended to by config.status. When coming back to configure, we
22628# need to make the FD available again.
22629if test "$no_create" != yes; then
22630 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022631 ac_config_status_args=
22632 test "$silent" = yes &&
22633 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022634 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022636 exec 5>>config.log
22637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22638 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022639 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022640fi
22641
John Criswell12399a12003-09-30 15:55:44 +000022642#
22643# CONFIG_SUBDIRS section.
22644#
22645if test "$no_recursion" != yes; then
22646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022647 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022648 ac_sub_configure_args=
22649 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022650 eval "set x $ac_configure_args"
22651 shift
22652 for ac_arg
22653 do
John Criswell12399a12003-09-30 15:55:44 +000022654 if test -n "$ac_prev"; then
22655 ac_prev=
22656 continue
22657 fi
22658 case $ac_arg in
22659 -cache-file | --cache-file | --cache-fil | --cache-fi \
22660 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22661 ac_prev=cache_file ;;
22662 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22663 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22664 | --c=*)
22665 ;;
22666 --config-cache | -C)
22667 ;;
22668 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22669 ac_prev=srcdir ;;
22670 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22671 ;;
22672 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22673 ac_prev=prefix ;;
22674 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22675 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022676 *)
22677 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022678 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022679 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022680 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022681 esac
22682 done
22683
22684 # Always prepend --prefix to ensure using the same prefix
22685 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022686 ac_arg="--prefix=$prefix"
22687 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022688 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022689 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022690 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022691
22692 ac_popdir=`pwd`
22693 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22694
22695 # Do not complain, so a configure script can configure whichever
22696 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022697 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022698
Reid Spencera773bd52006-08-04 18:18:08 +000022699 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022700 echo "$as_me:$LINENO: $ac_msg" >&5
22701 echo "$ac_msg" >&6
22702 { as_dir="$ac_dir"
22703 case $as_dir in #(
22704 -*) as_dir=./$as_dir;;
22705 esac
22706 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22707 as_dirs=
22708 while :; do
22709 case $as_dir in #(
22710 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22711 *) as_qdir=$as_dir;;
22712 esac
22713 as_dirs="'$as_qdir' $as_dirs"
22714 as_dir=`$as_dirname -- "$as_dir" ||
22715$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22716 X"$as_dir" : 'X\(//\)[^/]' \| \
22717 X"$as_dir" : 'X\(//\)$' \| \
22718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22719echo X"$as_dir" |
22720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22721 s//\1/
22722 q
22723 }
22724 /^X\(\/\/\)[^/].*/{
22725 s//\1/
22726 q
22727 }
22728 /^X\(\/\/\)$/{
22729 s//\1/
22730 q
22731 }
22732 /^X\(\/\).*/{
22733 s//\1/
22734 q
22735 }
22736 s/.*/./; q'`
22737 test -d "$as_dir" && break
22738 done
22739 test -z "$as_dirs" || eval "mkdir $as_dirs"
22740 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22741echo "$as_me: error: cannot create directory $as_dir" >&2;}
22742 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022743 ac_builddir=.
22744
Reid Spencera773bd52006-08-04 18:18:08 +000022745case "$ac_dir" in
22746.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22747*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022749 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022750 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022751 case $ac_top_builddir_sub in
22752 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22753 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22754 esac ;;
22755esac
22756ac_abs_top_builddir=$ac_pwd
22757ac_abs_builddir=$ac_pwd$ac_dir_suffix
22758# for backward compatibility:
22759ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022760
22761case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022762 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022763 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022764 ac_top_srcdir=$ac_top_builddir_sub
22765 ac_abs_top_srcdir=$ac_pwd ;;
22766 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022767 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022768 ac_top_srcdir=$srcdir
22769 ac_abs_top_srcdir=$srcdir ;;
22770 *) # Relative name.
22771 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22772 ac_top_srcdir=$ac_top_build_prefix$srcdir
22773 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022774esac
Reid Spencera773bd52006-08-04 18:18:08 +000022775ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022776
22777
Reid Spencera773bd52006-08-04 18:18:08 +000022778 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022779
22780 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022781 if test -f "$ac_srcdir/configure.gnu"; then
22782 ac_sub_configure=$ac_srcdir/configure.gnu
22783 elif test -f "$ac_srcdir/configure"; then
22784 ac_sub_configure=$ac_srcdir/configure
22785 elif test -f "$ac_srcdir/configure.in"; then
22786 # This should be Cygnus configure.
22787 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022788 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022789 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22790echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022791 ac_sub_configure=
22792 fi
22793
22794 # The recursion is here.
22795 if test -n "$ac_sub_configure"; then
22796 # Make the cache file name correct relative to the subdirectory.
22797 case $cache_file in
22798 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022799 *) # Relative name.
22800 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022801 esac
22802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022803 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22804echo "$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 +000022805 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022806 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22807 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022808 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22809echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22810 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022811 fi
22812
Reid Spencera773bd52006-08-04 18:18:08 +000022813 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022814 done
22815fi
22816