blob: 920040c30e6968d8bd4c4bd41b478d10568a9595 [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
Daniel Dunbar98515672010-02-23 10:00:49 +0000708CLANGPATH
709CLANGXXPATH
710ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711OPTIMIZE_OPTION
712EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000713EXTRA_LD_OPTIONS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000714BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749POD2HTML
750POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
766LLVMGCCCOMMAND
767LLVMGXXCOMMAND
768LLVMGCC
769LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000770LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771NO_VARIADIC_MACROS
772NO_MISSING_FIELD_INITIALIZERS
773USE_UDIS86
774USE_OPROFILE
775HAVE_PTHREAD
776HUGE_VAL_SANITY
777MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000778LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVMCC1
780LLVMCC1PLUS
781LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000782LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000783LLVMGCC_DRAGONEGG
Eric Christopher481d4022010-12-03 07:45:22 +0000784LLVMCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000785SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000786SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000787LLVM_PREFIX
788LLVM_BINDIR
789LLVM_LIBDIR
790LLVM_DATADIR
791LLVM_DOCSDIR
792LLVM_ETCDIR
793LLVM_INCLUDEDIR
794LLVM_INFODIR
795LLVM_MANDIR
796LLVM_CONFIGTIME
797BINDINGS_TO_BUILD
798ALL_BINDINGS
799OCAML_LIBDIR
800ENABLE_VISIBILITY_INLINES_HIDDEN
801RPATH
802RDYNAMIC
803LIBOBJS
804LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000805ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000806 ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000813CXX
814CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000815CCC
816CPP'
John Criswell0157f502010-03-19 21:31:39 +0000817ac_subdirs_all='projects/llvm-gcc
818projects/test-suite
819projects/llvm-test
820projects/poolalloc
821projects/llvm-poolalloc
822projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000823projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000824projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000825projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000826projects/llvm-java
827projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000828projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000829projects/llvm-kernel
830tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000857# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000866includedir='${prefix}/include'
867oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000877
878ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000879ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000880for ac_option
881do
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000884 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000885 ac_prev=
886 continue
887 fi
888
Reid Spencera773bd52006-08-04 18:18:08 +0000889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
John Criswell7a73b802003-06-30 21:59:07 +0000893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
Reid Spencera773bd52006-08-04 18:18:08 +0000896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
Reid Spencera773bd52006-08-04 18:18:08 +0000920 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000921 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000923 datadir=$ac_optarg ;;
924
Reid Spencera773bd52006-08-04 18:18:08 +0000925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
John Criswell7a73b802003-06-30 21:59:07 +0000932 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000934 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000953 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
Reid Spencera773bd52006-08-04 18:18:08 +0000985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
John Criswell7a73b802003-06-30 21:59:07 +0000991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
Reid Spencera773bd52006-08-04 18:18:08 +00001015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
John Criswell7a73b802003-06-30 21:59:07 +00001020 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001021 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
Reid Spencera773bd52006-08-04 18:18:08 +00001089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
John Criswell7a73b802003-06-30 21:59:07 +00001099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001159 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001195 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 ;;
1205
1206 esac
1207done
1208
1209if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001213fi
1214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001220do
Reid Spencera773bd52006-08-04 18:18:08 +00001221 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001222 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001225 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
1247
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
1252
1253
Reid Spencera773bd52006-08-04 18:18:08 +00001254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001262
1263
John Criswell7a73b802003-06-30 21:59:07 +00001264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001267 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001268 ac_confdir=`$as_dirname -- "$0" ||
1269$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001291 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001292 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
Reid Spencera773bd52006-08-04 18:18:08 +00001298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001302fi
Reid Spencera773bd52006-08-04 18:18:08 +00001303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001332\`configure' configures llvm 3.0svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397 case $ac_init_help in
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001399 esac
1400 cat <<\_ACEOF
1401
1402Optional Features:
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001405 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1409 YES)
David Greenea696d242007-06-28 19:36:08 +00001410 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001411 Compile with expensive debug checks enabled (default
1412 is NO)
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001417 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001418 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001419 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001420 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001421 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001422 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001423 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001424 --enable-shared Build a shared library and link tools against it
1425 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001428 --enable-timestamps Enable embedding timestamp information in build
1429 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001439 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001440 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001441
1442Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001447 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 searches PATH)
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001451 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang)
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001457 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001458 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1463 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001464 --with-c-include-dirs Colon separated list of directories clang will
1465 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001474 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001475 submitted (default=http://llvm.org/bugs/)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001476 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1478 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001479 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001480 --with-oprofile=<prefix>
1481 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001482
1483Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001484 CC C compiler command
1485 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001489 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001490 CXX C++ compiler command
1491 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001492 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001493
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
1497Report bugs to <llvmbugs@cs.uiuc.edu>.
1498_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001499ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001505 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001506 ac_builddir=.
1507
Reid Spencera773bd52006-08-04 18:18:08 +00001508case "$ac_dir" in
1509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001512 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518esac
1519ac_abs_top_builddir=$ac_pwd
1520ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521# for backward compatibility:
1522ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001523
1524case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001525 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001526 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001530 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001537esac
Reid Spencera773bd52006-08-04 18:18:08 +00001538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001539
Reid Spencera773bd52006-08-04 18:18:08 +00001540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001548 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001552 done
1553fi
1554
Reid Spencera773bd52006-08-04 18:18:08 +00001555test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001556if $ac_init_version; then
1557 cat <<\_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001558llvm configure 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001561Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15622002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001566Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001567_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001568 exit
John Criswell7a73b802003-06-30 21:59:07 +00001569fi
Reid Spencera773bd52006-08-04 18:18:08 +00001570cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001571This file contains any messages produced by compilers while
1572running configure, to aid debugging if configure makes a mistake.
1573
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001574It was created by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001575generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001576
1577 $ $0 $@
1578
1579_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001580exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001581{
1582cat <<_ASUNAME
1583## --------- ##
1584## Platform. ##
1585## --------- ##
1586
1587hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1595
1596/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001599/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001600/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1603
1604_ASUNAME
1605
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001611 echo "PATH: $as_dir"
1612done
Reid Spencera773bd52006-08-04 18:18:08 +00001613IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001614
1615} >&5
1616
1617cat >&5 <<_ACEOF
1618
1619
1620## ----------- ##
1621## Core tests. ##
1622## ----------- ##
1623
1624_ACEOF
1625
1626
1627# Keep a trace of the command line.
1628# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001630# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001631# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001632ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001633ac_configure_args0=
1634ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001635ac_must_keep_next=false
1636for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001637do
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 for ac_arg
1639 do
1640 case $ac_arg in
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1644 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001645 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 esac
1648 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001653 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001654 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001655 case $ac_arg in
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 esac
1663 ;;
1664 -* ) ac_must_keep_next=true ;;
1665 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001666 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001667 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ;;
1669 esac
1670 done
John Criswell7a73b802003-06-30 21:59:07 +00001671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001672$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673$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 +00001674
1675# When interrupted or exit'd, cleanup temporary files, and complete
1676# config.log. We remove comments because anyway the quotes in there
1677# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001678# WARNING: Use '\'' to represent an apostrophe within the trap.
1679# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001680trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1682 {
1683 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001684
John Criswell7a73b802003-06-30 21:59:07 +00001685 cat <<\_ASBOX
1686## ---------------- ##
1687## Cache variables. ##
1688## ---------------- ##
1689_ASBOX
1690 echo
1691 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001692(
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1695 case $ac_val in #(
1696 *${as_nl}*)
1697 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001700 esac
1701 case $ac_var in #(
1702 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001703 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001704 esac ;;
1705 esac
1706 done
John Criswell7a73b802003-06-30 21:59:07 +00001707 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001710 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001714 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001717 esac |
1718 sort
1719)
John Criswell7a73b802003-06-30 21:59:07 +00001720 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001721
1722 cat <<\_ASBOX
1723## ----------------- ##
1724## Output variables. ##
1725## ----------------- ##
1726_ASBOX
1727 echo
1728 for ac_var in $ac_subst_vars
1729 do
Reid Spencera773bd52006-08-04 18:18:08 +00001730 eval ac_val=\$$ac_var
1731 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001733 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001734 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001735 done | sort
1736 echo
1737
1738 if test -n "$ac_subst_files"; then
1739 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001740## ------------------- ##
1741## File substitutions. ##
1742## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001743_ASBOX
1744 echo
1745 for ac_var in $ac_subst_files
1746 do
Reid Spencera773bd52006-08-04 18:18:08 +00001747 eval ac_val=\$$ac_var
1748 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001750 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 done | sort
1753 echo
1754 fi
1755
John Criswell7a73b802003-06-30 21:59:07 +00001756 if test -s confdefs.h; then
1757 cat <<\_ASBOX
1758## ----------- ##
1759## confdefs.h. ##
1760## ----------- ##
1761_ASBOX
1762 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001763 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001764 echo
1765 fi
1766 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001769 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001772 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001773' 0
John Criswell7a73b802003-06-30 21:59:07 +00001774for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001776done
1777ac_signal=0
1778
1779# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001780rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001781
1782# Predefined preprocessor variables.
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_NAME "$PACKAGE_NAME"
1786_ACEOF
1787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791_ACEOF
1792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793
John Criswell7a73b802003-06-30 21:59:07 +00001794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_VERSION "$PACKAGE_VERSION"
1796_ACEOF
1797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798
John Criswell7a73b802003-06-30 21:59:07 +00001799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_STRING "$PACKAGE_STRING"
1801_ACEOF
1802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803
John Criswell7a73b802003-06-30 21:59:07 +00001804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806_ACEOF
1807
1808
1809# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001811if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001813elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001819shift
1820for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001821do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001825 sed 's/^/| /' "$ac_site_file" >&5
1826 . "$ac_site_file"
1827 fi
1828done
1829
1830if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001836 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001839 esac
1840 fi
1841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001844 >$cache_file
1845fi
1846
1847# Check that the precious variables saved in the cache have kept the same
1848# value.
1849ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001850for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001855 case $ac_old_set,$ac_new_set in
1856 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001859 ac_cache_corrupted=: ;;
1860 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001863 ac_cache_corrupted=: ;;
1864 ,);;
1865 *)
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001874 fi;;
1875 esac
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1878 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001880 *) ac_arg=$ac_var=$ac_new_val ;;
1881 esac
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001885 esac
1886 fi
1887done
1888if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
Reid Spencera773bd52006-08-04 18:18:08 +00001919
John Criswell7a73b802003-06-30 21:59:07 +00001920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001928LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001929
1930
1931
1932
1933
1934
1935
John Criswell7a73b802003-06-30 21:59:07 +00001936ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001937for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001938 if test -f "$ac_dir/install-sh"; then
1939 ac_aux_dir=$ac_dir
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1941 break
1942 elif test -f "$ac_dir/install.sh"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1945 break
1946 elif test -f "$ac_dir/shtool"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 break
1950 fi
John Criswell7a73b802003-06-30 21:59:07 +00001951done
1952if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001956fi
Reid Spencera773bd52006-08-04 18:18:08 +00001957
1958# These three variables are undocumented and unsupported,
1959# and are intended to be withdrawn in a future Autoconf release.
1960# They can cause serious problems if a builder's source tree is in a directory
1961# whose full name contains unusual characters.
1962ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1965
John Criswell7a73b802003-06-30 21:59:07 +00001966
John Criswell392aaa32003-07-22 19:18:09 +00001967
Reid Spencer2706f8c2004-09-19 23:53:36 +00001968if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001969 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001973 fi
John Criswell93e1c722003-09-15 17:04:06 +00001974fi
1975
Nick Lewycky83fc4472009-09-29 05:48:51 +00001976ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001977ac_cpp='$CPP $CPPFLAGS'
1978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001981if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001982 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001983 do
1984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1988if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001990else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001993else
1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 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 +00002001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002003 break 2
2004 fi
2005done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002006done
Reid Spencera773bd52006-08-04 18:18:08 +00002007IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002008
2009fi
2010fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002011CC=$ac_cv_prog_CC
2012if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002013 { echo "$as_me:$LINENO: result: $CC" >&5
2014echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002015else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002016 { echo "$as_me:$LINENO: result: no" >&5
2017echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002018fi
2019
Reid Spencera773bd52006-08-04 18:18:08 +00002020
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002022 done
2023fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002024if test -z "$CC"; then
2025 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002026 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002027do
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002034else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 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 +00002045 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002047 break 2
2048 fi
2049done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002050done
Reid Spencera773bd52006-08-04 18:18:08 +00002051IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002052
2053fi
2054fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002055ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002057 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002060 { echo "$as_me:$LINENO: result: no" >&5
2061echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002062fi
2063
Reid Spencera773bd52006-08-04 18:18:08 +00002064
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002065 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002066done
John Criswell7a73b802003-06-30 21:59:07 +00002067
Reid Spencera773bd52006-08-04 18:18:08 +00002068 if test "x$ac_ct_CC" = x; then
2069 CC=""
2070 else
2071 case $cross_compiling:$ac_tool_warned in
2072yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002073{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2074whose name does not start with the host triplet. If you think this
2075configuration is useful to you, please write to autoconf@gnu.org." >&5
2076echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2077whose name does not start with the host triplet. If you think this
2078configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002079ac_tool_warned=yes ;;
2080esac
2081 CC=$ac_ct_CC
2082 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002083fi
2084
John Criswell7a73b802003-06-30 21:59:07 +00002085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2087See \`config.log' for more details." >&5
2088echo "$as_me: error: no acceptable C compiler found in \$PATH
2089See \`config.log' for more details." >&2;}
2090 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002091
John Criswell7a73b802003-06-30 21:59:07 +00002092# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002093echo "$as_me:$LINENO: checking for C compiler version" >&5
2094ac_compiler=`set X $ac_compile; echo $2`
2095{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002096case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002102 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105{ (ac_try="$ac_compiler -v >&5"
2106case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109esac
2110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -v >&5") 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115{ (ac_try="$ac_compiler -V >&5"
2116case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119esac
2120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121 (eval "$ac_compiler -V >&5") 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002126cat >conftest.$ac_ext <<_ACEOF
2127/* confdefs.h. */
2128_ACEOF
2129cat confdefs.h >>conftest.$ac_ext
2130cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002132
John Criswell7a73b802003-06-30 21:59:07 +00002133int
2134main ()
2135{
2136
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002142ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002143# Try to create an executable without -o first, disregard a.out.
2144# It will help us diagnose broken compilers, and finding out an intuition
2145# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2147echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2148ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149#
2150# List of possible output files, starting from the most likely.
2151# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2152# only as a last resort. b.out is created by i960 compilers.
2153ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2154#
2155# The IRIX 6 linker writes into existing files which may not be
2156# executable, retaining their permissions. Remove them first so a
2157# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002158ac_rmfiles=
2159for ac_file in $ac_files
2160do
2161 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002163 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2164 esac
2165done
2166rm -f $ac_rmfiles
2167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002168if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002169case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002174 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002175 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002178 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2179# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2180# in a Makefile. We should not override ac_cv_exeext if it was cached,
2181# so that the user can short-circuit this test for compilers unknown to
2182# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002183for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002184do
2185 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002186 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002189 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002190 # We found the default executable, but exeext='' is most
2191 # certainly right.
2192 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002193 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002194 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002195 then :; else
2196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197 fi
2198 # We set ac_cv_exeext here because the later test for it is not
2199 # safe: cross compilers may not add the suffix if given an `-o'
2200 # argument, so we may need to know it at that point already.
2201 # Even if this section looks crufty: it has the advantage of
2202 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002203 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002204 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002205 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002206 esac
2207done
Reid Spencera773bd52006-08-04 18:18:08 +00002208test "$ac_cv_exeext" = no && ac_cv_exeext=
2209
John Criswell7a73b802003-06-30 21:59:07 +00002210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002212sed 's/^/| /' conftest.$ac_ext >&5
2213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002214{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2215See \`config.log' for more details." >&5
2216echo "$as_me: error: C compiler cannot create executables
2217See \`config.log' for more details." >&2;}
2218 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002219fi
John Criswell7a73b802003-06-30 21:59:07 +00002220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002221ac_exeext=$ac_cv_exeext
2222{ echo "$as_me:$LINENO: result: $ac_file" >&5
2223echo "${ECHO_T}$ac_file" >&6; }
2224
2225# Check that the compiler produces executables we can run. If not, either
2226# the compiler is broken, or we cross compile.
2227{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2228echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2229# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2230# If not cross compiling, check that we can run a simple program.
2231if test "$cross_compiling" != yes; then
2232 if { ac_try='./$ac_file'
2233 { (case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236esac
2237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_try") 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 cross_compiling=no
2243 else
2244 if test "$cross_compiling" = maybe; then
2245 cross_compiling=yes
2246 else
2247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248If you meant to cross compile, use \`--host'.
2249See \`config.log' for more details." >&5
2250echo "$as_me: error: cannot run C compiled programs.
2251If you meant to cross compile, use \`--host'.
2252See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2254 fi
2255 fi
2256fi
2257{ echo "$as_me:$LINENO: result: yes" >&5
2258echo "${ECHO_T}yes" >&6; }
2259
2260rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002261ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002262# Check that the compiler produces executables we can run. If not, either
2263# the compiler is broken, or we cross compile.
2264{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2266{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267echo "${ECHO_T}$cross_compiling" >&6; }
2268
2269{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2271if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002272case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002277 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002278 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2283# work properly (i.e., refer to `conftest.exe'), while it won't with
2284# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002285for ac_file in conftest.exe conftest conftest.*; do
2286 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002287 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002290 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002291 * ) break;;
2292 esac
2293done
2294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002295 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296See \`config.log' for more details." >&5
2297echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298See \`config.log' for more details." >&2;}
2299 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002301
2302rm -f conftest$ac_cv_exeext
2303{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002305
2306rm -f conftest.$ac_ext
2307EXEEXT=$ac_cv_exeext
2308ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002309{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2311if test "${ac_cv_objext+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002313else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002314 cat >conftest.$ac_ext <<_ACEOF
2315/* confdefs.h. */
2316_ACEOF
2317cat confdefs.h >>conftest.$ac_ext
2318cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002320
John Criswell7a73b802003-06-30 21:59:07 +00002321int
2322main ()
2323{
2324
2325 ;
2326 return 0;
2327}
2328_ACEOF
2329rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002330if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002331case "(($ac_try" in
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2334esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002336 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002337 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002340 for ac_file in conftest.o conftest.obj conftest.*; do
2341 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002342 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345 break;;
2346 esac
2347done
2348else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002350sed 's/^/| /' conftest.$ac_ext >&5
2351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353See \`config.log' for more details." >&5
2354echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002358
John Criswell7a73b802003-06-30 21:59:07 +00002359rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002361{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002363OBJEXT=$ac_cv_objext
2364ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002365{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2367if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002370 cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002376
John Criswell7a73b802003-06-30 21:59:07 +00002377int
2378main ()
2379{
2380#ifndef __GNUC__
2381 choke me
2382#endif
2383
2384 ;
2385 return 0;
2386}
2387_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002388rm -f conftest.$ac_objext
2389if { (ac_try="$ac_compile"
2390case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393esac
2394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_compile") 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406esac
2407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416esac
2417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_try") 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002422 ac_compiler_gnu=yes
2423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424 echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002429
Reid Spencera773bd52006-08-04 18:18:08 +00002430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002432
2433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2436GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437ac_test_CFLAGS=${CFLAGS+set}
2438ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002439{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2441if test "${ac_cv_prog_cc_g+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002443else
Reid Spencera773bd52006-08-04 18:18:08 +00002444 ac_save_c_werror_flag=$ac_c_werror_flag
2445 ac_c_werror_flag=yes
2446 ac_cv_prog_cc_g=no
2447 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002448 cat >conftest.$ac_ext <<_ACEOF
2449/* confdefs.h. */
2450_ACEOF
2451cat confdefs.h >>conftest.$ac_ext
2452cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002453/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002454
John Criswell7a73b802003-06-30 21:59:07 +00002455int
2456main ()
2457{
2458
2459 ;
2460 return 0;
2461}
2462_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002463rm -f conftest.$ac_objext
2464if { (ac_try="$ac_compile"
2465case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2468esac
2469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_compile") 2>conftest.er1
2471 ac_status=$?
2472 grep -v '^ *+' conftest.er1 >conftest.err
2473 rm -f conftest.er1
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481esac
2482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; } &&
2487 { ac_try='test -s conftest.$ac_objext'
2488 { (case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491esac
2492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_try") 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002498else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002499 echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502 CFLAGS=""
2503 cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h. */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002508/* end confdefs.h. */
2509
2510int
2511main ()
2512{
2513
2514 ;
2515 return 0;
2516}
2517_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002518rm -f conftest.$ac_objext
2519if { (ac_try="$ac_compile"
2520case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523esac
2524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_compile") 2>conftest.er1
2526 ac_status=$?
2527 grep -v '^ *+' conftest.er1 >conftest.err
2528 rm -f conftest.er1
2529 cat conftest.err >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2533 { (case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536esac
2537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_try") 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2546esac
2547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_try") 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2552 :
Torok Edwin871384f2010-01-26 08:50:50 +00002553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002554 echo "$as_me: failed program was:" >&5
2555sed 's/^/| /' conftest.$ac_ext >&5
2556
2557 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002558 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559 cat >conftest.$ac_ext <<_ACEOF
2560/* confdefs.h. */
2561_ACEOF
2562cat confdefs.h >>conftest.$ac_ext
2563cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002564/* end confdefs.h. */
2565
2566int
2567main ()
2568{
2569
2570 ;
2571 return 0;
2572}
2573_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002574rm -f conftest.$ac_objext
2575if { (ac_try="$ac_compile"
2576case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579esac
2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
2593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2602esac
2603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_try") 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002608 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609else
2610 echo "$as_me: failed program was:" >&5
2611sed 's/^/| /' conftest.$ac_ext >&5
2612
2613
John Criswell7a73b802003-06-30 21:59:07 +00002614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002615
Reid Spencera773bd52006-08-04 18:18:08 +00002616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002618
Reid Spencera773bd52006-08-04 18:18:08 +00002619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002621
Reid Spencera773bd52006-08-04 18:18:08 +00002622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 ac_c_werror_flag=$ac_save_c_werror_flag
2624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002625{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627if test "$ac_test_CFLAGS" = set; then
2628 CFLAGS=$ac_save_CFLAGS
2629elif test $ac_cv_prog_cc_g = yes; then
2630 if test "$GCC" = yes; then
2631 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002632 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002634 fi
2635else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636 if test "$GCC" = yes; then
2637 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002638 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002640 fi
2641fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002642{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2643echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2644if test "${ac_cv_prog_cc_c89+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002646else
Reid Spencera773bd52006-08-04 18:18:08 +00002647 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002649cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h. */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654/* end confdefs.h. */
2655#include <stdarg.h>
2656#include <stdio.h>
2657#include <sys/types.h>
2658#include <sys/stat.h>
2659/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2660struct buf { int x; };
2661FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662static char *e (p, i)
2663 char **p;
2664 int i;
2665{
2666 return p[i];
2667}
2668static char *f (char * (*g) (char **, int), char **p, ...)
2669{
2670 char *s;
2671 va_list v;
2672 va_start (v,p);
2673 s = g (p, va_arg (v,int));
2674 va_end (v);
2675 return s;
2676}
2677
2678/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2679 function prototypes and stuff, but not '\xHH' hex character constants.
2680 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002681 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2683 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002684 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002685int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2686
Reid Spencera773bd52006-08-04 18:18:08 +00002687/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2688 inside strings and character constants. */
2689#define FOO(x) 'x'
2690int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2691
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002692int test (int i, double x);
2693struct s1 {int (*f) (int a);};
2694struct s2 {int (*f) (double a);};
2695int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2696int argc;
2697char **argv;
2698int
2699main ()
2700{
2701return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2702 ;
2703 return 0;
2704}
2705_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002706for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002708do
2709 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002710 rm -f conftest.$ac_objext
2711if { (ac_try="$ac_compile"
2712case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715esac
2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compile") 2>conftest.er1
2718 ac_status=$?
2719 grep -v '^ *+' conftest.er1 >conftest.err
2720 rm -f conftest.er1
2721 cat conftest.err >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2725 { (case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_try") 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738esac
2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_try") 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002744 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745else
2746 echo "$as_me: failed program was:" >&5
2747sed 's/^/| /' conftest.$ac_ext >&5
2748
2749
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002750fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751
Reid Spencera773bd52006-08-04 18:18:08 +00002752rm -f core conftest.err conftest.$ac_objext
2753 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002754done
Reid Spencera773bd52006-08-04 18:18:08 +00002755rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002756CC=$ac_save_CC
2757
2758fi
Reid Spencera773bd52006-08-04 18:18:08 +00002759# AC_CACHE_VAL
2760case "x$ac_cv_prog_cc_c89" in
2761 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002762 { echo "$as_me:$LINENO: result: none needed" >&5
2763echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002764 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002765 { echo "$as_me:$LINENO: result: unsupported" >&5
2766echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002767 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002768 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002769 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2770echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002771esac
2772
John Criswell0c38eaf2003-09-10 15:17:25 +00002773
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002774ac_ext=c
2775ac_cpp='$CPP $CPPFLAGS'
2776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
Eric Christopherffee5722011-09-16 20:36:25 +00002780ac_ext=cpp
2781ac_cpp='$CXXCPP $CPPFLAGS'
2782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2785if test -z "$CXX"; then
2786 if test -n "$CCC"; then
2787 CXX=$CCC
2788 else
2789 if test -n "$ac_tool_prefix"; then
2790 for ac_prog in clang++ llvm-g++ g++
2791 do
2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796if test "${ac_cv_prog_CXX+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798else
2799 if test -n "$CXX"; then
2800 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2801else
2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813done
2814done
2815IFS=$as_save_IFS
2816
2817fi
2818fi
2819CXX=$ac_cv_prog_CXX
2820if test -n "$CXX"; then
2821 { echo "$as_me:$LINENO: result: $CXX" >&5
2822echo "${ECHO_T}$CXX" >&6; }
2823else
2824 { echo "$as_me:$LINENO: result: no" >&5
2825echo "${ECHO_T}no" >&6; }
2826fi
2827
2828
2829 test -n "$CXX" && break
2830 done
2831fi
2832if test -z "$CXX"; then
2833 ac_ct_CXX=$CXX
2834 for ac_prog in clang++ llvm-g++ g++
2835do
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837set dummy $ac_prog; ac_word=$2
2838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842else
2843 if test -n "$ac_ct_CXX"; then
2844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_ac_ct_CXX="$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857done
2858done
2859IFS=$as_save_IFS
2860
2861fi
2862fi
2863ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2864if test -n "$ac_ct_CXX"; then
2865 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2866echo "${ECHO_T}$ac_ct_CXX" >&6; }
2867else
2868 { echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6; }
2870fi
2871
2872
2873 test -n "$ac_ct_CXX" && break
2874done
2875
2876 if test "x$ac_ct_CXX" = x; then
2877 CXX="g++"
2878 else
2879 case $cross_compiling:$ac_tool_warned in
2880yes:)
2881{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882whose name does not start with the host triplet. If you think this
2883configuration is useful to you, please write to autoconf@gnu.org." >&5
2884echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885whose name does not start with the host triplet. If you think this
2886configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887ac_tool_warned=yes ;;
2888esac
2889 CXX=$ac_ct_CXX
2890 fi
2891fi
2892
2893 fi
2894fi
2895# Provide some information about the compiler.
2896echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2897ac_compiler=`set X $ac_compile; echo $2`
2898{ (ac_try="$ac_compiler --version >&5"
2899case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler --version >&5") 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908{ (ac_try="$ac_compiler -v >&5"
2909case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912esac
2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -v >&5") 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918{ (ac_try="$ac_compiler -V >&5"
2919case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922esac
2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compiler -V >&5") 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2928
2929{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2930echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2931if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933else
2934 cat >conftest.$ac_ext <<_ACEOF
2935/* confdefs.h. */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h. */
2940
2941int
2942main ()
2943{
2944#ifndef __GNUC__
2945 choke me
2946#endif
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952rm -f conftest.$ac_objext
2953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2986 ac_compiler_gnu=yes
2987else
2988 echo "$as_me: failed program was:" >&5
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
2991 ac_compiler_gnu=no
2992fi
2993
2994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996
2997fi
2998{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2999echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3000GXX=`test $ac_compiler_gnu = yes && echo yes`
3001ac_test_CXXFLAGS=${CXXFLAGS+set}
3002ac_save_CXXFLAGS=$CXXFLAGS
3003{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3004echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3005if test "${ac_cv_prog_cxx_g+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007else
3008 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3009 ac_cxx_werror_flag=yes
3010 ac_cv_prog_cxx_g=no
3011 CXXFLAGS="-g"
3012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
3018
3019int
3020main ()
3021{
3022
3023 ;
3024 return 0;
3025}
3026_ACEOF
3027rm -f conftest.$ac_objext
3028if { (ac_try="$ac_compile"
3029case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_cv_prog_cxx_g=yes
3062else
3063 echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 CXXFLAGS=""
3067 cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h. */
3073
3074int
3075main ()
3076{
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082rm -f conftest.$ac_objext
3083if { (ac_try="$ac_compile"
3084case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 :
3117else
3118 echo "$as_me: failed program was:" >&5
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3122 CXXFLAGS="-g"
3123 cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129
3130int
3131main ()
3132{
3133
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext
3139if { (ac_try="$ac_compile"
3140case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3172 ac_cv_prog_cxx_g=yes
3173else
3174 echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177
3178fi
3179
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181fi
3182
3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184fi
3185
3186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3188fi
3189{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3190echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3191if test "$ac_test_CXXFLAGS" = set; then
3192 CXXFLAGS=$ac_save_CXXFLAGS
3193elif test $ac_cv_prog_cxx_g = yes; then
3194 if test "$GXX" = yes; then
3195 CXXFLAGS="-g -O2"
3196 else
3197 CXXFLAGS="-g"
3198 fi
3199else
3200 if test "$GXX" = yes; then
3201 CXXFLAGS="-O2"
3202 else
3203 CXXFLAGS=
3204 fi
3205fi
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003211
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212ac_ext=c
3213ac_cpp='$CPP $CPPFLAGS'
3214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3218echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003219# On Suns, sometimes $CPP names a directory.
3220if test -n "$CPP" && test -d "$CPP"; then
3221 CPP=
3222fi
3223if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224 if test "${ac_cv_prog_CPP+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003226else
3227 # Double quotes because CPP needs to be expanded
3228 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229 do
3230 ac_preproc_ok=false
3231for ac_c_preproc_warn_flag in '' yes
3232do
3233 # Use a header file that comes with gcc, so configuring glibc
3234 # with a fresh cross-compiler works.
3235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236 # <limits.h> exists even on freestanding compilers.
3237 # On the NeXT, cc -E runs the code through the compiler's parser,
3238 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003239 cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003244/* end confdefs.h. */
3245#ifdef __STDC__
3246# include <limits.h>
3247#else
3248# include <assert.h>
3249#endif
3250 Syntax error
3251_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003252if { (ac_try="$ac_cpp conftest.$ac_ext"
3253case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } >/dev/null; then
3265 if test -s conftest.err; then
3266 ac_cpp_err=$ac_c_preproc_warn_flag
3267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268 else
3269 ac_cpp_err=
3270 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003272 ac_cpp_err=yes
3273fi
3274if test -z "$ac_cpp_err"; then
3275 :
3276else
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003280 # Broken: fails on valid input.
3281continue
3282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003283
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003284rm -f conftest.err conftest.$ac_ext
3285
Reid Spencera773bd52006-08-04 18:18:08 +00003286 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003288 cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293/* end confdefs.h. */
3294#include <ac_nonexistent.h>
3295_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003296if { (ac_try="$ac_cpp conftest.$ac_ext"
3297case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300esac
3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } >/dev/null; then
3309 if test -s conftest.err; then
3310 ac_cpp_err=$ac_c_preproc_warn_flag
3311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312 else
3313 ac_cpp_err=
3314 fi
3315else
3316 ac_cpp_err=yes
3317fi
3318if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319 # Broken: success on invalid input.
3320continue
3321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003322 echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325 # Passes both tests.
3326ac_preproc_ok=:
3327break
3328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003329
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330rm -f conftest.err conftest.$ac_ext
3331
3332done
3333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003335if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336 break
3337fi
3338
3339 done
3340 ac_cv_prog_CPP=$CPP
3341
3342fi
3343 CPP=$ac_cv_prog_CPP
3344else
3345 ac_cv_prog_CPP=$CPP
3346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003347{ echo "$as_me:$LINENO: result: $CPP" >&5
3348echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349ac_preproc_ok=false
3350for ac_c_preproc_warn_flag in '' yes
3351do
3352 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser,
3357 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003358 cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h. */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363/* end confdefs.h. */
3364#ifdef __STDC__
3365# include <limits.h>
3366#else
3367# include <assert.h>
3368#endif
3369 Syntax error
3370_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003371if { (ac_try="$ac_cpp conftest.$ac_ext"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 else
3388 ac_cpp_err=
3389 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003390else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003391 ac_cpp_err=yes
3392fi
3393if test -z "$ac_cpp_err"; then
3394 :
3395else
3396 echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399 # Broken: fails on valid input.
3400continue
3401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003402
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003403rm -f conftest.err conftest.$ac_ext
3404
Reid Spencera773bd52006-08-04 18:18:08 +00003405 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003407 cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h. */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412/* end confdefs.h. */
3413#include <ac_nonexistent.h>
3414_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003415if { (ac_try="$ac_cpp conftest.$ac_ext"
3416case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419esac
3420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 ac_status=$?
3423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 else
3432 ac_cpp_err=
3433 fi
3434else
3435 ac_cpp_err=yes
3436fi
3437if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438 # Broken: success on invalid input.
3439continue
3440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003441 echo "$as_me: failed program was:" >&5
3442sed 's/^/| /' conftest.$ac_ext >&5
3443
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003444 # Passes both tests.
3445ac_preproc_ok=:
3446break
3447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003448
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449rm -f conftest.err conftest.$ac_ext
3450
3451done
3452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003454if $ac_preproc_ok; then
3455 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003457 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3458See \`config.log' for more details." >&5
3459echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3460See \`config.log' for more details." >&2;}
3461 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462fi
3463
John Criswell7a73b802003-06-30 21:59:07 +00003464ac_ext=c
3465ac_cpp='$CPP $CPPFLAGS'
3466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469
John Criswell7a73b802003-06-30 21:59:07 +00003470
Eric Christopherffee5722011-09-16 20:36:25 +00003471
3472
3473if test -d ${srcdir}/projects/llvm-gcc ; then
3474 subdirs="$subdirs projects/llvm-gcc"
3475
3476fi
3477
3478if test -d ${srcdir}/projects/test-suite ; then
3479 subdirs="$subdirs projects/test-suite"
3480
3481fi
3482
3483if test -d ${srcdir}/projects/llvm-test ; then
3484 subdirs="$subdirs projects/llvm-test"
3485
3486fi
3487
3488if test -d ${srcdir}/projects/poolalloc ; then
3489 subdirs="$subdirs projects/poolalloc"
3490
3491fi
3492
3493if test -d ${srcdir}/projects/llvm-poolalloc ; then
3494 subdirs="$subdirs projects/llvm-poolalloc"
3495
3496fi
3497
3498for i in `ls ${srcdir}/projects`
3499do
3500 if test -d ${srcdir}/projects/${i} ; then
3501 case ${i} in
3502 sample) subdirs="$subdirs projects/sample"
3503 ;;
3504 privbracket) subdirs="$subdirs projects/privbracket"
3505 ;;
3506 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3507 ;;
3508 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3509;;
3510 llvm-java) subdirs="$subdirs projects/llvm-java"
3511 ;;
3512 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3513 ;;
3514 safecode) subdirs="$subdirs projects/safecode"
3515 ;;
3516 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3517 ;;
3518 llvm-gcc) ;;
3519 test-suite) ;;
3520 llvm-test) ;;
3521 poolalloc) ;;
3522 llvm-poolalloc) ;;
3523 *)
3524 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3525echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3526 ;;
3527 esac
3528 fi
3529done
3530
3531# Check whether --enable-polly was given.
3532if test "${enable_polly+set}" = set; then
3533 enableval=$enable_polly;
3534else
3535 enableval=default
3536fi
3537
3538case "$enableval" in
3539 yes) ENABLE_POLLY=1
3540 ;;
3541 no) ENABLE_POLLY=0
3542 ;;
3543 default) ENABLE_POLLY=1
3544 ;;
3545 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3546echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3547 { (exit 1); exit 1; }; } ;;
3548esac
3549
3550
3551if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3552 LLVM_HAS_POLLY=1
3553
3554 subdirs="$subdirs tools/polly"
3555
3556fi
3557
3558
3559# Make sure we can run config.sub.
3560$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3561 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3562echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3563 { (exit 1); exit 1; }; }
3564
3565{ echo "$as_me:$LINENO: checking build system type" >&5
3566echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3567if test "${ac_cv_build+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3569else
3570 ac_build_alias=$build_alias
3571test "x$ac_build_alias" = x &&
3572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3573test "x$ac_build_alias" = x &&
3574 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3575echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3576 { (exit 1); exit 1; }; }
3577ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3579echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3580 { (exit 1); exit 1; }; }
3581
3582fi
3583{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3584echo "${ECHO_T}$ac_cv_build" >&6; }
3585case $ac_cv_build in
3586*-*-*) ;;
3587*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3588echo "$as_me: error: invalid value of canonical build" >&2;}
3589 { (exit 1); exit 1; }; };;
3590esac
3591build=$ac_cv_build
3592ac_save_IFS=$IFS; IFS='-'
3593set x $ac_cv_build
3594shift
3595build_cpu=$1
3596build_vendor=$2
3597shift; shift
3598# Remember, the first character of IFS is used to create $*,
3599# except with old shells:
3600build_os=$*
3601IFS=$ac_save_IFS
3602case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3603
3604
3605{ echo "$as_me:$LINENO: checking host system type" >&5
3606echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3607if test "${ac_cv_host+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610 if test "x$host_alias" = x; then
3611 ac_cv_host=$ac_cv_build
3612else
3613 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3614 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3615echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3616 { (exit 1); exit 1; }; }
3617fi
3618
3619fi
3620{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3621echo "${ECHO_T}$ac_cv_host" >&6; }
3622case $ac_cv_host in
3623*-*-*) ;;
3624*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3625echo "$as_me: error: invalid value of canonical host" >&2;}
3626 { (exit 1); exit 1; }; };;
3627esac
3628host=$ac_cv_host
3629ac_save_IFS=$IFS; IFS='-'
3630set x $ac_cv_host
3631shift
3632host_cpu=$1
3633host_vendor=$2
3634shift; shift
3635# Remember, the first character of IFS is used to create $*,
3636# except with old shells:
3637host_os=$*
3638IFS=$ac_save_IFS
3639case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3640
3641
3642{ echo "$as_me:$LINENO: checking target system type" >&5
3643echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3644if test "${ac_cv_target+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
3647 if test "x$target_alias" = x; then
3648 ac_cv_target=$ac_cv_host
3649else
3650 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3651 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3652echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3653 { (exit 1); exit 1; }; }
3654fi
3655
3656fi
3657{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3658echo "${ECHO_T}$ac_cv_target" >&6; }
3659case $ac_cv_target in
3660*-*-*) ;;
3661*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3662echo "$as_me: error: invalid value of canonical target" >&2;}
3663 { (exit 1); exit 1; }; };;
3664esac
3665target=$ac_cv_target
3666ac_save_IFS=$IFS; IFS='-'
3667set x $ac_cv_target
3668shift
3669target_cpu=$1
3670target_vendor=$2
3671shift; shift
3672# Remember, the first character of IFS is used to create $*,
3673# except with old shells:
3674target_os=$*
3675IFS=$ac_save_IFS
3676case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3677
3678
3679# The aliases save the names the user supplied, while $host etc.
3680# will get canonicalized.
3681test -n "$target_alias" &&
3682 test "$program_prefix$program_suffix$program_transform_name" = \
3683 NONENONEs,x,x, &&
3684 program_prefix=${target_alias}-
3685
3686{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3687echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3688if test "${llvm_cv_os_type+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690else
3691 case $host in
3692 *-*-aix*)
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="AIX"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-irix*)
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="IRIX"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-cygwin*)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Cygwin"
3706 llvm_cv_platform_type="Unix" ;;
3707 *-*-darwin*)
3708 llvm_cv_link_all_option="-Wl,-all_load"
3709 llvm_cv_no_link_all_option="-Wl,-noall_load"
3710 llvm_cv_os_type="Darwin"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-*-minix*)
3713 llvm_cv_link_all_option="-Wl,-all_load"
3714 llvm_cv_no_link_all_option="-Wl,-noall_load"
3715 llvm_cv_os_type="Minix"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-*-freebsd*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="FreeBSD"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-*-openbsd*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="OpenBSD"
3726 llvm_cv_platform_type="Unix" ;;
3727 *-*-netbsd*)
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="NetBSD"
3731 llvm_cv_platform_type="Unix" ;;
3732 *-*-dragonfly*)
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="DragonFly"
3736 llvm_cv_platform_type="Unix" ;;
3737 *-*-hpux*)
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="HP-UX"
3741 llvm_cv_platform_type="Unix" ;;
3742 *-*-interix*)
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="Interix"
3746 llvm_cv_platform_type="Unix" ;;
3747 *-*-linux*)
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="Linux"
3751 llvm_cv_platform_type="Unix" ;;
3752 *-*-solaris*)
3753 llvm_cv_link_all_option="-Wl,-z,allextract"
3754 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3755 llvm_cv_os_type="SunOS"
3756 llvm_cv_platform_type="Unix" ;;
3757 *-*-auroraux*)
3758 llvm_cv_link_all_option="-Wl,-z,allextract"
3759 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3760 llvm_cv_os_type="AuroraUX"
3761 llvm_cv_platform_type="Unix" ;;
3762 *-*-win32*)
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="Win32"
3766 llvm_cv_platform_type="Win32" ;;
3767 *-*-mingw*)
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="MingW"
3771 llvm_cv_platform_type="Win32" ;;
3772 *-*-haiku*)
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Haiku"
3776 llvm_cv_platform_type="Unix" ;;
3777 *-unknown-eabi*)
3778 llvm_cv_link_all_option="-Wl,--whole-archive"
3779 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780 llvm_cv_os_type="Freestanding"
3781 llvm_cv_platform_type="Unix" ;;
3782 *-unknown-elf*)
3783 llvm_cv_link_all_option="-Wl,--whole-archive"
3784 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3785 llvm_cv_os_type="Freestanding"
3786 llvm_cv_platform_type="Unix" ;;
3787 *)
3788 llvm_cv_link_all_option=""
3789 llvm_cv_no_link_all_option=""
3790 llvm_cv_os_type="Unknown"
3791 llvm_cv_platform_type="Unknown" ;;
3792esac
3793fi
3794{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3795echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3796
3797{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3798echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3799if test "${llvm_cv_target_os_type+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801else
3802 case $target in
3803 *-*-aix*)
3804 llvm_cv_target_os_type="AIX" ;;
3805 *-*-irix*)
3806 llvm_cv_target_os_type="IRIX" ;;
3807 *-*-cygwin*)
3808 llvm_cv_target_os_type="Cygwin" ;;
3809 *-*-darwin*)
3810 llvm_cv_target_os_type="Darwin" ;;
3811 *-*-minix*)
3812 llvm_cv_target_os_type="Minix" ;;
3813 *-*-freebsd*)
3814 llvm_cv_target_os_type="FreeBSD" ;;
3815 *-*-openbsd*)
3816 llvm_cv_target_os_type="OpenBSD" ;;
3817 *-*-netbsd*)
3818 llvm_cv_target_os_type="NetBSD" ;;
3819 *-*-dragonfly*)
3820 llvm_cv_target_os_type="DragonFly" ;;
3821 *-*-hpux*)
3822 llvm_cv_target_os_type="HP-UX" ;;
3823 *-*-interix*)
3824 llvm_cv_target_os_type="Interix" ;;
3825 *-*-linux*)
3826 llvm_cv_target_os_type="Linux" ;;
3827 *-*-solaris*)
3828 llvm_cv_target_os_type="SunOS" ;;
3829 *-*-auroraux*)
3830 llvm_cv_target_os_type="AuroraUX" ;;
3831 *-*-win32*)
3832 llvm_cv_target_os_type="Win32" ;;
3833 *-*-mingw*)
3834 llvm_cv_target_os_type="MingW" ;;
3835 *-*-haiku*)
3836 llvm_cv_target_os_type="Haiku" ;;
3837 *-*-rtems*)
3838 llvm_cv_target_os_type="RTEMS" ;;
3839 *-*-nacl*)
3840 llvm_cv_target_os_type="NativeClient" ;;
3841 *-unknown-eabi*)
3842 llvm_cv_target_os_type="Freestanding" ;;
3843 *)
3844 llvm_cv_target_os_type="Unknown" ;;
3845esac
3846fi
3847{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3848echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3849
3850if test "$llvm_cv_os_type" = "Unknown" ; then
3851 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3852echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3853 { (exit 1); exit 1; }; }
3854fi
3855
3856OS=$llvm_cv_os_type
3857
3858HOST_OS=$llvm_cv_os_type
3859
3860TARGET_OS=$llvm_cv_target_os_type
3861
3862
3863LINKALL=$llvm_cv_link_all_option
3864
3865NOLINKALL=$llvm_cv_no_link_all_option
3866
3867
3868case $llvm_cv_platform_type in
3869 Unix)
3870
3871cat >>confdefs.h <<\_ACEOF
3872#define LLVM_ON_UNIX 1
3873_ACEOF
3874
3875 LLVM_ON_UNIX=1
3876
3877 LLVM_ON_WIN32=0
3878
3879 ;;
3880 Win32)
3881
3882cat >>confdefs.h <<\_ACEOF
3883#define LLVM_ON_WIN32 1
3884_ACEOF
3885
3886 LLVM_ON_UNIX=0
3887
3888 LLVM_ON_WIN32=1
3889
3890 ;;
3891esac
3892
3893{ echo "$as_me:$LINENO: checking target architecture" >&5
3894echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3895if test "${llvm_cv_target_arch+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898 case $target in
3899 i?86-*) llvm_cv_target_arch="x86" ;;
3900 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3901 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3902 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3903 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3904 arm*-*) llvm_cv_target_arch="ARM" ;;
3905 mips-*) llvm_cv_target_arch="Mips" ;;
3906 xcore-*) llvm_cv_target_arch="XCore" ;;
3907 msp430-*) llvm_cv_target_arch="MSP430" ;;
3908 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3909 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3910 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3911 ptx-*) llvm_cv_target_arch="PTX" ;;
3912 *) llvm_cv_target_arch="Unknown" ;;
3913esac
3914fi
3915{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3917
3918if test "$llvm_cv_target_arch" = "Unknown" ; then
3919 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3921fi
3922
3923# Determine the LLVM native architecture for the target
3924case "$llvm_cv_target_arch" in
3925 x86) LLVM_NATIVE_ARCH="X86" ;;
3926 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3927 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3928esac
3929
3930ARCH=$llvm_cv_target_arch
3931
3932
3933
3934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003935{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3936echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3937if test "${ac_cv_path_GREP+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003940 # Extract the first word of "grep ggrep" to use in msg output
3941if test -z "$GREP"; then
3942set dummy grep ggrep; ac_prog_name=$2
3943if test "${ac_cv_path_GREP+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
Reid Spencera773bd52006-08-04 18:18:08 +00003946 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947# Loop through the user's path and test for each of PROGNAME-LIST
3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003949for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953 for ac_prog in grep ggrep; do
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3956 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3957 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003958 # Check for GNU $ac_path_GREP
3959case `"$ac_path_GREP" --version 2>&1` in
3960*GNU*)
3961 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3962*)
3963 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003965 while :
3966 do
3967 cat "conftest.in" "conftest.in" >"conftest.tmp"
3968 mv "conftest.tmp" "conftest.in"
3969 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003970 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003971 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003973 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003974 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3975 # Best one so far, save it but keep looking for a better one
3976 ac_cv_path_GREP="$ac_path_GREP"
3977 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003978 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003979 # 10*(2^10) chars as input seems more than enough
3980 test $ac_count -gt 10 && break
3981 done
3982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3983esac
3984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985
3986 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003987 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988done
3989
3990done
Reid Spencera773bd52006-08-04 18:18:08 +00003991IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992
3993
3994fi
3995
3996GREP="$ac_cv_path_GREP"
3997if test -z "$GREP"; then
3998 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3999echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4000 { (exit 1); exit 1; }; }
4001fi
4002
Reid Spencera773bd52006-08-04 18:18:08 +00004003else
4004 ac_cv_path_GREP=$GREP
4005fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004007
Reid Spencera773bd52006-08-04 18:18:08 +00004008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004009{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4010echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004011 GREP="$ac_cv_path_GREP"
4012
4013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004014{ echo "$as_me:$LINENO: checking for egrep" >&5
4015echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4016if test "${ac_cv_path_EGREP+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004018else
4019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020 then ac_cv_path_EGREP="$GREP -E"
4021 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004022 # Extract the first word of "egrep" to use in msg output
4023if test -z "$EGREP"; then
4024set dummy egrep; ac_prog_name=$2
4025if test "${ac_cv_path_EGREP+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
Reid Spencera773bd52006-08-04 18:18:08 +00004028 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004029# Loop through the user's path and test for each of PROGNAME-LIST
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004031for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4032do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004035 for ac_prog in egrep; do
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4038 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4039 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004040 # Check for GNU $ac_path_EGREP
4041case `"$ac_path_EGREP" --version 2>&1` in
4042*GNU*)
4043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4044*)
4045 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004047 while :
4048 do
4049 cat "conftest.in" "conftest.in" >"conftest.tmp"
4050 mv "conftest.tmp" "conftest.in"
4051 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004052 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004053 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004055 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004056 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4057 # Best one so far, save it but keep looking for a better one
4058 ac_cv_path_EGREP="$ac_path_EGREP"
4059 ac_path_EGREP_max=$ac_count
4060 fi
4061 # 10*(2^10) chars as input seems more than enough
4062 test $ac_count -gt 10 && break
4063 done
4064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4065esac
4066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004067
4068 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004069 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004070done
4071
4072done
Reid Spencera773bd52006-08-04 18:18:08 +00004073IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004074
4075
4076fi
4077
4078EGREP="$ac_cv_path_EGREP"
4079if test -z "$EGREP"; then
4080 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4081echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4082 { (exit 1); exit 1; }; }
4083fi
4084
Reid Spencera773bd52006-08-04 18:18:08 +00004085else
4086 ac_cv_path_EGREP=$EGREP
4087fi
4088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089
Reid Spencera773bd52006-08-04 18:18:08 +00004090 fi
4091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004092{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4093echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004094 EGREP="$ac_cv_path_EGREP"
4095
4096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4098echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4099if test "${ac_cv_header_stdc+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004102 cat >conftest.$ac_ext <<_ACEOF
4103/* confdefs.h. */
4104_ACEOF
4105cat confdefs.h >>conftest.$ac_ext
4106cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004108#include <stdlib.h>
4109#include <stdarg.h>
4110#include <string.h>
4111#include <float.h>
4112
John Criswell0c38eaf2003-09-10 15:17:25 +00004113int
4114main ()
4115{
4116
4117 ;
4118 return 0;
4119}
John Criswell7a73b802003-06-30 21:59:07 +00004120_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004121rm -f conftest.$ac_objext
4122if { (ac_try="$ac_compile"
4123case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126esac
4127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004155 ac_cv_header_stdc=yes
4156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004157 echo "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
4159
4160 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004161fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004162
Reid Spencera773bd52006-08-04 18:18:08 +00004163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004164
4165if test $ac_cv_header_stdc = yes; then
4166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004167 cat >conftest.$ac_ext <<_ACEOF
4168/* confdefs.h. */
4169_ACEOF
4170cat confdefs.h >>conftest.$ac_ext
4171cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004173#include <string.h>
4174
4175_ACEOF
4176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004177 $EGREP "memchr" >/dev/null 2>&1; then
4178 :
John Criswell7a73b802003-06-30 21:59:07 +00004179else
4180 ac_cv_header_stdc=no
4181fi
4182rm -f conftest*
4183
4184fi
4185
4186if test $ac_cv_header_stdc = yes; then
4187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004188 cat >conftest.$ac_ext <<_ACEOF
4189/* confdefs.h. */
4190_ACEOF
4191cat confdefs.h >>conftest.$ac_ext
4192cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004193/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004194#include <stdlib.h>
4195
4196_ACEOF
4197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004198 $EGREP "free" >/dev/null 2>&1; then
4199 :
John Criswell7a73b802003-06-30 21:59:07 +00004200else
4201 ac_cv_header_stdc=no
4202fi
4203rm -f conftest*
4204
4205fi
4206
4207if test $ac_cv_header_stdc = yes; then
4208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004209 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004210 :
4211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004212 cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004217/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004218#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004219#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004220#if ((' ' & 0x0FF) == 0x020)
4221# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4222# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4223#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004224# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004225 (('a' <= (c) && (c) <= 'i') \
4226 || ('j' <= (c) && (c) <= 'r') \
4227 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004228# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4229#endif
4230
4231#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4232int
4233main ()
4234{
4235 int i;
4236 for (i = 0; i < 256; i++)
4237 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004238 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004239 return 2;
4240 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004241}
4242_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004243rm -f conftest$ac_exeext
4244if { (ac_try="$ac_link"
4245case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248esac
4249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_link") 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4254 { (case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257esac
4258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_try") 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 :
John Criswell7a73b802003-06-30 21:59:07 +00004264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004265 echo "$as_me: program exited with status $ac_status" >&5
4266echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269( exit $ac_status )
4270ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272rm -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 +00004273fi
4274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004275
John Criswell7a73b802003-06-30 21:59:07 +00004276fi
4277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004278{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4279echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004280if test $ac_cv_header_stdc = yes; then
4281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282cat >>confdefs.h <<\_ACEOF
4283#define STDC_HEADERS 1
4284_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004285
4286fi
4287
Reid Spencera773bd52006-08-04 18:18:08 +00004288# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289
4290
4291
4292
4293
4294
4295
4296
4297
Reid Spencera773bd52006-08-04 18:18:08 +00004298for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4299 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004300do
4301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306else
4307 cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h. */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h. */
4313$ac_includes_default
4314
4315#include <$ac_header>
4316_ACEOF
4317rm -f conftest.$ac_objext
4318if { (ac_try="$ac_compile"
4319case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322esac
4323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_compile") 2>conftest.er1
4325 ac_status=$?
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345esac
4346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_try") 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 eval "$as_ac_Header=yes"
4352else
4353 echo "$as_me: failed program was:" >&5
4354sed 's/^/| /' conftest.$ac_ext >&5
4355
4356 eval "$as_ac_Header=no"
4357fi
4358
4359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360fi
4361ac_res=`eval echo '${'$as_ac_Header'}'`
4362 { echo "$as_me:$LINENO: result: $ac_res" >&5
4363echo "${ECHO_T}$ac_res" >&6; }
4364if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004365 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004367_ACEOF
4368
4369fi
4370
4371done
4372
4373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4375echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4376if test "${ac_cv_c_bigendian+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004378else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004379 # See if sys/param.h defines the BYTE_ORDER macro.
4380cat >conftest.$ac_ext <<_ACEOF
4381/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004382_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004383cat confdefs.h >>conftest.$ac_ext
4384cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004385/* end confdefs.h. */
4386#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004388
4389int
4390main ()
4391{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4393 bogus endian macros
4394#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004395
4396 ;
4397 return 0;
4398}
4399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004400rm -f conftest.$ac_objext
4401if { (ac_try="$ac_compile"
4402case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_compile") 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4415 { (case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418esac
4419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_try") 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428esac
4429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_try") 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004434 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004435cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h. */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004440/* end confdefs.h. */
4441#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004442#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004443
4444int
4445main ()
4446{
4447#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004448 not big endian
4449#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004450
4451 ;
4452 return 0;
4453}
4454_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004455rm -f conftest.$ac_objext
4456if { (ac_try="$ac_compile"
4457case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_compile") 2>conftest.er1
4463 ac_status=$?
4464 grep -v '^ *+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470 { (case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473esac
4474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_try") 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483esac
4484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004489 ac_cv_c_bigendian=yes
4490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004491 echo "$as_me: failed program was:" >&5
4492sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004494 ac_cv_c_bigendian=no
4495fi
4496
4497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498else
4499 echo "$as_me: failed program was:" >&5
4500sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 # It does not; compile a test program.
4503if test "$cross_compiling" = yes; then
4504 # try to guess the endianness by grepping values into an object file
4505 ac_cv_c_bigendian=unknown
4506 cat >conftest.$ac_ext <<_ACEOF
4507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h. */
4512short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4513short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4514void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4515short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4516short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4517void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004518int
4519main ()
4520{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004521 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004522 ;
4523 return 0;
4524}
4525_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526rm -f conftest.$ac_objext
4527if { (ac_try="$ac_compile"
4528case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531esac
4532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_compile") 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4541 { (case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544esac
4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_try") 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554esac
4555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_try") 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004561 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562fi
4563if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4564 if test "$ac_cv_c_bigendian" = unknown; then
4565 ac_cv_c_bigendian=no
4566 else
4567 # finding both strings is unlikely to happen, but who knows?
4568 ac_cv_c_bigendian=unknown
4569 fi
4570fi
Reid Spencera773bd52006-08-04 18:18:08 +00004571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572 echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004575
Torok Edwin871384f2010-01-26 08:50:50 +00004576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577
Reid Spencera773bd52006-08-04 18:18:08 +00004578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004580 cat >conftest.$ac_ext <<_ACEOF
4581/* confdefs.h. */
4582_ACEOF
4583cat confdefs.h >>conftest.$ac_ext
4584cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004585/* end confdefs.h. */
4586$ac_includes_default
4587int
4588main ()
4589{
4590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004591 /* Are we little or big endian? From Harbison&Steele. */
4592 union
4593 {
4594 long int l;
4595 char c[sizeof (long int)];
4596 } u;
4597 u.l = 1;
4598 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004599
4600 ;
4601 return 0;
4602}
4603_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604rm -f conftest$ac_exeext
4605if { (ac_try="$ac_link"
4606case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609esac
4610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_link") 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4615 { (case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618esac
4619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_try") 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004624 ac_cv_c_bigendian=no
4625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004626 echo "$as_me: program exited with status $ac_status" >&5
4627echo "$as_me: failed program was:" >&5
4628sed 's/^/| /' conftest.$ac_ext >&5
4629
4630( exit $ac_status )
4631ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004632fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004633rm -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 +00004634fi
4635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004636
Reid Spencera773bd52006-08-04 18:18:08 +00004637fi
4638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640fi
4641{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4642echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4643case $ac_cv_c_bigendian in
4644 yes)
4645 ENDIAN=big
4646 ;;
4647 no)
4648 ENDIAN=little
4649 ;;
4650 *)
4651 { { echo "$as_me:$LINENO: error: unknown endianness
4652presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4653echo "$as_me: error: unknown endianness
4654presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4655 { (exit 1); exit 1; }; } ;;
4656esac
Reid Spencera773bd52006-08-04 18:18:08 +00004657
4658
4659if test "$cross_compiling" = yes; then
4660 LLVM_CROSS_COMPILING=1
4661
4662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4664echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4665if test "${ac_cv_build_exeext+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004667else
4668 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4669 ac_cv_build_exeext=.exe
4670else
4671 ac_build_prefix=${build_alias}-
4672
4673 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4674set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004679else
4680 if test -n "$BUILD_CC"; then
4681 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4682else
4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 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 +00004690 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004692 break 2
4693 fi
4694done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004695done
Reid Spencera773bd52006-08-04 18:18:08 +00004696IFS=$as_save_IFS
4697
4698fi
4699fi
4700BUILD_CC=$ac_cv_prog_BUILD_CC
4701if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4703echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004705 { echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004707fi
4708
4709
4710 if test -z "$BUILD_CC"; then
4711 # Extract the first word of "gcc", so it can be a program name with args.
4712set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004717else
4718 if test -n "$BUILD_CC"; then
4719 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4720else
4721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722for as_dir in $PATH
4723do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 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 +00004728 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004730 break 2
4731 fi
4732done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004733done
Reid Spencera773bd52006-08-04 18:18:08 +00004734IFS=$as_save_IFS
4735
4736fi
4737fi
4738BUILD_CC=$ac_cv_prog_BUILD_CC
4739if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004740 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4741echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004742else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004743 { echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004745fi
4746
4747
4748 if test -z "$BUILD_CC"; then
4749 # Extract the first word of "cc", so it can be a program name with args.
4750set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4753if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004755else
4756 if test -n "$BUILD_CC"; then
4757 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4758else
4759 ac_prog_rejected=no
4760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 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 +00004767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4768 ac_prog_rejected=yes
4769 continue
4770 fi
4771 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004773 break 2
4774 fi
4775done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004776done
Reid Spencera773bd52006-08-04 18:18:08 +00004777IFS=$as_save_IFS
4778
4779if test $ac_prog_rejected = yes; then
4780 # We found a bogon in the path, so make sure we never use it.
4781 set dummy $ac_cv_prog_BUILD_CC
4782 shift
4783 if test $# != 0; then
4784 # We chose a different compiler from the bogus one.
4785 # However, it has the same basename, so the bogon will be chosen
4786 # first if we set BUILD_CC to just the basename; use the full file name.
4787 shift
4788 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4789 fi
4790fi
4791fi
4792fi
4793BUILD_CC=$ac_cv_prog_BUILD_CC
4794if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4796echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004798 { echo "$as_me:$LINENO: result: no" >&5
4799echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004800fi
4801
4802
4803 fi
4804 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004805 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4806echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4807 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4809 rm -f conftest*
4810 echo 'int main () { return 0; }' > conftest.$ac_ext
4811 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004812 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004813 (eval $ac_build_link) 2>&5
4814 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004817 for file in conftest.*; do
4818 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004819 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004820 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4821 esac
4822 done
4823 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004824 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4825echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4826 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004827 fi
4828 rm -f conftest*
4829 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4830fi
4831fi
4832
4833BUILD_EXEEXT=""
4834test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004835{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4836echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004837ac_build_exeext=$BUILD_EXEEXT
4838
Jim Grosbach673612e2008-10-02 22:56:44 +00004839 ac_build_prefix=${build_alias}-
4840 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4841set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004846else
4847 if test -n "$BUILD_CXX"; then
4848 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4849else
4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851for as_dir in $PATH
4852do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 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 +00004857 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004859 break 2
4860 fi
4861done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004862done
Jim Grosbach673612e2008-10-02 22:56:44 +00004863IFS=$as_save_IFS
4864
4865fi
4866fi
4867BUILD_CXX=$ac_cv_prog_BUILD_CXX
4868if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4870echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872 { echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004874fi
4875
4876
4877 if test -z "$BUILD_CXX"; then
4878 # Extract the first word of "g++", so it can be a program name with args.
4879set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004884else
4885 if test -n "$BUILD_CXX"; then
4886 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4887else
4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 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 +00004895 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004897 break 2
4898 fi
4899done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004900done
Jim Grosbach673612e2008-10-02 22:56:44 +00004901IFS=$as_save_IFS
4902
4903fi
4904fi
4905BUILD_CXX=$ac_cv_prog_BUILD_CXX
4906if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004907 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4908echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004910 { echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004912fi
4913
4914
4915 if test -z "$BUILD_CXX"; then
4916 # Extract the first word of "c++", so it can be a program name with args.
4917set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004922else
4923 if test -n "$BUILD_CXX"; then
4924 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4925else
4926 ac_prog_rejected=no
4927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928for as_dir in $PATH
4929do
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 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 +00004934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4935 ac_prog_rejected=yes
4936 continue
4937 fi
4938 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004940 break 2
4941 fi
4942done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004943done
Jim Grosbach673612e2008-10-02 22:56:44 +00004944IFS=$as_save_IFS
4945
4946if test $ac_prog_rejected = yes; then
4947 # We found a bogon in the path, so make sure we never use it.
4948 set dummy $ac_cv_prog_BUILD_CXX
4949 shift
4950 if test $# != 0; then
4951 # We chose a different compiler from the bogus one.
4952 # However, it has the same basename, so the bogon will be chosen
4953 # first if we set BUILD_CXX to just the basename; use the full file name.
4954 shift
4955 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4956 fi
4957fi
4958fi
4959fi
4960BUILD_CXX=$ac_cv_prog_BUILD_CXX
4961if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004962 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4963echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004965 { echo "$as_me:$LINENO: result: no" >&5
4966echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004967fi
4968
4969
4970 fi
4971 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004972else
4973 LLVM_CROSS_COMPILING=0
4974
4975fi
4976
Dan Gohman56fb5f92010-08-04 16:25:01 +00004977if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004978 cvsbuild="yes"
4979 optimize="no"
4980 CVSBUILD=CVSBUILD=1
4981
4982else
4983 cvsbuild="no"
4984 optimize="yes"
4985fi
4986
4987
4988# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004989if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004990 enableval=$enable_optimized;
4991else
4992 enableval=$optimize
4993fi
4994
4995if test ${enableval} = "no" ; then
4996 ENABLE_OPTIMIZED=
4997
4998else
4999 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5000
5001fi
5002
David Greene2a5a12c2009-04-17 14:50:39 +00005003# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005004if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005005 enableval=$enable_profiling;
5006else
5007 enableval="no"
5008fi
5009
5010if test ${enableval} = "no" ; then
5011 ENABLE_PROFILING=
5012
5013else
5014 ENABLE_PROFILING=ENABLE_PROFILING=1
5015
5016fi
5017
Reid Spencera773bd52006-08-04 18:18:08 +00005018# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005019if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005020 enableval=$enable_assertions;
5021else
5022 enableval="yes"
5023fi
5024
5025if test ${enableval} = "yes" ; then
5026 DISABLE_ASSERTIONS=
5027
5028else
5029 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5030
5031fi
5032
David Greenea696d242007-06-28 19:36:08 +00005033# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005034if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005035 enableval=$enable_expensive_checks;
5036else
5037 enableval="no"
5038fi
5039
5040if test ${enableval} = "yes" ; then
5041 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5042
5043 EXPENSIVE_CHECKS=yes
5044
5045else
5046 ENABLE_EXPENSIVE_CHECKS=
5047
5048 EXPENSIVE_CHECKS=no
5049
5050fi
5051
Reid Spencer8b2e1412006-11-17 03:32:33 +00005052# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005053if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005054 enableval=$enable_debug_runtime;
5055else
5056 enableval=no
5057fi
5058
5059if test ${enableval} = "no" ; then
5060 DEBUG_RUNTIME=
5061
5062else
5063 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5064
5065fi
5066
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005067# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005068if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005069 enableval=$enable_debug_symbols;
5070else
5071 enableval=no
5072fi
5073
5074if test ${enableval} = "no" ; then
5075 DEBUG_SYMBOLS=
5076
5077else
5078 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5079
5080fi
5081
Reid Spencera773bd52006-08-04 18:18:08 +00005082# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005083if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005084 enableval=$enable_jit;
5085else
5086 enableval=default
5087fi
5088
5089if test ${enableval} = "no"
5090then
5091 JIT=
5092
5093else
5094 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005095 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005096 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005097 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005098 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005099 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005100 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005101 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005102 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00005103 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005104 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005105 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005106 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005107 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005108 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005109 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005110 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005111 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005112 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005113 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00005114 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005115 Blackfin) TARGET_HAS_JIT=0
5116 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005117 MBlaze) TARGET_HAS_JIT=0
5118 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005119 PTX) TARGET_HAS_JIT=0
5120 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005121 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005122 ;;
5123 esac
5124fi
5125
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005126# Check whether --enable-docs was given.
5127if test "${enable_docs+set}" = set; then
5128 enableval=$enable_docs;
5129else
5130 enableval=default
5131fi
5132
5133case "$enableval" in
5134 yes) ENABLE_DOCS=1
5135 ;;
5136 no) ENABLE_DOCS=0
5137 ;;
5138 default) ENABLE_DOCS=1
5139 ;;
5140 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5141echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5142 { (exit 1); exit 1; }; } ;;
5143esac
5144
Reid Spencera773bd52006-08-04 18:18:08 +00005145# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005146if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005147 enableval=$enable_doxygen;
5148else
5149 enableval=default
5150fi
5151
5152case "$enableval" in
5153 yes) ENABLE_DOXYGEN=1
5154 ;;
5155 no) ENABLE_DOXYGEN=0
5156 ;;
5157 default) ENABLE_DOXYGEN=0
5158 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005159 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5160echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5161 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005162esac
5163
5164# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005165if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005166 enableval=$enable_threads;
5167else
Reid Spencer65c5d752006-11-05 17:08:18 +00005168 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005169fi
5170
5171case "$enableval" in
5172 yes) ENABLE_THREADS=1
5173 ;;
5174 no) ENABLE_THREADS=0
5175 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005176 default) ENABLE_THREADS=1
5177 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005178 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5179echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5180 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005181esac
5182
Owen Andersona8603702009-05-19 22:18:56 +00005183cat >>confdefs.h <<_ACEOF
5184#define ENABLE_THREADS $ENABLE_THREADS
5185_ACEOF
5186
5187
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005188# Check whether --enable-pthreads was given.
5189if test "${enable_pthreads+set}" = set; then
5190 enableval=$enable_pthreads;
5191else
5192 enableval=default
5193fi
5194
5195case "$enableval" in
5196 yes) ENABLE_PTHREADS=1
5197 ;;
5198 no) ENABLE_PTHREADS=0
5199 ;;
5200 default) ENABLE_PTHREADS=1
5201 ;;
5202 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5203echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5205esac
5206
Reid Spencer89b0d992006-12-16 22:07:52 +00005207# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005208if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005209 enableval=$enable_pic;
5210else
5211 enableval=default
5212fi
5213
5214case "$enableval" in
5215 yes) ENABLE_PIC=1
5216 ;;
5217 no) ENABLE_PIC=0
5218 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005219 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005220 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005221 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5222echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5223 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005224esac
5225
5226cat >>confdefs.h <<_ACEOF
5227#define ENABLE_PIC $ENABLE_PIC
5228_ACEOF
5229
5230
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005231# Check whether --enable-shared was given.
5232if test "${enable_shared+set}" = set; then
5233 enableval=$enable_shared;
5234else
5235 enableval=default
5236fi
5237
5238case "$enableval" in
5239 yes) ENABLE_SHARED=1
5240 ;;
5241 no) ENABLE_SHARED=0
5242 ;;
5243 default) ENABLE_SHARED=0
5244 ;;
5245 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5246echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5247 { (exit 1); exit 1; }; } ;;
5248esac
5249
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005250# Check whether --enable-embed-stdcxx was given.
5251if test "${enable_embed_stdcxx+set}" = set; then
5252 enableval=$enable_embed_stdcxx;
5253else
5254 enableval=default
5255fi
5256
5257case "$enableval" in
5258 yes) ENABLE_EMBED_STDCXX=1
5259 ;;
5260 no) ENABLE_EMBED_STDCXX=0
5261 ;;
5262 default) ENABLE_EMBED_STDCXX=1
5263 ;;
5264 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5265echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5267esac
5268
Daniel Dunbardd464df2010-05-10 20:11:56 +00005269# Check whether --enable-timestamps was given.
5270if test "${enable_timestamps+set}" = set; then
5271 enableval=$enable_timestamps;
5272else
5273 enableval=default
5274fi
5275
5276case "$enableval" in
5277 yes) ENABLE_TIMESTAMPS=1
5278 ;;
5279 no) ENABLE_TIMESTAMPS=0
5280 ;;
5281 default) ENABLE_TIMESTAMPS=1
5282 ;;
5283 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5284echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5286esac
5287
5288cat >>confdefs.h <<_ACEOF
5289#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5290_ACEOF
5291
5292
Reid Spencera773bd52006-08-04 18:18:08 +00005293TARGETS_TO_BUILD=""
5294# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005295if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005296 enableval=$enable_targets;
5297else
5298 enableval=all
5299fi
5300
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005301if test "$enableval" = host-only ; then
5302 enableval=host
5303fi
Reid Spencera773bd52006-08-04 18:18:08 +00005304case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005305 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 +00005306 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5307 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005308 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5313 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005316 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5318 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5319 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5320 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005321 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005322 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005323 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005324 host) case "$llvm_cv_target_arch" in
5325 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5328 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5329 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5330 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5331 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005332 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005333 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005334 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5335 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005336 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005337 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005338 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005339 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5340echo "$as_me: error: Can not set target to build" >&2;}
5341 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005342 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005343 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5344echo "$as_me: error: Unrecognized target $a_target" >&2;}
5345 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005346 esac
5347 done
5348 ;;
5349esac
Reid Spencera773bd52006-08-04 18:18:08 +00005350TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5351
5352
Douglas Gregor0711c302009-06-17 00:43:20 +00005353# Determine whether we are building LLVM support for the native architecture.
5354# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5355for a_target in $TARGETS_TO_BUILD; do
5356 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5357
5358cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005359#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5360_ACEOF
5361
5362 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5363 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005364 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005365 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005366 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5367 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5368 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005369
5370cat >>confdefs.h <<_ACEOF
5371#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005372_ACEOF
5373
5374
5375cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005376#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5377_ACEOF
5378
5379
5380cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005381#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005382_ACEOF
5383
5384
5385cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005386#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005387_ACEOF
5388
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005389 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005390
5391cat >>confdefs.h <<_ACEOF
5392#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5393_ACEOF
5394
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005395 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005396 fi
5397done
5398
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005399# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5400# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005401LLVM_ENUM_TARGETS=""
5402LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005403LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005404LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005405for target_to_build in $TARGETS_TO_BUILD; do
5406 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005407 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005408 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5409 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005410 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5411 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5412 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005413 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5414 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5415 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005416done
5417
5418
5419
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005420
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005421
Reid Spencer65c5d752006-11-05 17:08:18 +00005422# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005423if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005424 enableval=$enable_cbe_printf_a;
5425else
5426 enableval=default
5427fi
5428
5429case "$enableval" in
5430 yes) ENABLE_CBE_PRINTF_A=1
5431 ;;
5432 no) ENABLE_CBE_PRINTF_A=0
5433 ;;
5434 default) ENABLE_CBE_PRINTF_A=1
5435 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5437echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5438 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005439esac
5440
5441cat >>confdefs.h <<_ACEOF
5442#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5443_ACEOF
5444
5445
Reid Spencera773bd52006-08-04 18:18:08 +00005446
5447# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005448if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005449 withval=$with_llvmgccdir;
5450else
5451 withval=default
5452fi
5453
5454case "$withval" in
5455 default) WITH_LLVMGCCDIR=default ;;
5456 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005457 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5458echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5459 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005460esac
5461
5462
Devang Patel5d28b882007-12-04 22:54:47 +00005463# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005464if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005465 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5466 WITH_LLVMGCCDIR=""
5467fi
5468
5469
5470
5471# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005472if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005473 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5474 WITH_LLVMGCCDIR=""
5475fi
5476
Douglas Gregor01746742009-05-11 18:05:52 +00005477
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005478if test -n "$LLVMGCC"; then
5479 LLVMGCCCOMMAND="$LLVMGCC"
5480fi
5481
5482if test -n "$LLVMGXX"; then
5483 LLVMGXXCOMMAND="$LLVMGXX"
5484fi
Devang Patel5d28b882007-12-04 22:54:47 +00005485
5486if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005487 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5488echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5489 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005490fi
5491
5492if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5494echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5495 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005496fi
5497
5498
Daniel Dunbar98515672010-02-23 10:00:49 +00005499# Check whether --with-clang was given.
5500if test "${with_clang+set}" = set; then
5501 withval=$with_clang;
5502else
5503 with_clang=default
5504fi
5505
5506
5507
5508# Check whether --with-built-clang was given.
5509if test "${with_built_clang+set}" = set; then
5510 withval=$with_built_clang;
5511else
5512 with_built_clang=check
5513fi
5514
5515
5516{ echo "$as_me:$LINENO: checking clang compiler" >&5
5517echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5518WITH_CLANGPATH=""
5519WITH_BUILT_CLANG=0
5520if test "$with_clang" != "default"; then
5521 WITH_CLANGPATH="$with_clang"
5522 if ! test -x "$WITH_CLANGPATH"; then
5523 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5524echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5525 { (exit 1); exit 1; }; }
5526 fi
5527elif test "$with_built_clang" = "yes"; then
5528 WITH_BUILT_CLANG=1
5529elif test "$with_built_clang" = "no"; then
5530 WITH_BUILT_CLANG=0
5531else
5532 if test "$with_built_clang" != "check"; then
5533 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5534echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5535 { (exit 1); exit 1; }; }
5536 fi
5537
5538 if test -f ${srcdir}/tools/clang/README.txt; then
5539 WITH_BUILT_CLANG=1
5540 fi
5541fi
5542
5543if ! test -z "$WITH_CLANGPATH"; then
5544 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5545echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5546 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5547elif test "$WITH_BUILT_CLANG" = "1"; then
5548 { echo "$as_me:$LINENO: result: built" >&5
5549echo "${ECHO_T}built" >&6; }
5550else
5551 { echo "$as_me:$LINENO: result: none" >&5
5552echo "${ECHO_T}none" >&6; }
5553fi
5554CLANGPATH=$WITH_CLANGPATH
5555
5556CLANGXXPATH=$WITH_CLANGXXPATH
5557
5558ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5559
5560
5561
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005562# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005563if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005564 withval=$with_optimize_option;
5565else
5566 withval=default
5567fi
5568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005569{ echo "$as_me:$LINENO: checking optimization flags" >&5
5570echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005571case "$withval" in
5572 default)
5573 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005574 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005575 MingW) optimize_option=-O2 ;;
5576 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005577 esac ;;
5578 *) optimize_option="$withval" ;;
5579esac
5580OPTIMIZE_OPTION=$optimize_option
5581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005582{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5583echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005584
5585
Reid Spencera773bd52006-08-04 18:18:08 +00005586# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005588 withval=$with_extra_options;
5589else
5590 withval=default
5591fi
5592
5593case "$withval" in
5594 default) EXTRA_OPTIONS= ;;
5595 *) EXTRA_OPTIONS=$withval ;;
5596esac
5597EXTRA_OPTIONS=$EXTRA_OPTIONS
5598
5599
Daniel Dunbared344d22011-06-16 22:30:41 +00005600
5601# Check whether --with-extra-ld-options was given.
5602if test "${with_extra_ld_options+set}" = set; then
5603 withval=$with_extra_ld_options;
5604else
5605 withval=default
5606fi
5607
5608case "$withval" in
5609 default) EXTRA_LD_OPTIONS= ;;
5610 *) EXTRA_LD_OPTIONS=$withval ;;
5611esac
5612EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5613
5614
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005615# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005617 enableval=$enable_bindings;
5618else
5619 enableval=default
5620fi
5621
5622BINDINGS_TO_BUILD=""
5623case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005624 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005625 all ) BINDINGS_TO_BUILD="ocaml" ;;
5626 none | no) BINDINGS_TO_BUILD="" ;;
5627 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5628 case "$a_binding" in
5629 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005630 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5631echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5632 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005633 esac
5634 done
5635 ;;
5636esac
5637
Reid Spencera773bd52006-08-04 18:18:08 +00005638
Gordon Henriksenf0915682007-10-02 16:42:22 +00005639# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005641 withval=$with_ocaml_libdir;
5642else
5643 withval=auto
5644fi
5645
5646case "$withval" in
5647 auto) with_ocaml_libdir="$withval" ;;
5648 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005649 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5650echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5651 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005652esac
5653
5654
Chandler Carruth6b241162010-10-19 08:21:25 +00005655# Check whether --with-clang-resource-dir was given.
5656if test "${with_clang_resource_dir+set}" = set; then
5657 withval=$with_clang_resource_dir;
5658else
5659 withval=""
5660fi
5661
5662
5663cat >>confdefs.h <<_ACEOF
5664#define CLANG_RESOURCE_DIR "$withval"
5665_ACEOF
5666
5667
5668
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005669# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005670if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005671 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005672else
5673 withval=""
5674fi
5675
5676
5677cat >>confdefs.h <<_ACEOF
5678#define C_INCLUDE_DIRS "$withval"
5679_ACEOF
5680
5681
5682
Rafael Espindola420d23c2009-11-16 19:46:55 +00005683# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005684if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005685 withval=$with_cxx_include_root;
5686else
5687 withval=""
5688fi
5689
5690
5691cat >>confdefs.h <<_ACEOF
5692#define CXX_INCLUDE_ROOT "$withval"
5693_ACEOF
5694
5695
5696
5697# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005698if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005699 withval=$with_cxx_include_arch;
5700else
5701 withval=""
5702fi
5703
5704
5705cat >>confdefs.h <<_ACEOF
5706#define CXX_INCLUDE_ARCH "$withval"
5707_ACEOF
5708
5709
5710
5711# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005712if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005713 withval=$with_cxx_include_32bit_dir;
5714else
5715 withval=""
5716fi
5717
5718
5719cat >>confdefs.h <<_ACEOF
5720#define CXX_INCLUDE_32BIT_DIR "$withval"
5721_ACEOF
5722
5723
5724
5725# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005726if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005727 withval=$with_cxx_include_64bit_dir;
5728else
5729 withval=""
5730fi
5731
5732
5733cat >>confdefs.h <<_ACEOF
5734#define CXX_INCLUDE_64BIT_DIR "$withval"
5735_ACEOF
5736
5737
5738
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005739# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005740if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005741 withval=$with_binutils_include;
5742else
5743 withval=default
5744fi
5745
5746case "$withval" in
5747 default) WITH_BINUTILS_INCDIR=default ;;
5748 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005749 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5750echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5751 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005752esac
5753if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5754 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5755
5756 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5757 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5759echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5760 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005761 fi
5762fi
5763
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005764
5765# Check whether --with-bug-report-url was given.
5766if test "${with_bug_report_url+set}" = set; then
5767 withval=$with_bug_report_url;
5768else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005769 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005770fi
5771
5772
5773cat >>confdefs.h <<_ACEOF
5774#define BUG_REPORT_URL "$withval"
5775_ACEOF
5776
5777
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005778# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005780 enableval=$enable_libffi; case "$enableval" in
5781 yes) llvm_cv_enable_libffi="yes" ;;
5782 no) llvm_cv_enable_libffi="no" ;;
5783 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5785 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005786 esac
5787else
5788 llvm_cv_enable_libffi=no
5789fi
5790
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005791
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005792
Reid Spencera773bd52006-08-04 18:18:08 +00005793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5795echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5796if test "${lt_cv_path_NM+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005798else
5799 if test -n "$NM"; then
5800 # Let the user override the test.
5801 lt_cv_path_NM="$NM"
5802else
5803 lt_nm_to_check="${ac_tool_prefix}nm"
5804 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5805 lt_nm_to_check="$lt_nm_to_check nm"
5806 fi
5807 for lt_tmp_nm in $lt_nm_to_check; do
5808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5809 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5810 IFS="$lt_save_ifs"
5811 test -z "$ac_dir" && ac_dir=.
5812 tmp_nm="$ac_dir/$lt_tmp_nm"
5813 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5814 # Check to see if the nm accepts a BSD-compat flag.
5815 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5816 # nm: unknown option "B" ignored
5817 # Tru64's nm complains that /dev/null is an invalid object file
5818 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5819 */dev/null* | *'Invalid file or object type'*)
5820 lt_cv_path_NM="$tmp_nm -B"
5821 break
5822 ;;
5823 *)
5824 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5825 */dev/null*)
5826 lt_cv_path_NM="$tmp_nm -p"
5827 break
5828 ;;
5829 *)
5830 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5831 continue # so that we can try to find one that supports BSD flags
5832 ;;
5833 esac
5834 ;;
5835 esac
5836 fi
5837 done
5838 IFS="$lt_save_ifs"
5839 done
5840 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5841fi
5842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5844echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005845NM="$lt_cv_path_NM"
5846
5847
5848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849{ echo "$as_me:$LINENO: checking for GNU make" >&5
5850echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5851if test "${llvm_cv_gnu_make_command+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005853else
5854 llvm_cv_gnu_make_command=''
5855 for a in "$MAKE" make gmake gnumake ; do
5856 if test -z "$a" ; then continue ; fi ;
5857 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5858 then
5859 llvm_cv_gnu_make_command=$a ;
5860 break;
5861 fi
5862 done
5863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005864{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5865echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005866 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5867 ifGNUmake='' ;
5868 else
5869 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005870 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5871echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005872 fi
5873
5874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005875{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5876echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005877LN_S=$as_ln_s
5878if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879 { echo "$as_me:$LINENO: result: yes" >&5
5880echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005881else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005882 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5883echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005884fi
5885
5886# Extract the first word of "cmp", so it can be a program name with args.
5887set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5890if test "${ac_cv_path_CMP+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005892else
5893 case $CMP in
5894 [\\/]* | ?:[\\/]*)
5895 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5896 ;;
5897 *)
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005905 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005907 break 2
5908 fi
5909done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005910done
Reid Spencera773bd52006-08-04 18:18:08 +00005911IFS=$as_save_IFS
5912
5913 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5914 ;;
5915esac
5916fi
5917CMP=$ac_cv_path_CMP
5918if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005919 { echo "$as_me:$LINENO: result: $CMP" >&5
5920echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005922 { echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005924fi
5925
5926
5927# Extract the first word of "cp", so it can be a program name with args.
5928set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5931if test "${ac_cv_path_CP+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005933else
5934 case $CP in
5935 [\\/]* | ?:[\\/]*)
5936 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5937 ;;
5938 *)
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005946 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005948 break 2
5949 fi
5950done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005951done
Reid Spencera773bd52006-08-04 18:18:08 +00005952IFS=$as_save_IFS
5953
5954 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5955 ;;
5956esac
5957fi
5958CP=$ac_cv_path_CP
5959if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005960 { echo "$as_me:$LINENO: result: $CP" >&5
5961echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005962else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005963 { echo "$as_me:$LINENO: result: no" >&5
5964echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005965fi
5966
5967
5968# Extract the first word of "date", so it can be a program name with args.
5969set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972if test "${ac_cv_path_DATE+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005974else
5975 case $DATE in
5976 [\\/]* | ?:[\\/]*)
5977 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5978 ;;
5979 *)
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005987 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005989 break 2
5990 fi
5991done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005992done
Reid Spencera773bd52006-08-04 18:18:08 +00005993IFS=$as_save_IFS
5994
5995 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5996 ;;
5997esac
5998fi
5999DATE=$ac_cv_path_DATE
6000if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006001 { echo "$as_me:$LINENO: result: $DATE" >&5
6002echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006003else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004 { echo "$as_me:$LINENO: result: no" >&5
6005echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006006fi
6007
6008
6009# Extract the first word of "find", so it can be a program name with args.
6010set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6013if test "${ac_cv_path_FIND+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006015else
6016 case $FIND in
6017 [\\/]* | ?:[\\/]*)
6018 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6019 ;;
6020 *)
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006028 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006030 break 2
6031 fi
6032done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006033done
Reid Spencera773bd52006-08-04 18:18:08 +00006034IFS=$as_save_IFS
6035
6036 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6037 ;;
6038esac
6039fi
6040FIND=$ac_cv_path_FIND
6041if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006042 { echo "$as_me:$LINENO: result: $FIND" >&5
6043echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006044else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045 { echo "$as_me:$LINENO: result: no" >&5
6046echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006047fi
6048
6049
6050# Extract the first word of "grep", so it can be a program name with args.
6051set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054if test "${ac_cv_path_GREP+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006056else
6057 case $GREP in
6058 [\\/]* | ?:[\\/]*)
6059 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6060 ;;
6061 *)
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 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 +00006069 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006071 break 2
6072 fi
6073done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006074done
Reid Spencera773bd52006-08-04 18:18:08 +00006075IFS=$as_save_IFS
6076
6077 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6078 ;;
6079esac
6080fi
6081GREP=$ac_cv_path_GREP
6082if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083 { echo "$as_me:$LINENO: result: $GREP" >&5
6084echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006085else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006086 { echo "$as_me:$LINENO: result: no" >&5
6087echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006088fi
6089
6090
6091# Extract the first word of "mkdir", so it can be a program name with args.
6092set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095if test "${ac_cv_path_MKDIR+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006097else
6098 case $MKDIR in
6099 [\\/]* | ?:[\\/]*)
6100 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6101 ;;
6102 *)
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 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 +00006110 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006112 break 2
6113 fi
6114done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006115done
Reid Spencera773bd52006-08-04 18:18:08 +00006116IFS=$as_save_IFS
6117
6118 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6119 ;;
6120esac
6121fi
6122MKDIR=$ac_cv_path_MKDIR
6123if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006124 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6125echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006126else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006127 { echo "$as_me:$LINENO: result: no" >&5
6128echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006129fi
6130
6131
6132# Extract the first word of "mv", so it can be a program name with args.
6133set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136if test "${ac_cv_path_MV+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006138else
6139 case $MV in
6140 [\\/]* | ?:[\\/]*)
6141 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6142 ;;
6143 *)
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 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 +00006151 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006153 break 2
6154 fi
6155done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006156done
Reid Spencera773bd52006-08-04 18:18:08 +00006157IFS=$as_save_IFS
6158
6159 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6160 ;;
6161esac
6162fi
6163MV=$ac_cv_path_MV
6164if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165 { echo "$as_me:$LINENO: result: $MV" >&5
6166echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006168 { echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006170fi
6171
6172
6173if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6175set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178if test "${ac_cv_prog_RANLIB+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006180else
6181 if test -n "$RANLIB"; then
6182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 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 +00006191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006193 break 2
6194 fi
6195done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196done
Reid Spencera773bd52006-08-04 18:18:08 +00006197IFS=$as_save_IFS
6198
6199fi
6200fi
6201RANLIB=$ac_cv_prog_RANLIB
6202if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6204echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206 { echo "$as_me:$LINENO: result: no" >&5
6207echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006208fi
6209
6210
6211fi
6212if test -z "$ac_cv_prog_RANLIB"; then
6213 ac_ct_RANLIB=$RANLIB
6214 # Extract the first word of "ranlib", so it can be a program name with args.
6215set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6218if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006220else
6221 if test -n "$ac_ct_RANLIB"; then
6222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6223else
6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225for as_dir in $PATH
6226do
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 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 +00006231 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006233 break 2
6234 fi
6235done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006236done
Reid Spencera773bd52006-08-04 18:18:08 +00006237IFS=$as_save_IFS
6238
6239fi
6240fi
6241ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6242if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006243 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6244echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006246 { echo "$as_me:$LINENO: result: no" >&5
6247echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006248fi
6249
6250 if test "x$ac_ct_RANLIB" = x; then
6251 RANLIB=":"
6252 else
6253 case $cross_compiling:$ac_tool_warned in
6254yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6256whose name does not start with the host triplet. If you think this
6257configuration is useful to you, please write to autoconf@gnu.org." >&5
6258echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6259whose name does not start with the host triplet. If you think this
6260configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006261ac_tool_warned=yes ;;
6262esac
6263 RANLIB=$ac_ct_RANLIB
6264 fi
6265else
6266 RANLIB="$ac_cv_prog_RANLIB"
6267fi
6268
Torok Edwin871384f2010-01-26 08:50:50 +00006269if test -n "$ac_tool_prefix"; then
6270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6271set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274if test "${ac_cv_prog_AR+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006276else
6277 if test -n "$AR"; then
6278 ac_cv_prog_AR="$AR" # Let the user override the test.
6279else
6280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281for as_dir in $PATH
6282do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 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 +00006287 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006289 break 2
6290 fi
6291done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006292done
Torok Edwin871384f2010-01-26 08:50:50 +00006293IFS=$as_save_IFS
6294
6295fi
6296fi
6297AR=$ac_cv_prog_AR
6298if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006299 { echo "$as_me:$LINENO: result: $AR" >&5
6300echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006302 { echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006304fi
6305
6306
6307fi
6308if test -z "$ac_cv_prog_AR"; then
6309 ac_ct_AR=$AR
6310 # Extract the first word of "ar", so it can be a program name with args.
6311set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006316else
6317 if test -n "$ac_ct_AR"; then
6318 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 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 +00006327 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006329 break 2
6330 fi
6331done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332done
Torok Edwin871384f2010-01-26 08:50:50 +00006333IFS=$as_save_IFS
6334
6335fi
6336fi
6337ac_ct_AR=$ac_cv_prog_ac_ct_AR
6338if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006339 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6340echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342 { echo "$as_me:$LINENO: result: no" >&5
6343echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006344fi
6345
6346 if test "x$ac_ct_AR" = x; then
6347 AR="false"
6348 else
6349 case $cross_compiling:$ac_tool_warned in
6350yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006351{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6352whose name does not start with the host triplet. If you think this
6353configuration is useful to you, please write to autoconf@gnu.org." >&5
6354echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6355whose name does not start with the host triplet. If you think this
6356configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006357ac_tool_warned=yes ;;
6358esac
6359 AR=$ac_ct_AR
6360 fi
6361else
6362 AR="$ac_cv_prog_AR"
6363fi
6364
Reid Spencera773bd52006-08-04 18:18:08 +00006365# Extract the first word of "rm", so it can be a program name with args.
6366set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369if test "${ac_cv_path_RM+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006371else
6372 case $RM in
6373 [\\/]* | ?:[\\/]*)
6374 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6375 ;;
6376 *)
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006384 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006386 break 2
6387 fi
6388done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389done
Reid Spencera773bd52006-08-04 18:18:08 +00006390IFS=$as_save_IFS
6391
6392 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6393 ;;
6394esac
6395fi
6396RM=$ac_cv_path_RM
6397if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006398 { echo "$as_me:$LINENO: result: $RM" >&5
6399echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006401 { echo "$as_me:$LINENO: result: no" >&5
6402echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006403fi
6404
6405
6406# Extract the first word of "sed", so it can be a program name with args.
6407set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6410if test "${ac_cv_path_SED+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006412else
6413 case $SED in
6414 [\\/]* | ?:[\\/]*)
6415 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6416 ;;
6417 *)
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 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 +00006425 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006427 break 2
6428 fi
6429done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006430done
Reid Spencera773bd52006-08-04 18:18:08 +00006431IFS=$as_save_IFS
6432
6433 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6434 ;;
6435esac
6436fi
6437SED=$ac_cv_path_SED
6438if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006439 { echo "$as_me:$LINENO: result: $SED" >&5
6440echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006442 { echo "$as_me:$LINENO: result: no" >&5
6443echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006444fi
6445
6446
6447# Extract the first word of "tar", so it can be a program name with args.
6448set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451if test "${ac_cv_path_TAR+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006453else
6454 case $TAR in
6455 [\\/]* | ?:[\\/]*)
6456 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6457 ;;
6458 *)
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 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 +00006466 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006468 break 2
6469 fi
6470done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006471done
Reid Spencera773bd52006-08-04 18:18:08 +00006472IFS=$as_save_IFS
6473
6474 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6475 ;;
6476esac
6477fi
6478TAR=$ac_cv_path_TAR
6479if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006480 { echo "$as_me:$LINENO: result: $TAR" >&5
6481echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006483 { echo "$as_me:$LINENO: result: no" >&5
6484echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006485fi
6486
6487
6488# Extract the first word of "pwd", so it can be a program name with args.
6489set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6492if test "${ac_cv_path_BINPWD+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006494else
6495 case $BINPWD in
6496 [\\/]* | ?:[\\/]*)
6497 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6498 ;;
6499 *)
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501for as_dir in $PATH
6502do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 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 +00006507 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006509 break 2
6510 fi
6511done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006512done
Reid Spencera773bd52006-08-04 18:18:08 +00006513IFS=$as_save_IFS
6514
6515 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6516 ;;
6517esac
6518fi
6519BINPWD=$ac_cv_path_BINPWD
6520if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006521 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6522echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006524 { echo "$as_me:$LINENO: result: no" >&5
6525echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006526fi
6527
6528
6529
6530# Extract the first word of "Graphviz", so it can be a program name with args.
6531set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006536else
6537 case $GRAPHVIZ in
6538 [\\/]* | ?:[\\/]*)
6539 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6540 ;;
6541 *)
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 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 +00006549 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006551 break 2
6552 fi
6553done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006554done
Reid Spencera773bd52006-08-04 18:18:08 +00006555IFS=$as_save_IFS
6556
6557 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6558 ;;
6559esac
6560fi
6561GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6562if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006563 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6564echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006566 { echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006568fi
6569
6570
6571if test "$GRAPHVIZ" != "echo Graphviz" ; then
6572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006573cat >>confdefs.h <<\_ACEOF
6574#define HAVE_GRAPHVIZ 1
6575_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006576
Jeff Cohen28783c32007-01-12 18:22:38 +00006577 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006578 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6579 fi
6580
6581cat >>confdefs.h <<_ACEOF
6582#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6583_ACEOF
6584
6585fi
6586# Extract the first word of "dot", so it can be a program name with args.
6587set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590if test "${ac_cv_path_DOT+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006592else
6593 case $DOT in
6594 [\\/]* | ?:[\\/]*)
6595 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6596 ;;
6597 *)
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 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 +00006605 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006607 break 2
6608 fi
6609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006610done
Reid Spencera773bd52006-08-04 18:18:08 +00006611IFS=$as_save_IFS
6612
6613 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6614 ;;
6615esac
6616fi
6617DOT=$ac_cv_path_DOT
6618if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006619 { echo "$as_me:$LINENO: result: $DOT" >&5
6620echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006622 { echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006624fi
6625
6626
6627if test "$DOT" != "echo dot" ; then
6628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006629cat >>confdefs.h <<\_ACEOF
6630#define HAVE_DOT 1
6631_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006632
Jeff Cohen28783c32007-01-12 18:22:38 +00006633 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006634 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6635 fi
6636
6637cat >>confdefs.h <<_ACEOF
6638#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6639_ACEOF
6640
6641fi
David Greenef0b9eff2009-07-09 17:16:26 +00006642# Extract the first word of "fdp", so it can be a program name with args.
6643set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6646if test "${ac_cv_path_FDP+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006648else
6649 case $FDP in
6650 [\\/]* | ?:[\\/]*)
6651 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6652 ;;
6653 *)
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 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 +00006661 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006663 break 2
6664 fi
6665done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006666done
David Greenef0b9eff2009-07-09 17:16:26 +00006667IFS=$as_save_IFS
6668
6669 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6670 ;;
6671esac
6672fi
6673FDP=$ac_cv_path_FDP
6674if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006675 { echo "$as_me:$LINENO: result: $FDP" >&5
6676echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006678 { echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006680fi
6681
6682
6683if test "$FDP" != "echo fdp" ; then
6684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006685cat >>confdefs.h <<\_ACEOF
6686#define HAVE_FDP 1
6687_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006688
6689 if test "$llvm_cv_os_type" = "MingW" ; then
6690 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6691 fi
6692
6693cat >>confdefs.h <<_ACEOF
6694#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6695_ACEOF
6696
6697fi
6698# Extract the first word of "neato", so it can be a program name with args.
6699set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702if test "${ac_cv_path_NEATO+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006704else
6705 case $NEATO in
6706 [\\/]* | ?:[\\/]*)
6707 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6708 ;;
6709 *)
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 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 +00006717 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006719 break 2
6720 fi
6721done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006722done
David Greenef0b9eff2009-07-09 17:16:26 +00006723IFS=$as_save_IFS
6724
6725 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6726 ;;
6727esac
6728fi
6729NEATO=$ac_cv_path_NEATO
6730if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006731 { echo "$as_me:$LINENO: result: $NEATO" >&5
6732echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006733else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006734 { echo "$as_me:$LINENO: result: no" >&5
6735echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006736fi
6737
6738
6739if test "$NEATO" != "echo neato" ; then
6740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006741cat >>confdefs.h <<\_ACEOF
6742#define HAVE_NEATO 1
6743_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006744
6745 if test "$llvm_cv_os_type" = "MingW" ; then
6746 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6747 fi
6748
6749cat >>confdefs.h <<_ACEOF
6750#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6751_ACEOF
6752
6753fi
6754# Extract the first word of "twopi", so it can be a program name with args.
6755set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758if test "${ac_cv_path_TWOPI+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006760else
6761 case $TWOPI in
6762 [\\/]* | ?:[\\/]*)
6763 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6764 ;;
6765 *)
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 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 +00006773 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006775 break 2
6776 fi
6777done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006778done
David Greenef0b9eff2009-07-09 17:16:26 +00006779IFS=$as_save_IFS
6780
6781 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6782 ;;
6783esac
6784fi
6785TWOPI=$ac_cv_path_TWOPI
6786if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006787 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6788echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006790 { echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006792fi
6793
6794
6795if test "$TWOPI" != "echo twopi" ; then
6796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797cat >>confdefs.h <<\_ACEOF
6798#define HAVE_TWOPI 1
6799_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006800
6801 if test "$llvm_cv_os_type" = "MingW" ; then
6802 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6803 fi
6804
6805cat >>confdefs.h <<_ACEOF
6806#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6807_ACEOF
6808
6809fi
6810# Extract the first word of "circo", so it can be a program name with args.
6811set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814if test "${ac_cv_path_CIRCO+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006816else
6817 case $CIRCO in
6818 [\\/]* | ?:[\\/]*)
6819 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6820 ;;
6821 *)
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 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 +00006829 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006831 break 2
6832 fi
6833done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006834done
David Greenef0b9eff2009-07-09 17:16:26 +00006835IFS=$as_save_IFS
6836
6837 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6838 ;;
6839esac
6840fi
6841CIRCO=$ac_cv_path_CIRCO
6842if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6844echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846 { echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006848fi
6849
6850
6851if test "$CIRCO" != "echo circo" ; then
6852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853cat >>confdefs.h <<\_ACEOF
6854#define HAVE_CIRCO 1
6855_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006856
6857 if test "$llvm_cv_os_type" = "MingW" ; then
6858 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6859 fi
6860
6861cat >>confdefs.h <<_ACEOF
6862#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6863_ACEOF
6864
6865fi
Reid Spencera773bd52006-08-04 18:18:08 +00006866for ac_prog in gv gsview32
6867do
6868 # Extract the first word of "$ac_prog", so it can be a program name with args.
6869set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872if test "${ac_cv_path_GV+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006874else
6875 case $GV in
6876 [\\/]* | ?:[\\/]*)
6877 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6878 ;;
6879 *)
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 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 +00006887 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006889 break 2
6890 fi
6891done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006892done
Reid Spencera773bd52006-08-04 18:18:08 +00006893IFS=$as_save_IFS
6894
6895 ;;
6896esac
6897fi
6898GV=$ac_cv_path_GV
6899if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900 { echo "$as_me:$LINENO: result: $GV" >&5
6901echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006903 { echo "$as_me:$LINENO: result: no" >&5
6904echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006905fi
6906
6907
6908 test -n "$GV" && break
6909done
6910test -n "$GV" || GV="echo gv"
6911
6912if test "$GV" != "echo gv" ; then
6913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006914cat >>confdefs.h <<\_ACEOF
6915#define HAVE_GV 1
6916_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006917
Jeff Cohen28783c32007-01-12 18:22:38 +00006918 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006919 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6920 fi
6921
6922cat >>confdefs.h <<_ACEOF
6923#define LLVM_PATH_GV "$GV${EXEEXT}"
6924_ACEOF
6925
6926fi
6927# Extract the first word of "dotty", so it can be a program name with args.
6928set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931if test "${ac_cv_path_DOTTY+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006933else
6934 case $DOTTY in
6935 [\\/]* | ?:[\\/]*)
6936 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6937 ;;
6938 *)
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 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 +00006946 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006948 break 2
6949 fi
6950done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006951done
Reid Spencera773bd52006-08-04 18:18:08 +00006952IFS=$as_save_IFS
6953
6954 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6955 ;;
6956esac
6957fi
6958DOTTY=$ac_cv_path_DOTTY
6959if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6961echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006962else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963 { echo "$as_me:$LINENO: result: no" >&5
6964echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006965fi
6966
6967
6968if test "$DOTTY" != "echo dotty" ; then
6969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006970cat >>confdefs.h <<\_ACEOF
6971#define HAVE_DOTTY 1
6972_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006973
Jeff Cohen28783c32007-01-12 18:22:38 +00006974 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006975 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6976 fi
6977
6978cat >>confdefs.h <<_ACEOF
6979#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6980_ACEOF
6981
6982fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006983# Extract the first word of "xdot.py", so it can be a program name with args.
6984set dummy xdot.py; ac_word=$2
6985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987if test "${ac_cv_path_XDOT_PY+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990 case $XDOT_PY in
6991 [\\/]* | ?:[\\/]*)
6992 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6993 ;;
6994 *)
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006done
7007done
7008IFS=$as_save_IFS
7009
7010 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7011 ;;
7012esac
7013fi
7014XDOT_PY=$ac_cv_path_XDOT_PY
7015if test -n "$XDOT_PY"; then
7016 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7017echo "${ECHO_T}$XDOT_PY" >&6; }
7018else
7019 { echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6; }
7021fi
7022
7023
7024if test "$XDOT_PY" != "echo xdot.py" ; then
7025
7026cat >>confdefs.h <<\_ACEOF
7027#define HAVE_XDOT_PY 1
7028_ACEOF
7029
7030 if test "$llvm_cv_os_type" = "MingW" ; then
7031 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7032 fi
7033
7034cat >>confdefs.h <<_ACEOF
7035#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7036_ACEOF
7037
7038fi
Reid Spencera773bd52006-08-04 18:18:08 +00007039
7040
7041# Extract the first word of "perl", so it can be a program name with args.
7042set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045if test "${ac_cv_path_PERL+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007047else
7048 case $PERL in
7049 [\\/]* | ?:[\\/]*)
7050 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7051 ;;
7052 *)
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 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 +00007060 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007062 break 2
7063 fi
7064done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007065done
Reid Spencera773bd52006-08-04 18:18:08 +00007066IFS=$as_save_IFS
7067
7068 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7069 ;;
7070esac
7071fi
7072PERL=$ac_cv_path_PERL
7073if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074 { echo "$as_me:$LINENO: result: $PERL" >&5
7075echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007076else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007077 { echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007079fi
7080
7081
7082if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7084echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007085 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086 { echo "$as_me:$LINENO: result: yes" >&5
7087echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007088 else
7089 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007090 { echo "$as_me:$LINENO: result: not found" >&5
7091echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007092 fi
7093fi
7094
7095
7096if test x"$PERL" = xnone; then
7097 HAVE_PERL=0
7098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7100echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7101 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007102else
7103 HAVE_PERL=1
7104
7105fi
7106
7107# Find a good install program. We prefer a C program (faster),
7108# so one script is as good as another. But avoid the broken or
7109# incompatible versions:
7110# SysV /etc/install, /usr/sbin/install
7111# SunOS /usr/etc/install
7112# IRIX /sbin/install
7113# AIX /bin/install
7114# AmigaOS /C/install, which installs bootblocks on floppy discs
7115# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7116# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7117# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7118# OS/2's system install, which has a completely different semantic
7119# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007120{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7121echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007122if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007123if test "${ac_cv_path_install+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007125else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131 # Account for people who put trailing slashes in PATH elements.
7132case $as_dir/ in
7133 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007135 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007136 /usr/ucb/* ) ;;
7137 *)
7138 # OSF1 and SCO ODT 3.0 have their own names for install.
7139 # Don't use installbsd from OSF since it installs stuff as root
7140 # by default.
7141 for ac_prog in ginstall scoinst install; do
7142 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143 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 +00007144 if test $ac_prog = install &&
7145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7146 # AIX install. It has an incompatible calling convention.
7147 :
7148 elif test $ac_prog = install &&
7149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7150 # program-specific install script used by HP pwplus--don't use.
7151 :
7152 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7154 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007155 fi
7156 fi
7157 done
7158 done
7159 ;;
7160esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007161done
Reid Spencera773bd52006-08-04 18:18:08 +00007162IFS=$as_save_IFS
7163
7164
7165fi
7166 if test "${ac_cv_path_install+set}" = set; then
7167 INSTALL=$ac_cv_path_install
7168 else
7169 # As a last resort, use the slow shell script. Don't cache a
7170 # value for INSTALL within a source directory, because that will
7171 # break other packages using the cache if that directory is
7172 # removed, or if the value is a relative name.
7173 INSTALL=$ac_install_sh
7174 fi
7175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007176{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7177echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007178
7179# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7180# It thinks the first close brace ends the variable substitution.
7181test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7182
7183test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7184
7185test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7186
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007187case "$INSTALL" in
7188 [\\/$]* | ?:[\\/]* ) ;;
7189 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7190esac
Reid Spencera773bd52006-08-04 18:18:08 +00007191
7192# Extract the first word of "bzip2", so it can be a program name with args.
7193set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196if test "${ac_cv_path_BZIP2+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007198else
7199 case $BZIP2 in
7200 [\\/]* | ?:[\\/]*)
7201 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7202 ;;
7203 *)
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 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 +00007211 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007213 break 2
7214 fi
7215done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007216done
Reid Spencera773bd52006-08-04 18:18:08 +00007217IFS=$as_save_IFS
7218
Reid Spencera773bd52006-08-04 18:18:08 +00007219 ;;
7220esac
7221fi
7222BZIP2=$ac_cv_path_BZIP2
7223if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007224 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7225echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007226else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227 { echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007229fi
7230
7231
mike-m68cb3192010-05-06 23:45:43 +00007232# Extract the first word of "cat", so it can be a program name with args.
7233set dummy cat; ac_word=$2
7234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236if test "${ac_cv_path_CAT+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 case $CAT in
7240 [\\/]* | ?:[\\/]*)
7241 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7242 ;;
7243 *)
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7254 fi
7255done
7256done
7257IFS=$as_save_IFS
7258
7259 ;;
7260esac
7261fi
7262CAT=$ac_cv_path_CAT
7263if test -n "$CAT"; then
7264 { echo "$as_me:$LINENO: result: $CAT" >&5
7265echo "${ECHO_T}$CAT" >&6; }
7266else
7267 { echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6; }
7269fi
7270
7271
Reid Spencera773bd52006-08-04 18:18:08 +00007272# Extract the first word of "doxygen", so it can be a program name with args.
7273set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276if test "${ac_cv_path_DOXYGEN+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007278else
7279 case $DOXYGEN in
7280 [\\/]* | ?:[\\/]*)
7281 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7282 ;;
7283 *)
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285for as_dir in $PATH
7286do
7287 IFS=$as_save_IFS
7288 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 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 +00007291 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007293 break 2
7294 fi
7295done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007296done
Reid Spencera773bd52006-08-04 18:18:08 +00007297IFS=$as_save_IFS
7298
Reid Spencera773bd52006-08-04 18:18:08 +00007299 ;;
7300esac
7301fi
7302DOXYGEN=$ac_cv_path_DOXYGEN
7303if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7305echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007307 { echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007309fi
7310
7311
Reid Spencera773bd52006-08-04 18:18:08 +00007312# Extract the first word of "groff", so it can be a program name with args.
7313set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316if test "${ac_cv_path_GROFF+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007318else
7319 case $GROFF in
7320 [\\/]* | ?:[\\/]*)
7321 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7322 ;;
7323 *)
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325for as_dir in $PATH
7326do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 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 +00007331 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007333 break 2
7334 fi
7335done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336done
Reid Spencera773bd52006-08-04 18:18:08 +00007337IFS=$as_save_IFS
7338
Reid Spencera773bd52006-08-04 18:18:08 +00007339 ;;
7340esac
7341fi
7342GROFF=$ac_cv_path_GROFF
7343if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007344 { echo "$as_me:$LINENO: result: $GROFF" >&5
7345echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007347 { echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007349fi
7350
7351
7352# Extract the first word of "gzip", so it can be a program name with args.
7353set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007356if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007358else
Eric Christopher031d3072010-12-10 01:31:51 +00007359 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007360 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007361 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007362 ;;
7363 *)
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 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 +00007371 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007373 break 2
7374 fi
7375done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007376done
Reid Spencera773bd52006-08-04 18:18:08 +00007377IFS=$as_save_IFS
7378
Reid Spencera773bd52006-08-04 18:18:08 +00007379 ;;
7380esac
7381fi
Eric Christopher031d3072010-12-10 01:31:51 +00007382GZIPBIN=$ac_cv_path_GZIPBIN
7383if test -n "$GZIPBIN"; then
7384 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7385echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007387 { echo "$as_me:$LINENO: result: no" >&5
7388echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007389fi
7390
7391
7392# Extract the first word of "pod2html", so it can be a program name with args.
7393set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396if test "${ac_cv_path_POD2HTML+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007398else
7399 case $POD2HTML in
7400 [\\/]* | ?:[\\/]*)
7401 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7402 ;;
7403 *)
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 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 +00007411 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007413 break 2
7414 fi
7415done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007416done
Reid Spencera773bd52006-08-04 18:18:08 +00007417IFS=$as_save_IFS
7418
Reid Spencera773bd52006-08-04 18:18:08 +00007419 ;;
7420esac
7421fi
7422POD2HTML=$ac_cv_path_POD2HTML
7423if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7425echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007427 { echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007429fi
7430
7431
7432# Extract the first word of "pod2man", so it can be a program name with args.
7433set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436if test "${ac_cv_path_POD2MAN+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007438else
7439 case $POD2MAN in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7442 ;;
7443 *)
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007451 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007453 break 2
7454 fi
7455done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007456done
Reid Spencera773bd52006-08-04 18:18:08 +00007457IFS=$as_save_IFS
7458
Reid Spencera773bd52006-08-04 18:18:08 +00007459 ;;
7460esac
7461fi
7462POD2MAN=$ac_cv_path_POD2MAN
7463if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7465echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467 { echo "$as_me:$LINENO: result: no" >&5
7468echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007469fi
7470
7471
mike-m68cb3192010-05-06 23:45:43 +00007472# Extract the first word of "pdfroff", so it can be a program name with args.
7473set dummy pdfroff; ac_word=$2
7474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7476if test "${ac_cv_path_PDFROFF+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7478else
7479 case $PDFROFF in
7480 [\\/]* | ?:[\\/]*)
7481 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7482 ;;
7483 *)
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH
7486do
7487 IFS=$as_save_IFS
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 break 2
7494 fi
7495done
7496done
7497IFS=$as_save_IFS
7498
7499 ;;
7500esac
7501fi
7502PDFROFF=$ac_cv_path_PDFROFF
7503if test -n "$PDFROFF"; then
7504 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7505echo "${ECHO_T}$PDFROFF" >&6; }
7506else
7507 { echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6; }
7509fi
7510
7511
Reid Spencera773bd52006-08-04 18:18:08 +00007512# Extract the first word of "runtest", so it can be a program name with args.
7513set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516if test "${ac_cv_path_RUNTEST+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007518else
7519 case $RUNTEST in
7520 [\\/]* | ?:[\\/]*)
7521 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7522 ;;
7523 *)
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 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 +00007531 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007533 break 2
7534 fi
7535done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007536done
Reid Spencera773bd52006-08-04 18:18:08 +00007537IFS=$as_save_IFS
7538
Reid Spencera773bd52006-08-04 18:18:08 +00007539 ;;
7540esac
7541fi
7542RUNTEST=$ac_cv_path_RUNTEST
7543if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007544 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7545echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007547 { echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007549fi
7550
7551
7552
7553no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7555echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007556
7557# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007558if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007559 withval=$with_tclinclude; with_tclinclude=${withval}
7560else
7561 with_tclinclude=''
7562fi
7563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007564if test "${ac_cv_path_tclsh+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007566else
7567
7568if test x"${with_tclinclude}" != x ; then
7569 if test -f ${with_tclinclude}/tclsh ; then
7570 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7571 elif test -f ${with_tclinclude}/src/tclsh ; then
7572 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7573 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007574 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7575echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7576 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007577 fi
7578fi
Torok Edwin871384f2010-01-26 08:50:50 +00007579fi
7580
Reid Spencera773bd52006-08-04 18:18:08 +00007581
7582if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007583 { echo "$as_me:$LINENO: result: none" >&5
7584echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007585 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
7586do
7587 # Extract the first word of "$ac_prog", so it can be a program name with args.
7588set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591if test "${ac_cv_path_TCLSH+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007593else
7594 case $TCLSH in
7595 [\\/]* | ?:[\\/]*)
7596 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7597 ;;
7598 *)
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 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 +00007606 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007608 break 2
7609 fi
7610done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007611done
Reid Spencera773bd52006-08-04 18:18:08 +00007612IFS=$as_save_IFS
7613
7614 ;;
7615esac
7616fi
7617TCLSH=$ac_cv_path_TCLSH
7618if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007619 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7620echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007622 { echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007624fi
7625
7626
7627 test -n "$TCLSH" && break
7628done
7629
7630 if test x"${TCLSH}" = x ; then
7631 ac_cv_path_tclsh='';
7632 else
7633 ac_cv_path_tclsh="${TCLSH}";
7634 fi
7635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007636 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7637echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007638 TCLSH="${ac_cv_path_tclsh}"
7639
7640fi
7641
Reid Spencera773bd52006-08-04 18:18:08 +00007642# Extract the first word of "zip", so it can be a program name with args.
7643set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646if test "${ac_cv_path_ZIP+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007648else
7649 case $ZIP in
7650 [\\/]* | ?:[\\/]*)
7651 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7652 ;;
7653 *)
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 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 +00007661 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007663 break 2
7664 fi
7665done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666done
Reid Spencera773bd52006-08-04 18:18:08 +00007667IFS=$as_save_IFS
7668
Reid Spencera773bd52006-08-04 18:18:08 +00007669 ;;
7670esac
7671fi
7672ZIP=$ac_cv_path_ZIP
7673if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007674 { echo "$as_me:$LINENO: result: $ZIP" >&5
7675echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677 { echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007679fi
7680
7681
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007682for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007683do
7684 # Extract the first word of "$ac_prog", so it can be a program name with args.
7685set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7688if test "${ac_cv_path_OCAMLC+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007690else
7691 case $OCAMLC in
7692 [\\/]* | ?:[\\/]*)
7693 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7694 ;;
7695 *)
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 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 +00007703 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007705 break 2
7706 fi
7707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007708done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007709IFS=$as_save_IFS
7710
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007711 ;;
7712esac
7713fi
7714OCAMLC=$ac_cv_path_OCAMLC
7715if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007716 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7717echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007718else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007719 { echo "$as_me:$LINENO: result: no" >&5
7720echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007721fi
7722
7723
Gordon Henriksene7072162008-03-07 18:20:01 +00007724 test -n "$OCAMLC" && break
7725done
7726
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007727for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007728do
7729 # Extract the first word of "$ac_prog", so it can be a program name with args.
7730set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007735else
7736 case $OCAMLOPT in
7737 [\\/]* | ?:[\\/]*)
7738 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7739 ;;
7740 *)
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742for as_dir in $PATH
7743do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 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 +00007748 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007750 break 2
7751 fi
7752done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007753done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007754IFS=$as_save_IFS
7755
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007756 ;;
7757esac
7758fi
7759OCAMLOPT=$ac_cv_path_OCAMLOPT
7760if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007761 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7762echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007763else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007764 { echo "$as_me:$LINENO: result: no" >&5
7765echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007766fi
7767
7768
Gordon Henriksene7072162008-03-07 18:20:01 +00007769 test -n "$OCAMLOPT" && break
7770done
7771
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007772for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007773do
7774 # Extract the first word of "$ac_prog", so it can be a program name with args.
7775set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7778if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007780else
7781 case $OCAMLDEP in
7782 [\\/]* | ?:[\\/]*)
7783 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7784 ;;
7785 *)
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 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 +00007793 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007795 break 2
7796 fi
7797done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007798done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007799IFS=$as_save_IFS
7800
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007801 ;;
7802esac
7803fi
7804OCAMLDEP=$ac_cv_path_OCAMLDEP
7805if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007806 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7807echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007809 { echo "$as_me:$LINENO: result: no" >&5
7810echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007811fi
7812
7813
Gordon Henriksene7072162008-03-07 18:20:01 +00007814 test -n "$OCAMLDEP" && break
7815done
7816
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007817for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007818do
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7823if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007825else
7826 case $OCAMLDOC in
7827 [\\/]* | ?:[\\/]*)
7828 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7829 ;;
7830 *)
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 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 +00007838 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007840 break 2
7841 fi
7842done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007843done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007844IFS=$as_save_IFS
7845
7846 ;;
7847esac
7848fi
7849OCAMLDOC=$ac_cv_path_OCAMLDOC
7850if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007851 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7852echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007854 { echo "$as_me:$LINENO: result: no" >&5
7855echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007856fi
7857
7858
7859 test -n "$OCAMLDOC" && break
7860done
7861
Torok Edwincc499a42008-10-22 09:56:27 +00007862for ac_prog in gas as
7863do
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7868if test "${ac_cv_path_GAS+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007870else
7871 case $GAS in
7872 [\\/]* | ?:[\\/]*)
7873 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7874 ;;
7875 *)
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877for as_dir in $PATH
7878do
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 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 +00007883 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007885 break 2
7886 fi
7887done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888done
Torok Edwincc499a42008-10-22 09:56:27 +00007889IFS=$as_save_IFS
7890
7891 ;;
7892esac
7893fi
7894GAS=$ac_cv_path_GAS
7895if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007896 { echo "$as_me:$LINENO: result: $GAS" >&5
7897echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007899 { echo "$as_me:$LINENO: result: no" >&5
7900echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007901fi
7902
7903
7904 test -n "$GAS" && break
7905done
7906
Reid Spencera773bd52006-08-04 18:18:08 +00007907
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007908{ echo "$as_me:$LINENO: checking for linker version" >&5
7909echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7910if test "${llvm_cv_link_version+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913
7914 version_string="$(ld -v 2>&1 | head -1)"
7915
7916 # Check for ld64.
7917 if (echo "$version_string" | grep -q "ld64"); then
7918 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7919 else
7920 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7921 fi
7922
7923fi
7924{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7925echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7926
7927cat >>confdefs.h <<_ACEOF
7928#define HOST_LINK_VERSION "$llvm_cv_link_version"
7929_ACEOF
7930
7931
7932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007933{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7934echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7935if test "${llvm_cv_link_use_r+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007937else
7938 ac_ext=c
7939ac_cpp='$CPP $CPPFLAGS'
7940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943
7944 oldcflags="$CFLAGS"
7945 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007946 cat >conftest.$ac_ext <<_ACEOF
7947/* confdefs.h. */
7948_ACEOF
7949cat confdefs.h >>conftest.$ac_ext
7950cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007951/* end confdefs.h. */
7952
7953int
7954main ()
7955{
Dan Gohman39ed6782010-04-25 00:12:20 +00007956
Reid Spencera773bd52006-08-04 18:18:08 +00007957 ;
7958 return 0;
7959}
7960_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007961rm -f conftest.$ac_objext conftest$ac_exeext
7962if { (ac_try="$ac_link"
7963case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966esac
7967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_link") 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7976 { (case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979esac
7980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest$ac_exeext'
7986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989esac
7990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007995 llvm_cv_link_use_r=yes
7996else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007997 echo "$as_me: failed program was:" >&5
7998sed 's/^/| /' conftest.$ac_ext >&5
7999
8000 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008001fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008002
Bill Wendlingebcceee2009-04-18 11:20:33 +00008003rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008004 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008005 CFLAGS="$oldcflags"
8006 ac_ext=c
8007ac_cpp='$CPP $CPPFLAGS'
8008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010ac_compiler_gnu=$ac_cv_c_compiler_gnu
8011
8012
8013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008014{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8015echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008016if test "$llvm_cv_link_use_r" = yes ; then
8017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008018cat >>confdefs.h <<\_ACEOF
8019#define HAVE_LINK_R 1
8020_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008021
8022 fi
8023
8024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008025{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8026echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8027if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008029else
8030 ac_ext=c
8031ac_cpp='$CPP $CPPFLAGS'
8032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035
8036 oldcflags="$CFLAGS"
8037 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008038 cat >conftest.$ac_ext <<_ACEOF
8039/* confdefs.h. */
8040_ACEOF
8041cat confdefs.h >>conftest.$ac_ext
8042cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008043/* end confdefs.h. */
8044
8045int
8046main ()
8047{
Dan Gohman39ed6782010-04-25 00:12:20 +00008048
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008049 ;
8050 return 0;
8051}
8052_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008053rm -f conftest.$ac_objext conftest$ac_exeext
8054if { (ac_try="$ac_link"
8055case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8058esac
8059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_link") 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8068 { (case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8071esac
8072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_try") 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; } &&
8077 { ac_try='test -s conftest$ac_exeext'
8078 { (case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081esac
8082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_try") 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008087 llvm_cv_link_use_export_dynamic=yes
8088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008089 echo "$as_me: failed program was:" >&5
8090sed 's/^/| /' conftest.$ac_ext >&5
8091
8092 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008093fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008094
Bill Wendlingebcceee2009-04-18 11:20:33 +00008095rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008097 CFLAGS="$oldcflags"
8098 ac_ext=c
8099ac_cpp='$CPP $CPPFLAGS'
8100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102ac_compiler_gnu=$ac_cv_c_compiler_gnu
8103
8104
8105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008106{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8107echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008108if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008110cat >>confdefs.h <<\_ACEOF
8111#define HAVE_LINK_EXPORT_DYNAMIC 1
8112_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008113
8114 fi
8115
8116
Dan Gohmanda612d62010-06-01 14:56:56 +00008117{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8118echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8119if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121else
8122 ac_ext=c
8123ac_cpp='$CPP $CPPFLAGS'
8124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127
8128 oldcflags="$CFLAGS"
8129
8130 # The following code is from the autoconf manual,
8131 # "11.13: Limitations of Usual Tools".
8132 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8133 # Use mktemp if possible; otherwise fall back on mkdir,
8134 # with $RANDOM to make collisions less likely.
8135 : ${TMPDIR=/tmp}
8136 {
8137 tmp=`
8138 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8139 ` &&
8140 test -n "$tmp" && test -d "$tmp"
8141 } || {
8142 tmp=$TMPDIR/foo$$-$RANDOM
8143 (umask 077 && mkdir "$tmp")
8144 } || exit $?
8145
Dan Gohmanda612d62010-06-01 14:56:56 +00008146 echo "{" > "$tmp/export.map"
8147 echo " global: main;" >> "$tmp/export.map"
8148 echo " local: *;" >> "$tmp/export.map"
8149 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008150
Dan Gohmanda612d62010-06-01 14:56:56 +00008151 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008152 cat >conftest.$ac_ext <<_ACEOF
8153/* confdefs.h. */
8154_ACEOF
8155cat confdefs.h >>conftest.$ac_ext
8156cat >>conftest.$ac_ext <<_ACEOF
8157/* end confdefs.h. */
8158
8159int
8160main ()
8161{
Dan Gohman39ed6782010-04-25 00:12:20 +00008162
Dan Gohman391569c2010-04-16 22:59:06 +00008163 ;
8164 return 0;
8165}
8166_ACEOF
8167rm -f conftest.$ac_objext conftest$ac_exeext
8168if { (ac_try="$ac_link"
8169case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8172esac
8173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_link") 2>conftest.er1
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8182 { (case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8185esac
8186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_try") 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest$ac_exeext'
8192 { (case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8195esac
8196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_try") 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008201 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008202else
8203 echo "$as_me: failed program was:" >&5
8204sed 's/^/| /' conftest.$ac_ext >&5
8205
Dan Gohman943005e2010-06-01 16:22:27 +00008206 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008207fi
8208
8209rm -f core conftest.err conftest.$ac_objext \
8210 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008211 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008212 rmdir "$tmp"
8213 CFLAGS="$oldcflags"
8214 ac_ext=c
8215ac_cpp='$CPP $CPPFLAGS'
8216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8218ac_compiler_gnu=$ac_cv_c_compiler_gnu
8219
8220
8221fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008222{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8223echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8224if test "$llvm_cv_link_use_version_script" = yes ; then
8225 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008226
8227 fi
8228
8229
Reid Spencera773bd52006-08-04 18:18:08 +00008230
8231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8233echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8234if test "${ac_cv_c_const+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008237 cat >conftest.$ac_ext <<_ACEOF
8238/* confdefs.h. */
8239_ACEOF
8240cat confdefs.h >>conftest.$ac_ext
8241cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008242/* end confdefs.h. */
8243
8244int
8245main ()
8246{
8247/* FIXME: Include the comments suggested by Paul. */
8248#ifndef __cplusplus
8249 /* Ultrix mips cc rejects this. */
8250 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008252 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008253 char const *const *ccp;
8254 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008255 /* NEC SVR4.0.2 mips cc rejects this. */
8256 struct point {int x, y;};
8257 static struct point const zero = {0,0};
8258 /* AIX XL C 1.02.0.0 rejects this.
8259 It does not let you subtract one const X* pointer from another in
8260 an arm of an if-expression whose if-part is not a constant
8261 expression */
8262 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008263 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008264 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008265 ++ccp;
8266 p = (char**) ccp;
8267 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008268 { /* SCO 3.2v4 cc rejects this. */
8269 char *t;
8270 char const *s = 0 ? (char *) 0 : (char const *) 0;
8271
8272 *t++ = 0;
8273 if (s) return 0;
8274 }
8275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8276 int x[] = {25, 17};
8277 const int *foo = &x[0];
8278 ++foo;
8279 }
8280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8281 typedef const int *iptr;
8282 iptr p = 0;
8283 ++p;
8284 }
8285 { /* AIX XL C 1.02.0.0 rejects this saying
8286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8287 struct s { int j; const int *ap[3]; };
8288 struct s *b; b->j = 5;
8289 }
8290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8291 const int foo = 10;
8292 if (!foo) return 0;
8293 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008294 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008295#endif
8296
8297 ;
8298 return 0;
8299}
8300_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008301rm -f conftest.$ac_objext
8302if { (ac_try="$ac_compile"
8303case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8316 { (case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319esac
8320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_try") 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; } &&
8325 { ac_try='test -s conftest.$ac_objext'
8326 { (case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329esac
8330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_try") 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008335 ac_cv_c_const=yes
8336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337 echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5
8339
8340 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008342
Reid Spencera773bd52006-08-04 18:18:08 +00008343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008345{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8346echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008347if test $ac_cv_c_const = no; then
8348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008349cat >>confdefs.h <<\_ACEOF
8350#define const
8351_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008352
8353fi
8354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008355
8356
8357
8358
8359
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008360ac_header_dirent=no
8361for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008362 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8363{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8364echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008367else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008368 cat >conftest.$ac_ext <<_ACEOF
8369/* confdefs.h. */
8370_ACEOF
8371cat confdefs.h >>conftest.$ac_ext
8372cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008373/* end confdefs.h. */
8374#include <sys/types.h>
8375#include <$ac_hdr>
8376
8377int
8378main ()
8379{
8380if ((DIR *) 0)
8381return 0;
8382 ;
8383 return 0;
8384}
8385_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008386rm -f conftest.$ac_objext
8387if { (ac_try="$ac_compile"
8388case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391esac
8392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_compile") 2>conftest.er1
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404esac
8405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest.$ac_objext'
8411 { (case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414esac
8415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_try") 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008420 eval "$as_ac_Header=yes"
8421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008422 echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008427
Reid Spencera773bd52006-08-04 18:18:08 +00008428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008430ac_res=`eval echo '${'$as_ac_Header'}'`
8431 { echo "$as_me:$LINENO: result: $ac_res" >&5
8432echo "${ECHO_T}$ac_res" >&6; }
8433if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008434 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008435#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008436_ACEOF
8437
8438ac_header_dirent=$ac_hdr; break
8439fi
8440
8441done
8442# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8443if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8445echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8446if test "${ac_cv_search_opendir+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008448else
8449 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008450cat >conftest.$ac_ext <<_ACEOF
8451/* confdefs.h. */
8452_ACEOF
8453cat confdefs.h >>conftest.$ac_ext
8454cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008455/* end confdefs.h. */
8456
Reid Spencera773bd52006-08-04 18:18:08 +00008457/* Override any GCC internal prototype to avoid an error.
8458 Use char because int might match the return type of a GCC
8459 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008460#ifdef __cplusplus
8461extern "C"
8462#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008463char opendir ();
8464int
8465main ()
8466{
Reid Spencera773bd52006-08-04 18:18:08 +00008467return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008468 ;
8469 return 0;
8470}
8471_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008472for ac_lib in '' dir; do
8473 if test -z "$ac_lib"; then
8474 ac_res="none required"
8475 else
8476 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008478 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479 rm -f conftest.$ac_objext conftest$ac_exeext
8480if { (ac_try="$ac_link"
8481case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8484esac
8485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_link") 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8494 { (case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497esac
8498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_try") 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (case "(($ac_try" in
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8507esac
8508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509 (eval "$ac_try") 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008513 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008514else
8515 echo "$as_me: failed program was:" >&5
8516sed 's/^/| /' conftest.$ac_ext >&5
8517
8518
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008520
Bill Wendlingebcceee2009-04-18 11:20:33 +00008521rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008522 conftest$ac_exeext
8523 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008524 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008525fi
John Criswell7a73b802003-06-30 21:59:07 +00008526done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008527if test "${ac_cv_search_opendir+set}" = set; then
8528 :
Reid Spencera773bd52006-08-04 18:18:08 +00008529else
8530 ac_cv_search_opendir=no
8531fi
8532rm conftest.$ac_ext
8533LIBS=$ac_func_search_save_LIBS
8534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008535{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8536echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008537ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008538if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008540
Reid Spencera773bd52006-08-04 18:18:08 +00008541fi
8542
8543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008544 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8545echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8546if test "${ac_cv_search_opendir+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008548else
8549 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008550cat >conftest.$ac_ext <<_ACEOF
8551/* confdefs.h. */
8552_ACEOF
8553cat confdefs.h >>conftest.$ac_ext
8554cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008555/* end confdefs.h. */
8556
8557/* Override any GCC internal prototype to avoid an error.
8558 Use char because int might match the return type of a GCC
8559 builtin and then its argument prototype would still apply. */
8560#ifdef __cplusplus
8561extern "C"
8562#endif
8563char opendir ();
8564int
8565main ()
8566{
8567return opendir ();
8568 ;
8569 return 0;
8570}
8571_ACEOF
8572for ac_lib in '' x; do
8573 if test -z "$ac_lib"; then
8574 ac_res="none required"
8575 else
8576 ac_res=-l$ac_lib
8577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8578 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008579 rm -f conftest.$ac_objext conftest$ac_exeext
8580if { (ac_try="$ac_link"
8581case "(($ac_try" in
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8584esac
8585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586 (eval "$ac_link") 2>conftest.er1
8587 ac_status=$?
8588 grep -v '^ *+' conftest.er1 >conftest.err
8589 rm -f conftest.er1
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8594 { (case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597esac
8598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_try") 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try='test -s conftest$ac_exeext'
8604 { (case "(($ac_try" in
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8607esac
8608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_try") 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008613 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008614else
8615 echo "$as_me: failed program was:" >&5
8616sed 's/^/| /' conftest.$ac_ext >&5
8617
8618
Reid Spencera773bd52006-08-04 18:18:08 +00008619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008620
Bill Wendlingebcceee2009-04-18 11:20:33 +00008621rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008622 conftest$ac_exeext
8623 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008624 break
8625fi
8626done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008627if test "${ac_cv_search_opendir+set}" = set; then
8628 :
Reid Spencera773bd52006-08-04 18:18:08 +00008629else
8630 ac_cv_search_opendir=no
8631fi
8632rm conftest.$ac_ext
8633LIBS=$ac_func_search_save_LIBS
8634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008635{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8636echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008637ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008638if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8640
8641fi
8642
8643fi
John Criswell7a73b802003-06-30 21:59:07 +00008644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008645
John Criswell7a73b802003-06-30 21:59:07 +00008646for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008647do
8648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
8654fi
8655ac_res=`eval echo '${'$as_ac_Header'}'`
8656 { echo "$as_me:$LINENO: result: $ac_res" >&5
8657echo "${ECHO_T}$ac_res" >&6; }
8658else
8659 # Is the header compilable?
8660{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8662cat >conftest.$ac_ext <<_ACEOF
8663/* confdefs.h. */
8664_ACEOF
8665cat confdefs.h >>conftest.$ac_ext
8666cat >>conftest.$ac_ext <<_ACEOF
8667/* end confdefs.h. */
8668$ac_includes_default
8669#include <$ac_header>
8670_ACEOF
8671rm -f conftest.$ac_objext
8672if { (ac_try="$ac_compile"
8673case "(($ac_try" in
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8676esac
8677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678 (eval "$ac_compile") 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686 { (case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8689esac
8690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_try") 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest.$ac_objext'
8696 { (case "(($ac_try" in
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8699esac
8700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_try") 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_header_compiler=yes
8706else
8707 echo "$as_me: failed program was:" >&5
8708sed 's/^/| /' conftest.$ac_ext >&5
8709
8710 ac_header_compiler=no
8711fi
8712
8713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8715echo "${ECHO_T}$ac_header_compiler" >&6; }
8716
8717# Is the header present?
8718{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8720cat >conftest.$ac_ext <<_ACEOF
8721/* confdefs.h. */
8722_ACEOF
8723cat confdefs.h >>conftest.$ac_ext
8724cat >>conftest.$ac_ext <<_ACEOF
8725/* end confdefs.h. */
8726#include <$ac_header>
8727_ACEOF
8728if { (ac_try="$ac_cpp conftest.$ac_ext"
8729case "(($ac_try" in
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8732esac
8733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } >/dev/null; then
8741 if test -s conftest.err; then
8742 ac_cpp_err=$ac_c_preproc_warn_flag
8743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8744 else
8745 ac_cpp_err=
8746 fi
8747else
8748 ac_cpp_err=yes
8749fi
8750if test -z "$ac_cpp_err"; then
8751 ac_header_preproc=yes
8752else
8753 echo "$as_me: failed program was:" >&5
8754sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 ac_header_preproc=no
8757fi
8758
8759rm -f conftest.err conftest.$ac_ext
8760{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8761echo "${ECHO_T}$ac_header_preproc" >&6; }
8762
8763# So? What about this header?
8764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8765 yes:no: )
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8769echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8770 ac_header_preproc=yes
8771 ;;
8772 no:yes:* )
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8776echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8778echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8780echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8784echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8785 ( cat <<\_ASBOX
8786## ----------------------------------- ##
8787## Report this to llvmbugs@cs.uiuc.edu ##
8788## ----------------------------------- ##
8789_ASBOX
8790 ) | sed "s/^/$as_me: WARNING: /" >&2
8791 ;;
8792esac
8793{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797else
8798 eval "$as_ac_Header=\$ac_header_preproc"
8799fi
8800ac_res=`eval echo '${'$as_ac_Header'}'`
8801 { echo "$as_me:$LINENO: result: $ac_res" >&5
8802echo "${ECHO_T}$ac_res" >&6; }
8803
8804fi
8805if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008806 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008808_ACEOF
8809
8810fi
8811
8812done
8813
Reid Spencera773bd52006-08-04 18:18:08 +00008814# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008815if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008816 enableval=$enable_ltdl_install;
8817fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008818
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008820
8821
8822if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008823 INSTALL_LTDL_TRUE=
8824 INSTALL_LTDL_FALSE='#'
8825else
8826 INSTALL_LTDL_TRUE='#'
8827 INSTALL_LTDL_FALSE=
8828fi
8829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008830
8831
8832if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008833 CONVENIENCE_LTDL_TRUE=
8834 CONVENIENCE_LTDL_FALSE='#'
8835else
8836 CONVENIENCE_LTDL_TRUE='#'
8837 CONVENIENCE_LTDL_FALSE=
8838fi
8839
8840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008841{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8842echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008843library_names_spec=
8844libname_spec='lib$name'
8845soname_spec=
8846shrext_cmds=".so"
8847postinstall_cmds=
8848postuninstall_cmds=
8849finish_cmds=
8850finish_eval=
8851shlibpath_var=
8852shlibpath_overrides_runpath=unknown
8853version_type=none
8854dynamic_linker="$host_os ld.so"
8855sys_lib_dlsearch_path_spec="/lib /usr/lib"
8856if test "$GCC" = yes; then
8857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8858 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8859 # if the path contains ";" then we assume it to be the separator
8860 # otherwise default to the standard path separator (i.e. ":") - it is
8861 # assumed that no part of a normal pathname contains ";" but that should
8862 # okay in the real world where ";" in dirpaths is itself problematic.
8863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8864 else
8865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8866 fi
8867else
8868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8869fi
8870need_lib_prefix=unknown
8871hardcode_into_libs=no
8872
8873# when you set need_version to no, make sure it does not cause -set_version
8874# flags to be left without arguments
8875need_version=unknown
8876
8877case $host_os in
8878aix3*)
8879 version_type=linux
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8881 shlibpath_var=LIBPATH
8882
8883 # AIX 3 has no versioning support, so we append a major version to the name.
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 ;;
8886
8887aix4* | aix5*)
8888 version_type=linux
8889 need_lib_prefix=no
8890 need_version=no
8891 hardcode_into_libs=yes
8892 if test "$host_cpu" = ia64; then
8893 # AIX 5 supports IA64
8894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8895 shlibpath_var=LD_LIBRARY_PATH
8896 else
8897 # With GCC up to 2.95.x, collect2 would create an import file
8898 # for dependence libraries. The import file would start with
8899 # the line `#! .'. This would cause the generated library to
8900 # depend on `.', always an invalid library. This was fixed in
8901 # development snapshots of GCC prior to 3.0.
8902 case $host_os in
8903 aix4 | aix4.[01] | aix4.[01].*)
8904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8905 echo ' yes '
8906 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8907 :
8908 else
8909 can_build_shared=no
8910 fi
8911 ;;
8912 esac
8913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8914 # soname into executable. Probably we can add versioning support to
8915 # collect2, so additional links can be useful in future.
8916 if test "$aix_use_runtimelinking" = yes; then
8917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8918 # instead of lib<name>.a to let people know that these are not
8919 # typical AIX shared libraries.
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 else
8922 # We preserve .a as extension for shared libraries through AIX4.2
8923 # and later when we are not doing run time linking.
8924 library_names_spec='${libname}${release}.a $libname.a'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 fi
8927 shlibpath_var=LIBPATH
8928 fi
8929 ;;
8930
8931amigaos*)
8932 library_names_spec='$libname.ixlibrary $libname.a'
8933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8934 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'
8935 ;;
8936
8937beos*)
8938 library_names_spec='${libname}${shared_ext}'
8939 dynamic_linker="$host_os ld.so"
8940 shlibpath_var=LIBRARY_PATH
8941 ;;
8942
8943bsdi[45]*)
8944 version_type=linux
8945 need_version=no
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8952 # the default ld.so.conf also contains /usr/contrib/lib and
8953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8954 # libtool to hard-code these into programs
8955 ;;
8956
8957cygwin* | mingw* | pw32*)
8958 version_type=windows
8959 shrext_cmds=".dll"
8960 need_version=no
8961 need_lib_prefix=no
8962
8963 case $GCC,$host_os in
8964 yes,cygwin* | yes,mingw* | yes,pw32*)
8965 library_names_spec='$libname.dll.a'
8966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8967 postinstall_cmds='base_file=`basename \${file}`~
8968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8969 dldir=$destdir/`dirname \$dlpath`~
8970 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008971 $install_prog $dir/$dlname \$dldir/$dlname~
8972 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8974 dlpath=$dir/\$dldll~
8975 $rm \$dlpath'
8976 shlibpath_overrides_runpath=yes
8977
8978 case $host_os in
8979 cygwin*)
8980 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8981 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8982 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8983 ;;
8984 mingw*)
8985 # MinGW DLLs use traditional 'lib' prefix
8986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8988 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8989 # It is most probably a Windows format PATH printed by
8990 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8991 # path with ; separators, and with drive letters. We can handle the
8992 # drive letters (cygwin fileutils understands them), so leave them,
8993 # especially as we might pass files found there to a mingw objdump,
8994 # which wouldn't understand a cygwinified path. Ahh.
8995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8996 else
8997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8998 fi
8999 ;;
9000 pw32*)
9001 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009002 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 +00009003 ;;
9004 esac
9005 ;;
9006
9007 *)
9008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9009 ;;
9010 esac
9011 dynamic_linker='Win32 ld.exe'
9012 # FIXME: first we should search . and the directory the executable is in
9013 shlibpath_var=PATH
9014 ;;
9015
9016darwin* | rhapsody*)
9017 dynamic_linker="$host_os dyld"
9018 version_type=darwin
9019 need_lib_prefix=no
9020 need_version=no
9021 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9022 soname_spec='${libname}${release}${major}$shared_ext'
9023 shlibpath_overrides_runpath=yes
9024 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009025 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009026 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9027 if test "$GCC" = yes; then
9028 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"`
9029 else
9030 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9031 fi
9032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9033 ;;
9034
9035dgux*)
9036 version_type=linux
9037 need_lib_prefix=no
9038 need_version=no
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 ;;
9043
9044freebsd1*)
9045 dynamic_linker=no
9046 ;;
9047
9048kfreebsd*-gnu)
9049 version_type=linux
9050 need_lib_prefix=no
9051 need_version=no
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 shlibpath_overrides_runpath=no
9056 hardcode_into_libs=yes
9057 dynamic_linker='GNU ld.so'
9058 ;;
9059
Reid Spencera773bd52006-08-04 18:18:08 +00009060freebsd* | dragonfly*)
9061 # DragonFly does not have aout. When/if they implement a new
9062 # versioning mechanism, adjust this.
9063 if test -x /usr/bin/objformat; then
9064 objformat=`/usr/bin/objformat`
9065 else
9066 case $host_os in
9067 freebsd[123]*) objformat=aout ;;
9068 *) objformat=elf ;;
9069 esac
9070 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009071 version_type=freebsd-$objformat
9072 case $version_type in
9073 freebsd-elf*)
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9075 need_version=no
9076 need_lib_prefix=no
9077 ;;
9078 freebsd-*)
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9080 need_version=yes
9081 ;;
9082 esac
9083 shlibpath_var=LD_LIBRARY_PATH
9084 case $host_os in
9085 freebsd2*)
9086 shlibpath_overrides_runpath=yes
9087 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009088 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009089 shlibpath_overrides_runpath=yes
9090 hardcode_into_libs=yes
9091 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009094 shlibpath_overrides_runpath=no
9095 hardcode_into_libs=yes
9096 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009097 freebsd*) # from 4.6 on
9098 shlibpath_overrides_runpath=yes
9099 hardcode_into_libs=yes
9100 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009101 esac
9102 ;;
9103
9104gnu*)
9105 version_type=linux
9106 need_lib_prefix=no
9107 need_version=no
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 hardcode_into_libs=yes
9112 ;;
9113
9114hpux9* | hpux10* | hpux11*)
9115 # Give a soname corresponding to the major version so that dld.sl refuses to
9116 # link against other versions.
9117 version_type=sunos
9118 need_lib_prefix=no
9119 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009120 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009121 ia64*)
9122 shrext_cmds='.so'
9123 hardcode_into_libs=yes
9124 dynamic_linker="$host_os dld.so"
9125 shlibpath_var=LD_LIBRARY_PATH
9126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 if test "X$HPUX_IA64_MODE" = X32; then
9130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9131 else
9132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9133 fi
9134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9135 ;;
9136 hppa*64*)
9137 shrext_cmds='.sl'
9138 hardcode_into_libs=yes
9139 dynamic_linker="$host_os dld.sl"
9140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9146 ;;
9147 *)
9148 shrext_cmds='.sl'
9149 dynamic_linker="$host_os dld.sl"
9150 shlibpath_var=SHLIB_PATH
9151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 ;;
9155 esac
9156 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9157 postinstall_cmds='chmod 555 $lib'
9158 ;;
9159
Reid Spencera773bd52006-08-04 18:18:08 +00009160interix3*)
9161 version_type=linux
9162 need_lib_prefix=no
9163 need_version=no
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=no
9169 hardcode_into_libs=yes
9170 ;;
9171
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009172irix5* | irix6* | nonstopux*)
9173 case $host_os in
9174 nonstopux*) version_type=nonstopux ;;
9175 *)
9176 if test "$lt_cv_prog_gnu_ld" = yes; then
9177 version_type=linux
9178 else
9179 version_type=irix
9180 fi ;;
9181 esac
9182 need_lib_prefix=no
9183 need_version=no
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9186 case $host_os in
9187 irix5* | nonstopux*)
9188 libsuff= shlibsuff=
9189 ;;
9190 *)
9191 case $LD in # libtool.m4 will add one of these switches to LD
9192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9193 libsuff= shlibsuff= libmagic=32-bit;;
9194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9195 libsuff=32 shlibsuff=N32 libmagic=N32;;
9196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9198 *) libsuff= shlibsuff= libmagic=never-match;;
9199 esac
9200 ;;
9201 esac
9202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9203 shlibpath_overrides_runpath=no
9204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9206 hardcode_into_libs=yes
9207 ;;
9208
9209# No shared lib support for Linux oldld, aout, or coff.
9210linux*oldld* | linux*aout* | linux*coff*)
9211 dynamic_linker=no
9212 ;;
9213
9214# This must be Linux ELF.
9215linux*)
9216 version_type=linux
9217 need_lib_prefix=no
9218 need_version=no
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 shlibpath_overrides_runpath=no
9224 # This implies no fast_install, which is unacceptable.
9225 # Some rework will be needed to allow for fast_install
9226 # before this can be enabled.
9227 hardcode_into_libs=yes
9228
9229 # Append ld.so.conf contents to the search path
9230 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009231 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 +00009232 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9233 fi
9234
9235 # We used to test for /lib/ld.so.1 and disable shared libraries on
9236 # powerpc, because MkLinux only supported shared libraries with the
9237 # GNU dynamic linker. Since this was broken with cross compilers,
9238 # most powerpc-linux boxes support dynamic linking these days and
9239 # people can always --disable-shared, the test was removed, and we
9240 # assume the GNU/Linux dynamic linker is in use.
9241 dynamic_linker='GNU/Linux ld.so'
9242 ;;
9243
9244knetbsd*-gnu)
9245 version_type=linux
9246 need_lib_prefix=no
9247 need_version=no
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 shlibpath_overrides_runpath=no
9252 hardcode_into_libs=yes
9253 dynamic_linker='GNU ld.so'
9254 ;;
9255
9256netbsd*)
9257 version_type=sunos
9258 need_lib_prefix=no
9259 need_version=no
9260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9263 dynamic_linker='NetBSD (a.out) ld.so'
9264 else
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 dynamic_linker='NetBSD ld.elf_so'
9268 fi
9269 shlibpath_var=LD_LIBRARY_PATH
9270 shlibpath_overrides_runpath=yes
9271 hardcode_into_libs=yes
9272 ;;
9273
9274newsos6)
9275 version_type=linux
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 shlibpath_overrides_runpath=yes
9279 ;;
9280
9281nto-qnx*)
9282 version_type=linux
9283 need_lib_prefix=no
9284 need_version=no
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=yes
9289 ;;
9290
9291openbsd*)
9292 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009293 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009294 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9296 case $host_os in
9297 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9298 *) need_version=no ;;
9299 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9304 case $host_os in
9305 openbsd2.[89] | openbsd2.[89].*)
9306 shlibpath_overrides_runpath=no
9307 ;;
9308 *)
9309 shlibpath_overrides_runpath=yes
9310 ;;
9311 esac
9312 else
9313 shlibpath_overrides_runpath=yes
9314 fi
9315 ;;
9316
9317os2*)
9318 libname_spec='$name'
9319 shrext_cmds=".dll"
9320 need_lib_prefix=no
9321 library_names_spec='$libname${shared_ext} $libname.a'
9322 dynamic_linker='OS/2 ld.exe'
9323 shlibpath_var=LIBPATH
9324 ;;
9325
9326osf3* | osf4* | osf5*)
9327 version_type=osf
9328 need_lib_prefix=no
9329 need_version=no
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9335 ;;
9336
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337solaris*)
9338 version_type=linux
9339 need_lib_prefix=no
9340 need_version=no
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342 soname_spec='${libname}${release}${shared_ext}$major'
9343 shlibpath_var=LD_LIBRARY_PATH
9344 shlibpath_overrides_runpath=yes
9345 hardcode_into_libs=yes
9346 # ldd complains unless libraries are executable
9347 postinstall_cmds='chmod +x $lib'
9348 ;;
9349
9350sunos4*)
9351 version_type=sunos
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 shlibpath_overrides_runpath=yes
9356 if test "$with_gnu_ld" = yes; then
9357 need_lib_prefix=no
9358 fi
9359 need_version=yes
9360 ;;
9361
Reid Spencera773bd52006-08-04 18:18:08 +00009362sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009363 version_type=linux
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 case $host_vendor in
9368 sni)
9369 shlibpath_overrides_runpath=no
9370 need_lib_prefix=no
9371 export_dynamic_flag_spec='${wl}-Blargedynsym'
9372 runpath_var=LD_RUN_PATH
9373 ;;
9374 siemens)
9375 need_lib_prefix=no
9376 ;;
9377 motorola)
9378 need_lib_prefix=no
9379 need_version=no
9380 shlibpath_overrides_runpath=no
9381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9382 ;;
9383 esac
9384 ;;
9385
9386sysv4*MP*)
9387 if test -d /usr/nec ;then
9388 version_type=linux
9389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9390 soname_spec='$libname${shared_ext}.$major'
9391 shlibpath_var=LD_LIBRARY_PATH
9392 fi
9393 ;;
9394
Reid Spencera773bd52006-08-04 18:18:08 +00009395sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9396 version_type=freebsd-elf
9397 need_lib_prefix=no
9398 need_version=no
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 hardcode_into_libs=yes
9403 if test "$with_gnu_ld" = yes; then
9404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9405 shlibpath_overrides_runpath=no
9406 else
9407 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9408 shlibpath_overrides_runpath=yes
9409 case $host_os in
9410 sco3.2v5*)
9411 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9412 ;;
9413 esac
9414 fi
9415 sys_lib_dlsearch_path_spec='/usr/lib'
9416 ;;
9417
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009418uts4*)
9419 version_type=linux
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 shlibpath_var=LD_LIBRARY_PATH
9423 ;;
9424
9425*)
9426 dynamic_linker=no
9427 ;;
9428esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009429{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9430echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009431test "$dynamic_linker" = no && can_build_shared=no
9432
Reid Spencera773bd52006-08-04 18:18:08 +00009433variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9434if test "$GCC" = yes; then
9435 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9436fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009437
Reid Spencera773bd52006-08-04 18:18:08 +00009438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009439{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9440echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9441if test "${libltdl_cv_shlibext+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009443else
9444
9445module=yes
9446eval libltdl_cv_shlibext=$shrext_cmds
9447
9448fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009449{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9450echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009451if test -n "$libltdl_cv_shlibext"; then
9452
9453cat >>confdefs.h <<_ACEOF
9454#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9455_ACEOF
9456
9457fi
9458
9459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009460{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9461echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9462if test "${libltdl_cv_shlibpath_var+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009464else
9465 libltdl_cv_shlibpath_var="$shlibpath_var"
9466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009467{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9468echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009469if test -n "$libltdl_cv_shlibpath_var"; then
9470
9471cat >>confdefs.h <<_ACEOF
9472#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9473_ACEOF
9474
9475fi
9476
9477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009478{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9479echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9480if test "${libltdl_cv_sys_search_path+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482else
9483 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009485{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9486echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487if test -n "$libltdl_cv_sys_search_path"; then
9488 sys_search_path=
9489 for dir in $libltdl_cv_sys_search_path; do
9490 if test -z "$sys_search_path"; then
9491 sys_search_path="$dir"
9492 else
9493 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9494 fi
9495 done
9496
9497cat >>confdefs.h <<_ACEOF
9498#define LTDL_SYSSEARCHPATH "$sys_search_path"
9499_ACEOF
9500
9501fi
9502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009503{ echo "$as_me:$LINENO: checking for objdir" >&5
9504echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9505if test "${libltdl_cv_objdir+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009507else
9508 libltdl_cv_objdir="$objdir"
9509 if test -n "$objdir"; then
9510 :
9511 else
9512 rm -f .libs 2>/dev/null
9513 mkdir .libs 2>/dev/null
9514 if test -d .libs; then
9515 libltdl_cv_objdir=.libs
9516 else
9517 # MS-DOS does not allow filenames that begin with a dot.
9518 libltdl_cv_objdir=_libs
9519 fi
9520 rmdir .libs 2>/dev/null
9521 fi
9522
9523fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009524{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9525echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009526
9527cat >>confdefs.h <<_ACEOF
9528#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9529_ACEOF
9530
9531
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009532
9533
9534
9535
9536# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009537{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9538echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9539if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009541else
9542
9543# These are sane defaults that work on at least a few old systems.
9544# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9545
9546# Character class describing NM global symbol codes.
9547symcode='[BCDEGRST]'
9548
9549# Regexp to match symbols that can be accessed directly from C.
9550sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9551
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009552# Transform an extracted symbol line into a proper C declaration
9553lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9554
9555# Transform an extracted symbol line into symbol name and symbol address
9556lt_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'"
9557
9558# Define system-specific variables.
9559case $host_os in
9560aix*)
9561 symcode='[BCDT]'
9562 ;;
9563cygwin* | mingw* | pw32*)
9564 symcode='[ABCDGISTW]'
9565 ;;
9566hpux*) # Its linker distinguishes data from code symbols
9567 if test "$host_cpu" = ia64; then
9568 symcode='[ABCDEGRST]'
9569 fi
9570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9571 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'"
9572 ;;
9573linux*)
9574 if test "$host_cpu" = ia64; then
9575 symcode='[ABCDGIRSTW]'
9576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9577 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'"
9578 fi
9579 ;;
9580irix* | nonstopux*)
9581 symcode='[BCDEGRST]'
9582 ;;
9583osf*)
9584 symcode='[BCDEGQRST]'
9585 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009586solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009587 symcode='[BDRT]'
9588 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009589sco3.2v5*)
9590 symcode='[DT]'
9591 ;;
9592sysv4.2uw2*)
9593 symcode='[DT]'
9594 ;;
9595sysv5* | sco5v6* | unixware* | OpenUNIX*)
9596 symcode='[ABDT]'
9597 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009598sysv4)
9599 symcode='[DFNSTU]'
9600 ;;
9601esac
9602
9603# Handle CRLF in mingw tool chain
9604opt_cr=
9605case $build_os in
9606mingw*)
9607 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9608 ;;
9609esac
9610
9611# If we're using GNU nm, then use its standard symbol codes.
9612case `$NM -V 2>&1` in
9613*GNU* | *'with BFD'*)
9614 symcode='[ABCDGIRSTW]' ;;
9615esac
9616
9617# Try without a prefix undercore, then with it.
9618for ac_symprfx in "" "_"; do
9619
Reid Spencera773bd52006-08-04 18:18:08 +00009620 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9621 symxfrm="\\1 $ac_symprfx\\2 \\2"
9622
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009623 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009624 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 +00009625
9626 # Check to see that the pipe works correctly.
9627 pipe_works=no
9628
9629 rm -f conftest*
9630 cat > conftest.$ac_ext <<EOF
9631#ifdef __cplusplus
9632extern "C" {
9633#endif
9634char nm_test_var;
9635void nm_test_func(){}
9636#ifdef __cplusplus
9637}
9638#endif
9639int main(){nm_test_var='a';nm_test_func();return(0);}
9640EOF
9641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009643 (eval $ac_compile) 2>&5
9644 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009647 # Now try to grab the symbols.
9648 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009649 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 +00009650 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9651 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009654 # Try sorting and uniquifying the output.
9655 if sort "$nlist" | uniq > "$nlist"T; then
9656 mv -f "$nlist"T "$nlist"
9657 else
9658 rm -f "$nlist"T
9659 fi
9660
9661 # Make sure that we snagged all the symbols we need.
9662 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9663 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9664 cat <<EOF > conftest.$ac_ext
9665#ifdef __cplusplus
9666extern "C" {
9667#endif
9668
9669EOF
9670 # Now generate the symbol file.
9671 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9672
9673 cat <<EOF >> conftest.$ac_ext
9674#if defined (__STDC__) && __STDC__
9675# define lt_ptr_t void *
9676#else
9677# define lt_ptr_t char *
9678# define const
9679#endif
9680
9681/* The mapping between symbol names and symbols. */
9682const struct {
9683 const char *name;
9684 lt_ptr_t address;
9685}
9686lt_preloaded_symbols[] =
9687{
9688EOF
9689 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9690 cat <<\EOF >> conftest.$ac_ext
9691 {0, (lt_ptr_t) 0}
9692};
9693
9694#ifdef __cplusplus
9695}
9696#endif
9697EOF
9698 # Now try linking the two files.
9699 mv conftest.$ac_objext conftstm.$ac_objext
9700 lt_save_LIBS="$LIBS"
9701 lt_save_CFLAGS="$CFLAGS"
9702 LIBS="conftstm.$ac_objext"
9703 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705 (eval $ac_link) 2>&5
9706 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009709 pipe_works=yes
9710 fi
9711 LIBS="$lt_save_LIBS"
9712 CFLAGS="$lt_save_CFLAGS"
9713 else
9714 echo "cannot find nm_test_func in $nlist" >&5
9715 fi
9716 else
9717 echo "cannot find nm_test_var in $nlist" >&5
9718 fi
9719 else
9720 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9721 fi
9722 else
9723 echo "$progname: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9725 fi
9726 rm -f conftest* conftst*
9727
9728 # Do not use the global_symbol_pipe unless it works.
9729 if test "$pipe_works" = yes; then
9730 break
9731 else
9732 lt_cv_sys_global_symbol_pipe=
9733 fi
9734done
9735
9736fi
9737
9738if test -z "$lt_cv_sys_global_symbol_pipe"; then
9739 lt_cv_sys_global_symbol_to_cdecl=
9740fi
9741if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009742 { echo "$as_me:$LINENO: result: failed" >&5
9743echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009744else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009745 { echo "$as_me:$LINENO: result: ok" >&5
9746echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009747fi
9748
9749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009750{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9751echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9752if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009754else
9755 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9756 libltdl_cv_preloaded_symbols=yes
9757 else
9758 libltdl_cv_preloaded_symbols=no
9759 fi
9760
9761fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009762{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9763echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009766cat >>confdefs.h <<\_ACEOF
9767#define HAVE_PRELOADED_SYMBOLS 1
9768_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769
9770fi
9771
9772LIBADD_DL=
9773
9774ac_ext=c
9775ac_cpp='$CPP $CPPFLAGS'
9776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9778ac_compiler_gnu=$ac_cv_c_compiler_gnu
9779
9780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009781{ echo "$as_me:$LINENO: checking for shl_load" >&5
9782echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9783if test "${ac_cv_func_shl_load+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785else
9786 cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h. */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
9791/* end confdefs.h. */
9792/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9794#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009796/* System header to define __stub macros and hopefully few prototypes,
9797 which can conflict with char shl_load (); below.
9798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799 <limits.h> exists even on freestanding compilers. */
9800
9801#ifdef __STDC__
9802# include <limits.h>
9803#else
9804# include <assert.h>
9805#endif
9806
9807#undef shl_load
9808
9809/* Override any GCC internal prototype to avoid an error.
9810 Use char because int might match the return type of a GCC
9811 builtin and then its argument prototype would still apply. */
9812#ifdef __cplusplus
9813extern "C"
9814#endif
9815char shl_load ();
9816/* The GNU C library defines this for functions which it implements
9817 to always fail with ENOSYS. Some functions are actually named
9818 something starting with __ and the normal name is an alias. */
9819#if defined __stub_shl_load || defined __stub___shl_load
9820choke me
9821#endif
9822
9823int
9824main ()
9825{
9826return shl_load ();
9827 ;
9828 return 0;
9829}
9830_ACEOF
9831rm -f conftest.$ac_objext conftest$ac_exeext
9832if { (ac_try="$ac_link"
9833case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_link") 2>conftest.er1
9839 ac_status=$?
9840 grep -v '^ *+' conftest.er1 >conftest.err
9841 rm -f conftest.er1
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9846 { (case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849esac
9850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_try") 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859esac
9860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_try") 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_func_shl_load=yes
9866else
9867 echo "$as_me: failed program was:" >&5
9868sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 ac_cv_func_shl_load=no
9871fi
9872
9873rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875fi
9876{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9877echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9878if test $ac_cv_func_shl_load = yes; then
9879
9880cat >>confdefs.h <<\_ACEOF
9881#define HAVE_SHL_LOAD 1
9882_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883
9884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009885 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9886echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9887if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889else
9890 ac_check_lib_save_LIBS=$LIBS
9891LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009892cat >conftest.$ac_ext <<_ACEOF
9893/* confdefs.h. */
9894_ACEOF
9895cat confdefs.h >>conftest.$ac_ext
9896cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897/* end confdefs.h. */
9898
Reid Spencera773bd52006-08-04 18:18:08 +00009899/* Override any GCC internal prototype to avoid an error.
9900 Use char because int might match the return type of a GCC
9901 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902#ifdef __cplusplus
9903extern "C"
9904#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009905char shl_load ();
9906int
9907main ()
9908{
Reid Spencera773bd52006-08-04 18:18:08 +00009909return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910 ;
9911 return 0;
9912}
9913_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009914rm -f conftest.$ac_objext conftest$ac_exeext
9915if { (ac_try="$ac_link"
9916case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9919esac
9920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_link") 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9929 { (case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932esac
9933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_try") 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9942esac
9943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_try") 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009948 ac_cv_lib_dld_shl_load=yes
9949else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009950 echo "$as_me: failed program was:" >&5
9951sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009955
Bill Wendlingebcceee2009-04-18 11:20:33 +00009956rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009957 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009958LIBS=$ac_check_lib_save_LIBS
9959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009960{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9961echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9962if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009964cat >>confdefs.h <<\_ACEOF
9965#define HAVE_SHL_LOAD 1
9966_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009967
9968 LIBADD_DL="$LIBADD_DL -ldld"
9969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009970 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9971echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9972if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009974else
9975 ac_check_lib_save_LIBS=$LIBS
9976LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009977cat >conftest.$ac_ext <<_ACEOF
9978/* confdefs.h. */
9979_ACEOF
9980cat confdefs.h >>conftest.$ac_ext
9981cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009982/* end confdefs.h. */
9983
Reid Spencera773bd52006-08-04 18:18:08 +00009984/* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009987#ifdef __cplusplus
9988extern "C"
9989#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990char dlopen ();
9991int
9992main ()
9993{
Reid Spencera773bd52006-08-04 18:18:08 +00009994return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995 ;
9996 return 0;
9997}
9998_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009999rm -f conftest.$ac_objext conftest$ac_exeext
10000if { (ac_try="$ac_link"
10001case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004esac
10005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_link") 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010033 ac_cv_lib_dl_dlopen=yes
10034else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010035 echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
10038 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010040
Bill Wendlingebcceee2009-04-18 11:20:33 +000010041rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010042 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010043LIBS=$ac_check_lib_save_LIBS
10044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010045{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10046echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10047if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010049cat >>confdefs.h <<\_ACEOF
10050#define HAVE_LIBDL 1
10051_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052
10053 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010055 cat >conftest.$ac_ext <<_ACEOF
10056/* confdefs.h. */
10057_ACEOF
10058cat confdefs.h >>conftest.$ac_ext
10059cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010060/* end confdefs.h. */
10061#if HAVE_DLFCN_H
10062# include <dlfcn.h>
10063#endif
10064
10065int
10066main ()
10067{
10068dlopen(0, 0);
10069 ;
10070 return 0;
10071}
10072_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010073rm -f conftest.$ac_objext conftest$ac_exeext
10074if { (ac_try="$ac_link"
10075case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10078esac
10079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_link") 2>conftest.er1
10081 ac_status=$?
10082 grep -v '^ *+' conftest.er1 >conftest.err
10083 rm -f conftest.er1
10084 cat conftest.err >&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } &&
10087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10088 { (case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091esac
10092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_try") 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try='test -s conftest$ac_exeext'
10098 { (case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101esac
10102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_try") 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010108cat >>confdefs.h <<\_ACEOF
10109#define HAVE_LIBDL 1
10110_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010111 libltdl_cv_func_dlopen="yes"
10112else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010113 echo "$as_me: failed program was:" >&5
10114sed 's/^/| /' conftest.$ac_ext >&5
10115
10116 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10117echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10118if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010120else
10121 ac_check_lib_save_LIBS=$LIBS
10122LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010123cat >conftest.$ac_ext <<_ACEOF
10124/* confdefs.h. */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010128/* end confdefs.h. */
10129
Reid Spencera773bd52006-08-04 18:18:08 +000010130/* Override any GCC internal prototype to avoid an error.
10131 Use char because int might match the return type of a GCC
10132 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133#ifdef __cplusplus
10134extern "C"
10135#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010136char dlopen ();
10137int
10138main ()
10139{
Reid Spencera773bd52006-08-04 18:18:08 +000010140return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010141 ;
10142 return 0;
10143}
10144_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010145rm -f conftest.$ac_objext conftest$ac_exeext
10146if { (ac_try="$ac_link"
10147case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150esac
10151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_link") 2>conftest.er1
10153 ac_status=$?
10154 grep -v '^ *+' conftest.er1 >conftest.err
10155 rm -f conftest.er1
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160 { (case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163esac
10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_try") 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; } &&
10169 { ac_try='test -s conftest$ac_exeext'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010179 ac_cv_lib_svld_dlopen=yes
10180else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010181 echo "$as_me: failed program was:" >&5
10182sed 's/^/| /' conftest.$ac_ext >&5
10183
10184 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010186
Bill Wendlingebcceee2009-04-18 11:20:33 +000010187rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010188 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010189LIBS=$ac_check_lib_save_LIBS
10190fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010191{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10192echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10193if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010195cat >>confdefs.h <<\_ACEOF
10196#define HAVE_LIBDL 1
10197_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198
10199 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010201 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10202echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10203if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010205else
10206 ac_check_lib_save_LIBS=$LIBS
10207LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010208cat >conftest.$ac_ext <<_ACEOF
10209/* confdefs.h. */
10210_ACEOF
10211cat confdefs.h >>conftest.$ac_ext
10212cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213/* end confdefs.h. */
10214
Reid Spencera773bd52006-08-04 18:18:08 +000010215/* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010218#ifdef __cplusplus
10219extern "C"
10220#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010221char dld_link ();
10222int
10223main ()
10224{
Reid Spencera773bd52006-08-04 18:18:08 +000010225return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226 ;
10227 return 0;
10228}
10229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010230rm -f conftest.$ac_objext conftest$ac_exeext
10231if { (ac_try="$ac_link"
10232case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>conftest.er1
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010264 ac_cv_lib_dld_dld_link=yes
10265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010266 echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010271
Bill Wendlingebcceee2009-04-18 11:20:33 +000010272rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010273 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010274LIBS=$ac_check_lib_save_LIBS
10275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010276{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10277echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10278if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010280cat >>confdefs.h <<\_ACEOF
10281#define HAVE_DLD 1
10282_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283
10284 LIBADD_DL="$LIBADD_DL -ldld"
10285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010286 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10287echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10288if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10290else
10291 cat >conftest.$ac_ext <<_ACEOF
10292/* confdefs.h. */
10293_ACEOF
10294cat confdefs.h >>conftest.$ac_ext
10295cat >>conftest.$ac_ext <<_ACEOF
10296/* end confdefs.h. */
10297/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10299#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010301/* System header to define __stub macros and hopefully few prototypes,
10302 which can conflict with char _dyld_func_lookup (); below.
10303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10304 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010306#ifdef __STDC__
10307# include <limits.h>
10308#else
10309# include <assert.h>
10310#endif
10311
10312#undef _dyld_func_lookup
10313
10314/* Override any GCC internal prototype to avoid an error.
10315 Use char because int might match the return type of a GCC
10316 builtin and then its argument prototype would still apply. */
10317#ifdef __cplusplus
10318extern "C"
10319#endif
10320char _dyld_func_lookup ();
10321/* The GNU C library defines this for functions which it implements
10322 to always fail with ENOSYS. Some functions are actually named
10323 something starting with __ and the normal name is an alias. */
10324#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10325choke me
10326#endif
10327
10328int
10329main ()
10330{
10331return _dyld_func_lookup ();
10332 ;
10333 return 0;
10334}
10335_ACEOF
10336rm -f conftest.$ac_objext conftest$ac_exeext
10337if { (ac_try="$ac_link"
10338case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10341esac
10342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_link") 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10351 { (case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354esac
10355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_try") 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try='test -s conftest$ac_exeext'
10361 { (case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10364esac
10365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366 (eval "$ac_try") 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10370 ac_cv_func__dyld_func_lookup=yes
10371else
10372 echo "$as_me: failed program was:" >&5
10373sed 's/^/| /' conftest.$ac_ext >&5
10374
10375 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010376fi
Reid Spencera773bd52006-08-04 18:18:08 +000010377
Bill Wendlingebcceee2009-04-18 11:20:33 +000010378rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010379 conftest$ac_exeext conftest.$ac_ext
10380fi
10381{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10382echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10383if test $ac_cv_func__dyld_func_lookup = yes; then
10384
10385cat >>confdefs.h <<\_ACEOF
10386#define HAVE_DYLD 1
10387_ACEOF
10388
10389fi
10390
10391
10392fi
10393
10394
10395fi
10396
10397
10398fi
10399
10400rm -f core conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402
10403fi
10404
10405
10406fi
10407
10408
10409fi
10410
10411
10412if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10413then
10414 lt_save_LIBS="$LIBS"
10415 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010416
10417for ac_func in dlerror
10418do
10419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10420{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424else
10425 cat >conftest.$ac_ext <<_ACEOF
10426/* confdefs.h. */
10427_ACEOF
10428cat confdefs.h >>conftest.$ac_ext
10429cat >>conftest.$ac_ext <<_ACEOF
10430/* end confdefs.h. */
10431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10433#define $ac_func innocuous_$ac_func
10434
10435/* System header to define __stub macros and hopefully few prototypes,
10436 which can conflict with char $ac_func (); below.
10437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10438 <limits.h> exists even on freestanding compilers. */
10439
10440#ifdef __STDC__
10441# include <limits.h>
10442#else
10443# include <assert.h>
10444#endif
10445
10446#undef $ac_func
10447
10448/* Override any GCC internal prototype to avoid an error.
10449 Use char because int might match the return type of a GCC
10450 builtin and then its argument prototype would still apply. */
10451#ifdef __cplusplus
10452extern "C"
10453#endif
10454char $ac_func ();
10455/* The GNU C library defines this for functions which it implements
10456 to always fail with ENOSYS. Some functions are actually named
10457 something starting with __ and the normal name is an alias. */
10458#if defined __stub_$ac_func || defined __stub___$ac_func
10459choke me
10460#endif
10461
10462int
10463main ()
10464{
10465return $ac_func ();
10466 ;
10467 return 0;
10468}
10469_ACEOF
10470rm -f conftest.$ac_objext conftest$ac_exeext
10471if { (ac_try="$ac_link"
10472case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10475esac
10476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_link") 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } &&
10484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10485 { (case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10488esac
10489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_try") 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; } &&
10494 { ac_try='test -s conftest$ac_exeext'
10495 { (case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10498esac
10499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_try") 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; }; then
10504 eval "$as_ac_var=yes"
10505else
10506 echo "$as_me: failed program was:" >&5
10507sed 's/^/| /' conftest.$ac_ext >&5
10508
10509 eval "$as_ac_var=no"
10510fi
10511
10512rm -f core conftest.err conftest.$ac_objext \
10513 conftest$ac_exeext conftest.$ac_ext
10514fi
10515ac_res=`eval echo '${'$as_ac_var'}'`
10516 { echo "$as_me:$LINENO: result: $ac_res" >&5
10517echo "${ECHO_T}$ac_res" >&6; }
10518if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010521_ACEOF
10522
10523fi
10524done
10525
10526 LIBS="$lt_save_LIBS"
10527fi
10528ac_ext=c
10529ac_cpp='$CPP $CPPFLAGS'
10530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10532ac_compiler_gnu=$ac_cv_c_compiler_gnu
10533
10534
10535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010536{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10537echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10538if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010540else
10541 ac_cv_sys_symbol_underscore=no
10542 cat > conftest.$ac_ext <<EOF
10543void nm_test_func(){}
10544int main(){nm_test_func;return 0;}
10545EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547 (eval $ac_compile) 2>&5
10548 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551 # Now try to grab the symbols.
10552 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010553 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 +000010554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10555 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010558 # See whether the symbols have a leading underscore.
10559 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10560 ac_cv_sys_symbol_underscore=yes
10561 else
10562 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10563 :
10564 else
10565 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10566 fi
10567 fi
10568 else
10569 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10570 fi
10571 else
10572 echo "configure: failed program was:" >&5
10573 cat conftest.c >&5
10574 fi
10575 rm -rf conftest*
10576
10577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010578{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10579echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580
10581
10582if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10583 if test x"$libltdl_cv_func_dlopen" = xyes ||
10584 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010585 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10586echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10587if test "${libltdl_cv_need_uscore+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589else
10590 libltdl_cv_need_uscore=unknown
10591 save_LIBS="$LIBS"
10592 LIBS="$LIBS $LIBADD_DL"
10593 if test "$cross_compiling" = yes; then :
10594 libltdl_cv_need_uscore=cross
10595else
10596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10597 lt_status=$lt_dlunknown
10598 cat > conftest.$ac_ext <<EOF
Eric Christopherffee5722011-09-16 20:36:25 +000010599#line 10599 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600#include "confdefs.h"
10601
10602#if HAVE_DLFCN_H
10603#include <dlfcn.h>
10604#endif
10605
10606#include <stdio.h>
10607
10608#ifdef RTLD_GLOBAL
10609# define LT_DLGLOBAL RTLD_GLOBAL
10610#else
10611# ifdef DL_GLOBAL
10612# define LT_DLGLOBAL DL_GLOBAL
10613# else
10614# define LT_DLGLOBAL 0
10615# endif
10616#endif
10617
10618/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10619 find out it does not work in some platform. */
10620#ifndef LT_DLLAZY_OR_NOW
10621# ifdef RTLD_LAZY
10622# define LT_DLLAZY_OR_NOW RTLD_LAZY
10623# else
10624# ifdef DL_LAZY
10625# define LT_DLLAZY_OR_NOW DL_LAZY
10626# else
10627# ifdef RTLD_NOW
10628# define LT_DLLAZY_OR_NOW RTLD_NOW
10629# else
10630# ifdef DL_NOW
10631# define LT_DLLAZY_OR_NOW DL_NOW
10632# else
10633# define LT_DLLAZY_OR_NOW 0
10634# endif
10635# endif
10636# endif
10637# endif
10638#endif
10639
10640#ifdef __cplusplus
10641extern "C" void exit (int);
10642#endif
10643
10644void fnord() { int i=42;}
10645int main ()
10646{
10647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10648 int status = $lt_dlunknown;
10649
10650 if (self)
10651 {
10652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10654 /* dlclose (self); */
10655 }
Reid Spencera773bd52006-08-04 18:18:08 +000010656 else
10657 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010658
10659 exit (status);
10660}
10661EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010663 (eval $ac_link) 2>&5
10664 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010667 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668 lt_status=$?
10669 case x$lt_status in
10670 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10671 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010672 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673 esac
10674 else :
10675 # compilation failed
10676
10677 fi
10678fi
10679rm -fr conftest*
10680
10681 LIBS="$save_LIBS"
10682
10683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010684{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10685echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010686 fi
10687fi
10688
10689if test x"$libltdl_cv_need_uscore" = xyes; then
10690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010691cat >>confdefs.h <<\_ACEOF
10692#define NEED_USCORE 1
10693_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010694
10695fi
10696
10697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010698{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10699echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10700if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010702else
10703 # PORTME does your system automatically load deplibs for dlopen?
10704 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10705 # For now, we just catch OSes we know something about -- in the
10706 # future, we'll try test this programmatically.
10707 libltdl_cv_sys_dlopen_deplibs=unknown
10708 case "$host_os" in
10709 aix3*|aix4.1.*|aix4.2.*)
10710 # Unknown whether this is true for these versions of AIX, but
10711 # we want this `case' here to explicitly catch those versions.
10712 libltdl_cv_sys_dlopen_deplibs=unknown
10713 ;;
10714 aix[45]*)
10715 libltdl_cv_sys_dlopen_deplibs=yes
10716 ;;
10717 darwin*)
10718 # Assuming the user has installed a libdl from somewhere, this is true
10719 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10720 libltdl_cv_sys_dlopen_deplibs=yes
10721 ;;
10722 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10723 # GNU and its variants, using gnu ld.so (Glibc)
10724 libltdl_cv_sys_dlopen_deplibs=yes
10725 ;;
10726 hpux10*|hpux11*)
10727 libltdl_cv_sys_dlopen_deplibs=yes
10728 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010729 interix*)
10730 libltdl_cv_sys_dlopen_deplibs=yes
10731 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010732 irix[12345]*|irix6.[01]*)
10733 # Catch all versions of IRIX before 6.2, and indicate that we don't
10734 # know how it worked for any of those versions.
10735 libltdl_cv_sys_dlopen_deplibs=unknown
10736 ;;
10737 irix*)
10738 # The case above catches anything before 6.2, and it's known that
10739 # at 6.2 and later dlopen does load deplibs.
10740 libltdl_cv_sys_dlopen_deplibs=yes
10741 ;;
10742 netbsd*)
10743 libltdl_cv_sys_dlopen_deplibs=yes
10744 ;;
10745 openbsd*)
10746 libltdl_cv_sys_dlopen_deplibs=yes
10747 ;;
10748 osf[1234]*)
10749 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10750 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010751 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010752 libltdl_cv_sys_dlopen_deplibs=no
10753 ;;
10754 osf5.0|osf5.0a|osf5.1)
10755 # dlopen *does* load deplibs and with the right loader patch applied
10756 # it even uses RPATH in a shared library to search for shared objects
10757 # that the library depends on, but there's no easy way to know if that
10758 # patch is installed. Since this is the case, all we can really
10759 # say is unknown -- it depends on the patch being installed. If
10760 # it is, this changes to `yes'. Without it, it would be `no'.
10761 libltdl_cv_sys_dlopen_deplibs=unknown
10762 ;;
10763 osf*)
10764 # the two cases above should catch all versions of osf <= 5.1. Read
10765 # the comments above for what we know about them.
10766 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10767 # is used to find them so we can finally say `yes'.
10768 libltdl_cv_sys_dlopen_deplibs=yes
10769 ;;
10770 solaris*)
10771 libltdl_cv_sys_dlopen_deplibs=yes
10772 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10774 libltdl_cv_sys_dlopen_deplibs=yes
10775 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776 esac
10777
10778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010779{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10780echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010783cat >>confdefs.h <<\_ACEOF
10784#define LTDL_DLOPEN_DEPLIBS 1
10785_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010786
10787fi
10788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010789
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010791do
10792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
10798fi
10799ac_res=`eval echo '${'$as_ac_Header'}'`
10800 { echo "$as_me:$LINENO: result: $ac_res" >&5
10801echo "${ECHO_T}$ac_res" >&6; }
10802else
10803 # Is the header compilable?
10804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10806cat >conftest.$ac_ext <<_ACEOF
10807/* confdefs.h. */
10808_ACEOF
10809cat confdefs.h >>conftest.$ac_ext
10810cat >>conftest.$ac_ext <<_ACEOF
10811/* end confdefs.h. */
10812$ac_includes_default
10813#include <$ac_header>
10814_ACEOF
10815rm -f conftest.$ac_objext
10816if { (ac_try="$ac_compile"
10817case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820esac
10821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_compile") 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10830 { (case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10833esac
10834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_try") 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; } &&
10839 { ac_try='test -s conftest.$ac_objext'
10840 { (case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10843esac
10844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_try") 2>&5
10846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_header_compiler=yes
10850else
10851 echo "$as_me: failed program was:" >&5
10852sed 's/^/| /' conftest.$ac_ext >&5
10853
10854 ac_header_compiler=no
10855fi
10856
10857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10859echo "${ECHO_T}$ac_header_compiler" >&6; }
10860
10861# Is the header present?
10862{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10864cat >conftest.$ac_ext <<_ACEOF
10865/* confdefs.h. */
10866_ACEOF
10867cat confdefs.h >>conftest.$ac_ext
10868cat >>conftest.$ac_ext <<_ACEOF
10869/* end confdefs.h. */
10870#include <$ac_header>
10871_ACEOF
10872if { (ac_try="$ac_cpp conftest.$ac_ext"
10873case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876esac
10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } >/dev/null; then
10885 if test -s conftest.err; then
10886 ac_cpp_err=$ac_c_preproc_warn_flag
10887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10888 else
10889 ac_cpp_err=
10890 fi
10891else
10892 ac_cpp_err=yes
10893fi
10894if test -z "$ac_cpp_err"; then
10895 ac_header_preproc=yes
10896else
10897 echo "$as_me: failed program was:" >&5
10898sed 's/^/| /' conftest.$ac_ext >&5
10899
10900 ac_header_preproc=no
10901fi
10902
10903rm -f conftest.err conftest.$ac_ext
10904{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10905echo "${ECHO_T}$ac_header_preproc" >&6; }
10906
10907# So? What about this header?
10908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10909 yes:no: )
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10914 ac_header_preproc=yes
10915 ;;
10916 no:yes:* )
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10929 ( cat <<\_ASBOX
10930## ----------------------------------- ##
10931## Report this to llvmbugs@cs.uiuc.edu ##
10932## ----------------------------------- ##
10933_ASBOX
10934 ) | sed "s/^/$as_me: WARNING: /" >&2
10935 ;;
10936esac
10937{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941else
10942 eval "$as_ac_Header=\$ac_header_preproc"
10943fi
10944ac_res=`eval echo '${'$as_ac_Header'}'`
10945 { echo "$as_me:$LINENO: result: $ac_res" >&5
10946echo "${ECHO_T}$ac_res" >&6; }
10947
10948fi
10949if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010950 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952_ACEOF
10953
10954fi
10955
10956done
10957
10958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010959{ echo "$as_me:$LINENO: checking for error_t" >&5
10960echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10961if test "${ac_cv_type_error_t+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963else
10964 cat >conftest.$ac_ext <<_ACEOF
10965/* confdefs.h. */
10966_ACEOF
10967cat confdefs.h >>conftest.$ac_ext
10968cat >>conftest.$ac_ext <<_ACEOF
10969/* end confdefs.h. */
10970#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010971# include <argz.h>
10972#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010973
10974typedef error_t ac__type_new_;
10975int
10976main ()
10977{
10978if ((ac__type_new_ *) 0)
10979 return 0;
10980if (sizeof (ac__type_new_))
10981 return 0;
10982 ;
10983 return 0;
10984}
10985_ACEOF
10986rm -f conftest.$ac_objext
10987if { (ac_try="$ac_compile"
10988case "(($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_compile") 2>conftest.er1
10994 ac_status=$?
10995 grep -v '^ *+' conftest.er1 >conftest.err
10996 rm -f conftest.er1
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } &&
11000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11001 { (case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_try") 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; } &&
11010 { ac_try='test -s conftest.$ac_objext'
11011 { (case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11014esac
11015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_try") 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_cv_type_error_t=yes
11021else
11022 echo "$as_me: failed program was:" >&5
11023sed 's/^/| /' conftest.$ac_ext >&5
11024
11025 ac_cv_type_error_t=no
11026fi
11027
11028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029fi
11030{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11031echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11032if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033
11034cat >>confdefs.h <<_ACEOF
11035#define HAVE_ERROR_T 1
11036_ACEOF
11037
11038
11039else
11040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011041cat >>confdefs.h <<\_ACEOF
11042#define error_t int
11043_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044
11045fi
11046
11047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011048
11049
11050
11051
11052
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011053for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011054do
11055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11056{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11058if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11060else
11061 cat >conftest.$ac_ext <<_ACEOF
11062/* confdefs.h. */
11063_ACEOF
11064cat confdefs.h >>conftest.$ac_ext
11065cat >>conftest.$ac_ext <<_ACEOF
11066/* end confdefs.h. */
11067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11069#define $ac_func innocuous_$ac_func
11070
11071/* System header to define __stub macros and hopefully few prototypes,
11072 which can conflict with char $ac_func (); below.
11073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11074 <limits.h> exists even on freestanding compilers. */
11075
11076#ifdef __STDC__
11077# include <limits.h>
11078#else
11079# include <assert.h>
11080#endif
11081
11082#undef $ac_func
11083
11084/* Override any GCC internal prototype to avoid an error.
11085 Use char because int might match the return type of a GCC
11086 builtin and then its argument prototype would still apply. */
11087#ifdef __cplusplus
11088extern "C"
11089#endif
11090char $ac_func ();
11091/* The GNU C library defines this for functions which it implements
11092 to always fail with ENOSYS. Some functions are actually named
11093 something starting with __ and the normal name is an alias. */
11094#if defined __stub_$ac_func || defined __stub___$ac_func
11095choke me
11096#endif
11097
11098int
11099main ()
11100{
11101return $ac_func ();
11102 ;
11103 return 0;
11104}
11105_ACEOF
11106rm -f conftest.$ac_objext conftest$ac_exeext
11107if { (ac_try="$ac_link"
11108case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11111esac
11112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_link") 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11121 { (case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124esac
11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_try") 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; } &&
11130 { ac_try='test -s conftest$ac_exeext'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134esac
11135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 eval "$as_ac_var=yes"
11141else
11142 echo "$as_me: failed program was:" >&5
11143sed 's/^/| /' conftest.$ac_ext >&5
11144
11145 eval "$as_ac_var=no"
11146fi
11147
11148rm -f core conftest.err conftest.$ac_objext \
11149 conftest$ac_exeext conftest.$ac_ext
11150fi
11151ac_res=`eval echo '${'$as_ac_var'}'`
11152 { echo "$as_me:$LINENO: result: $ac_res" >&5
11153echo "${ECHO_T}$ac_res" >&6; }
11154if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011155 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011157_ACEOF
11158
11159fi
11160done
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011181
11182
11183
11184
11185
11186
11187
11188
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011189for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11190 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011191do
11192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
11198fi
11199ac_res=`eval echo '${'$as_ac_Header'}'`
11200 { echo "$as_me:$LINENO: result: $ac_res" >&5
11201echo "${ECHO_T}$ac_res" >&6; }
11202else
11203 # Is the header compilable?
11204{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11206cat >conftest.$ac_ext <<_ACEOF
11207/* confdefs.h. */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h. */
11212$ac_includes_default
11213#include <$ac_header>
11214_ACEOF
11215rm -f conftest.$ac_objext
11216if { (ac_try="$ac_compile"
11217case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11220esac
11221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222 (eval "$ac_compile") 2>conftest.er1
11223 ac_status=$?
11224 grep -v '^ *+' conftest.er1 >conftest.err
11225 rm -f conftest.er1
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11230 { (case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233esac
11234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_try") 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest.$ac_objext'
11240 { (case "(($ac_try" in
11241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11243esac
11244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245 (eval "$ac_try") 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 ac_header_compiler=yes
11250else
11251 echo "$as_me: failed program was:" >&5
11252sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 ac_header_compiler=no
11255fi
11256
11257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11259echo "${ECHO_T}$ac_header_compiler" >&6; }
11260
11261# Is the header present?
11262{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11264cat >conftest.$ac_ext <<_ACEOF
11265/* confdefs.h. */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h. */
11270#include <$ac_header>
11271_ACEOF
11272if { (ac_try="$ac_cpp conftest.$ac_ext"
11273case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276esac
11277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } >/dev/null; then
11285 if test -s conftest.err; then
11286 ac_cpp_err=$ac_c_preproc_warn_flag
11287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11288 else
11289 ac_cpp_err=
11290 fi
11291else
11292 ac_cpp_err=yes
11293fi
11294if test -z "$ac_cpp_err"; then
11295 ac_header_preproc=yes
11296else
11297 echo "$as_me: failed program was:" >&5
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
11300 ac_header_preproc=no
11301fi
11302
11303rm -f conftest.err conftest.$ac_ext
11304{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11305echo "${ECHO_T}$ac_header_preproc" >&6; }
11306
11307# So? What about this header?
11308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11309 yes:no: )
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11314 ac_header_preproc=yes
11315 ;;
11316 no:yes:* )
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11329 ( cat <<\_ASBOX
11330## ----------------------------------- ##
11331## Report this to llvmbugs@cs.uiuc.edu ##
11332## ----------------------------------- ##
11333_ASBOX
11334 ) | sed "s/^/$as_me: WARNING: /" >&2
11335 ;;
11336esac
11337{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11341else
11342 eval "$as_ac_Header=\$ac_header_preproc"
11343fi
11344ac_res=`eval echo '${'$as_ac_Header'}'`
11345 { echo "$as_me:$LINENO: result: $ac_res" >&5
11346echo "${ECHO_T}$ac_res" >&6; }
11347
11348fi
11349if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011350 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011352_ACEOF
11353
11354fi
11355
11356done
11357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011358
11359
11360
11361
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011363do
11364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
11370fi
11371ac_res=`eval echo '${'$as_ac_Header'}'`
11372 { echo "$as_me:$LINENO: result: $ac_res" >&5
11373echo "${ECHO_T}$ac_res" >&6; }
11374else
11375 # Is the header compilable?
11376{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11378cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h. */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h. */
11384$ac_includes_default
11385#include <$ac_header>
11386_ACEOF
11387rm -f conftest.$ac_objext
11388if { (ac_try="$ac_compile"
11389case "(($ac_try" in
11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11392esac
11393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394 (eval "$ac_compile") 2>conftest.er1
11395 ac_status=$?
11396 grep -v '^ *+' conftest.er1 >conftest.err
11397 rm -f conftest.er1
11398 cat conftest.err >&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11402 { (case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405esac
11406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_try") 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; } &&
11411 { ac_try='test -s conftest.$ac_objext'
11412 { (case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415esac
11416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_try") 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 ac_header_compiler=yes
11422else
11423 echo "$as_me: failed program was:" >&5
11424sed 's/^/| /' conftest.$ac_ext >&5
11425
11426 ac_header_compiler=no
11427fi
11428
11429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11430{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11431echo "${ECHO_T}$ac_header_compiler" >&6; }
11432
11433# Is the header present?
11434{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11436cat >conftest.$ac_ext <<_ACEOF
11437/* confdefs.h. */
11438_ACEOF
11439cat confdefs.h >>conftest.$ac_ext
11440cat >>conftest.$ac_ext <<_ACEOF
11441/* end confdefs.h. */
11442#include <$ac_header>
11443_ACEOF
11444if { (ac_try="$ac_cpp conftest.$ac_ext"
11445case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11448esac
11449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11451 ac_status=$?
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } >/dev/null; then
11457 if test -s conftest.err; then
11458 ac_cpp_err=$ac_c_preproc_warn_flag
11459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11460 else
11461 ac_cpp_err=
11462 fi
11463else
11464 ac_cpp_err=yes
11465fi
11466if test -z "$ac_cpp_err"; then
11467 ac_header_preproc=yes
11468else
11469 echo "$as_me: failed program was:" >&5
11470sed 's/^/| /' conftest.$ac_ext >&5
11471
11472 ac_header_preproc=no
11473fi
11474
11475rm -f conftest.err conftest.$ac_ext
11476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11477echo "${ECHO_T}$ac_header_preproc" >&6; }
11478
11479# So? What about this header?
11480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11481 yes:no: )
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11486 ac_header_preproc=yes
11487 ;;
11488 no:yes:* )
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11501 ( cat <<\_ASBOX
11502## ----------------------------------- ##
11503## Report this to llvmbugs@cs.uiuc.edu ##
11504## ----------------------------------- ##
11505_ASBOX
11506 ) | sed "s/^/$as_me: WARNING: /" >&2
11507 ;;
11508esac
11509{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513else
11514 eval "$as_ac_Header=\$ac_header_preproc"
11515fi
11516ac_res=`eval echo '${'$as_ac_Header'}'`
11517 { echo "$as_me:$LINENO: result: $ac_res" >&5
11518echo "${ECHO_T}$ac_res" >&6; }
11519
11520fi
11521if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011522 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011524_ACEOF
11525
11526fi
11527
11528done
11529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011530
11531
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011533do
11534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
11540fi
11541ac_res=`eval echo '${'$as_ac_Header'}'`
11542 { echo "$as_me:$LINENO: result: $ac_res" >&5
11543echo "${ECHO_T}$ac_res" >&6; }
11544else
11545 # Is the header compilable?
11546{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11547echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11548cat >conftest.$ac_ext <<_ACEOF
11549/* confdefs.h. */
11550_ACEOF
11551cat confdefs.h >>conftest.$ac_ext
11552cat >>conftest.$ac_ext <<_ACEOF
11553/* end confdefs.h. */
11554$ac_includes_default
11555#include <$ac_header>
11556_ACEOF
11557rm -f conftest.$ac_objext
11558if { (ac_try="$ac_compile"
11559case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11562esac
11563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_compile") 2>conftest.er1
11565 ac_status=$?
11566 grep -v '^ *+' conftest.er1 >conftest.err
11567 rm -f conftest.er1
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11572 { (case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575esac
11576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_try") 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; } &&
11581 { ac_try='test -s conftest.$ac_objext'
11582 { (case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585esac
11586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_try") 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }; then
11591 ac_header_compiler=yes
11592else
11593 echo "$as_me: failed program was:" >&5
11594sed 's/^/| /' conftest.$ac_ext >&5
11595
11596 ac_header_compiler=no
11597fi
11598
11599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11600{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11601echo "${ECHO_T}$ac_header_compiler" >&6; }
11602
11603# Is the header present?
11604{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11605echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11606cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h. */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h. */
11612#include <$ac_header>
11613_ACEOF
11614if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
11627 if test -s conftest.err; then
11628 ac_cpp_err=$ac_c_preproc_warn_flag
11629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11630 else
11631 ac_cpp_err=
11632 fi
11633else
11634 ac_cpp_err=yes
11635fi
11636if test -z "$ac_cpp_err"; then
11637 ac_header_preproc=yes
11638else
11639 echo "$as_me: failed program was:" >&5
11640sed 's/^/| /' conftest.$ac_ext >&5
11641
11642 ac_header_preproc=no
11643fi
11644
11645rm -f conftest.err conftest.$ac_ext
11646{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11647echo "${ECHO_T}$ac_header_preproc" >&6; }
11648
11649# So? What about this header?
11650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11651 yes:no: )
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11653echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11655echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11656 ac_header_preproc=yes
11657 ;;
11658 no:yes:* )
11659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11660echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11662echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11664echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11666echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11670echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11671 ( cat <<\_ASBOX
11672## ----------------------------------- ##
11673## Report this to llvmbugs@cs.uiuc.edu ##
11674## ----------------------------------- ##
11675_ASBOX
11676 ) | sed "s/^/$as_me: WARNING: /" >&2
11677 ;;
11678esac
11679{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683else
11684 eval "$as_ac_Header=\$ac_header_preproc"
11685fi
11686ac_res=`eval echo '${'$as_ac_Header'}'`
11687 { echo "$as_me:$LINENO: result: $ac_res" >&5
11688echo "${ECHO_T}$ac_res" >&6; }
11689
11690fi
11691if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011692 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694_ACEOF
11695 break
11696fi
11697
11698done
11699
11700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011701
11702
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011704do
11705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11708if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
11711 cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11719#define $ac_func innocuous_$ac_func
11720
11721/* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func (); below.
11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 <limits.h> exists even on freestanding compilers. */
11725
11726#ifdef __STDC__
11727# include <limits.h>
11728#else
11729# include <assert.h>
11730#endif
11731
11732#undef $ac_func
11733
11734/* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11737#ifdef __cplusplus
11738extern "C"
11739#endif
11740char $ac_func ();
11741/* The GNU C library defines this for functions which it implements
11742 to always fail with ENOSYS. Some functions are actually named
11743 something starting with __ and the normal name is an alias. */
11744#if defined __stub_$ac_func || defined __stub___$ac_func
11745choke me
11746#endif
11747
11748int
11749main ()
11750{
11751return $ac_func ();
11752 ;
11753 return 0;
11754}
11755_ACEOF
11756rm -f conftest.$ac_objext conftest$ac_exeext
11757if { (ac_try="$ac_link"
11758case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11761esac
11762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_link") 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771 { (case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774esac
11775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_try") 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784esac
11785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_try") 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 eval "$as_ac_var=yes"
11791else
11792 echo "$as_me: failed program was:" >&5
11793sed 's/^/| /' conftest.$ac_ext >&5
11794
11795 eval "$as_ac_var=no"
11796fi
11797
11798rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11800fi
11801ac_res=`eval echo '${'$as_ac_var'}'`
11802 { echo "$as_me:$LINENO: result: $ac_res" >&5
11803echo "${ECHO_T}$ac_res" >&6; }
11804if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011807_ACEOF
11808 break
11809fi
11810done
11811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011812
11813
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011815do
11816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822 cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830#define $ac_func innocuous_$ac_func
11831
11832/* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char $ac_func (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11836
11837#ifdef __STDC__
11838# include <limits.h>
11839#else
11840# include <assert.h>
11841#endif
11842
11843#undef $ac_func
11844
11845/* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11848#ifdef __cplusplus
11849extern "C"
11850#endif
11851char $ac_func ();
11852/* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855#if defined __stub_$ac_func || defined __stub___$ac_func
11856choke me
11857#endif
11858
11859int
11860main ()
11861{
11862return $ac_func ();
11863 ;
11864 return 0;
11865}
11866_ACEOF
11867rm -f conftest.$ac_objext conftest$ac_exeext
11868if { (ac_try="$ac_link"
11869case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11872esac
11873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895esac
11896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 eval "$as_ac_var=yes"
11902else
11903 echo "$as_me: failed program was:" >&5
11904sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 eval "$as_ac_var=no"
11907fi
11908
11909rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911fi
11912ac_res=`eval echo '${'$as_ac_var'}'`
11913 { echo "$as_me:$LINENO: result: $ac_res" >&5
11914echo "${ECHO_T}$ac_res" >&6; }
11915if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011916 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918_ACEOF
11919 break
11920fi
11921done
11922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011923
11924
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011926do
11927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11928{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11930if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932else
11933 cat >conftest.$ac_ext <<_ACEOF
11934/* confdefs.h. */
11935_ACEOF
11936cat confdefs.h >>conftest.$ac_ext
11937cat >>conftest.$ac_ext <<_ACEOF
11938/* end confdefs.h. */
11939/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11941#define $ac_func innocuous_$ac_func
11942
11943/* System header to define __stub macros and hopefully few prototypes,
11944 which can conflict with char $ac_func (); below.
11945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11946 <limits.h> exists even on freestanding compilers. */
11947
11948#ifdef __STDC__
11949# include <limits.h>
11950#else
11951# include <assert.h>
11952#endif
11953
11954#undef $ac_func
11955
11956/* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959#ifdef __cplusplus
11960extern "C"
11961#endif
11962char $ac_func ();
11963/* The GNU C library defines this for functions which it implements
11964 to always fail with ENOSYS. Some functions are actually named
11965 something starting with __ and the normal name is an alias. */
11966#if defined __stub_$ac_func || defined __stub___$ac_func
11967choke me
11968#endif
11969
11970int
11971main ()
11972{
11973return $ac_func ();
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978rm -f conftest.$ac_objext conftest$ac_exeext
11979if { (ac_try="$ac_link"
11980case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_link") 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11993 { (case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996esac
11997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_try") 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest$ac_exeext'
12003 { (case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006esac
12007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 eval "$as_ac_var=yes"
12013else
12014 echo "$as_me: failed program was:" >&5
12015sed 's/^/| /' conftest.$ac_ext >&5
12016
12017 eval "$as_ac_var=no"
12018fi
12019
12020rm -f core conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12022fi
12023ac_res=`eval echo '${'$as_ac_var'}'`
12024 { echo "$as_me:$LINENO: result: $ac_res" >&5
12025echo "${ECHO_T}$ac_res" >&6; }
12026if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012027 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012029_ACEOF
12030 break
12031fi
12032done
12033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012034
12035
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012037do
12038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12039{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12041if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043else
12044 cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h. */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h. */
12050/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12052#define $ac_func innocuous_$ac_func
12053
12054/* System header to define __stub macros and hopefully few prototypes,
12055 which can conflict with char $ac_func (); below.
12056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12057 <limits.h> exists even on freestanding compilers. */
12058
12059#ifdef __STDC__
12060# include <limits.h>
12061#else
12062# include <assert.h>
12063#endif
12064
12065#undef $ac_func
12066
12067/* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12070#ifdef __cplusplus
12071extern "C"
12072#endif
12073char $ac_func ();
12074/* The GNU C library defines this for functions which it implements
12075 to always fail with ENOSYS. Some functions are actually named
12076 something starting with __ and the normal name is an alias. */
12077#if defined __stub_$ac_func || defined __stub___$ac_func
12078choke me
12079#endif
12080
12081int
12082main ()
12083{
12084return $ac_func ();
12085 ;
12086 return 0;
12087}
12088_ACEOF
12089rm -f conftest.$ac_objext conftest$ac_exeext
12090if { (ac_try="$ac_link"
12091case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094esac
12095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_link") 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12104 { (case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12107esac
12108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_try") 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; } &&
12113 { ac_try='test -s conftest$ac_exeext'
12114 { (case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117esac
12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_try") 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 eval "$as_ac_var=yes"
12124else
12125 echo "$as_me: failed program was:" >&5
12126sed 's/^/| /' conftest.$ac_ext >&5
12127
12128 eval "$as_ac_var=no"
12129fi
12130
12131rm -f core conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133fi
12134ac_res=`eval echo '${'$as_ac_var'}'`
12135 { echo "$as_me:$LINENO: result: $ac_res" >&5
12136echo "${ECHO_T}$ac_res" >&6; }
12137if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012138 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012140_ACEOF
12141
12142fi
12143done
12144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012145
12146
12147
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012148for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012149do
12150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12151{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155else
12156 cat >conftest.$ac_ext <<_ACEOF
12157/* confdefs.h. */
12158_ACEOF
12159cat confdefs.h >>conftest.$ac_ext
12160cat >>conftest.$ac_ext <<_ACEOF
12161/* end confdefs.h. */
12162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12164#define $ac_func innocuous_$ac_func
12165
12166/* System header to define __stub macros and hopefully few prototypes,
12167 which can conflict with char $ac_func (); below.
12168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12169 <limits.h> exists even on freestanding compilers. */
12170
12171#ifdef __STDC__
12172# include <limits.h>
12173#else
12174# include <assert.h>
12175#endif
12176
12177#undef $ac_func
12178
12179/* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply. */
12182#ifdef __cplusplus
12183extern "C"
12184#endif
12185char $ac_func ();
12186/* The GNU C library defines this for functions which it implements
12187 to always fail with ENOSYS. Some functions are actually named
12188 something starting with __ and the normal name is an alias. */
12189#if defined __stub_$ac_func || defined __stub___$ac_func
12190choke me
12191#endif
12192
12193int
12194main ()
12195{
12196return $ac_func ();
12197 ;
12198 return 0;
12199}
12200_ACEOF
12201rm -f conftest.$ac_objext conftest$ac_exeext
12202if { (ac_try="$ac_link"
12203case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12206esac
12207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_link") 2>conftest.er1
12209 ac_status=$?
12210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216 { (case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12219esac
12220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_try") 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest$ac_exeext'
12226 { (case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229esac
12230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_try") 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 eval "$as_ac_var=yes"
12236else
12237 echo "$as_me: failed program was:" >&5
12238sed 's/^/| /' conftest.$ac_ext >&5
12239
12240 eval "$as_ac_var=no"
12241fi
12242
12243rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12245fi
12246ac_res=`eval echo '${'$as_ac_var'}'`
12247 { echo "$as_me:$LINENO: result: $ac_res" >&5
12248echo "${ECHO_T}$ac_res" >&6; }
12249if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012250 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012252_ACEOF
12253
12254fi
12255done
12256
12257
Douglas Gregor01746742009-05-11 18:05:52 +000012258
Reid Spencer7931a782004-12-27 06:15:02 +000012259if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012260 LLVMGCC="llvm-gcc${EXEEXT}"
12261 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012262 LLVMGCCCOMMAND="$LLVMGCC"
12263 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012264 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12265
12266 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12267
Reid Spencerc84492c2005-06-02 22:34:49 +000012268 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12269set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12272if test "${ac_cv_path_LLVMGCC+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012274else
12275 case $LLVMGCC in
12276 [\\/]* | ?:[\\/]*)
12277 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12278 ;;
12279 *)
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $PATH
12282do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000012287 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012289 break 2
12290 fi
12291done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012292done
Reid Spencera773bd52006-08-04 18:18:08 +000012293IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012294
Reid Spencer59473af2004-12-25 07:31:29 +000012295 ;;
12296esac
12297fi
12298LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012299if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012300 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12301echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012303 { echo "$as_me:$LINENO: result: no" >&5
12304echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012305fi
12306
Reid Spencera773bd52006-08-04 18:18:08 +000012307
Reid Spencerc84492c2005-06-02 22:34:49 +000012308 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12309set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12312if test "${ac_cv_path_LLVMGXX+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012314else
12315 case $LLVMGXX in
12316 [\\/]* | ?:[\\/]*)
12317 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12318 ;;
12319 *)
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321for as_dir in $PATH
12322do
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000012327 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012329 break 2
12330 fi
12331done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012332done
Reid Spencera773bd52006-08-04 18:18:08 +000012333IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012334
Reid Spencer59473af2004-12-25 07:31:29 +000012335 ;;
12336esac
12337fi
12338LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012339if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012340 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12341echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012343 { echo "$as_me:$LINENO: result: no" >&5
12344echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012345fi
12346
Reid Spencera773bd52006-08-04 18:18:08 +000012347
Reid Spencer59473af2004-12-25 07:31:29 +000012348else
Devang Patel5d28b882007-12-04 22:54:47 +000012349 if test -z "$LLVMGCC"; then
12350 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012351 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012352 fi
12353 if test -z "$LLVMGXX"; then
12354 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012355 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012356 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012357
Reid Spencer59473af2004-12-25 07:31:29 +000012358 LLVMGCC=$LLVMGCC
12359
12360 LLVMGXX=$LLVMGXX
12361
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012362 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12363
12364 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12365
Reid Spencer59473af2004-12-25 07:31:29 +000012366fi
12367
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012368
Daniel Dunbar98515672010-02-23 10:00:49 +000012369# Check whether --with-llvmcc was given.
12370if test "${with_llvmcc+set}" = set; then
12371 withval=$with_llvmcc;
12372else
12373 with_llvmcc=check
12374fi
12375
12376{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12377echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12378if test "$with_llvmcc" != "check"; then
12379 if (test "$with_llvmcc" != "llvm-gcc" &&
12380 test "$with_llvmcc" != "clang" &&
12381 test "$with_llvmcc" != "none"); then
12382 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12383echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12384 { (exit 1); exit 1; }; }
12385 fi
12386 WITH_LLVMCC="$with_llvmcc"
12387elif test -n "$LLVMGCC"; then
12388 WITH_LLVMCC=llvm-gcc
12389elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12390 WITH_LLVMCC=clang
12391else
12392 WITH_LLVMCC=none
12393fi
12394{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12395echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12396LLVMCC_OPTION=$WITH_LLVMCC
12397
12398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012399{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12400echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012401
Reid Spencer86901802004-12-08 23:07:27 +000012402ICC=no
12403IXX=no
12404case $CC in
12405 icc*|icpc*)
12406 ICC=yes
12407 IXX=yes
12408 ;;
12409 *)
12410 ;;
12411esac
12412
Duraid Madina937c60a2006-02-15 07:57:42 +000012413if test "$GCC" != "yes" && test "$ICC" != "yes"
12414then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012415 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12416echo "$as_me: error: gcc|icc required but not found" >&2;}
12417 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012418fi
12419
12420if test "$GXX" != "yes" && test "$IXX" != "yes"
12421then
Eric Christopher73e36da2010-12-08 02:02:14 +000012422 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12423echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012424 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012425fi
12426
Reid Spencer86901802004-12-08 23:07:27 +000012427if test "$GCC" = "yes"
12428then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012429 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012430#if !defined(__GNUC__) || __GNUC__ < 3
12431#error Unsupported GCC version
12432#endif
12433
12434_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012435rm -f conftest.$ac_objext
12436if { (ac_try="$ac_compile"
12437case "(($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_compile") 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12453esac
12454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463esac
12464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_try") 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012471 echo "$as_me: failed program was:" >&5
12472sed 's/^/| /' conftest.$ac_ext >&5
12473
12474 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12475echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12476 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012478
Chris Lattner399c7c72008-02-05 19:43:53 +000012479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012480fi
12481
12482if test -z "$llvm_cv_gnu_make_command"
12483then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012484 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12485echo "$as_me: error: GNU Make required but not found" >&2;}
12486 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012487fi
12488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012489{ echo "$as_me:$LINENO: result: ok" >&5
12490echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012492{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12493echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012494NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12495
12496NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012498{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12499echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012500
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012502
12503{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12504echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12505if test "${ac_cv_lib_m_sin+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012507else
12508 ac_check_lib_save_LIBS=$LIBS
12509LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012510cat >conftest.$ac_ext <<_ACEOF
12511/* confdefs.h. */
12512_ACEOF
12513cat confdefs.h >>conftest.$ac_ext
12514cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012515/* end confdefs.h. */
12516
Reid Spencera773bd52006-08-04 18:18:08 +000012517/* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012520#ifdef __cplusplus
12521extern "C"
12522#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012523char sin ();
12524int
12525main ()
12526{
Reid Spencera773bd52006-08-04 18:18:08 +000012527return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012528 ;
12529 return 0;
12530}
12531_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012532rm -f conftest.$ac_objext conftest$ac_exeext
12533if { (ac_try="$ac_link"
12534case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12537esac
12538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_link") 2>conftest.er1
12540 ac_status=$?
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest$ac_exeext'
12557 { (case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560esac
12561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_try") 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012566 ac_cv_lib_m_sin=yes
12567else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012568 echo "$as_me: failed program was:" >&5
12569sed 's/^/| /' conftest.$ac_ext >&5
12570
12571 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012573
Bill Wendlingebcceee2009-04-18 11:20:33 +000012574rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012575 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012576LIBS=$ac_check_lib_save_LIBS
12577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012578{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12579echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12580if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012581 cat >>confdefs.h <<_ACEOF
12582#define HAVE_LIBM 1
12583_ACEOF
12584
12585 LIBS="-lm $LIBS"
12586
12587fi
12588
Jeff Cohen28783c32007-01-12 18:22:38 +000012589if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012590
12591{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12592echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12593if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012595else
12596 ac_check_lib_save_LIBS=$LIBS
12597LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012598cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h. */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012603/* end confdefs.h. */
12604
Reid Spencer48fdf912006-06-01 19:03:21 +000012605
Reid Spencer484fc8e2006-06-01 16:55:59 +000012606int
12607main ()
12608{
Reid Spencera773bd52006-08-04 18:18:08 +000012609return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012610 ;
12611 return 0;
12612}
12613_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012614rm -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
Reid Spencer48fdf912006-06-01 19:03:21 +000012648 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012650 echo "$as_me: failed program was:" >&5
12651sed 's/^/| /' conftest.$ac_ext >&5
12652
12653 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +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 conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012658LIBS=$ac_check_lib_save_LIBS
12659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012660{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12661echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12662if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012663 cat >>confdefs.h <<_ACEOF
12664#define HAVE_LIBIMAGEHLP 1
12665_ACEOF
12666
12667 LIBS="-limagehlp $LIBS"
12668
12669fi
12670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012671
12672{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12673echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12674if test "${ac_cv_lib_psapi_main+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012676else
12677 ac_check_lib_save_LIBS=$LIBS
12678LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012679cat >conftest.$ac_ext <<_ACEOF
12680/* confdefs.h. */
12681_ACEOF
12682cat confdefs.h >>conftest.$ac_ext
12683cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012684/* end confdefs.h. */
12685
Reid Spencer48fdf912006-06-01 19:03:21 +000012686
Reid Spencer484fc8e2006-06-01 16:55:59 +000012687int
12688main ()
12689{
Reid Spencera773bd52006-08-04 18:18:08 +000012690return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012691 ;
12692 return 0;
12693}
12694_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012695rm -f conftest.$ac_objext conftest$ac_exeext
12696if { (ac_try="$ac_link"
12697case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12700esac
12701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_link") 2>conftest.er1
12703 ac_status=$?
12704 grep -v '^ *+' conftest.er1 >conftest.err
12705 rm -f conftest.er1
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710 { (case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713esac
12714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_try") 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; } &&
12719 { ac_try='test -s conftest$ac_exeext'
12720 { (case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12723esac
12724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_try") 2>&5
12726 ac_status=$?
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012729 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012731 echo "$as_me: failed program was:" >&5
12732sed 's/^/| /' conftest.$ac_ext >&5
12733
12734 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012736
Bill Wendlingebcceee2009-04-18 11:20:33 +000012737rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012738 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012739LIBS=$ac_check_lib_save_LIBS
12740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012741{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12742echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12743if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012744 cat >>confdefs.h <<_ACEOF
12745#define HAVE_LIBPSAPI 1
12746_ACEOF
12747
12748 LIBS="-lpsapi $LIBS"
12749
12750fi
12751
12752fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012754{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12755echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12756if test "${ac_cv_search_dlopen+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012758else
12759 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012760cat >conftest.$ac_ext <<_ACEOF
12761/* confdefs.h. */
12762_ACEOF
12763cat confdefs.h >>conftest.$ac_ext
12764cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012765/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012766
Reid Spencera773bd52006-08-04 18:18:08 +000012767/* Override any GCC internal prototype to avoid an error.
12768 Use char because int might match the return type of a GCC
12769 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012770#ifdef __cplusplus
12771extern "C"
12772#endif
John Criswell7a73b802003-06-30 21:59:07 +000012773char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012774int
12775main ()
12776{
Reid Spencera773bd52006-08-04 18:18:08 +000012777return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012778 ;
12779 return 0;
12780}
12781_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012782for ac_lib in '' dl; do
12783 if test -z "$ac_lib"; then
12784 ac_res="none required"
12785 else
12786 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012788 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012789 rm -f conftest.$ac_objext conftest$ac_exeext
12790if { (ac_try="$ac_link"
12791case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12794esac
12795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_link") 2>conftest.er1
12797 ac_status=$?
12798 grep -v '^ *+' conftest.er1 >conftest.err
12799 rm -f conftest.er1
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12804 { (case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807esac
12808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; } &&
12813 { ac_try='test -s conftest$ac_exeext'
12814 { (case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817esac
12818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_try") 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012823 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824else
12825 echo "$as_me: failed program was:" >&5
12826sed 's/^/| /' conftest.$ac_ext >&5
12827
12828
John Criswell7a73b802003-06-30 21:59:07 +000012829fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012830
Bill Wendlingebcceee2009-04-18 11:20:33 +000012831rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012832 conftest$ac_exeext
12833 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012834 break
John Criswell7a73b802003-06-30 21:59:07 +000012835fi
Reid Spencera773bd52006-08-04 18:18:08 +000012836done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012837if test "${ac_cv_search_dlopen+set}" = set; then
12838 :
Reid Spencera773bd52006-08-04 18:18:08 +000012839else
12840 ac_cv_search_dlopen=no
12841fi
12842rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012843LIBS=$ac_func_search_save_LIBS
12844fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012845{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12846echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012847ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012848if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012851cat >>confdefs.h <<\_ACEOF
12852#define HAVE_DLOPEN 1
12853_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012854
12855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012856 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12857echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012858fi
12859
12860
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012861if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012862 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12863echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12864if test "${ac_cv_search_ffi_call+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012866else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012867 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012868cat >conftest.$ac_ext <<_ACEOF
12869/* confdefs.h. */
12870_ACEOF
12871cat confdefs.h >>conftest.$ac_ext
12872cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012873/* end confdefs.h. */
12874
12875/* Override any GCC internal prototype to avoid an error.
12876 Use char because int might match the return type of a GCC
12877 builtin and then its argument prototype would still apply. */
12878#ifdef __cplusplus
12879extern "C"
12880#endif
12881char ffi_call ();
12882int
12883main ()
12884{
12885return ffi_call ();
12886 ;
12887 return 0;
12888}
12889_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012890for ac_lib in '' ffi; do
12891 if test -z "$ac_lib"; then
12892 ac_res="none required"
12893 else
12894 ac_res=-l$ac_lib
12895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12896 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012897 rm -f conftest.$ac_objext conftest$ac_exeext
12898if { (ac_try="$ac_link"
12899case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902esac
12903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_link") 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915esac
12916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest$ac_exeext'
12922 { (case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925esac
12926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_try") 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012931 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012932else
12933 echo "$as_me: failed program was:" >&5
12934sed 's/^/| /' conftest.$ac_ext >&5
12935
12936
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012938
Bill Wendlingebcceee2009-04-18 11:20:33 +000012939rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012940 conftest$ac_exeext
12941 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012942 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012943fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012944done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012945if test "${ac_cv_search_ffi_call+set}" = set; then
12946 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012947else
12948 ac_cv_search_ffi_call=no
12949fi
12950rm conftest.$ac_ext
12951LIBS=$ac_func_search_save_LIBS
12952fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012953{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12954echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012955ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012956if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012959cat >>confdefs.h <<\_ACEOF
12960#define HAVE_FFI_CALL 1
12961_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012962
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012963else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012964 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12965echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12966 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012967fi
12968
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012969fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012970
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012971{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12972echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12973if test "${ac_cv_search_mallinfo+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012975else
12976 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012977cat >conftest.$ac_ext <<_ACEOF
12978/* confdefs.h. */
12979_ACEOF
12980cat confdefs.h >>conftest.$ac_ext
12981cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012983
Reid Spencera773bd52006-08-04 18:18:08 +000012984/* Override any GCC internal prototype to avoid an error.
12985 Use char because int might match the return type of a GCC
12986 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012987#ifdef __cplusplus
12988extern "C"
12989#endif
John Criswell7a73b802003-06-30 21:59:07 +000012990char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012991int
12992main ()
12993{
Reid Spencera773bd52006-08-04 18:18:08 +000012994return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012995 ;
12996 return 0;
12997}
12998_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012999for ac_lib in '' malloc; do
13000 if test -z "$ac_lib"; then
13001 ac_res="none required"
13002 else
13003 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013005 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013006 rm -f conftest.$ac_objext conftest$ac_exeext
13007if { (ac_try="$ac_link"
13008case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13011esac
13012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_link") 2>conftest.er1
13014 ac_status=$?
13015 grep -v '^ *+' conftest.er1 >conftest.err
13016 rm -f conftest.er1
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13021 { (case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13024esac
13025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_try") 2>&5
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; } &&
13030 { ac_try='test -s conftest$ac_exeext'
13031 { (case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13034esac
13035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_try") 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013040 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013041else
13042 echo "$as_me: failed program was:" >&5
13043sed 's/^/| /' conftest.$ac_ext >&5
13044
13045
John Criswell7a73b802003-06-30 21:59:07 +000013046fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013047
Bill Wendlingebcceee2009-04-18 11:20:33 +000013048rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013049 conftest$ac_exeext
13050 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013051 break
John Criswell7a73b802003-06-30 21:59:07 +000013052fi
Reid Spencera773bd52006-08-04 18:18:08 +000013053done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013054if test "${ac_cv_search_mallinfo+set}" = set; then
13055 :
Reid Spencera773bd52006-08-04 18:18:08 +000013056else
13057 ac_cv_search_mallinfo=no
13058fi
13059rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013060LIBS=$ac_func_search_save_LIBS
13061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013062{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13063echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013064ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013065if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013068cat >>confdefs.h <<\_ACEOF
13069#define HAVE_MALLINFO 1
13070_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013071
13072fi
13073
13074
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000013075if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013076
13077{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13078echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13079if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013081else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013082 ac_check_lib_save_LIBS=$LIBS
13083LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013084cat >conftest.$ac_ext <<_ACEOF
13085/* confdefs.h. */
13086_ACEOF
13087cat confdefs.h >>conftest.$ac_ext
13088cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013089/* end confdefs.h. */
13090
Reid Spencera773bd52006-08-04 18:18:08 +000013091/* Override any GCC internal prototype to avoid an error.
13092 Use char because int might match the return type of a GCC
13093 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013094#ifdef __cplusplus
13095extern "C"
13096#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013097char pthread_mutex_init ();
13098int
13099main ()
13100{
Reid Spencera773bd52006-08-04 18:18:08 +000013101return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013102 ;
13103 return 0;
13104}
13105_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013106rm -f conftest.$ac_objext conftest$ac_exeext
13107if { (ac_try="$ac_link"
13108case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111esac
13112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_link") 2>conftest.er1
13114 ac_status=$?
13115 grep -v '^ *+' conftest.er1 >conftest.err
13116 rm -f conftest.er1
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13121 { (case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13124esac
13125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_try") 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest$ac_exeext'
13131 { (case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134esac
13135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_try") 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013140 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013142 echo "$as_me: failed program was:" >&5
13143sed 's/^/| /' conftest.$ac_ext >&5
13144
13145 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013146fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013147
Bill Wendlingebcceee2009-04-18 11:20:33 +000013148rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013149 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013150LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013151fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013152{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13153echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13154if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013155 cat >>confdefs.h <<_ACEOF
13156#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013157_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013158
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013159 LIBS="-lpthread $LIBS"
13160
Reid Spencer22177fe2005-07-12 15:24:20 +000013161fi
13162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013163 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13164echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13165if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013167else
13168 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013169cat >conftest.$ac_ext <<_ACEOF
13170/* confdefs.h. */
13171_ACEOF
13172cat confdefs.h >>conftest.$ac_ext
13173cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013174/* end confdefs.h. */
13175
Reid Spencera773bd52006-08-04 18:18:08 +000013176/* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013179#ifdef __cplusplus
13180extern "C"
13181#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013182char pthread_mutex_lock ();
13183int
13184main ()
13185{
Reid Spencera773bd52006-08-04 18:18:08 +000013186return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013187 ;
13188 return 0;
13189}
13190_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013191for ac_lib in '' pthread; do
13192 if test -z "$ac_lib"; then
13193 ac_res="none required"
13194 else
13195 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013197 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013198 rm -f conftest.$ac_objext conftest$ac_exeext
13199if { (ac_try="$ac_link"
13200case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13203esac
13204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_link") 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13213 { (case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216esac
13217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_try") 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest$ac_exeext'
13223 { (case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226esac
13227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_try") 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013232 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013233else
13234 echo "$as_me: failed program was:" >&5
13235sed 's/^/| /' conftest.$ac_ext >&5
13236
13237
Brian Gaeke5f268f72003-12-05 19:29:01 +000013238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013239
Bill Wendlingebcceee2009-04-18 11:20:33 +000013240rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013241 conftest$ac_exeext
13242 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013243 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013244fi
Reid Spencera773bd52006-08-04 18:18:08 +000013245done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013246if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13247 :
Reid Spencera773bd52006-08-04 18:18:08 +000013248else
13249 ac_cv_search_pthread_mutex_lock=no
13250fi
13251rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013252LIBS=$ac_func_search_save_LIBS
13253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013254{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13255echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013256ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013257if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013260cat >>confdefs.h <<\_ACEOF
13261#define HAVE_PTHREAD_MUTEX_LOCK 1
13262_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013263
13264fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013266 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13267echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13268if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013270else
13271 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013272cat >conftest.$ac_ext <<_ACEOF
13273/* confdefs.h. */
13274_ACEOF
13275cat confdefs.h >>conftest.$ac_ext
13276cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013277/* end confdefs.h. */
13278
13279/* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13282#ifdef __cplusplus
13283extern "C"
13284#endif
13285char pthread_rwlock_init ();
13286int
13287main ()
13288{
13289return pthread_rwlock_init ();
13290 ;
13291 return 0;
13292}
13293_ACEOF
13294for ac_lib in '' pthread; do
13295 if test -z "$ac_lib"; then
13296 ac_res="none required"
13297 else
13298 ac_res=-l$ac_lib
13299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13300 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013301 rm -f conftest.$ac_objext conftest$ac_exeext
13302if { (ac_try="$ac_link"
13303case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13306esac
13307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_link") 2>conftest.er1
13309 ac_status=$?
13310 grep -v '^ *+' conftest.er1 >conftest.err
13311 rm -f conftest.er1
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316 { (case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13319esac
13320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_try") 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest$ac_exeext'
13326 { (case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13329esac
13330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_try") 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013335 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013336else
13337 echo "$as_me: failed program was:" >&5
13338sed 's/^/| /' conftest.$ac_ext >&5
13339
13340
Owen Andersonde8aed22009-06-16 18:20:20 +000013341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013342
Owen Andersonde8aed22009-06-16 18:20:20 +000013343rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344 conftest$ac_exeext
13345 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013346 break
13347fi
13348done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013349if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13350 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013351else
13352 ac_cv_search_pthread_rwlock_init=no
13353fi
13354rm conftest.$ac_ext
13355LIBS=$ac_func_search_save_LIBS
13356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13358echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013359ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013360if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013363cat >>confdefs.h <<\_ACEOF
13364#define HAVE_PTHREAD_RWLOCK_INIT 1
13365_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013366
13367fi
13368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013369 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13370echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13371if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013373else
13374 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013375cat >conftest.$ac_ext <<_ACEOF
13376/* confdefs.h. */
13377_ACEOF
13378cat confdefs.h >>conftest.$ac_ext
13379cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013380/* end confdefs.h. */
13381
13382/* Override any GCC internal prototype to avoid an error.
13383 Use char because int might match the return type of a GCC
13384 builtin and then its argument prototype would still apply. */
13385#ifdef __cplusplus
13386extern "C"
13387#endif
13388char pthread_getspecific ();
13389int
13390main ()
13391{
13392return pthread_getspecific ();
13393 ;
13394 return 0;
13395}
13396_ACEOF
13397for ac_lib in '' pthread; do
13398 if test -z "$ac_lib"; then
13399 ac_res="none required"
13400 else
13401 ac_res=-l$ac_lib
13402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13403 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013404 rm -f conftest.$ac_objext conftest$ac_exeext
13405if { (ac_try="$ac_link"
13406case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13409esac
13410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_link") 2>conftest.er1
13412 ac_status=$?
13413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422esac
13423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest$ac_exeext'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13432esac
13433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013438 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013439else
13440 echo "$as_me: failed program was:" >&5
13441sed 's/^/| /' conftest.$ac_ext >&5
13442
13443
Owen Anderson27fcfe12009-06-25 23:10:26 +000013444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013445
Owen Anderson27fcfe12009-06-25 23:10:26 +000013446rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013447 conftest$ac_exeext
13448 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013449 break
13450fi
13451done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013452if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13453 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013454else
13455 ac_cv_search_pthread_getspecific=no
13456fi
13457rm conftest.$ac_ext
13458LIBS=$ac_func_search_save_LIBS
13459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013460{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13461echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013462ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013463if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013466cat >>confdefs.h <<\_ACEOF
13467#define HAVE_PTHREAD_GETSPECIFIC 1
13468_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013469
13470fi
13471
Reid Spencer0a262ba2005-08-24 10:07:20 +000013472fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013473
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013474
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013475# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013476if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013477 withval=$with_udis86;
13478 USE_UDIS86=1
13479
13480 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013481 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013482 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13483 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013484
13485{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13486echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13487if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013489else
13490 ac_check_lib_save_LIBS=$LIBS
13491LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013492cat >conftest.$ac_ext <<_ACEOF
13493/* confdefs.h. */
13494_ACEOF
13495cat confdefs.h >>conftest.$ac_ext
13496cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013497/* end confdefs.h. */
13498
13499/* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13502#ifdef __cplusplus
13503extern "C"
13504#endif
13505char ud_init ();
13506int
13507main ()
13508{
13509return ud_init ();
13510 ;
13511 return 0;
13512}
13513_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013514rm -f conftest.$ac_objext conftest$ac_exeext
13515if { (ac_try="$ac_link"
13516case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519esac
13520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_link") 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13529 { (case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13532esac
13533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_try") 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest$ac_exeext'
13539 { (case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542esac
13543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_try") 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013548 ac_cv_lib_udis86_ud_init=yes
13549else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013550 echo "$as_me: failed program was:" >&5
13551sed 's/^/| /' conftest.$ac_ext >&5
13552
13553 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013555
Bill Wendlingebcceee2009-04-18 11:20:33 +000013556rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013557 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013558LIBS=$ac_check_lib_save_LIBS
13559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013560{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13561echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13562if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013563 cat >>confdefs.h <<_ACEOF
13564#define HAVE_LIBUDIS86 1
13565_ACEOF
13566
13567 LIBS="-ludis86 $LIBS"
13568
13569else
13570
13571 echo "Error! You need to have libudis86 around."
13572 exit -1
13573
13574fi
13575
13576
13577else
13578 USE_UDIS86=0
13579
13580fi
13581
13582
13583cat >>confdefs.h <<_ACEOF
13584#define USE_UDIS86 $USE_UDIS86
13585_ACEOF
13586
13587
13588
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013589# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013590if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013591 withval=$with_oprofile;
13592 USE_OPROFILE=1
13593
13594 case "$withval" in
13595 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013596 no) llvm_cv_oppath=
13597 USE_OPROFILE=0
13598 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013599 *) llvm_cv_oppath="${withval}/lib/oprofile"
13600 CPPFLAGS="-I${withval}/include";;
13601 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013602 if test -n "$llvm_cv_oppath" ; then
13603 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013604 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13605echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13606if test "${ac_cv_search_bfd_init+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013608else
13609 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013610cat >conftest.$ac_ext <<_ACEOF
13611/* confdefs.h. */
13612_ACEOF
13613cat confdefs.h >>conftest.$ac_ext
13614cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013615/* end confdefs.h. */
13616
13617/* Override any GCC internal prototype to avoid an error.
13618 Use char because int might match the return type of a GCC
13619 builtin and then its argument prototype would still apply. */
13620#ifdef __cplusplus
13621extern "C"
13622#endif
13623char bfd_init ();
13624int
13625main ()
13626{
13627return bfd_init ();
13628 ;
13629 return 0;
13630}
13631_ACEOF
13632for ac_lib in '' bfd; do
13633 if test -z "$ac_lib"; then
13634 ac_res="none required"
13635 else
13636 ac_res=-l$ac_lib
13637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13638 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013639 rm -f conftest.$ac_objext conftest$ac_exeext
13640if { (ac_try="$ac_link"
13641case "(($ac_try" in
13642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13644esac
13645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_link") 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13654 { (case "(($ac_try" in
13655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656 *) ac_try_echo=$ac_try;;
13657esac
13658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659 (eval "$ac_try") 2>&5
13660 ac_status=$?
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; } &&
13663 { ac_try='test -s conftest$ac_exeext'
13664 { (case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13667esac
13668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_try") 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013673 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013674else
13675 echo "$as_me: failed program was:" >&5
13676sed 's/^/| /' conftest.$ac_ext >&5
13677
13678
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013680
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013681rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013682 conftest$ac_exeext
13683 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013684 break
13685fi
13686done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013687if test "${ac_cv_search_bfd_init+set}" = set; then
13688 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013689else
13690 ac_cv_search_bfd_init=no
13691fi
13692rm conftest.$ac_ext
13693LIBS=$ac_func_search_save_LIBS
13694fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013695{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13696echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013697ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013698if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13700
13701fi
13702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013703 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13704echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13705if test "${ac_cv_search_op_open_agent+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013707else
13708 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013709cat >conftest.$ac_ext <<_ACEOF
13710/* confdefs.h. */
13711_ACEOF
13712cat confdefs.h >>conftest.$ac_ext
13713cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013714/* end confdefs.h. */
13715
13716/* Override any GCC internal prototype to avoid an error.
13717 Use char because int might match the return type of a GCC
13718 builtin and then its argument prototype would still apply. */
13719#ifdef __cplusplus
13720extern "C"
13721#endif
13722char op_open_agent ();
13723int
13724main ()
13725{
13726return op_open_agent ();
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731for ac_lib in '' opagent; do
13732 if test -z "$ac_lib"; then
13733 ac_res="none required"
13734 else
13735 ac_res=-l$ac_lib
13736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13737 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013738 rm -f conftest.$ac_objext conftest$ac_exeext
13739if { (ac_try="$ac_link"
13740case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13743esac
13744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_link") 2>conftest.er1
13746 ac_status=$?
13747 grep -v '^ *+' conftest.er1 >conftest.err
13748 rm -f conftest.er1
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13753 { (case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13756esac
13757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_try") 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest$ac_exeext'
13763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13766esac
13767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013772 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013773else
13774 echo "$as_me: failed program was:" >&5
13775sed 's/^/| /' conftest.$ac_ext >&5
13776
13777
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013779
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013780rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013781 conftest$ac_exeext
13782 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013783 break
13784fi
13785done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013786if test "${ac_cv_search_op_open_agent+set}" = set; then
13787 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013788else
13789 ac_cv_search_op_open_agent=no
13790fi
13791rm conftest.$ac_ext
13792LIBS=$ac_func_search_save_LIBS
13793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013794{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13795echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013796ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013797if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13799
13800else
13801
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013802 echo "Error! You need to have libopagent around."
13803 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013804
13805fi
13806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013807 if test "${ac_cv_header_opagent_h+set}" = set; then
13808 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13809echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13810if test "${ac_cv_header_opagent_h+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13812fi
13813{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13814echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13815else
13816 # Is the header compilable?
13817{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13818echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13819cat >conftest.$ac_ext <<_ACEOF
13820/* confdefs.h. */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
13824/* end confdefs.h. */
13825$ac_includes_default
13826#include <opagent.h>
13827_ACEOF
13828rm -f conftest.$ac_objext
13829if { (ac_try="$ac_compile"
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_compile") 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_objext'
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
13862 ac_header_compiler=yes
13863else
13864 echo "$as_me: failed program was:" >&5
13865sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013867 ac_header_compiler=no
13868fi
13869
13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13872echo "${ECHO_T}$ac_header_compiler" >&6; }
13873
13874# Is the header present?
13875{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13876echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13877cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h. */
13883#include <opagent.h>
13884_ACEOF
13885if { (ac_try="$ac_cpp conftest.$ac_ext"
13886case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889esac
13890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13892 ac_status=$?
13893 grep -v '^ *+' conftest.er1 >conftest.err
13894 rm -f conftest.er1
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } >/dev/null; then
13898 if test -s conftest.err; then
13899 ac_cpp_err=$ac_c_preproc_warn_flag
13900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13901 else
13902 ac_cpp_err=
13903 fi
13904else
13905 ac_cpp_err=yes
13906fi
13907if test -z "$ac_cpp_err"; then
13908 ac_header_preproc=yes
13909else
13910 echo "$as_me: failed program was:" >&5
13911sed 's/^/| /' conftest.$ac_ext >&5
13912
13913 ac_header_preproc=no
13914fi
13915
13916rm -f conftest.err conftest.$ac_ext
13917{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13918echo "${ECHO_T}$ac_header_preproc" >&6; }
13919
13920# So? What about this header?
13921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13922 yes:no: )
13923 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13924echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13926echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13927 ac_header_preproc=yes
13928 ;;
13929 no:yes:* )
13930 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13931echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13932 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13933echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13934 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13935echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13937echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13938 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13939echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13940 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13941echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13942 ( cat <<\_ASBOX
13943## ----------------------------------- ##
13944## Report this to llvmbugs@cs.uiuc.edu ##
13945## ----------------------------------- ##
13946_ASBOX
13947 ) | sed "s/^/$as_me: WARNING: /" >&2
13948 ;;
13949esac
13950{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13951echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13952if test "${ac_cv_header_opagent_h+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954else
13955 ac_cv_header_opagent_h=$ac_header_preproc
13956fi
13957{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13958echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13959
13960fi
13961if test $ac_cv_header_opagent_h = yes; then
13962 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013963else
13964
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013965 echo "Error! You need to have opagent.h around."
13966 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013967
13968fi
13969
13970
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013971 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013972
13973else
13974
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013975 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013976
13977
13978fi
13979
13980
13981cat >>confdefs.h <<_ACEOF
13982#define USE_OPROFILE $USE_OPROFILE
13983_ACEOF
13984
13985
13986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013987
13988
13989
13990
13991
Reid Spencer59473af2004-12-25 07:31:29 +000013992ac_header_dirent=no
13993for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013994 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13995{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13996echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014000 cat >conftest.$ac_ext <<_ACEOF
14001/* confdefs.h. */
14002_ACEOF
14003cat confdefs.h >>conftest.$ac_ext
14004cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014005/* end confdefs.h. */
14006#include <sys/types.h>
14007#include <$ac_hdr>
14008
14009int
14010main ()
14011{
14012if ((DIR *) 0)
14013return 0;
14014 ;
14015 return 0;
14016}
14017_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014018rm -f conftest.$ac_objext
14019if { (ac_try="$ac_compile"
14020case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14023esac
14024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_compile") 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14033 { (case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14036esac
14037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_try") 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; } &&
14042 { ac_try='test -s conftest.$ac_objext'
14043 { (case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_try") 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014052 eval "$as_ac_Header=yes"
14053else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054 echo "$as_me: failed program was:" >&5
14055sed 's/^/| /' conftest.$ac_ext >&5
14056
14057 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014058fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014059
Reid Spencera773bd52006-08-04 18:18:08 +000014060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014062ac_res=`eval echo '${'$as_ac_Header'}'`
14063 { echo "$as_me:$LINENO: result: $ac_res" >&5
14064echo "${ECHO_T}$ac_res" >&6; }
14065if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014066 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014067#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014068_ACEOF
14069
14070ac_header_dirent=$ac_hdr; break
14071fi
14072
14073done
14074# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14075if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014076 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14077echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14078if test "${ac_cv_search_opendir+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014080else
14081 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014082cat >conftest.$ac_ext <<_ACEOF
14083/* confdefs.h. */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014087/* end confdefs.h. */
14088
Reid Spencera773bd52006-08-04 18:18:08 +000014089/* Override any GCC internal prototype to avoid an error.
14090 Use char because int might match the return type of a GCC
14091 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014092#ifdef __cplusplus
14093extern "C"
14094#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014095char opendir ();
14096int
14097main ()
14098{
Reid Spencera773bd52006-08-04 18:18:08 +000014099return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014100 ;
14101 return 0;
14102}
14103_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014104for ac_lib in '' dir; do
14105 if test -z "$ac_lib"; then
14106 ac_res="none required"
14107 else
14108 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014110 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014111 rm -f conftest.$ac_objext conftest$ac_exeext
14112if { (ac_try="$ac_link"
14113case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14116esac
14117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_link") 2>conftest.er1
14119 ac_status=$?
14120 grep -v '^ *+' conftest.er1 >conftest.err
14121 rm -f conftest.er1
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14126 { (case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129esac
14130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_try") 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; } &&
14135 { ac_try='test -s conftest$ac_exeext'
14136 { (case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139esac
14140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_try") 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014145 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014146else
14147 echo "$as_me: failed program was:" >&5
14148sed 's/^/| /' conftest.$ac_ext >&5
14149
14150
Reid Spencer59473af2004-12-25 07:31:29 +000014151fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014152
Bill Wendlingebcceee2009-04-18 11:20:33 +000014153rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014154 conftest$ac_exeext
14155 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014156 break
Reid Spencer59473af2004-12-25 07:31:29 +000014157fi
Reid Spencera773bd52006-08-04 18:18:08 +000014158done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159if test "${ac_cv_search_opendir+set}" = set; then
14160 :
Reid Spencera773bd52006-08-04 18:18:08 +000014161else
14162 ac_cv_search_opendir=no
14163fi
14164rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014165LIBS=$ac_func_search_save_LIBS
14166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014167{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14168echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014169ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014170if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014172
14173fi
14174
14175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014176 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14177echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14178if test "${ac_cv_search_opendir+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014180else
14181 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182cat >conftest.$ac_ext <<_ACEOF
14183/* confdefs.h. */
14184_ACEOF
14185cat confdefs.h >>conftest.$ac_ext
14186cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014187/* end confdefs.h. */
14188
Reid Spencera773bd52006-08-04 18:18:08 +000014189/* Override any GCC internal prototype to avoid an error.
14190 Use char because int might match the return type of a GCC
14191 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014192#ifdef __cplusplus
14193extern "C"
14194#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014195char opendir ();
14196int
14197main ()
14198{
Reid Spencera773bd52006-08-04 18:18:08 +000014199return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014200 ;
14201 return 0;
14202}
14203_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014204for ac_lib in '' x; do
14205 if test -z "$ac_lib"; then
14206 ac_res="none required"
14207 else
14208 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014210 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014211 rm -f conftest.$ac_objext conftest$ac_exeext
14212if { (ac_try="$ac_link"
14213case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14216esac
14217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_link") 2>conftest.er1
14219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14229esac
14230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest$ac_exeext'
14236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239esac
14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014245 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014246else
14247 echo "$as_me: failed program was:" >&5
14248sed 's/^/| /' conftest.$ac_ext >&5
14249
14250
Reid Spencer59473af2004-12-25 07:31:29 +000014251fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014252
Bill Wendlingebcceee2009-04-18 11:20:33 +000014253rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014254 conftest$ac_exeext
14255 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014256 break
Reid Spencer59473af2004-12-25 07:31:29 +000014257fi
Reid Spencera773bd52006-08-04 18:18:08 +000014258done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014259if test "${ac_cv_search_opendir+set}" = set; then
14260 :
Reid Spencera773bd52006-08-04 18:18:08 +000014261else
14262 ac_cv_search_opendir=no
14263fi
14264rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014265LIBS=$ac_func_search_save_LIBS
14266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014267{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14268echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014269ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014270if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014272
14273fi
14274
14275fi
14276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014277{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14278echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14279if test "${ac_cv_header_mmap_anon+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014281else
14282 ac_ext=c
14283ac_cpp='$CPP $CPPFLAGS'
14284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014288 cat >conftest.$ac_ext <<_ACEOF
14289/* confdefs.h. */
14290_ACEOF
14291cat confdefs.h >>conftest.$ac_ext
14292cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014293/* end confdefs.h. */
14294#include <sys/mman.h>
14295#include <unistd.h>
14296#include <fcntl.h>
14297int
14298main ()
14299{
14300mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14301 ;
14302 return 0;
14303}
14304_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014305rm -f conftest.$ac_objext
14306if { (ac_try="$ac_compile"
14307case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310esac
14311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_compile") 2>conftest.er1
14313 ac_status=$?
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14323esac
14324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest.$ac_objext'
14330 { (case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333esac
14334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_try") 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014339 ac_cv_header_mmap_anon=yes
14340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014341 echo "$as_me: failed program was:" >&5
14342sed 's/^/| /' conftest.$ac_ext >&5
14343
14344 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346
Reid Spencera773bd52006-08-04 18:18:08 +000014347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014348 ac_ext=c
14349ac_cpp='$CPP $CPPFLAGS'
14350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14352ac_compiler_gnu=$ac_cv_c_compiler_gnu
14353
14354
14355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014356{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14357echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014358if test "$ac_cv_header_mmap_anon" = yes; then
14359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014360cat >>confdefs.h <<\_ACEOF
14361#define HAVE_MMAP_ANONYMOUS 1
14362_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014363
14364fi
14365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014366{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14367echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14368if test "${ac_cv_header_stat_broken+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014371 cat >conftest.$ac_ext <<_ACEOF
14372/* confdefs.h. */
14373_ACEOF
14374cat confdefs.h >>conftest.$ac_ext
14375cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014376/* end confdefs.h. */
14377#include <sys/types.h>
14378#include <sys/stat.h>
14379
Reid Spencera773bd52006-08-04 18:18:08 +000014380#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014381# if S_ISBLK (S_IFDIR)
14382You lose.
14383# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014384#endif
14385
Reid Spencera773bd52006-08-04 18:18:08 +000014386#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014387# if S_ISBLK (S_IFCHR)
14388You lose.
14389# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014390#endif
14391
Reid Spencera773bd52006-08-04 18:18:08 +000014392#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014393# if S_ISLNK (S_IFREG)
14394You lose.
14395# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014396#endif
14397
Reid Spencera773bd52006-08-04 18:18:08 +000014398#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014399# if S_ISSOCK (S_IFREG)
14400You lose.
14401# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014402#endif
14403
14404_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14406 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014407 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014408else
14409 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014411rm -f conftest*
14412
Reid Spencer59473af2004-12-25 07:31:29 +000014413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014414{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14415echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014416if test $ac_cv_header_stat_broken = yes; then
14417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014418cat >>confdefs.h <<\_ACEOF
14419#define STAT_MACROS_BROKEN 1
14420_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014421
14422fi
14423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014424{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14425echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14426if test "${ac_cv_header_stdc+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014429 cat >conftest.$ac_ext <<_ACEOF
14430/* confdefs.h. */
14431_ACEOF
14432cat confdefs.h >>conftest.$ac_ext
14433cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014434/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014435#include <stdlib.h>
14436#include <stdarg.h>
14437#include <string.h>
14438#include <float.h>
14439
John Criswell0c38eaf2003-09-10 15:17:25 +000014440int
14441main ()
14442{
14443
14444 ;
14445 return 0;
14446}
John Criswell7a73b802003-06-30 21:59:07 +000014447_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014448rm -f conftest.$ac_objext
14449if { (ac_try="$ac_compile"
14450case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14453esac
14454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455 (eval "$ac_compile") 2>conftest.er1
14456 ac_status=$?
14457 grep -v '^ *+' conftest.er1 >conftest.err
14458 rm -f conftest.er1
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14463 { (case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14466esac
14467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_try") 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
14473 { (case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476esac
14477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_try") 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014482 ac_cv_header_stdc=yes
14483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014484 echo "$as_me: failed program was:" >&5
14485sed 's/^/| /' conftest.$ac_ext >&5
14486
14487 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000014488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014489
Reid Spencera773bd52006-08-04 18:18:08 +000014490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014491
14492if test $ac_cv_header_stdc = yes; then
14493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014494 cat >conftest.$ac_ext <<_ACEOF
14495/* confdefs.h. */
14496_ACEOF
14497cat confdefs.h >>conftest.$ac_ext
14498cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014499/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014500#include <string.h>
14501
14502_ACEOF
14503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014504 $EGREP "memchr" >/dev/null 2>&1; then
14505 :
John Criswell7a73b802003-06-30 21:59:07 +000014506else
14507 ac_cv_header_stdc=no
14508fi
14509rm -f conftest*
14510
14511fi
14512
14513if test $ac_cv_header_stdc = yes; then
14514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014515 cat >conftest.$ac_ext <<_ACEOF
14516/* confdefs.h. */
14517_ACEOF
14518cat confdefs.h >>conftest.$ac_ext
14519cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014521#include <stdlib.h>
14522
14523_ACEOF
14524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014525 $EGREP "free" >/dev/null 2>&1; then
14526 :
John Criswell7a73b802003-06-30 21:59:07 +000014527else
14528 ac_cv_header_stdc=no
14529fi
14530rm -f conftest*
14531
14532fi
14533
14534if test $ac_cv_header_stdc = yes; then
14535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014536 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000014537 :
14538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014539 cat >conftest.$ac_ext <<_ACEOF
14540/* confdefs.h. */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014545#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000014546#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000014547#if ((' ' & 0x0FF) == 0x020)
14548# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14549# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14550#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014551# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014552 (('a' <= (c) && (c) <= 'i') \
14553 || ('j' <= (c) && (c) <= 'r') \
14554 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000014555# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14556#endif
14557
14558#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14559int
14560main ()
14561{
14562 int i;
14563 for (i = 0; i < 256; i++)
14564 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000014565 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000014566 return 2;
14567 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000014568}
14569_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014570rm -f conftest$ac_exeext
14571if { (ac_try="$ac_link"
14572case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14575esac
14576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577 (eval "$ac_link") 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14581 { (case "(($ac_try" in
14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583 *) ac_try_echo=$ac_try;;
14584esac
14585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586 (eval "$ac_try") 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 :
John Criswell7a73b802003-06-30 21:59:07 +000014591else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014592 echo "$as_me: program exited with status $ac_status" >&5
14593echo "$as_me: failed program was:" >&5
14594sed 's/^/| /' conftest.$ac_ext >&5
14595
14596( exit $ac_status )
14597ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000014598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014599rm -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 +000014600fi
14601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014602
John Criswell7a73b802003-06-30 21:59:07 +000014603fi
14604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014605{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14606echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014607if test $ac_cv_header_stdc = yes; then
14608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014609cat >>confdefs.h <<\_ACEOF
14610#define STDC_HEADERS 1
14611_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014612
14613fi
14614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014615{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14616echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14617if test "${ac_cv_header_sys_wait_h+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014620 cat >conftest.$ac_ext <<_ACEOF
14621/* confdefs.h. */
14622_ACEOF
14623cat confdefs.h >>conftest.$ac_ext
14624cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014625/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014626#include <sys/types.h>
14627#include <sys/wait.h>
14628#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014629# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014630#endif
14631#ifndef WIFEXITED
14632# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14633#endif
14634
John Criswell7a73b802003-06-30 21:59:07 +000014635int
14636main ()
14637{
14638 int s;
14639 wait (&s);
14640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14641 ;
14642 return 0;
14643}
14644_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014645rm -f conftest.$ac_objext
14646if { (ac_try="$ac_compile"
14647case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14650esac
14651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_compile") 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14660 { (case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663esac
14664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_try") 2>&5
14666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; } &&
14669 { ac_try='test -s conftest.$ac_objext'
14670 { (case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14673esac
14674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_try") 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014679 ac_cv_header_sys_wait_h=yes
14680else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014681 echo "$as_me: failed program was:" >&5
14682sed 's/^/| /' conftest.$ac_ext >&5
14683
14684 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014685fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014686
Reid Spencera773bd52006-08-04 18:18:08 +000014687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014688fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014689{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14690echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014691if test $ac_cv_header_sys_wait_h = yes; then
14692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014693cat >>confdefs.h <<\_ACEOF
14694#define HAVE_SYS_WAIT_H 1
14695_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014696
14697fi
14698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014699{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14700echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14701if test "${ac_cv_header_time+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014703else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014704 cat >conftest.$ac_ext <<_ACEOF
14705/* confdefs.h. */
14706_ACEOF
14707cat confdefs.h >>conftest.$ac_ext
14708cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014709/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014710#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014711#include <sys/time.h>
14712#include <time.h>
14713
14714int
14715main ()
14716{
14717if ((struct tm *) 0)
14718return 0;
14719 ;
14720 return 0;
14721}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014722_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014723rm -f conftest.$ac_objext
14724if { (ac_try="$ac_compile"
14725case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14728esac
14729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_compile") 2>conftest.er1
14731 ac_status=$?
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
14737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14738 { (case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741esac
14742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_try") 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } &&
14747 { ac_try='test -s conftest.$ac_objext'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014757 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014758else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014759 echo "$as_me: failed program was:" >&5
14760sed 's/^/| /' conftest.$ac_ext >&5
14761
14762 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014764
Reid Spencera773bd52006-08-04 18:18:08 +000014765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014766fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014767{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14768echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014769if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014771cat >>confdefs.h <<\_ACEOF
14772#define TIME_WITH_SYS_TIME 1
14773_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014774
14775fi
14776
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014778
14779
14780
14781
14782
14783
Reid Spencer59473af2004-12-25 07:31:29 +000014784for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014785do
14786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14792fi
14793ac_res=`eval echo '${'$as_ac_Header'}'`
14794 { echo "$as_me:$LINENO: result: $ac_res" >&5
14795echo "${ECHO_T}$ac_res" >&6; }
14796else
14797 # Is the header compilable?
14798{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14800cat >conftest.$ac_ext <<_ACEOF
14801/* confdefs.h. */
14802_ACEOF
14803cat confdefs.h >>conftest.$ac_ext
14804cat >>conftest.$ac_ext <<_ACEOF
14805/* end confdefs.h. */
14806$ac_includes_default
14807#include <$ac_header>
14808_ACEOF
14809rm -f conftest.$ac_objext
14810if { (ac_try="$ac_compile"
14811case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814esac
14815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_compile") 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14824 { (case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14827esac
14828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_try") 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; } &&
14833 { ac_try='test -s conftest.$ac_objext'
14834 { (case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14837esac
14838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_try") 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_header_compiler=yes
14844else
14845 echo "$as_me: failed program was:" >&5
14846sed 's/^/| /' conftest.$ac_ext >&5
14847
14848 ac_header_compiler=no
14849fi
14850
14851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14853echo "${ECHO_T}$ac_header_compiler" >&6; }
14854
14855# Is the header present?
14856{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14858cat >conftest.$ac_ext <<_ACEOF
14859/* confdefs.h. */
14860_ACEOF
14861cat confdefs.h >>conftest.$ac_ext
14862cat >>conftest.$ac_ext <<_ACEOF
14863/* end confdefs.h. */
14864#include <$ac_header>
14865_ACEOF
14866if { (ac_try="$ac_cpp conftest.$ac_ext"
14867case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } >/dev/null; then
14879 if test -s conftest.err; then
14880 ac_cpp_err=$ac_c_preproc_warn_flag
14881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14882 else
14883 ac_cpp_err=
14884 fi
14885else
14886 ac_cpp_err=yes
14887fi
14888if test -z "$ac_cpp_err"; then
14889 ac_header_preproc=yes
14890else
14891 echo "$as_me: failed program was:" >&5
14892sed 's/^/| /' conftest.$ac_ext >&5
14893
14894 ac_header_preproc=no
14895fi
14896
14897rm -f conftest.err conftest.$ac_ext
14898{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14899echo "${ECHO_T}$ac_header_preproc" >&6; }
14900
14901# So? What about this header?
14902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14903 yes:no: )
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14908 ac_header_preproc=yes
14909 ;;
14910 no:yes:* )
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14923 ( cat <<\_ASBOX
14924## ----------------------------------- ##
14925## Report this to llvmbugs@cs.uiuc.edu ##
14926## ----------------------------------- ##
14927_ASBOX
14928 ) | sed "s/^/$as_me: WARNING: /" >&2
14929 ;;
14930esac
14931{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935else
14936 eval "$as_ac_Header=\$ac_header_preproc"
14937fi
14938ac_res=`eval echo '${'$as_ac_Header'}'`
14939 { echo "$as_me:$LINENO: result: $ac_res" >&5
14940echo "${ECHO_T}$ac_res" >&6; }
14941
14942fi
14943if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014944 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014946_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014947
14948fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014949
Reid Spencer59473af2004-12-25 07:31:29 +000014950done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014952
14953
14954
14955
14956
14957
Douglas Gregor071d73d2009-05-18 17:21:34 +000014958for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014959do
14960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966fi
14967ac_res=`eval echo '${'$as_ac_Header'}'`
14968 { echo "$as_me:$LINENO: result: $ac_res" >&5
14969echo "${ECHO_T}$ac_res" >&6; }
14970else
14971 # Is the header compilable?
14972{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14974cat >conftest.$ac_ext <<_ACEOF
14975/* confdefs.h. */
14976_ACEOF
14977cat confdefs.h >>conftest.$ac_ext
14978cat >>conftest.$ac_ext <<_ACEOF
14979/* end confdefs.h. */
14980$ac_includes_default
14981#include <$ac_header>
14982_ACEOF
14983rm -f conftest.$ac_objext
14984if { (ac_try="$ac_compile"
14985case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988esac
14989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_compile") 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001esac
15002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest.$ac_objext'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011esac
15012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_header_compiler=yes
15018else
15019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_header_compiler=no
15023fi
15024
15025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15027echo "${ECHO_T}$ac_header_compiler" >&6; }
15028
15029# Is the header present?
15030{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15032cat >conftest.$ac_ext <<_ACEOF
15033/* confdefs.h. */
15034_ACEOF
15035cat confdefs.h >>conftest.$ac_ext
15036cat >>conftest.$ac_ext <<_ACEOF
15037/* end confdefs.h. */
15038#include <$ac_header>
15039_ACEOF
15040if { (ac_try="$ac_cpp conftest.$ac_ext"
15041case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15044esac
15045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15047 ac_status=$?
15048 grep -v '^ *+' conftest.er1 >conftest.err
15049 rm -f conftest.er1
15050 cat conftest.err >&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } >/dev/null; then
15053 if test -s conftest.err; then
15054 ac_cpp_err=$ac_c_preproc_warn_flag
15055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15056 else
15057 ac_cpp_err=
15058 fi
15059else
15060 ac_cpp_err=yes
15061fi
15062if test -z "$ac_cpp_err"; then
15063 ac_header_preproc=yes
15064else
15065 echo "$as_me: failed program was:" >&5
15066sed 's/^/| /' conftest.$ac_ext >&5
15067
15068 ac_header_preproc=no
15069fi
15070
15071rm -f conftest.err conftest.$ac_ext
15072{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15073echo "${ECHO_T}$ac_header_preproc" >&6; }
15074
15075# So? What about this header?
15076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15077 yes:no: )
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15079echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15081echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15082 ac_header_preproc=yes
15083 ;;
15084 no:yes:* )
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15086echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15088echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15090echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15092echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15094echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15096echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15097 ( cat <<\_ASBOX
15098## ----------------------------------- ##
15099## Report this to llvmbugs@cs.uiuc.edu ##
15100## ----------------------------------- ##
15101_ASBOX
15102 ) | sed "s/^/$as_me: WARNING: /" >&2
15103 ;;
15104esac
15105{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15109else
15110 eval "$as_ac_Header=\$ac_header_preproc"
15111fi
15112ac_res=`eval echo '${'$as_ac_Header'}'`
15113 { echo "$as_me:$LINENO: result: $ac_res" >&5
15114echo "${ECHO_T}$ac_res" >&6; }
15115
15116fi
15117if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015118 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015120_ACEOF
15121
15122fi
15123
15124done
15125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015126
15127
Douglas Gregor071d73d2009-05-18 17:21:34 +000015128for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015129do
15130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136fi
15137ac_res=`eval echo '${'$as_ac_Header'}'`
15138 { echo "$as_me:$LINENO: result: $ac_res" >&5
15139echo "${ECHO_T}$ac_res" >&6; }
15140else
15141 # Is the header compilable?
15142{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15144cat >conftest.$ac_ext <<_ACEOF
15145/* confdefs.h. */
15146_ACEOF
15147cat confdefs.h >>conftest.$ac_ext
15148cat >>conftest.$ac_ext <<_ACEOF
15149/* end confdefs.h. */
15150$ac_includes_default
15151#include <$ac_header>
15152_ACEOF
15153rm -f conftest.$ac_objext
15154if { (ac_try="$ac_compile"
15155case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15158esac
15159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_compile") 2>conftest.er1
15161 ac_status=$?
15162 grep -v '^ *+' conftest.er1 >conftest.err
15163 rm -f conftest.er1
15164 cat conftest.err >&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } &&
15167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15168 { (case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15171esac
15172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_try") 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15181esac
15182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_try") 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_header_compiler=yes
15188else
15189 echo "$as_me: failed program was:" >&5
15190sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 ac_header_compiler=no
15193fi
15194
15195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15197echo "${ECHO_T}$ac_header_compiler" >&6; }
15198
15199# Is the header present?
15200{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15202cat >conftest.$ac_ext <<_ACEOF
15203/* confdefs.h. */
15204_ACEOF
15205cat confdefs.h >>conftest.$ac_ext
15206cat >>conftest.$ac_ext <<_ACEOF
15207/* end confdefs.h. */
15208#include <$ac_header>
15209_ACEOF
15210if { (ac_try="$ac_cpp conftest.$ac_ext"
15211case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214esac
15215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15217 ac_status=$?
15218 grep -v '^ *+' conftest.er1 >conftest.err
15219 rm -f conftest.er1
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } >/dev/null; then
15223 if test -s conftest.err; then
15224 ac_cpp_err=$ac_c_preproc_warn_flag
15225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15226 else
15227 ac_cpp_err=
15228 fi
15229else
15230 ac_cpp_err=yes
15231fi
15232if test -z "$ac_cpp_err"; then
15233 ac_header_preproc=yes
15234else
15235 echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
15238 ac_header_preproc=no
15239fi
15240
15241rm -f conftest.err conftest.$ac_ext
15242{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15243echo "${ECHO_T}$ac_header_preproc" >&6; }
15244
15245# So? What about this header?
15246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15247 yes:no: )
15248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15249echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15251echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15252 ac_header_preproc=yes
15253 ;;
15254 no:yes:* )
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15256echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15258echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15260echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15262echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15264echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15266echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15267 ( cat <<\_ASBOX
15268## ----------------------------------- ##
15269## Report this to llvmbugs@cs.uiuc.edu ##
15270## ----------------------------------- ##
15271_ASBOX
15272 ) | sed "s/^/$as_me: WARNING: /" >&2
15273 ;;
15274esac
15275{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279else
15280 eval "$as_ac_Header=\$ac_header_preproc"
15281fi
15282ac_res=`eval echo '${'$as_ac_Header'}'`
15283 { echo "$as_me:$LINENO: result: $ac_res" >&5
15284echo "${ECHO_T}$ac_res" >&6; }
15285
15286fi
15287if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015288 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015290_ACEOF
15291
15292fi
15293
15294done
Reid Spencer59473af2004-12-25 07:31:29 +000015295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015296
15297
15298
15299
Daniel Dunbar3e462932011-02-03 02:40:02 +000015300
15301for 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 +000015302do
15303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15309fi
15310ac_res=`eval echo '${'$as_ac_Header'}'`
15311 { echo "$as_me:$LINENO: result: $ac_res" >&5
15312echo "${ECHO_T}$ac_res" >&6; }
15313else
15314 # Is the header compilable?
15315{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15316echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15317cat >conftest.$ac_ext <<_ACEOF
15318/* confdefs.h. */
15319_ACEOF
15320cat confdefs.h >>conftest.$ac_ext
15321cat >>conftest.$ac_ext <<_ACEOF
15322/* end confdefs.h. */
15323$ac_includes_default
15324#include <$ac_header>
15325_ACEOF
15326rm -f conftest.$ac_objext
15327if { (ac_try="$ac_compile"
15328case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15331esac
15332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_compile") 2>conftest.er1
15334 ac_status=$?
15335 grep -v '^ *+' conftest.er1 >conftest.err
15336 rm -f conftest.er1
15337 cat conftest.err >&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } &&
15340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15341 { (case "(($ac_try" in
15342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15344esac
15345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346 (eval "$ac_try") 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; } &&
15350 { ac_try='test -s conftest.$ac_objext'
15351 { (case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354esac
15355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_try") 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 ac_header_compiler=yes
15361else
15362 echo "$as_me: failed program was:" >&5
15363sed 's/^/| /' conftest.$ac_ext >&5
15364
15365 ac_header_compiler=no
15366fi
15367
15368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15369{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15370echo "${ECHO_T}$ac_header_compiler" >&6; }
15371
15372# Is the header present?
15373{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15374echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
15382_ACEOF
15383if { (ac_try="$ac_cpp conftest.$ac_ext"
15384case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15387esac
15388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15390 ac_status=$?
15391 grep -v '^ *+' conftest.er1 >conftest.err
15392 rm -f conftest.er1
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } >/dev/null; then
15396 if test -s conftest.err; then
15397 ac_cpp_err=$ac_c_preproc_warn_flag
15398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15399 else
15400 ac_cpp_err=
15401 fi
15402else
15403 ac_cpp_err=yes
15404fi
15405if test -z "$ac_cpp_err"; then
15406 ac_header_preproc=yes
15407else
15408 echo "$as_me: failed program was:" >&5
15409sed 's/^/| /' conftest.$ac_ext >&5
15410
15411 ac_header_preproc=no
15412fi
15413
15414rm -f conftest.err conftest.$ac_ext
15415{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15416echo "${ECHO_T}$ac_header_preproc" >&6; }
15417
15418# So? What about this header?
15419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15420 yes:no: )
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15425 ac_header_preproc=yes
15426 ;;
15427 no:yes:* )
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15440 ( cat <<\_ASBOX
15441## ----------------------------------- ##
15442## Report this to llvmbugs@cs.uiuc.edu ##
15443## ----------------------------------- ##
15444_ASBOX
15445 ) | sed "s/^/$as_me: WARNING: /" >&2
15446 ;;
15447esac
15448{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15452else
15453 eval "$as_ac_Header=\$ac_header_preproc"
15454fi
15455ac_res=`eval echo '${'$as_ac_Header'}'`
15456 { echo "$as_me:$LINENO: result: $ac_res" >&5
15457echo "${ECHO_T}$ac_res" >&6; }
15458
15459fi
15460if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015461 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015463_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015464
15465fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015466
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015467done
15468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015469
15470
15471
15472
Douglas Gregor01746742009-05-11 18:05:52 +000015473for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015474do
15475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15481fi
15482ac_res=`eval echo '${'$as_ac_Header'}'`
15483 { echo "$as_me:$LINENO: result: $ac_res" >&5
15484echo "${ECHO_T}$ac_res" >&6; }
15485else
15486 # Is the header compilable?
15487{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15489cat >conftest.$ac_ext <<_ACEOF
15490/* confdefs.h. */
15491_ACEOF
15492cat confdefs.h >>conftest.$ac_ext
15493cat >>conftest.$ac_ext <<_ACEOF
15494/* end confdefs.h. */
15495$ac_includes_default
15496#include <$ac_header>
15497_ACEOF
15498rm -f conftest.$ac_objext
15499if { (ac_try="$ac_compile"
15500case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15503esac
15504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_compile") 2>conftest.er1
15506 ac_status=$?
15507 grep -v '^ *+' conftest.er1 >conftest.err
15508 rm -f conftest.er1
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } &&
15512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15513 { (case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15516esac
15517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_try") 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; } &&
15522 { ac_try='test -s conftest.$ac_objext'
15523 { (case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15526esac
15527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_try") 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_header_compiler=yes
15533else
15534 echo "$as_me: failed program was:" >&5
15535sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 ac_header_compiler=no
15538fi
15539
15540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15542echo "${ECHO_T}$ac_header_compiler" >&6; }
15543
15544# Is the header present?
15545{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15546echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15547cat >conftest.$ac_ext <<_ACEOF
15548/* confdefs.h. */
15549_ACEOF
15550cat confdefs.h >>conftest.$ac_ext
15551cat >>conftest.$ac_ext <<_ACEOF
15552/* end confdefs.h. */
15553#include <$ac_header>
15554_ACEOF
15555if { (ac_try="$ac_cpp conftest.$ac_ext"
15556case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15559esac
15560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15562 ac_status=$?
15563 grep -v '^ *+' conftest.er1 >conftest.err
15564 rm -f conftest.er1
15565 cat conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } >/dev/null; then
15568 if test -s conftest.err; then
15569 ac_cpp_err=$ac_c_preproc_warn_flag
15570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15571 else
15572 ac_cpp_err=
15573 fi
15574else
15575 ac_cpp_err=yes
15576fi
15577if test -z "$ac_cpp_err"; then
15578 ac_header_preproc=yes
15579else
15580 echo "$as_me: failed program was:" >&5
15581sed 's/^/| /' conftest.$ac_ext >&5
15582
15583 ac_header_preproc=no
15584fi
15585
15586rm -f conftest.err conftest.$ac_ext
15587{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15588echo "${ECHO_T}$ac_header_preproc" >&6; }
15589
15590# So? What about this header?
15591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15592 yes:no: )
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15594echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15596echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15597 ac_header_preproc=yes
15598 ;;
15599 no:yes:* )
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15601echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15603echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15605echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15607echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15609echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15611echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15612 ( cat <<\_ASBOX
15613## ----------------------------------- ##
15614## Report this to llvmbugs@cs.uiuc.edu ##
15615## ----------------------------------- ##
15616_ASBOX
15617 ) | sed "s/^/$as_me: WARNING: /" >&2
15618 ;;
15619esac
15620{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15624else
15625 eval "$as_ac_Header=\$ac_header_preproc"
15626fi
15627ac_res=`eval echo '${'$as_ac_Header'}'`
15628 { echo "$as_me:$LINENO: result: $ac_res" >&5
15629echo "${ECHO_T}$ac_res" >&6; }
15630
15631fi
15632if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015633 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015635_ACEOF
15636
15637fi
15638
15639done
15640
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015641
15642for ac_header in valgrind/valgrind.h
15643do
15644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650fi
15651ac_res=`eval echo '${'$as_ac_Header'}'`
15652 { echo "$as_me:$LINENO: result: $ac_res" >&5
15653echo "${ECHO_T}$ac_res" >&6; }
15654else
15655 # Is the header compilable?
15656{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15658cat >conftest.$ac_ext <<_ACEOF
15659/* confdefs.h. */
15660_ACEOF
15661cat confdefs.h >>conftest.$ac_ext
15662cat >>conftest.$ac_ext <<_ACEOF
15663/* end confdefs.h. */
15664$ac_includes_default
15665#include <$ac_header>
15666_ACEOF
15667rm -f conftest.$ac_objext
15668if { (ac_try="$ac_compile"
15669case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15672esac
15673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_compile") 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15682 { (case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685esac
15686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_try") 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try='test -s conftest.$ac_objext'
15692 { (case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15695esac
15696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_try") 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 ac_header_compiler=yes
15702else
15703 echo "$as_me: failed program was:" >&5
15704sed 's/^/| /' conftest.$ac_ext >&5
15705
15706 ac_header_compiler=no
15707fi
15708
15709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15711echo "${ECHO_T}$ac_header_compiler" >&6; }
15712
15713# Is the header present?
15714{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15716cat >conftest.$ac_ext <<_ACEOF
15717/* confdefs.h. */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h. */
15722#include <$ac_header>
15723_ACEOF
15724if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
15737 if test -s conftest.err; then
15738 ac_cpp_err=$ac_c_preproc_warn_flag
15739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15740 else
15741 ac_cpp_err=
15742 fi
15743else
15744 ac_cpp_err=yes
15745fi
15746if test -z "$ac_cpp_err"; then
15747 ac_header_preproc=yes
15748else
15749 echo "$as_me: failed program was:" >&5
15750sed 's/^/| /' conftest.$ac_ext >&5
15751
15752 ac_header_preproc=no
15753fi
15754
15755rm -f conftest.err conftest.$ac_ext
15756{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15757echo "${ECHO_T}$ac_header_preproc" >&6; }
15758
15759# So? What about this header?
15760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15761 yes:no: )
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15766 ac_header_preproc=yes
15767 ;;
15768 no:yes:* )
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15781 ( cat <<\_ASBOX
15782## ----------------------------------- ##
15783## Report this to llvmbugs@cs.uiuc.edu ##
15784## ----------------------------------- ##
15785_ASBOX
15786 ) | sed "s/^/$as_me: WARNING: /" >&2
15787 ;;
15788esac
15789{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15793else
15794 eval "$as_ac_Header=\$ac_header_preproc"
15795fi
15796ac_res=`eval echo '${'$as_ac_Header'}'`
15797 { echo "$as_me:$LINENO: result: $ac_res" >&5
15798echo "${ECHO_T}$ac_res" >&6; }
15799
15800fi
15801if test `eval echo '${'$as_ac_Header'}'` = yes; then
15802 cat >>confdefs.h <<_ACEOF
15803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15804_ACEOF
15805
15806fi
15807
15808done
15809
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015810
15811for ac_header in fenv.h
15812do
15813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819fi
15820ac_res=`eval echo '${'$as_ac_Header'}'`
15821 { echo "$as_me:$LINENO: result: $ac_res" >&5
15822echo "${ECHO_T}$ac_res" >&6; }
15823else
15824 # Is the header compilable?
15825{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15826echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15827cat >conftest.$ac_ext <<_ACEOF
15828/* confdefs.h. */
15829_ACEOF
15830cat confdefs.h >>conftest.$ac_ext
15831cat >>conftest.$ac_ext <<_ACEOF
15832/* end confdefs.h. */
15833$ac_includes_default
15834#include <$ac_header>
15835_ACEOF
15836rm -f conftest.$ac_objext
15837if { (ac_try="$ac_compile"
15838case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15841esac
15842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_compile") 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15851 { (case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15854esac
15855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_try") 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try='test -s conftest.$ac_objext'
15861 { (case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15864esac
15865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866 (eval "$ac_try") 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15870 ac_header_compiler=yes
15871else
15872 echo "$as_me: failed program was:" >&5
15873sed 's/^/| /' conftest.$ac_ext >&5
15874
15875 ac_header_compiler=no
15876fi
15877
15878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15879{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15880echo "${ECHO_T}$ac_header_compiler" >&6; }
15881
15882# Is the header present?
15883{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15885cat >conftest.$ac_ext <<_ACEOF
15886/* confdefs.h. */
15887_ACEOF
15888cat confdefs.h >>conftest.$ac_ext
15889cat >>conftest.$ac_ext <<_ACEOF
15890/* end confdefs.h. */
15891#include <$ac_header>
15892_ACEOF
15893if { (ac_try="$ac_cpp conftest.$ac_ext"
15894case "(($ac_try" in
15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896 *) ac_try_echo=$ac_try;;
15897esac
15898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15900 ac_status=$?
15901 grep -v '^ *+' conftest.er1 >conftest.err
15902 rm -f conftest.er1
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } >/dev/null; then
15906 if test -s conftest.err; then
15907 ac_cpp_err=$ac_c_preproc_warn_flag
15908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15909 else
15910 ac_cpp_err=
15911 fi
15912else
15913 ac_cpp_err=yes
15914fi
15915if test -z "$ac_cpp_err"; then
15916 ac_header_preproc=yes
15917else
15918 echo "$as_me: failed program was:" >&5
15919sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ac_header_preproc=no
15922fi
15923
15924rm -f conftest.err conftest.$ac_ext
15925{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15926echo "${ECHO_T}$ac_header_preproc" >&6; }
15927
15928# So? What about this header?
15929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15930 yes:no: )
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15932echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15934echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15935 ac_header_preproc=yes
15936 ;;
15937 no:yes:* )
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15939echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15941echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15943echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15945echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15947echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15949echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15950 ( cat <<\_ASBOX
15951## ----------------------------------- ##
15952## Report this to llvmbugs@cs.uiuc.edu ##
15953## ----------------------------------- ##
15954_ASBOX
15955 ) | sed "s/^/$as_me: WARNING: /" >&2
15956 ;;
15957esac
15958{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15962else
15963 eval "$as_ac_Header=\$ac_header_preproc"
15964fi
15965ac_res=`eval echo '${'$as_ac_Header'}'`
15966 { echo "$as_me:$LINENO: result: $ac_res" >&5
15967echo "${ECHO_T}$ac_res" >&6; }
15968
15969fi
15970if test `eval echo '${'$as_ac_Header'}'` = yes; then
15971 cat >>confdefs.h <<_ACEOF
15972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15973_ACEOF
15974
15975fi
15976
15977done
15978
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015979if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015980
15981for ac_header in pthread.h
15982do
15983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989fi
15990ac_res=`eval echo '${'$as_ac_Header'}'`
15991 { echo "$as_me:$LINENO: result: $ac_res" >&5
15992echo "${ECHO_T}$ac_res" >&6; }
15993else
15994 # Is the header compilable?
15995{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15997cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003$ac_includes_default
16004#include <$ac_header>
16005_ACEOF
16006rm -f conftest.$ac_objext
16007if { (ac_try="$ac_compile"
16008case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16011esac
16012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_compile") 2>conftest.er1
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16021 { (case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16024esac
16025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_try") 2>&5
16027 ac_status=$?
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; } &&
16030 { ac_try='test -s conftest.$ac_objext'
16031 { (case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16034esac
16035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_try") 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_header_compiler=yes
16041else
16042 echo "$as_me: failed program was:" >&5
16043sed 's/^/| /' conftest.$ac_ext >&5
16044
16045 ac_header_compiler=no
16046fi
16047
16048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16050echo "${ECHO_T}$ac_header_compiler" >&6; }
16051
16052# Is the header present?
16053{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16055cat >conftest.$ac_ext <<_ACEOF
16056/* confdefs.h. */
16057_ACEOF
16058cat confdefs.h >>conftest.$ac_ext
16059cat >>conftest.$ac_ext <<_ACEOF
16060/* end confdefs.h. */
16061#include <$ac_header>
16062_ACEOF
16063if { (ac_try="$ac_cpp conftest.$ac_ext"
16064case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16067esac
16068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } >/dev/null; then
16076 if test -s conftest.err; then
16077 ac_cpp_err=$ac_c_preproc_warn_flag
16078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16079 else
16080 ac_cpp_err=
16081 fi
16082else
16083 ac_cpp_err=yes
16084fi
16085if test -z "$ac_cpp_err"; then
16086 ac_header_preproc=yes
16087else
16088 echo "$as_me: failed program was:" >&5
16089sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 ac_header_preproc=no
16092fi
16093
16094rm -f conftest.err conftest.$ac_ext
16095{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16096echo "${ECHO_T}$ac_header_preproc" >&6; }
16097
16098# So? What about this header?
16099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16100 yes:no: )
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16105 ac_header_preproc=yes
16106 ;;
16107 no:yes:* )
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16120 ( cat <<\_ASBOX
16121## ----------------------------------- ##
16122## Report this to llvmbugs@cs.uiuc.edu ##
16123## ----------------------------------- ##
16124_ASBOX
16125 ) | sed "s/^/$as_me: WARNING: /" >&2
16126 ;;
16127esac
16128{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16132else
16133 eval "$as_ac_Header=\$ac_header_preproc"
16134fi
16135ac_res=`eval echo '${'$as_ac_Header'}'`
16136 { echo "$as_me:$LINENO: result: $ac_res" >&5
16137echo "${ECHO_T}$ac_res" >&6; }
16138
16139fi
16140if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016141 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016143_ACEOF
16144 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016145
16146else
16147 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016148
16149fi
16150
Reid Spencerbe3e4192007-08-17 05:45:26 +000016151done
Reid Spencer1000b732006-12-01 00:37:14 +000016152
16153else
16154 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016155
16156fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016157
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016158if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016159
16160
16161for ac_header in ffi.h ffi/ffi.h
16162do
16163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16169fi
16170ac_res=`eval echo '${'$as_ac_Header'}'`
16171 { echo "$as_me:$LINENO: result: $ac_res" >&5
16172echo "${ECHO_T}$ac_res" >&6; }
16173else
16174 # Is the header compilable?
16175{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16177cat >conftest.$ac_ext <<_ACEOF
16178/* confdefs.h. */
16179_ACEOF
16180cat confdefs.h >>conftest.$ac_ext
16181cat >>conftest.$ac_ext <<_ACEOF
16182/* end confdefs.h. */
16183$ac_includes_default
16184#include <$ac_header>
16185_ACEOF
16186rm -f conftest.$ac_objext
16187if { (ac_try="$ac_compile"
16188case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16191esac
16192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_compile") 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } &&
16200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16201 { (case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16204esac
16205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_try") 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest.$ac_objext'
16211 { (case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16214esac
16215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_try") 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 ac_header_compiler=yes
16221else
16222 echo "$as_me: failed program was:" >&5
16223sed 's/^/| /' conftest.$ac_ext >&5
16224
16225 ac_header_compiler=no
16226fi
16227
16228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16230echo "${ECHO_T}$ac_header_compiler" >&6; }
16231
16232# Is the header present?
16233{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16235cat >conftest.$ac_ext <<_ACEOF
16236/* confdefs.h. */
16237_ACEOF
16238cat confdefs.h >>conftest.$ac_ext
16239cat >>conftest.$ac_ext <<_ACEOF
16240/* end confdefs.h. */
16241#include <$ac_header>
16242_ACEOF
16243if { (ac_try="$ac_cpp conftest.$ac_ext"
16244case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247esac
16248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16250 ac_status=$?
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } >/dev/null; then
16256 if test -s conftest.err; then
16257 ac_cpp_err=$ac_c_preproc_warn_flag
16258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16259 else
16260 ac_cpp_err=
16261 fi
16262else
16263 ac_cpp_err=yes
16264fi
16265if test -z "$ac_cpp_err"; then
16266 ac_header_preproc=yes
16267else
16268 echo "$as_me: failed program was:" >&5
16269sed 's/^/| /' conftest.$ac_ext >&5
16270
16271 ac_header_preproc=no
16272fi
16273
16274rm -f conftest.err conftest.$ac_ext
16275{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16276echo "${ECHO_T}$ac_header_preproc" >&6; }
16277
16278# So? What about this header?
16279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16280 yes:no: )
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16285 ac_header_preproc=yes
16286 ;;
16287 no:yes:* )
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16300 ( cat <<\_ASBOX
16301## ----------------------------------- ##
16302## Report this to llvmbugs@cs.uiuc.edu ##
16303## ----------------------------------- ##
16304_ASBOX
16305 ) | sed "s/^/$as_me: WARNING: /" >&2
16306 ;;
16307esac
16308{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16312else
16313 eval "$as_ac_Header=\$ac_header_preproc"
16314fi
16315ac_res=`eval echo '${'$as_ac_Header'}'`
16316 { echo "$as_me:$LINENO: result: $ac_res" >&5
16317echo "${ECHO_T}$ac_res" >&6; }
16318
16319fi
16320if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016321 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016323_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016324
16325fi
16326
16327done
16328
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016329fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016330
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016331
Eric Christopher654dee42010-06-22 21:01:04 +000016332for ac_header in CrashReporterClient.h
16333do
16334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16340fi
16341ac_res=`eval echo '${'$as_ac_Header'}'`
16342 { echo "$as_me:$LINENO: result: $ac_res" >&5
16343echo "${ECHO_T}$ac_res" >&6; }
16344else
16345 # Is the header compilable?
16346{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16348cat >conftest.$ac_ext <<_ACEOF
16349/* confdefs.h. */
16350_ACEOF
16351cat confdefs.h >>conftest.$ac_ext
16352cat >>conftest.$ac_ext <<_ACEOF
16353/* end confdefs.h. */
16354$ac_includes_default
16355#include <$ac_header>
16356_ACEOF
16357rm -f conftest.$ac_objext
16358if { (ac_try="$ac_compile"
16359case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16362esac
16363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_compile") 2>conftest.er1
16365 ac_status=$?
16366 grep -v '^ *+' conftest.er1 >conftest.err
16367 rm -f conftest.er1
16368 cat conftest.err >&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } &&
16371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16372 { (case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_try") 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16385esac
16386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_try") 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_header_compiler=yes
16392else
16393 echo "$as_me: failed program was:" >&5
16394sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 ac_header_compiler=no
16397fi
16398
16399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16400{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16401echo "${ECHO_T}$ac_header_compiler" >&6; }
16402
16403# Is the header present?
16404{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16406cat >conftest.$ac_ext <<_ACEOF
16407/* confdefs.h. */
16408_ACEOF
16409cat confdefs.h >>conftest.$ac_ext
16410cat >>conftest.$ac_ext <<_ACEOF
16411/* end confdefs.h. */
16412#include <$ac_header>
16413_ACEOF
16414if { (ac_try="$ac_cpp conftest.$ac_ext"
16415case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418esac
16419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16421 ac_status=$?
16422 grep -v '^ *+' conftest.er1 >conftest.err
16423 rm -f conftest.er1
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } >/dev/null; then
16427 if test -s conftest.err; then
16428 ac_cpp_err=$ac_c_preproc_warn_flag
16429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16430 else
16431 ac_cpp_err=
16432 fi
16433else
16434 ac_cpp_err=yes
16435fi
16436if test -z "$ac_cpp_err"; then
16437 ac_header_preproc=yes
16438else
16439 echo "$as_me: failed program was:" >&5
16440sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ac_header_preproc=no
16443fi
16444
16445rm -f conftest.err conftest.$ac_ext
16446{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16447echo "${ECHO_T}$ac_header_preproc" >&6; }
16448
16449# So? What about this header?
16450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16451 yes:no: )
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16456 ac_header_preproc=yes
16457 ;;
16458 no:yes:* )
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16471 ( cat <<\_ASBOX
16472## ----------------------------------- ##
16473## Report this to llvmbugs@cs.uiuc.edu ##
16474## ----------------------------------- ##
16475_ASBOX
16476 ) | sed "s/^/$as_me: WARNING: /" >&2
16477 ;;
16478esac
16479{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483else
16484 eval "$as_ac_Header=\$ac_header_preproc"
16485fi
16486ac_res=`eval echo '${'$as_ac_Header'}'`
16487 { echo "$as_me:$LINENO: result: $ac_res" >&5
16488echo "${ECHO_T}$ac_res" >&6; }
16489
16490fi
16491if test `eval echo '${'$as_ac_Header'}'` = yes; then
16492 cat >>confdefs.h <<_ACEOF
16493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16494_ACEOF
16495
16496fi
16497
16498done
16499
16500
Eric Christopher51e57132010-12-07 02:05:42 +000016501{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16502echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016503cat >conftest.$ac_ext <<_ACEOF
16504/* confdefs.h. */
16505_ACEOF
16506cat confdefs.h >>conftest.$ac_ext
16507cat >>conftest.$ac_ext <<_ACEOF
16508/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016509extern const char *__crashreporter_info__;
16510 int main() {
16511 __crashreporter_info__ = "test";
16512 return 0;
16513 }
Eric Christopher481d4022010-12-03 07:45:22 +000016514
Eric Christopher481d4022010-12-03 07:45:22 +000016515_ACEOF
16516rm -f conftest.$ac_objext conftest$ac_exeext
16517if { (ac_try="$ac_link"
16518case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16521esac
16522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_link") 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
16530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16531 { (case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534esac
16535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_try") 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; } &&
16540 { ac_try='test -s conftest$ac_exeext'
16541 { (case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16544esac
16545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_try") 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016550 { echo "$as_me:$LINENO: result: yes" >&5
16551echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016552
16553cat >>confdefs.h <<\_ACEOF
16554#define HAVE_CRASHREPORTER_INFO 1
16555_ACEOF
16556
Eric Christopher51e57132010-12-07 02:05:42 +000016557else
16558 echo "$as_me: failed program was:" >&5
16559sed 's/^/| /' conftest.$ac_ext >&5
16560
16561 { echo "$as_me:$LINENO: result: no" >&5
16562echo "${ECHO_T}no" >&6; }
16563
16564cat >>confdefs.h <<\_ACEOF
16565#define HAVE_CRASHREPORTER_INFO 0
16566_ACEOF
16567
Eric Christopher481d4022010-12-03 07:45:22 +000016568fi
Eric Christopher654dee42010-06-22 21:01:04 +000016569
Eric Christopher51e57132010-12-07 02:05:42 +000016570rm -f core conftest.err conftest.$ac_objext \
16571 conftest$ac_exeext conftest.$ac_ext
16572
16573
Reid Spencer8085cff2005-01-16 02:58:39 +000016574
Torok Edwin871384f2010-01-26 08:50:50 +000016575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016576 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16577echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16578if test "${ac_cv_huge_val_sanity+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016580else
16581
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016582 ac_ext=cpp
16583ac_cpp='$CXXCPP $CPPFLAGS'
16584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016587
Eric Christopherc7718502010-03-02 05:06:54 +000016588 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016589 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016590 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016591 ac_cv_huge_val_sanity=yes
16592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016593 cat >conftest.$ac_ext <<_ACEOF
16594/* confdefs.h. */
16595_ACEOF
16596cat confdefs.h >>conftest.$ac_ext
16597cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016598/* end confdefs.h. */
16599#include <math.h>
16600int
16601main ()
16602{
16603double x = HUGE_VAL; return x != x;
16604 ;
16605 return 0;
16606}
16607_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016608rm -f conftest$ac_exeext
16609if { (ac_try="$ac_link"
16610case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16613esac
16614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615 (eval "$ac_link") 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16619 { (case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622esac
16623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_try") 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016628 ac_cv_huge_val_sanity=yes
16629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016630 echo "$as_me: program exited with status $ac_status" >&5
16631echo "$as_me: failed program was:" >&5
16632sed 's/^/| /' conftest.$ac_ext >&5
16633
16634( exit $ac_status )
16635ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016637rm -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 +000016638fi
16639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016640
Eric Christopherc7718502010-03-02 05:06:54 +000016641 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016642 ac_ext=c
16643ac_cpp='$CPP $CPPFLAGS'
16644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16646ac_compiler_gnu=$ac_cv_c_compiler_gnu
16647
16648
16649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016650{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16651echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016652 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16653
16654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016655{ echo "$as_me:$LINENO: checking for pid_t" >&5
16656echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16657if test "${ac_cv_type_pid_t+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16659else
16660 cat >conftest.$ac_ext <<_ACEOF
16661/* confdefs.h. */
16662_ACEOF
16663cat confdefs.h >>conftest.$ac_ext
16664cat >>conftest.$ac_ext <<_ACEOF
16665/* end confdefs.h. */
16666$ac_includes_default
16667typedef pid_t ac__type_new_;
16668int
16669main ()
16670{
16671if ((ac__type_new_ *) 0)
16672 return 0;
16673if (sizeof (ac__type_new_))
16674 return 0;
16675 ;
16676 return 0;
16677}
16678_ACEOF
16679rm -f conftest.$ac_objext
16680if { (ac_try="$ac_compile"
16681case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684esac
16685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_compile") 2>conftest.er1
16687 ac_status=$?
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694 { (case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697esac
16698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_try") 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest.$ac_objext'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707esac
16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; }; then
16713 ac_cv_type_pid_t=yes
16714else
16715 echo "$as_me: failed program was:" >&5
16716sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016718 ac_cv_type_pid_t=no
16719fi
16720
16721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16722fi
16723{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16724echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16725if test $ac_cv_type_pid_t = yes; then
16726 :
John Criswell7a73b802003-06-30 21:59:07 +000016727else
16728
16729cat >>confdefs.h <<_ACEOF
16730#define pid_t int
16731_ACEOF
16732
16733fi
16734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016735{ echo "$as_me:$LINENO: checking for size_t" >&5
16736echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16737if test "${ac_cv_type_size_t+set}" = set; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16739else
16740 cat >conftest.$ac_ext <<_ACEOF
16741/* confdefs.h. */
16742_ACEOF
16743cat confdefs.h >>conftest.$ac_ext
16744cat >>conftest.$ac_ext <<_ACEOF
16745/* end confdefs.h. */
16746$ac_includes_default
16747typedef size_t ac__type_new_;
16748int
16749main ()
16750{
16751if ((ac__type_new_ *) 0)
16752 return 0;
16753if (sizeof (ac__type_new_))
16754 return 0;
16755 ;
16756 return 0;
16757}
16758_ACEOF
16759rm -f conftest.$ac_objext
16760if { (ac_try="$ac_compile"
16761case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16764esac
16765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_compile") 2>conftest.er1
16767 ac_status=$?
16768 grep -v '^ *+' conftest.er1 >conftest.err
16769 rm -f conftest.er1
16770 cat conftest.err >&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
16773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16774 { (case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16777esac
16778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_try") 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } &&
16783 { ac_try='test -s conftest.$ac_objext'
16784 { (case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16787esac
16788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_try") 2>&5
16790 ac_status=$?
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; }; then
16793 ac_cv_type_size_t=yes
16794else
16795 echo "$as_me: failed program was:" >&5
16796sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016798 ac_cv_type_size_t=no
16799fi
16800
16801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16802fi
16803{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16804echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16805if test $ac_cv_type_size_t = yes; then
16806 :
John Criswell7a73b802003-06-30 21:59:07 +000016807else
16808
16809cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016810#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016811_ACEOF
16812
16813fi
16814
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016815
16816cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016817#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016818_ACEOF
16819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016820{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16821echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16822if test "${ac_cv_struct_tm+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016825 cat >conftest.$ac_ext <<_ACEOF
16826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016830/* end confdefs.h. */
16831#include <sys/types.h>
16832#include <time.h>
16833
16834int
16835main ()
16836{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016837struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016838 ;
16839 return 0;
16840}
16841_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016842rm -f conftest.$ac_objext
16843if { (ac_try="$ac_compile"
16844case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16847esac
16848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_compile") 2>conftest.er1
16850 ac_status=$?
16851 grep -v '^ *+' conftest.er1 >conftest.err
16852 rm -f conftest.er1
16853 cat conftest.err >&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16857 { (case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860esac
16861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_try") 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest.$ac_objext'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870esac
16871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016876 ac_cv_struct_tm=time.h
16877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016878 echo "$as_me: failed program was:" >&5
16879sed 's/^/| /' conftest.$ac_ext >&5
16880
16881 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016882fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016883
Reid Spencera773bd52006-08-04 18:18:08 +000016884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016886{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16887echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016888if test $ac_cv_struct_tm = sys/time.h; then
16889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016890cat >>confdefs.h <<\_ACEOF
16891#define TM_IN_SYS_TIME 1
16892_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016893
16894fi
16895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016896{ echo "$as_me:$LINENO: checking for int64_t" >&5
16897echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16898if test "${ac_cv_type_int64_t+set}" = set; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16900else
16901 cat >conftest.$ac_ext <<_ACEOF
16902/* confdefs.h. */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h. */
16907$ac_includes_default
16908typedef int64_t ac__type_new_;
16909int
16910main ()
16911{
16912if ((ac__type_new_ *) 0)
16913 return 0;
16914if (sizeof (ac__type_new_))
16915 return 0;
16916 ;
16917 return 0;
16918}
16919_ACEOF
16920rm -f conftest.$ac_objext
16921if { (ac_try="$ac_compile"
16922case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_compile") 2>conftest.er1
16928 ac_status=$?
16929 grep -v '^ *+' conftest.er1 >conftest.err
16930 rm -f conftest.er1
16931 cat conftest.err >&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } &&
16934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16935 { (case "(($ac_try" in
16936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937 *) ac_try_echo=$ac_try;;
16938esac
16939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940 (eval "$ac_try") 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; } &&
16944 { ac_try='test -s conftest.$ac_objext'
16945 { (case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16948esac
16949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_try") 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_cv_type_int64_t=yes
16955else
16956 echo "$as_me: failed program was:" >&5
16957sed 's/^/| /' conftest.$ac_ext >&5
16958
16959 ac_cv_type_int64_t=no
16960fi
16961
16962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16963fi
16964{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16965echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16966if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016967
16968cat >>confdefs.h <<_ACEOF
16969#define HAVE_INT64_T 1
16970_ACEOF
16971
16972
16973else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016974 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16975echo "$as_me: error: Type int64_t required but not found" >&2;}
16976 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016977fi
16978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016979{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16980echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16981if test "${ac_cv_type_uint64_t+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16983else
16984 cat >conftest.$ac_ext <<_ACEOF
16985/* confdefs.h. */
16986_ACEOF
16987cat confdefs.h >>conftest.$ac_ext
16988cat >>conftest.$ac_ext <<_ACEOF
16989/* end confdefs.h. */
16990$ac_includes_default
16991typedef uint64_t ac__type_new_;
16992int
16993main ()
16994{
16995if ((ac__type_new_ *) 0)
16996 return 0;
16997if (sizeof (ac__type_new_))
16998 return 0;
16999 ;
17000 return 0;
17001}
17002_ACEOF
17003rm -f conftest.$ac_objext
17004if { (ac_try="$ac_compile"
17005case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008esac
17009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_compile") 2>conftest.er1
17011 ac_status=$?
17012 grep -v '^ *+' conftest.er1 >conftest.err
17013 rm -f conftest.er1
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } &&
17017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17018 { (case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17021esac
17022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023 (eval "$ac_try") 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } &&
17027 { ac_try='test -s conftest.$ac_objext'
17028 { (case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17031esac
17032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_try") 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 ac_cv_type_uint64_t=yes
17038else
17039 echo "$as_me: failed program was:" >&5
17040sed 's/^/| /' conftest.$ac_ext >&5
17041
17042 ac_cv_type_uint64_t=no
17043fi
17044
17045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046fi
17047{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17048echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17049if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017050
17051cat >>confdefs.h <<_ACEOF
17052#define HAVE_UINT64_T 1
17053_ACEOF
17054
17055
17056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017057 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17058echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17059if test "${ac_cv_type_u_int64_t+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17061else
17062 cat >conftest.$ac_ext <<_ACEOF
17063/* confdefs.h. */
17064_ACEOF
17065cat confdefs.h >>conftest.$ac_ext
17066cat >>conftest.$ac_ext <<_ACEOF
17067/* end confdefs.h. */
17068$ac_includes_default
17069typedef u_int64_t ac__type_new_;
17070int
17071main ()
17072{
17073if ((ac__type_new_ *) 0)
17074 return 0;
17075if (sizeof (ac__type_new_))
17076 return 0;
17077 ;
17078 return 0;
17079}
17080_ACEOF
17081rm -f conftest.$ac_objext
17082if { (ac_try="$ac_compile"
17083case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17086esac
17087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_compile") 2>conftest.er1
17089 ac_status=$?
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest.$ac_objext'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109esac
17110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 ac_cv_type_u_int64_t=yes
17116else
17117 echo "$as_me: failed program was:" >&5
17118sed 's/^/| /' conftest.$ac_ext >&5
17119
17120 ac_cv_type_u_int64_t=no
17121fi
17122
17123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17124fi
17125{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17126echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17127if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017128
17129cat >>confdefs.h <<_ACEOF
17130#define HAVE_U_INT64_T 1
17131_ACEOF
17132
17133
Misha Brukmanceca9042004-09-02 23:02:30 +000017134else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017135 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17136echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17137 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017138fi
17139
John Criswell679ff312004-09-02 18:44:44 +000017140fi
17141
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017142
17143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017144
17145
17146
17147
17148
17149
17150
Reid Spencerdf3be822006-01-23 08:15:53 +000017151for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017152do
17153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17154{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17156if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17158else
17159 cat >conftest.$ac_ext <<_ACEOF
17160/* confdefs.h. */
17161_ACEOF
17162cat confdefs.h >>conftest.$ac_ext
17163cat >>conftest.$ac_ext <<_ACEOF
17164/* end confdefs.h. */
17165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17167#define $ac_func innocuous_$ac_func
17168
17169/* System header to define __stub macros and hopefully few prototypes,
17170 which can conflict with char $ac_func (); below.
17171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17172 <limits.h> exists even on freestanding compilers. */
17173
17174#ifdef __STDC__
17175# include <limits.h>
17176#else
17177# include <assert.h>
17178#endif
17179
17180#undef $ac_func
17181
17182/* Override any GCC internal prototype to avoid an error.
17183 Use char because int might match the return type of a GCC
17184 builtin and then its argument prototype would still apply. */
17185#ifdef __cplusplus
17186extern "C"
17187#endif
17188char $ac_func ();
17189/* The GNU C library defines this for functions which it implements
17190 to always fail with ENOSYS. Some functions are actually named
17191 something starting with __ and the normal name is an alias. */
17192#if defined __stub_$ac_func || defined __stub___$ac_func
17193choke me
17194#endif
17195
17196int
17197main ()
17198{
17199return $ac_func ();
17200 ;
17201 return 0;
17202}
17203_ACEOF
17204rm -f conftest.$ac_objext conftest$ac_exeext
17205if { (ac_try="$ac_link"
17206case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209esac
17210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_link") 2>conftest.er1
17212 ac_status=$?
17213 grep -v '^ *+' conftest.er1 >conftest.err
17214 rm -f conftest.er1
17215 cat conftest.err >&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17219 { (case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17222esac
17223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_try") 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; } &&
17228 { ac_try='test -s conftest$ac_exeext'
17229 { (case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232esac
17233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_try") 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 eval "$as_ac_var=yes"
17239else
17240 echo "$as_me: failed program was:" >&5
17241sed 's/^/| /' conftest.$ac_ext >&5
17242
17243 eval "$as_ac_var=no"
17244fi
17245
17246rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17248fi
17249ac_res=`eval echo '${'$as_ac_var'}'`
17250 { echo "$as_me:$LINENO: result: $ac_res" >&5
17251echo "${ECHO_T}$ac_res" >&6; }
17252if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017253 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017254#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017255_ACEOF
17256
17257fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017258done
John Criswell7a73b802003-06-30 21:59:07 +000017259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017260
17261
17262
17263
Reid Spencer96cf5872007-07-13 10:05:30 +000017264for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017265do
17266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17267{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17269if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17271else
17272 cat >conftest.$ac_ext <<_ACEOF
17273/* confdefs.h. */
17274_ACEOF
17275cat confdefs.h >>conftest.$ac_ext
17276cat >>conftest.$ac_ext <<_ACEOF
17277/* end confdefs.h. */
17278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17280#define $ac_func innocuous_$ac_func
17281
17282/* System header to define __stub macros and hopefully few prototypes,
17283 which can conflict with char $ac_func (); below.
17284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17285 <limits.h> exists even on freestanding compilers. */
17286
17287#ifdef __STDC__
17288# include <limits.h>
17289#else
17290# include <assert.h>
17291#endif
17292
17293#undef $ac_func
17294
17295/* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17298#ifdef __cplusplus
17299extern "C"
17300#endif
17301char $ac_func ();
17302/* The GNU C library defines this for functions which it implements
17303 to always fail with ENOSYS. Some functions are actually named
17304 something starting with __ and the normal name is an alias. */
17305#if defined __stub_$ac_func || defined __stub___$ac_func
17306choke me
17307#endif
17308
17309int
17310main ()
17311{
17312return $ac_func ();
17313 ;
17314 return 0;
17315}
17316_ACEOF
17317rm -f conftest.$ac_objext conftest$ac_exeext
17318if { (ac_try="$ac_link"
17319case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17322esac
17323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_link") 2>conftest.er1
17325 ac_status=$?
17326 grep -v '^ *+' conftest.er1 >conftest.err
17327 rm -f conftest.er1
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17332 { (case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17335esac
17336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_try") 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; } &&
17341 { ac_try='test -s conftest$ac_exeext'
17342 { (case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17345esac
17346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_try") 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; }; then
17351 eval "$as_ac_var=yes"
17352else
17353 echo "$as_me: failed program was:" >&5
17354sed 's/^/| /' conftest.$ac_ext >&5
17355
17356 eval "$as_ac_var=no"
17357fi
17358
17359rm -f core conftest.err conftest.$ac_objext \
17360 conftest$ac_exeext conftest.$ac_ext
17361fi
17362ac_res=`eval echo '${'$as_ac_var'}'`
17363 { echo "$as_me:$LINENO: result: $ac_res" >&5
17364echo "${ECHO_T}$ac_res" >&6; }
17365if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017366 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017368_ACEOF
17369
17370fi
17371done
17372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017373
17374
17375
17376
17377
Reid Spencerb90645c2007-02-16 19:17:20 +000017378for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017379do
17380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17381{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17383if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17384 echo $ECHO_N "(cached) $ECHO_C" >&6
17385else
17386 cat >conftest.$ac_ext <<_ACEOF
17387/* confdefs.h. */
17388_ACEOF
17389cat confdefs.h >>conftest.$ac_ext
17390cat >>conftest.$ac_ext <<_ACEOF
17391/* end confdefs.h. */
17392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17394#define $ac_func innocuous_$ac_func
17395
17396/* System header to define __stub macros and hopefully few prototypes,
17397 which can conflict with char $ac_func (); below.
17398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17399 <limits.h> exists even on freestanding compilers. */
17400
17401#ifdef __STDC__
17402# include <limits.h>
17403#else
17404# include <assert.h>
17405#endif
17406
17407#undef $ac_func
17408
17409/* Override any GCC internal prototype to avoid an error.
17410 Use char because int might match the return type of a GCC
17411 builtin and then its argument prototype would still apply. */
17412#ifdef __cplusplus
17413extern "C"
17414#endif
17415char $ac_func ();
17416/* The GNU C library defines this for functions which it implements
17417 to always fail with ENOSYS. Some functions are actually named
17418 something starting with __ and the normal name is an alias. */
17419#if defined __stub_$ac_func || defined __stub___$ac_func
17420choke me
17421#endif
17422
17423int
17424main ()
17425{
17426return $ac_func ();
17427 ;
17428 return 0;
17429}
17430_ACEOF
17431rm -f conftest.$ac_objext conftest$ac_exeext
17432if { (ac_try="$ac_link"
17433case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436esac
17437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_link") 2>conftest.er1
17439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
17445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17446 { (case "(($ac_try" in
17447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448 *) ac_try_echo=$ac_try;;
17449esac
17450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451 (eval "$ac_try") 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest$ac_exeext'
17456 { (case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459esac
17460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_try") 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 eval "$as_ac_var=yes"
17466else
17467 echo "$as_me: failed program was:" >&5
17468sed 's/^/| /' conftest.$ac_ext >&5
17469
17470 eval "$as_ac_var=no"
17471fi
17472
17473rm -f core conftest.err conftest.$ac_objext \
17474 conftest$ac_exeext conftest.$ac_ext
17475fi
17476ac_res=`eval echo '${'$as_ac_var'}'`
17477 { echo "$as_me:$LINENO: result: $ac_res" >&5
17478echo "${ECHO_T}$ac_res" >&6; }
17479if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017480 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017482_ACEOF
17483
17484fi
17485done
17486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017487
17488
17489
Reid Spencerb90645c2007-02-16 19:17:20 +000017490for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017491do
17492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17493{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17495if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17497else
17498 cat >conftest.$ac_ext <<_ACEOF
17499/* confdefs.h. */
17500_ACEOF
17501cat confdefs.h >>conftest.$ac_ext
17502cat >>conftest.$ac_ext <<_ACEOF
17503/* end confdefs.h. */
17504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17506#define $ac_func innocuous_$ac_func
17507
17508/* System header to define __stub macros and hopefully few prototypes,
17509 which can conflict with char $ac_func (); below.
17510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17511 <limits.h> exists even on freestanding compilers. */
17512
17513#ifdef __STDC__
17514# include <limits.h>
17515#else
17516# include <assert.h>
17517#endif
17518
17519#undef $ac_func
17520
17521/* Override any GCC internal prototype to avoid an error.
17522 Use char because int might match the return type of a GCC
17523 builtin and then its argument prototype would still apply. */
17524#ifdef __cplusplus
17525extern "C"
17526#endif
17527char $ac_func ();
17528/* The GNU C library defines this for functions which it implements
17529 to always fail with ENOSYS. Some functions are actually named
17530 something starting with __ and the normal name is an alias. */
17531#if defined __stub_$ac_func || defined __stub___$ac_func
17532choke me
17533#endif
17534
17535int
17536main ()
17537{
17538return $ac_func ();
17539 ;
17540 return 0;
17541}
17542_ACEOF
17543rm -f conftest.$ac_objext conftest$ac_exeext
17544if { (ac_try="$ac_link"
17545case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17548esac
17549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_link") 2>conftest.er1
17551 ac_status=$?
17552 grep -v '^ *+' conftest.er1 >conftest.err
17553 rm -f conftest.er1
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17558 { (case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17561esac
17562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_try") 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest$ac_exeext'
17568 { (case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17571esac
17572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_try") 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 eval "$as_ac_var=yes"
17578else
17579 echo "$as_me: failed program was:" >&5
17580sed 's/^/| /' conftest.$ac_ext >&5
17581
17582 eval "$as_ac_var=no"
17583fi
17584
17585rm -f core conftest.err conftest.$ac_objext \
17586 conftest$ac_exeext conftest.$ac_ext
17587fi
17588ac_res=`eval echo '${'$as_ac_var'}'`
17589 { echo "$as_me:$LINENO: result: $ac_res" >&5
17590echo "${ECHO_T}$ac_res" >&6; }
17591if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017592 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017594_ACEOF
17595
17596fi
17597done
17598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017599
17600
17601
17602
17603
Eric Christophere4291822010-04-16 05:14:21 +000017604
17605for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017606do
17607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612else
17613 cat >conftest.$ac_ext <<_ACEOF
17614/* confdefs.h. */
17615_ACEOF
17616cat confdefs.h >>conftest.$ac_ext
17617cat >>conftest.$ac_ext <<_ACEOF
17618/* end confdefs.h. */
17619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17621#define $ac_func innocuous_$ac_func
17622
17623/* System header to define __stub macros and hopefully few prototypes,
17624 which can conflict with char $ac_func (); below.
17625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626 <limits.h> exists even on freestanding compilers. */
17627
17628#ifdef __STDC__
17629# include <limits.h>
17630#else
17631# include <assert.h>
17632#endif
17633
17634#undef $ac_func
17635
17636/* Override any GCC internal prototype to avoid an error.
17637 Use char because int might match the return type of a GCC
17638 builtin and then its argument prototype would still apply. */
17639#ifdef __cplusplus
17640extern "C"
17641#endif
17642char $ac_func ();
17643/* The GNU C library defines this for functions which it implements
17644 to always fail with ENOSYS. Some functions are actually named
17645 something starting with __ and the normal name is an alias. */
17646#if defined __stub_$ac_func || defined __stub___$ac_func
17647choke me
17648#endif
17649
17650int
17651main ()
17652{
17653return $ac_func ();
17654 ;
17655 return 0;
17656}
17657_ACEOF
17658rm -f conftest.$ac_objext conftest$ac_exeext
17659if { (ac_try="$ac_link"
17660case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663esac
17664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } &&
17672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17673 { (case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676esac
17677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_try") 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; } &&
17682 { ac_try='test -s conftest$ac_exeext'
17683 { (case "(($ac_try" in
17684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685 *) ac_try_echo=$ac_try;;
17686esac
17687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17688 (eval "$ac_try") 2>&5
17689 ac_status=$?
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; }; then
17692 eval "$as_ac_var=yes"
17693else
17694 echo "$as_me: failed program was:" >&5
17695sed 's/^/| /' conftest.$ac_ext >&5
17696
17697 eval "$as_ac_var=no"
17698fi
17699
17700rm -f core conftest.err conftest.$ac_objext \
17701 conftest$ac_exeext conftest.$ac_ext
17702fi
17703ac_res=`eval echo '${'$as_ac_var'}'`
17704 { echo "$as_me:$LINENO: result: $ac_res" >&5
17705echo "${ECHO_T}$ac_res" >&6; }
17706if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017707 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017709_ACEOF
17710
17711fi
17712done
Reid Spencerdf3be822006-01-23 08:15:53 +000017713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017714
17715
17716
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017717for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017718do
17719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17720{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17722if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17724else
17725 cat >conftest.$ac_ext <<_ACEOF
17726/* confdefs.h. */
17727_ACEOF
17728cat confdefs.h >>conftest.$ac_ext
17729cat >>conftest.$ac_ext <<_ACEOF
17730/* end confdefs.h. */
17731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17733#define $ac_func innocuous_$ac_func
17734
17735/* System header to define __stub macros and hopefully few prototypes,
17736 which can conflict with char $ac_func (); below.
17737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17738 <limits.h> exists even on freestanding compilers. */
17739
17740#ifdef __STDC__
17741# include <limits.h>
17742#else
17743# include <assert.h>
17744#endif
17745
17746#undef $ac_func
17747
17748/* Override any GCC internal prototype to avoid an error.
17749 Use char because int might match the return type of a GCC
17750 builtin and then its argument prototype would still apply. */
17751#ifdef __cplusplus
17752extern "C"
17753#endif
17754char $ac_func ();
17755/* The GNU C library defines this for functions which it implements
17756 to always fail with ENOSYS. Some functions are actually named
17757 something starting with __ and the normal name is an alias. */
17758#if defined __stub_$ac_func || defined __stub___$ac_func
17759choke me
17760#endif
17761
17762int
17763main ()
17764{
17765return $ac_func ();
17766 ;
17767 return 0;
17768}
17769_ACEOF
17770rm -f conftest.$ac_objext conftest$ac_exeext
17771if { (ac_try="$ac_link"
17772case "(($ac_try" in
17773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17774 *) ac_try_echo=$ac_try;;
17775esac
17776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17777 (eval "$ac_link") 2>conftest.er1
17778 ac_status=$?
17779 grep -v '^ *+' conftest.er1 >conftest.err
17780 rm -f conftest.er1
17781 cat conftest.err >&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
17784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17785 { (case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17788esac
17789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_try") 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try='test -s conftest$ac_exeext'
17795 { (case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17798esac
17799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_try") 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 eval "$as_ac_var=yes"
17805else
17806 echo "$as_me: failed program was:" >&5
17807sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 eval "$as_ac_var=no"
17810fi
17811
17812rm -f core conftest.err conftest.$ac_objext \
17813 conftest$ac_exeext conftest.$ac_ext
17814fi
17815ac_res=`eval echo '${'$as_ac_var'}'`
17816 { echo "$as_me:$LINENO: result: $ac_res" >&5
17817echo "${ECHO_T}$ac_res" >&6; }
17818if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017819 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017821_ACEOF
17822
17823fi
17824done
17825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017826
17827
17828
17829
Chris Lattner511f11d2005-11-14 07:25:50 +000017830for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017831do
17832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17833{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837else
17838 cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h. */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h. */
17844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17846#define $ac_func innocuous_$ac_func
17847
17848/* System header to define __stub macros and hopefully few prototypes,
17849 which can conflict with char $ac_func (); below.
17850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17851 <limits.h> exists even on freestanding compilers. */
17852
17853#ifdef __STDC__
17854# include <limits.h>
17855#else
17856# include <assert.h>
17857#endif
17858
17859#undef $ac_func
17860
17861/* Override any GCC internal prototype to avoid an error.
17862 Use char because int might match the return type of a GCC
17863 builtin and then its argument prototype would still apply. */
17864#ifdef __cplusplus
17865extern "C"
17866#endif
17867char $ac_func ();
17868/* The GNU C library defines this for functions which it implements
17869 to always fail with ENOSYS. Some functions are actually named
17870 something starting with __ and the normal name is an alias. */
17871#if defined __stub_$ac_func || defined __stub___$ac_func
17872choke me
17873#endif
17874
17875int
17876main ()
17877{
17878return $ac_func ();
17879 ;
17880 return 0;
17881}
17882_ACEOF
17883rm -f conftest.$ac_objext conftest$ac_exeext
17884if { (ac_try="$ac_link"
17885case "(($ac_try" in
17886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887 *) ac_try_echo=$ac_try;;
17888esac
17889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17890 (eval "$ac_link") 2>conftest.er1
17891 ac_status=$?
17892 grep -v '^ *+' conftest.er1 >conftest.err
17893 rm -f conftest.er1
17894 cat conftest.err >&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } &&
17897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17898 { (case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17901esac
17902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_try") 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; } &&
17907 { ac_try='test -s conftest$ac_exeext'
17908 { (case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911esac
17912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_try") 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 eval "$as_ac_var=yes"
17918else
17919 echo "$as_me: failed program was:" >&5
17920sed 's/^/| /' conftest.$ac_ext >&5
17921
17922 eval "$as_ac_var=no"
17923fi
17924
17925rm -f core conftest.err conftest.$ac_objext \
17926 conftest$ac_exeext conftest.$ac_ext
17927fi
17928ac_res=`eval echo '${'$as_ac_var'}'`
17929 { echo "$as_me:$LINENO: result: $ac_res" >&5
17930echo "${ECHO_T}$ac_res" >&6; }
17931if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017932 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017934_ACEOF
17935
17936fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017937done
John Criswell7a73b802003-06-30 21:59:07 +000017938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017939
17940
17941
17942
Daniel Dunbar3e462932011-02-03 02:40:02 +000017943
17944for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017945do
17946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17947{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17950 echo $ECHO_N "(cached) $ECHO_C" >&6
17951else
17952 cat >conftest.$ac_ext <<_ACEOF
17953/* confdefs.h. */
17954_ACEOF
17955cat confdefs.h >>conftest.$ac_ext
17956cat >>conftest.$ac_ext <<_ACEOF
17957/* end confdefs.h. */
17958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17960#define $ac_func innocuous_$ac_func
17961
17962/* System header to define __stub macros and hopefully few prototypes,
17963 which can conflict with char $ac_func (); below.
17964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17965 <limits.h> exists even on freestanding compilers. */
17966
17967#ifdef __STDC__
17968# include <limits.h>
17969#else
17970# include <assert.h>
17971#endif
17972
17973#undef $ac_func
17974
17975/* Override any GCC internal prototype to avoid an error.
17976 Use char because int might match the return type of a GCC
17977 builtin and then its argument prototype would still apply. */
17978#ifdef __cplusplus
17979extern "C"
17980#endif
17981char $ac_func ();
17982/* The GNU C library defines this for functions which it implements
17983 to always fail with ENOSYS. Some functions are actually named
17984 something starting with __ and the normal name is an alias. */
17985#if defined __stub_$ac_func || defined __stub___$ac_func
17986choke me
17987#endif
17988
17989int
17990main ()
17991{
17992return $ac_func ();
17993 ;
17994 return 0;
17995}
17996_ACEOF
17997rm -f conftest.$ac_objext conftest$ac_exeext
17998if { (ac_try="$ac_link"
17999case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002esac
18003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_link") 2>conftest.er1
18005 ac_status=$?
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015esac
18016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; } &&
18021 { ac_try='test -s conftest$ac_exeext'
18022 { (case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18025esac
18026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_try") 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 eval "$as_ac_var=yes"
18032else
18033 echo "$as_me: failed program was:" >&5
18034sed 's/^/| /' conftest.$ac_ext >&5
18035
18036 eval "$as_ac_var=no"
18037fi
18038
18039rm -f core conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18041fi
18042ac_res=`eval echo '${'$as_ac_var'}'`
18043 { echo "$as_me:$LINENO: result: $ac_res" >&5
18044echo "${ECHO_T}$ac_res" >&6; }
18045if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018046 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018048_ACEOF
18049
18050fi
18051done
18052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018053{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18054echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18055if test "${llvm_cv_c_printf_a+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018057else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018058 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018059ac_cpp='$CPP $CPPFLAGS'
18060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18062ac_compiler_gnu=$ac_cv_c_compiler_gnu
18063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018064 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018065 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018066else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018067 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018069 /* confdefs.h. */
18070_ACEOF
18071cat confdefs.h >>conftest.$ac_ext
18072cat >>conftest.$ac_ext <<_ACEOF
18073/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018074
John Criswella0137d32003-10-13 16:22:01 +000018075#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018076#include <stdlib.h>
18077
John Criswella0137d32003-10-13 16:22:01 +000018078int
18079main ()
18080{
18081
Reid Spencer2706f8c2004-09-19 23:53:36 +000018082volatile double A, B;
18083char Buffer[100];
18084A = 1;
18085A /= 10.0;
18086sprintf(Buffer, "%a", A);
18087B = atof(Buffer);
18088if (A != B)
18089 return (1);
18090if (A != 0x1.999999999999ap-4)
18091 return (1);
18092return (0);
John Criswella0137d32003-10-13 16:22:01 +000018093 ;
18094 return 0;
18095}
18096_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018097rm -f conftest$ac_exeext
18098if { (ac_try="$ac_link"
18099case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18102esac
18103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_link") 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18108 { (case "(($ac_try" in
18109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18111esac
18112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_try") 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018117 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018119 echo "$as_me: program exited with status $ac_status" >&5
18120echo "$as_me: failed program was:" >&5
18121sed 's/^/| /' conftest.$ac_ext >&5
18122
18123( exit $ac_status )
18124llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018125fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018126rm -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 +000018127fi
Reid Spencera773bd52006-08-04 18:18:08 +000018128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018129
Reid Spencer2706f8c2004-09-19 23:53:36 +000018130 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018131ac_cpp='$CPP $CPPFLAGS'
18132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18134ac_compiler_gnu=$ac_cv_c_compiler_gnu
18135
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018137{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18138echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018139 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018141cat >>confdefs.h <<\_ACEOF
18142#define HAVE_PRINTF_A 1
18143_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018144
Reid Spencer2706f8c2004-09-19 23:53:36 +000018145 fi
John Criswella0137d32003-10-13 16:22:01 +000018146
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018148{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18149echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18150if test "${ac_cv_func_rand48+set}" = set; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018152else
Reid Spencera773bd52006-08-04 18:18:08 +000018153 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018154ac_cpp='$CXXCPP $CPPFLAGS'
18155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018159 cat >conftest.$ac_ext <<_ACEOF
18160/* confdefs.h. */
18161_ACEOF
18162cat confdefs.h >>conftest.$ac_ext
18163cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018164/* end confdefs.h. */
18165#include <stdlib.h>
18166int
18167main ()
18168{
18169srand48(0);lrand48();drand48();
18170 ;
18171 return 0;
18172}
18173_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018174rm -f conftest.$ac_objext
18175if { (ac_try="$ac_compile"
18176case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179esac
18180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_compile") 2>conftest.er1
18182 ac_status=$?
18183 grep -v '^ *+' conftest.er1 >conftest.err
18184 rm -f conftest.er1
18185 cat conftest.err >&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } &&
18188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18189 { (case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18192esac
18193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_try") 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; } &&
18198 { ac_try='test -s conftest.$ac_objext'
18199 { (case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18202esac
18203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_try") 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018208 ac_cv_func_rand48=yes
18209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018210 echo "$as_me: failed program was:" >&5
18211sed 's/^/| /' conftest.$ac_ext >&5
18212
18213 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018214fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018215
Reid Spencera773bd52006-08-04 18:18:08 +000018216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018217 ac_ext=c
18218ac_cpp='$CPP $CPPFLAGS'
18219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18221ac_compiler_gnu=$ac_cv_c_compiler_gnu
18222
18223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018224{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18225echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018226
18227if test "$ac_cv_func_rand48" = "yes" ; then
18228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018229cat >>confdefs.h <<\_ACEOF
18230#define HAVE_RAND48 1
18231_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018232
18233fi
John Criswell0021c312004-02-13 21:57:29 +000018234
18235
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018236{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18237echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18238if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18240else
18241 cat >conftest.$ac_ext <<_ACEOF
18242/* confdefs.h. */
18243_ACEOF
18244cat confdefs.h >>conftest.$ac_ext
18245cat >>conftest.$ac_ext <<_ACEOF
18246/* end confdefs.h. */
18247$ac_includes_default
18248int
18249main ()
18250{
18251#ifndef strerror_s
18252 char *p = (char *) strerror_s;
18253 return !p;
18254#endif
18255
18256 ;
18257 return 0;
18258}
18259_ACEOF
18260rm -f conftest.$ac_objext
18261if { (ac_try="$ac_compile"
18262case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265esac
18266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_compile") 2>conftest.er1
18268 ac_status=$?
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
18274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278esac
18279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest.$ac_objext'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18288esac
18289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 ac_cv_have_decl_strerror_s=yes
18295else
18296 echo "$as_me: failed program was:" >&5
18297sed 's/^/| /' conftest.$ac_ext >&5
18298
18299 ac_cv_have_decl_strerror_s=no
18300fi
18301
18302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303fi
18304{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18305echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18306if test $ac_cv_have_decl_strerror_s = yes; then
18307
18308cat >>confdefs.h <<_ACEOF
18309#define HAVE_DECL_STRERROR_S 1
18310_ACEOF
18311
18312
18313else
18314 cat >>confdefs.h <<_ACEOF
18315#define HAVE_DECL_STRERROR_S 0
18316_ACEOF
18317
18318
18319fi
18320
18321
18322
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018323if test "$llvm_cv_os_type" = "MingW" ; then
18324 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18325echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18326if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18328else
18329 ac_check_lib_save_LIBS=$LIBS
18330LIBS="-lgcc $LIBS"
18331cat >conftest.$ac_ext <<_ACEOF
18332/* confdefs.h. */
18333_ACEOF
18334cat confdefs.h >>conftest.$ac_ext
18335cat >>conftest.$ac_ext <<_ACEOF
18336/* end confdefs.h. */
18337
18338/* Override any GCC internal prototype to avoid an error.
18339 Use char because int might match the return type of a GCC
18340 builtin and then its argument prototype would still apply. */
18341#ifdef __cplusplus
18342extern "C"
18343#endif
18344char _alloca ();
18345int
18346main ()
18347{
18348return _alloca ();
18349 ;
18350 return 0;
18351}
18352_ACEOF
18353rm -f conftest.$ac_objext conftest$ac_exeext
18354if { (ac_try="$ac_link"
18355case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18358esac
18359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360 (eval "$ac_link") 2>conftest.er1
18361 ac_status=$?
18362 grep -v '^ *+' conftest.er1 >conftest.err
18363 rm -f conftest.er1
18364 cat conftest.err >&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
18367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18368 { (case "(($ac_try" in
18369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370 *) ac_try_echo=$ac_try;;
18371esac
18372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373 (eval "$ac_try") 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; } &&
18377 { ac_try='test -s conftest$ac_exeext'
18378 { (case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18381esac
18382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_try") 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 ac_cv_lib_gcc__alloca=yes
18388else
18389 echo "$as_me: failed program was:" >&5
18390sed 's/^/| /' conftest.$ac_ext >&5
18391
18392 ac_cv_lib_gcc__alloca=no
18393fi
18394
18395rm -f core conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18397LIBS=$ac_check_lib_save_LIBS
18398fi
18399{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18400echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18401if test $ac_cv_lib_gcc__alloca = yes; then
18402
18403cat >>confdefs.h <<\_ACEOF
18404#define HAVE__ALLOCA 1
18405_ACEOF
18406
18407fi
18408
18409 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18410echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18411if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18412 echo $ECHO_N "(cached) $ECHO_C" >&6
18413else
18414 ac_check_lib_save_LIBS=$LIBS
18415LIBS="-lgcc $LIBS"
18416cat >conftest.$ac_ext <<_ACEOF
18417/* confdefs.h. */
18418_ACEOF
18419cat confdefs.h >>conftest.$ac_ext
18420cat >>conftest.$ac_ext <<_ACEOF
18421/* end confdefs.h. */
18422
18423/* Override any GCC internal prototype to avoid an error.
18424 Use char because int might match the return type of a GCC
18425 builtin and then its argument prototype would still apply. */
18426#ifdef __cplusplus
18427extern "C"
18428#endif
18429char __alloca ();
18430int
18431main ()
18432{
18433return __alloca ();
18434 ;
18435 return 0;
18436}
18437_ACEOF
18438rm -f conftest.$ac_objext conftest$ac_exeext
18439if { (ac_try="$ac_link"
18440case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18443esac
18444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_link") 2>conftest.er1
18446 ac_status=$?
18447 grep -v '^ *+' conftest.er1 >conftest.err
18448 rm -f conftest.er1
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456esac
18457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest$ac_exeext'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18466esac
18467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_cv_lib_gcc___alloca=yes
18473else
18474 echo "$as_me: failed program was:" >&5
18475sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 ac_cv_lib_gcc___alloca=no
18478fi
18479
18480rm -f core conftest.err conftest.$ac_objext \
18481 conftest$ac_exeext conftest.$ac_ext
18482LIBS=$ac_check_lib_save_LIBS
18483fi
18484{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18485echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18486if test $ac_cv_lib_gcc___alloca = yes; then
18487
18488cat >>confdefs.h <<\_ACEOF
18489#define HAVE___ALLOCA 1
18490_ACEOF
18491
18492fi
18493
18494 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18495echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18496if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18498else
18499 ac_check_lib_save_LIBS=$LIBS
18500LIBS="-lgcc $LIBS"
18501cat >conftest.$ac_ext <<_ACEOF
18502/* confdefs.h. */
18503_ACEOF
18504cat confdefs.h >>conftest.$ac_ext
18505cat >>conftest.$ac_ext <<_ACEOF
18506/* end confdefs.h. */
18507
18508/* Override any GCC internal prototype to avoid an error.
18509 Use char because int might match the return type of a GCC
18510 builtin and then its argument prototype would still apply. */
18511#ifdef __cplusplus
18512extern "C"
18513#endif
18514char __chkstk ();
18515int
18516main ()
18517{
18518return __chkstk ();
18519 ;
18520 return 0;
18521}
18522_ACEOF
18523rm -f conftest.$ac_objext conftest$ac_exeext
18524if { (ac_try="$ac_link"
18525case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528esac
18529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
18531 ac_status=$?
18532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541esac
18542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest$ac_exeext'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18551esac
18552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_lib_gcc___chkstk=yes
18558else
18559 echo "$as_me: failed program was:" >&5
18560sed 's/^/| /' conftest.$ac_ext >&5
18561
18562 ac_cv_lib_gcc___chkstk=no
18563fi
18564
18565rm -f core conftest.err conftest.$ac_objext \
18566 conftest$ac_exeext conftest.$ac_ext
18567LIBS=$ac_check_lib_save_LIBS
18568fi
18569{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18570echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18571if test $ac_cv_lib_gcc___chkstk = yes; then
18572
18573cat >>confdefs.h <<\_ACEOF
18574#define HAVE___CHKSTK 1
18575_ACEOF
18576
18577fi
18578
18579 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18580echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18581if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583else
18584 ac_check_lib_save_LIBS=$LIBS
18585LIBS="-lgcc $LIBS"
18586cat >conftest.$ac_ext <<_ACEOF
18587/* confdefs.h. */
18588_ACEOF
18589cat confdefs.h >>conftest.$ac_ext
18590cat >>conftest.$ac_ext <<_ACEOF
18591/* end confdefs.h. */
18592
18593/* Override any GCC internal prototype to avoid an error.
18594 Use char because int might match the return type of a GCC
18595 builtin and then its argument prototype would still apply. */
18596#ifdef __cplusplus
18597extern "C"
18598#endif
18599char ___chkstk ();
18600int
18601main ()
18602{
18603return ___chkstk ();
18604 ;
18605 return 0;
18606}
18607_ACEOF
18608rm -f conftest.$ac_objext conftest$ac_exeext
18609if { (ac_try="$ac_link"
18610case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613esac
18614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_link") 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18623 { (case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18626esac
18627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_try") 2>&5
18629 ac_status=$?
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; } &&
18632 { ac_try='test -s conftest$ac_exeext'
18633 { (case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18636esac
18637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638 (eval "$ac_try") 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_cv_lib_gcc____chkstk=yes
18643else
18644 echo "$as_me: failed program was:" >&5
18645sed 's/^/| /' conftest.$ac_ext >&5
18646
18647 ac_cv_lib_gcc____chkstk=no
18648fi
18649
18650rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
18652LIBS=$ac_check_lib_save_LIBS
18653fi
18654{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18655echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18656if test $ac_cv_lib_gcc____chkstk = yes; then
18657
18658cat >>confdefs.h <<\_ACEOF
18659#define HAVE____CHKSTK 1
18660_ACEOF
18661
18662fi
18663
18664
18665 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18666echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18667if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18669else
18670 ac_check_lib_save_LIBS=$LIBS
18671LIBS="-lgcc $LIBS"
18672cat >conftest.$ac_ext <<_ACEOF
18673/* confdefs.h. */
18674_ACEOF
18675cat confdefs.h >>conftest.$ac_ext
18676cat >>conftest.$ac_ext <<_ACEOF
18677/* end confdefs.h. */
18678
18679/* Override any GCC internal prototype to avoid an error.
18680 Use char because int might match the return type of a GCC
18681 builtin and then its argument prototype would still apply. */
18682#ifdef __cplusplus
18683extern "C"
18684#endif
18685char __ashldi3 ();
18686int
18687main ()
18688{
18689return __ashldi3 ();
18690 ;
18691 return 0;
18692}
18693_ACEOF
18694rm -f conftest.$ac_objext conftest$ac_exeext
18695if { (ac_try="$ac_link"
18696case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18699esac
18700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_link") 2>conftest.er1
18702 ac_status=$?
18703 grep -v '^ *+' conftest.er1 >conftest.err
18704 rm -f conftest.er1
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } &&
18708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18709 { (case "(($ac_try" in
18710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18712esac
18713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_try") 2>&5
18715 ac_status=$?
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; } &&
18718 { ac_try='test -s conftest$ac_exeext'
18719 { (case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18722esac
18723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_try") 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; }; then
18728 ac_cv_lib_gcc___ashldi3=yes
18729else
18730 echo "$as_me: failed program was:" >&5
18731sed 's/^/| /' conftest.$ac_ext >&5
18732
18733 ac_cv_lib_gcc___ashldi3=no
18734fi
18735
18736rm -f core conftest.err conftest.$ac_objext \
18737 conftest$ac_exeext conftest.$ac_ext
18738LIBS=$ac_check_lib_save_LIBS
18739fi
18740{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18741echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18742if test $ac_cv_lib_gcc___ashldi3 = yes; then
18743
18744cat >>confdefs.h <<\_ACEOF
18745#define HAVE___ASHLDI3 1
18746_ACEOF
18747
18748fi
18749
18750 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18751echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18752if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18754else
18755 ac_check_lib_save_LIBS=$LIBS
18756LIBS="-lgcc $LIBS"
18757cat >conftest.$ac_ext <<_ACEOF
18758/* confdefs.h. */
18759_ACEOF
18760cat confdefs.h >>conftest.$ac_ext
18761cat >>conftest.$ac_ext <<_ACEOF
18762/* end confdefs.h. */
18763
18764/* Override any GCC internal prototype to avoid an error.
18765 Use char because int might match the return type of a GCC
18766 builtin and then its argument prototype would still apply. */
18767#ifdef __cplusplus
18768extern "C"
18769#endif
18770char __ashrdi3 ();
18771int
18772main ()
18773{
18774return __ashrdi3 ();
18775 ;
18776 return 0;
18777}
18778_ACEOF
18779rm -f conftest.$ac_objext conftest$ac_exeext
18780if { (ac_try="$ac_link"
18781case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18784esac
18785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_link") 2>conftest.er1
18787 ac_status=$?
18788 grep -v '^ *+' conftest.er1 >conftest.err
18789 rm -f conftest.er1
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18794 { (case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797esac
18798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_try") 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest$ac_exeext'
18804 { (case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18807esac
18808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_try") 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 ac_cv_lib_gcc___ashrdi3=yes
18814else
18815 echo "$as_me: failed program was:" >&5
18816sed 's/^/| /' conftest.$ac_ext >&5
18817
18818 ac_cv_lib_gcc___ashrdi3=no
18819fi
18820
18821rm -f core conftest.err conftest.$ac_objext \
18822 conftest$ac_exeext conftest.$ac_ext
18823LIBS=$ac_check_lib_save_LIBS
18824fi
18825{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18826echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18827if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18828
18829cat >>confdefs.h <<\_ACEOF
18830#define HAVE___ASHRDI3 1
18831_ACEOF
18832
18833fi
18834
18835 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18836echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18837if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18839else
18840 ac_check_lib_save_LIBS=$LIBS
18841LIBS="-lgcc $LIBS"
18842cat >conftest.$ac_ext <<_ACEOF
18843/* confdefs.h. */
18844_ACEOF
18845cat confdefs.h >>conftest.$ac_ext
18846cat >>conftest.$ac_ext <<_ACEOF
18847/* end confdefs.h. */
18848
18849/* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18852#ifdef __cplusplus
18853extern "C"
18854#endif
18855char __divdi3 ();
18856int
18857main ()
18858{
18859return __divdi3 ();
18860 ;
18861 return 0;
18862}
18863_ACEOF
18864rm -f conftest.$ac_objext conftest$ac_exeext
18865if { (ac_try="$ac_link"
18866case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869esac
18870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_link") 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18882esac
18883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest$ac_exeext'
18889 { (case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18892esac
18893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_try") 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_lib_gcc___divdi3=yes
18899else
18900 echo "$as_me: failed program was:" >&5
18901sed 's/^/| /' conftest.$ac_ext >&5
18902
18903 ac_cv_lib_gcc___divdi3=no
18904fi
18905
18906rm -f core conftest.err conftest.$ac_objext \
18907 conftest$ac_exeext conftest.$ac_ext
18908LIBS=$ac_check_lib_save_LIBS
18909fi
18910{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18911echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18912if test $ac_cv_lib_gcc___divdi3 = yes; then
18913
18914cat >>confdefs.h <<\_ACEOF
18915#define HAVE___DIVDI3 1
18916_ACEOF
18917
18918fi
18919
18920 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18921echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18922if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18924else
18925 ac_check_lib_save_LIBS=$LIBS
18926LIBS="-lgcc $LIBS"
18927cat >conftest.$ac_ext <<_ACEOF
18928/* confdefs.h. */
18929_ACEOF
18930cat confdefs.h >>conftest.$ac_ext
18931cat >>conftest.$ac_ext <<_ACEOF
18932/* end confdefs.h. */
18933
18934/* Override any GCC internal prototype to avoid an error.
18935 Use char because int might match the return type of a GCC
18936 builtin and then its argument prototype would still apply. */
18937#ifdef __cplusplus
18938extern "C"
18939#endif
18940char __fixdfdi ();
18941int
18942main ()
18943{
18944return __fixdfdi ();
18945 ;
18946 return 0;
18947}
18948_ACEOF
18949rm -f conftest.$ac_objext conftest$ac_exeext
18950if { (ac_try="$ac_link"
18951case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18954esac
18955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_link") 2>conftest.er1
18957 ac_status=$?
18958 grep -v '^ *+' conftest.er1 >conftest.err
18959 rm -f conftest.er1
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } &&
18963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18964 { (case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18967esac
18968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_try") 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; } &&
18973 { ac_try='test -s conftest$ac_exeext'
18974 { (case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18977esac
18978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_try") 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_cv_lib_gcc___fixdfdi=yes
18984else
18985 echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
18988 ac_cv_lib_gcc___fixdfdi=no
18989fi
18990
18991rm -f core conftest.err conftest.$ac_objext \
18992 conftest$ac_exeext conftest.$ac_ext
18993LIBS=$ac_check_lib_save_LIBS
18994fi
18995{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18996echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18997if test $ac_cv_lib_gcc___fixdfdi = yes; then
18998
18999cat >>confdefs.h <<\_ACEOF
19000#define HAVE___FIXDFDI 1
19001_ACEOF
19002
19003fi
19004
19005 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19006echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19007if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19009else
19010 ac_check_lib_save_LIBS=$LIBS
19011LIBS="-lgcc $LIBS"
19012cat >conftest.$ac_ext <<_ACEOF
19013/* confdefs.h. */
19014_ACEOF
19015cat confdefs.h >>conftest.$ac_ext
19016cat >>conftest.$ac_ext <<_ACEOF
19017/* end confdefs.h. */
19018
19019/* Override any GCC internal prototype to avoid an error.
19020 Use char because int might match the return type of a GCC
19021 builtin and then its argument prototype would still apply. */
19022#ifdef __cplusplus
19023extern "C"
19024#endif
19025char __fixsfdi ();
19026int
19027main ()
19028{
19029return __fixsfdi ();
19030 ;
19031 return 0;
19032}
19033_ACEOF
19034rm -f conftest.$ac_objext conftest$ac_exeext
19035if { (ac_try="$ac_link"
19036case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19039esac
19040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_link") 2>conftest.er1
19042 ac_status=$?
19043 grep -v '^ *+' conftest.er1 >conftest.err
19044 rm -f conftest.er1
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } &&
19048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19049 { (case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19052esac
19053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_try") 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest$ac_exeext'
19059 { (case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19062esac
19063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_try") 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_cv_lib_gcc___fixsfdi=yes
19069else
19070 echo "$as_me: failed program was:" >&5
19071sed 's/^/| /' conftest.$ac_ext >&5
19072
19073 ac_cv_lib_gcc___fixsfdi=no
19074fi
19075
19076rm -f core conftest.err conftest.$ac_objext \
19077 conftest$ac_exeext conftest.$ac_ext
19078LIBS=$ac_check_lib_save_LIBS
19079fi
19080{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19081echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19082if test $ac_cv_lib_gcc___fixsfdi = yes; then
19083
19084cat >>confdefs.h <<\_ACEOF
19085#define HAVE___FIXSFDI 1
19086_ACEOF
19087
19088fi
19089
19090 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19091echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19092if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19094else
19095 ac_check_lib_save_LIBS=$LIBS
19096LIBS="-lgcc $LIBS"
19097cat >conftest.$ac_ext <<_ACEOF
19098/* confdefs.h. */
19099_ACEOF
19100cat confdefs.h >>conftest.$ac_ext
19101cat >>conftest.$ac_ext <<_ACEOF
19102/* end confdefs.h. */
19103
19104/* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19107#ifdef __cplusplus
19108extern "C"
19109#endif
19110char __floatdidf ();
19111int
19112main ()
19113{
19114return __floatdidf ();
19115 ;
19116 return 0;
19117}
19118_ACEOF
19119rm -f conftest.$ac_objext conftest$ac_exeext
19120if { (ac_try="$ac_link"
19121case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19124esac
19125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>conftest.er1
19127 ac_status=$?
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19134 { (case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19137esac
19138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_try") 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest$ac_exeext'
19144 { (case "(($ac_try" in
19145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146 *) ac_try_echo=$ac_try;;
19147esac
19148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149 (eval "$ac_try") 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_cv_lib_gcc___floatdidf=yes
19154else
19155 echo "$as_me: failed program was:" >&5
19156sed 's/^/| /' conftest.$ac_ext >&5
19157
19158 ac_cv_lib_gcc___floatdidf=no
19159fi
19160
19161rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163LIBS=$ac_check_lib_save_LIBS
19164fi
19165{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19166echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19167if test $ac_cv_lib_gcc___floatdidf = yes; then
19168
19169cat >>confdefs.h <<\_ACEOF
19170#define HAVE___FLOATDIDF 1
19171_ACEOF
19172
19173fi
19174
19175 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19176echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19177if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19179else
19180 ac_check_lib_save_LIBS=$LIBS
19181LIBS="-lgcc $LIBS"
19182cat >conftest.$ac_ext <<_ACEOF
19183/* confdefs.h. */
19184_ACEOF
19185cat confdefs.h >>conftest.$ac_ext
19186cat >>conftest.$ac_ext <<_ACEOF
19187/* end confdefs.h. */
19188
19189/* Override any GCC internal prototype to avoid an error.
19190 Use char because int might match the return type of a GCC
19191 builtin and then its argument prototype would still apply. */
19192#ifdef __cplusplus
19193extern "C"
19194#endif
19195char __lshrdi3 ();
19196int
19197main ()
19198{
19199return __lshrdi3 ();
19200 ;
19201 return 0;
19202}
19203_ACEOF
19204rm -f conftest.$ac_objext conftest$ac_exeext
19205if { (ac_try="$ac_link"
19206case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19209esac
19210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_link") 2>conftest.er1
19212 ac_status=$?
19213 grep -v '^ *+' conftest.er1 >conftest.err
19214 rm -f conftest.er1
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19219 { (case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19222esac
19223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_try") 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest$ac_exeext'
19229 { (case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19232esac
19233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_try") 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_lib_gcc___lshrdi3=yes
19239else
19240 echo "$as_me: failed program was:" >&5
19241sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 ac_cv_lib_gcc___lshrdi3=no
19244fi
19245
19246rm -f core conftest.err conftest.$ac_objext \
19247 conftest$ac_exeext conftest.$ac_ext
19248LIBS=$ac_check_lib_save_LIBS
19249fi
19250{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19251echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19252if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19253
19254cat >>confdefs.h <<\_ACEOF
19255#define HAVE___LSHRDI3 1
19256_ACEOF
19257
19258fi
19259
19260 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19261echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19262if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19264else
19265 ac_check_lib_save_LIBS=$LIBS
19266LIBS="-lgcc $LIBS"
19267cat >conftest.$ac_ext <<_ACEOF
19268/* confdefs.h. */
19269_ACEOF
19270cat confdefs.h >>conftest.$ac_ext
19271cat >>conftest.$ac_ext <<_ACEOF
19272/* end confdefs.h. */
19273
19274/* Override any GCC internal prototype to avoid an error.
19275 Use char because int might match the return type of a GCC
19276 builtin and then its argument prototype would still apply. */
19277#ifdef __cplusplus
19278extern "C"
19279#endif
19280char __moddi3 ();
19281int
19282main ()
19283{
19284return __moddi3 ();
19285 ;
19286 return 0;
19287}
19288_ACEOF
19289rm -f conftest.$ac_objext conftest$ac_exeext
19290if { (ac_try="$ac_link"
19291case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294esac
19295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_link") 2>conftest.er1
19297 ac_status=$?
19298 grep -v '^ *+' conftest.er1 >conftest.err
19299 rm -f conftest.er1
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } &&
19303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19304 { (case "(($ac_try" in
19305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306 *) ac_try_echo=$ac_try;;
19307esac
19308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19309 (eval "$ac_try") 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; } &&
19313 { ac_try='test -s conftest$ac_exeext'
19314 { (case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19317esac
19318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_try") 2>&5
19320 ac_status=$?
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323 ac_cv_lib_gcc___moddi3=yes
19324else
19325 echo "$as_me: failed program was:" >&5
19326sed 's/^/| /' conftest.$ac_ext >&5
19327
19328 ac_cv_lib_gcc___moddi3=no
19329fi
19330
19331rm -f core conftest.err conftest.$ac_objext \
19332 conftest$ac_exeext conftest.$ac_ext
19333LIBS=$ac_check_lib_save_LIBS
19334fi
19335{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19336echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19337if test $ac_cv_lib_gcc___moddi3 = yes; then
19338
19339cat >>confdefs.h <<\_ACEOF
19340#define HAVE___MODDI3 1
19341_ACEOF
19342
19343fi
19344
19345 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19346echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19347if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19349else
19350 ac_check_lib_save_LIBS=$LIBS
19351LIBS="-lgcc $LIBS"
19352cat >conftest.$ac_ext <<_ACEOF
19353/* confdefs.h. */
19354_ACEOF
19355cat confdefs.h >>conftest.$ac_ext
19356cat >>conftest.$ac_ext <<_ACEOF
19357/* end confdefs.h. */
19358
19359/* Override any GCC internal prototype to avoid an error.
19360 Use char because int might match the return type of a GCC
19361 builtin and then its argument prototype would still apply. */
19362#ifdef __cplusplus
19363extern "C"
19364#endif
19365char __udivdi3 ();
19366int
19367main ()
19368{
19369return __udivdi3 ();
19370 ;
19371 return 0;
19372}
19373_ACEOF
19374rm -f conftest.$ac_objext conftest$ac_exeext
19375if { (ac_try="$ac_link"
19376case "(($ac_try" in
19377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378 *) ac_try_echo=$ac_try;;
19379esac
19380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381 (eval "$ac_link") 2>conftest.er1
19382 ac_status=$?
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19389 { (case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19392esac
19393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_try") 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; } &&
19398 { ac_try='test -s conftest$ac_exeext'
19399 { (case "(($ac_try" in
19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401 *) ac_try_echo=$ac_try;;
19402esac
19403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404 (eval "$ac_try") 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408 ac_cv_lib_gcc___udivdi3=yes
19409else
19410 echo "$as_me: failed program was:" >&5
19411sed 's/^/| /' conftest.$ac_ext >&5
19412
19413 ac_cv_lib_gcc___udivdi3=no
19414fi
19415
19416rm -f core conftest.err conftest.$ac_objext \
19417 conftest$ac_exeext conftest.$ac_ext
19418LIBS=$ac_check_lib_save_LIBS
19419fi
19420{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19421echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19422if test $ac_cv_lib_gcc___udivdi3 = yes; then
19423
19424cat >>confdefs.h <<\_ACEOF
19425#define HAVE___UDIVDI3 1
19426_ACEOF
19427
19428fi
19429
19430 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19431echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19432if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19434else
19435 ac_check_lib_save_LIBS=$LIBS
19436LIBS="-lgcc $LIBS"
19437cat >conftest.$ac_ext <<_ACEOF
19438/* confdefs.h. */
19439_ACEOF
19440cat confdefs.h >>conftest.$ac_ext
19441cat >>conftest.$ac_ext <<_ACEOF
19442/* end confdefs.h. */
19443
19444/* Override any GCC internal prototype to avoid an error.
19445 Use char because int might match the return type of a GCC
19446 builtin and then its argument prototype would still apply. */
19447#ifdef __cplusplus
19448extern "C"
19449#endif
19450char __umoddi3 ();
19451int
19452main ()
19453{
19454return __umoddi3 ();
19455 ;
19456 return 0;
19457}
19458_ACEOF
19459rm -f conftest.$ac_objext conftest$ac_exeext
19460if { (ac_try="$ac_link"
19461case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19464esac
19465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_link") 2>conftest.er1
19467 ac_status=$?
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
19473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19474 { (case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19477esac
19478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479 (eval "$ac_try") 2>&5
19480 ac_status=$?
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; } &&
19483 { ac_try='test -s conftest$ac_exeext'
19484 { (case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19487esac
19488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_try") 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; }; then
19493 ac_cv_lib_gcc___umoddi3=yes
19494else
19495 echo "$as_me: failed program was:" >&5
19496sed 's/^/| /' conftest.$ac_ext >&5
19497
19498 ac_cv_lib_gcc___umoddi3=no
19499fi
19500
19501rm -f core conftest.err conftest.$ac_objext \
19502 conftest$ac_exeext conftest.$ac_ext
19503LIBS=$ac_check_lib_save_LIBS
19504fi
19505{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19506echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19507if test $ac_cv_lib_gcc___umoddi3 = yes; then
19508
19509cat >>confdefs.h <<\_ACEOF
19510#define HAVE___UMODDI3 1
19511_ACEOF
19512
19513fi
19514
19515
19516 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19517echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19518if test "${ac_cv_lib_gcc___main+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19520else
19521 ac_check_lib_save_LIBS=$LIBS
19522LIBS="-lgcc $LIBS"
19523cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
19529
19530/* Override any GCC internal prototype to avoid an error.
19531 Use char because int might match the return type of a GCC
19532 builtin and then its argument prototype would still apply. */
19533#ifdef __cplusplus
19534extern "C"
19535#endif
19536char __main ();
19537int
19538main ()
19539{
19540return __main ();
19541 ;
19542 return 0;
19543}
19544_ACEOF
19545rm -f conftest.$ac_objext conftest$ac_exeext
19546if { (ac_try="$ac_link"
19547case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19550esac
19551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_link") 2>conftest.er1
19553 ac_status=$?
19554 grep -v '^ *+' conftest.er1 >conftest.err
19555 rm -f conftest.er1
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
19559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19560 { (case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19563esac
19564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_try") 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; } &&
19569 { ac_try='test -s conftest$ac_exeext'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19573esac
19574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_cv_lib_gcc___main=yes
19580else
19581 echo "$as_me: failed program was:" >&5
19582sed 's/^/| /' conftest.$ac_ext >&5
19583
19584 ac_cv_lib_gcc___main=no
19585fi
19586
19587rm -f core conftest.err conftest.$ac_objext \
19588 conftest$ac_exeext conftest.$ac_ext
19589LIBS=$ac_check_lib_save_LIBS
19590fi
19591{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19592echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19593if test $ac_cv_lib_gcc___main = yes; then
19594
19595cat >>confdefs.h <<\_ACEOF
19596#define HAVE___MAIN 1
19597_ACEOF
19598
19599fi
19600
19601 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19602echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19603if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19605else
19606 ac_check_lib_save_LIBS=$LIBS
19607LIBS="-lgcc $LIBS"
19608cat >conftest.$ac_ext <<_ACEOF
19609/* confdefs.h. */
19610_ACEOF
19611cat confdefs.h >>conftest.$ac_ext
19612cat >>conftest.$ac_ext <<_ACEOF
19613/* end confdefs.h. */
19614
19615/* Override any GCC internal prototype to avoid an error.
19616 Use char because int might match the return type of a GCC
19617 builtin and then its argument prototype would still apply. */
19618#ifdef __cplusplus
19619extern "C"
19620#endif
19621char __cmpdi2 ();
19622int
19623main ()
19624{
19625return __cmpdi2 ();
19626 ;
19627 return 0;
19628}
19629_ACEOF
19630rm -f conftest.$ac_objext conftest$ac_exeext
19631if { (ac_try="$ac_link"
19632case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19635esac
19636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_link") 2>conftest.er1
19638 ac_status=$?
19639 grep -v '^ *+' conftest.er1 >conftest.err
19640 rm -f conftest.er1
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
19644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19645 { (case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19648esac
19649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_try") 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest$ac_exeext'
19655 { (case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19658esac
19659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_try") 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_cv_lib_gcc___cmpdi2=yes
19665else
19666 echo "$as_me: failed program was:" >&5
19667sed 's/^/| /' conftest.$ac_ext >&5
19668
19669 ac_cv_lib_gcc___cmpdi2=no
19670fi
19671
19672rm -f core conftest.err conftest.$ac_objext \
19673 conftest$ac_exeext conftest.$ac_ext
19674LIBS=$ac_check_lib_save_LIBS
19675fi
19676{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19677echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19678if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19679
19680cat >>confdefs.h <<\_ACEOF
19681#define HAVE___CMPDI2 1
19682_ACEOF
19683
19684fi
19685
19686fi
19687
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019688if test "$llvm_cv_os_type" = "MingW" ; then
19689 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19690echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19691 cat >conftest.$ac_ext <<_ACEOF
19692#include <windows.h>
19693#include <imagehlp.h>
19694extern void foo(PENUMLOADED_MODULES_CALLBACK);
19695extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19696_ACEOF
19697rm -f conftest.$ac_objext
19698if { (ac_try="$ac_compile"
19699case "(($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_compile") 2>conftest.er1
19705 ac_status=$?
19706 grep -v '^ *+' conftest.er1 >conftest.err
19707 rm -f conftest.er1
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
19711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19712 { (case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19715esac
19716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_try") 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest.$ac_objext'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19725esac
19726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731
19732 { echo "$as_me:$LINENO: result: yes" >&5
19733echo "${ECHO_T}yes" >&6; }
19734 llvm_cv_win32_elmcb_pcstr="PCSTR"
19735
19736else
19737 echo "$as_me: failed program was:" >&5
19738sed 's/^/| /' conftest.$ac_ext >&5
19739
19740
19741 { echo "$as_me:$LINENO: result: no" >&5
19742echo "${ECHO_T}no" >&6; }
19743 llvm_cv_win32_elmcb_pcstr="PSTR"
19744
19745fi
19746
19747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19748
19749cat >>confdefs.h <<_ACEOF
19750#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19751_ACEOF
19752
19753fi
19754
Torok Edwin871384f2010-01-26 08:50:50 +000019755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019756{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19757echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19758if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019760else
Reid Spencera773bd52006-08-04 18:18:08 +000019761 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019762ac_cpp='$CXXCPP $CPPFLAGS'
19763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019767 cat >conftest.$ac_ext <<_ACEOF
19768/* confdefs.h. */
19769_ACEOF
19770cat confdefs.h >>conftest.$ac_ext
19771cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019772/* end confdefs.h. */
19773#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019774int
19775main ()
19776{
19777float f; isnan(f);
19778 ;
19779 return 0;
19780}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019781_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019782rm -f conftest.$ac_objext
19783if { (ac_try="$ac_compile"
19784case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19787esac
19788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19790 ac_status=$?
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19797 { (case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800esac
19801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_try") 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; } &&
19806 { ac_try='test -s conftest.$ac_objext'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19810esac
19811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019816 ac_cv_func_isnan_in_math_h=yes
19817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019818 echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019823
Reid Spencera773bd52006-08-04 18:18:08 +000019824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019825 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019826ac_cpp='$CPP $CPPFLAGS'
19827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829ac_compiler_gnu=$ac_cv_c_compiler_gnu
19830
19831fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019832{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19833echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019834
19835
19836if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019838cat >>confdefs.h <<\_ACEOF
19839#define HAVE_ISNAN_IN_MATH_H 1
19840_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019841
Reid Spencerabec8f92004-10-27 23:03:44 +000019842fi
19843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019844{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19845echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19846if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019848else
Reid Spencera773bd52006-08-04 18:18:08 +000019849 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019850ac_cpp='$CXXCPP $CPPFLAGS'
19851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019855 cat >conftest.$ac_ext <<_ACEOF
19856/* confdefs.h. */
19857_ACEOF
19858cat confdefs.h >>conftest.$ac_ext
19859cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019860/* end confdefs.h. */
19861#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019862int
19863main ()
19864{
19865float f; isnan(f);
19866 ;
19867 return 0;
19868}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019869_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019870rm -f conftest.$ac_objext
19871if { (ac_try="$ac_compile"
19872case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875esac
19876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_compile") 2>conftest.er1
19878 ac_status=$?
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19885 { (case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19888esac
19889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_try") 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest.$ac_objext'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898esac
19899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019904 ac_cv_func_isnan_in_cmath=yes
19905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019906 echo "$as_me: failed program was:" >&5
19907sed 's/^/| /' conftest.$ac_ext >&5
19908
19909 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019911
Reid Spencera773bd52006-08-04 18:18:08 +000019912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019913 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019914ac_cpp='$CPP $CPPFLAGS'
19915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19917ac_compiler_gnu=$ac_cv_c_compiler_gnu
19918
19919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019920{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19921echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019922
19923if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019925cat >>confdefs.h <<\_ACEOF
19926#define HAVE_ISNAN_IN_CMATH 1
19927_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019928
Reid Spencerabec8f92004-10-27 23:03:44 +000019929fi
19930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019931{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19932echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19933if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019935else
Reid Spencera773bd52006-08-04 18:18:08 +000019936 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019937ac_cpp='$CXXCPP $CPPFLAGS'
19938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019942 cat >conftest.$ac_ext <<_ACEOF
19943/* confdefs.h. */
19944_ACEOF
19945cat confdefs.h >>conftest.$ac_ext
19946cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019947/* end confdefs.h. */
19948#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019949int
19950main ()
19951{
19952float f; std::isnan(f);
19953 ;
19954 return 0;
19955}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019956_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019957rm -f conftest.$ac_objext
19958if { (ac_try="$ac_compile"
19959case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19962esac
19963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_compile") 2>conftest.er1
19965 ac_status=$?
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19972 { (case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975esac
19976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_try") 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest.$ac_objext'
19982 { (case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19985esac
19986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_try") 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019991 ac_cv_func_std_isnan_in_cmath=yes
19992else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019993 echo "$as_me: failed program was:" >&5
19994sed 's/^/| /' conftest.$ac_ext >&5
19995
19996 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019997fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019998
Reid Spencera773bd52006-08-04 18:18:08 +000019999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020000 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020001ac_cpp='$CPP $CPPFLAGS'
20002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20004ac_compiler_gnu=$ac_cv_c_compiler_gnu
20005
20006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020007{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20008echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020009
20010if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020012cat >>confdefs.h <<\_ACEOF
20013#define HAVE_STD_ISNAN_IN_CMATH 1
20014_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020015
Reid Spencerabec8f92004-10-27 23:03:44 +000020016fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020017
20018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020019{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20020echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20021if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020023else
Reid Spencera773bd52006-08-04 18:18:08 +000020024 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020025ac_cpp='$CXXCPP $CPPFLAGS'
20026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020030 cat >conftest.$ac_ext <<_ACEOF
20031/* confdefs.h. */
20032_ACEOF
20033cat confdefs.h >>conftest.$ac_ext
20034cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020035/* end confdefs.h. */
20036#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020037int
20038main ()
20039{
20040float f; isinf(f);
20041 ;
20042 return 0;
20043}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020044_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020045rm -f conftest.$ac_objext
20046if { (ac_try="$ac_compile"
20047case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20050esac
20051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_compile") 2>conftest.er1
20053 ac_status=$?
20054 grep -v '^ *+' conftest.er1 >conftest.err
20055 rm -f conftest.er1
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } &&
20059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20060 { (case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20063esac
20064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_try") 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; } &&
20069 { ac_try='test -s conftest.$ac_objext'
20070 { (case "(($ac_try" in
20071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20073esac
20074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_try") 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020079 ac_cv_func_isinf_in_math_h=yes
20080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020081 echo "$as_me: failed program was:" >&5
20082sed 's/^/| /' conftest.$ac_ext >&5
20083
20084 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020086
Reid Spencera773bd52006-08-04 18:18:08 +000020087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020088 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020089ac_cpp='$CPP $CPPFLAGS'
20090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20092ac_compiler_gnu=$ac_cv_c_compiler_gnu
20093
20094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020095{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20096echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020097
20098if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020100cat >>confdefs.h <<\_ACEOF
20101#define HAVE_ISINF_IN_MATH_H 1
20102_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020103
Reid Spencerabec8f92004-10-27 23:03:44 +000020104fi
20105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020106{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20107echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20108if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020110else
Reid Spencera773bd52006-08-04 18:18:08 +000020111 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020112ac_cpp='$CXXCPP $CPPFLAGS'
20113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020117 cat >conftest.$ac_ext <<_ACEOF
20118/* confdefs.h. */
20119_ACEOF
20120cat confdefs.h >>conftest.$ac_ext
20121cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020122/* end confdefs.h. */
20123#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020124int
20125main ()
20126{
20127float f; isinf(f);
20128 ;
20129 return 0;
20130}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020131_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020132rm -f conftest.$ac_objext
20133if { (ac_try="$ac_compile"
20134case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20137esac
20138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_compile") 2>conftest.er1
20140 ac_status=$?
20141 grep -v '^ *+' conftest.er1 >conftest.err
20142 rm -f conftest.er1
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
20146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20147 { (case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20150esac
20151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_try") 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; } &&
20156 { ac_try='test -s conftest.$ac_objext'
20157 { (case "(($ac_try" in
20158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20159 *) ac_try_echo=$ac_try;;
20160esac
20161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20162 (eval "$ac_try") 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020166 ac_cv_func_isinf_in_cmath=yes
20167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020168 echo "$as_me: failed program was:" >&5
20169sed 's/^/| /' conftest.$ac_ext >&5
20170
20171 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020173
Reid Spencera773bd52006-08-04 18:18:08 +000020174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020175 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020176ac_cpp='$CPP $CPPFLAGS'
20177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179ac_compiler_gnu=$ac_cv_c_compiler_gnu
20180
20181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020182{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20183echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020184
20185if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020187cat >>confdefs.h <<\_ACEOF
20188#define HAVE_ISINF_IN_CMATH 1
20189_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020190
Reid Spencerabec8f92004-10-27 23:03:44 +000020191fi
20192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020193{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20194echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20195if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020197else
Reid Spencera773bd52006-08-04 18:18:08 +000020198 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020199ac_cpp='$CXXCPP $CPPFLAGS'
20200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020204 cat >conftest.$ac_ext <<_ACEOF
20205/* confdefs.h. */
20206_ACEOF
20207cat confdefs.h >>conftest.$ac_ext
20208cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020209/* end confdefs.h. */
20210#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020211int
20212main ()
20213{
20214float f; std::isinf(f)}
20215 ;
20216 return 0;
20217}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020218_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020219rm -f conftest.$ac_objext
20220if { (ac_try="$ac_compile"
20221case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224esac
20225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_compile") 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20234 { (case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20237esac
20238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_try") 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest.$ac_objext'
20244 { (case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247esac
20248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_try") 2>&5
20250 ac_status=$?
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020253 ac_cv_func_std_isinf_in_cmath=yes
20254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020255 echo "$as_me: failed program was:" >&5
20256sed 's/^/| /' conftest.$ac_ext >&5
20257
20258 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020260
Reid Spencera773bd52006-08-04 18:18:08 +000020261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020262 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020263ac_cpp='$CPP $CPPFLAGS'
20264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20266ac_compiler_gnu=$ac_cv_c_compiler_gnu
20267
20268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020269{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20270echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020271
20272if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020274cat >>confdefs.h <<\_ACEOF
20275#define HAVE_STD_ISINF_IN_CMATH 1
20276_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020277
Reid Spencerabec8f92004-10-27 23:03:44 +000020278fi
20279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020280{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20281echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20282if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020284else
Reid Spencera773bd52006-08-04 18:18:08 +000020285 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020286ac_cpp='$CXXCPP $CPPFLAGS'
20287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020291 cat >conftest.$ac_ext <<_ACEOF
20292/* confdefs.h. */
20293_ACEOF
20294cat confdefs.h >>conftest.$ac_ext
20295cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020296/* end confdefs.h. */
20297#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020298int
20299main ()
20300{
20301float f; finite(f);
20302 ;
20303 return 0;
20304}
Brian Gaeked59a6472004-07-21 03:33:58 +000020305_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020306rm -f conftest.$ac_objext
20307if { (ac_try="$ac_compile"
20308case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20311esac
20312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_compile") 2>conftest.er1
20314 ac_status=$?
20315 grep -v '^ *+' conftest.er1 >conftest.err
20316 rm -f conftest.er1
20317 cat conftest.err >&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20321 { (case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20324esac
20325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_try") 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try='test -s conftest.$ac_objext'
20331 { (case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20334esac
20335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_try") 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020340 ac_cv_func_finite_in_ieeefp_h=yes
20341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020342 echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020347
Reid Spencera773bd52006-08-04 18:18:08 +000020348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020349 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020350ac_cpp='$CPP $CPPFLAGS'
20351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20353ac_compiler_gnu=$ac_cv_c_compiler_gnu
20354
20355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020356{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20357echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020358
Brian Gaeke6802b552004-10-28 05:06:45 +000020359if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020361cat >>confdefs.h <<\_ACEOF
20362#define HAVE_FINITE_IN_IEEEFP_H 1
20363_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020364
Reid Spencerabec8f92004-10-27 23:03:44 +000020365fi
20366
20367
20368
Reid Spencer30fe5262007-01-20 07:48:49 +000020369if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020370
20371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020372for ac_header in stdlib.h unistd.h
20373do
20374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380fi
20381ac_res=`eval echo '${'$as_ac_Header'}'`
20382 { echo "$as_me:$LINENO: result: $ac_res" >&5
20383echo "${ECHO_T}$ac_res" >&6; }
20384else
20385 # Is the header compilable?
20386{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20387echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20388cat >conftest.$ac_ext <<_ACEOF
20389/* confdefs.h. */
20390_ACEOF
20391cat confdefs.h >>conftest.$ac_ext
20392cat >>conftest.$ac_ext <<_ACEOF
20393/* end confdefs.h. */
20394$ac_includes_default
20395#include <$ac_header>
20396_ACEOF
20397rm -f conftest.$ac_objext
20398if { (ac_try="$ac_compile"
20399case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402esac
20403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_compile") 2>conftest.er1
20405 ac_status=$?
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20412 { (case "(($ac_try" in
20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414 *) ac_try_echo=$ac_try;;
20415esac
20416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417 (eval "$ac_try") 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; } &&
20421 { ac_try='test -s conftest.$ac_objext'
20422 { (case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20425esac
20426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_try") 2>&5
20428 ac_status=$?
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; }; then
20431 ac_header_compiler=yes
20432else
20433 echo "$as_me: failed program was:" >&5
20434sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020436 ac_header_compiler=no
20437fi
20438
20439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20441echo "${ECHO_T}$ac_header_compiler" >&6; }
20442
20443# Is the header present?
20444{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20446cat >conftest.$ac_ext <<_ACEOF
20447/* confdefs.h. */
20448_ACEOF
20449cat confdefs.h >>conftest.$ac_ext
20450cat >>conftest.$ac_ext <<_ACEOF
20451/* end confdefs.h. */
20452#include <$ac_header>
20453_ACEOF
20454if { (ac_try="$ac_cpp conftest.$ac_ext"
20455case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20458esac
20459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } >/dev/null; then
20467 if test -s conftest.err; then
20468 ac_cpp_err=$ac_c_preproc_warn_flag
20469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20470 else
20471 ac_cpp_err=
20472 fi
20473else
20474 ac_cpp_err=yes
20475fi
20476if test -z "$ac_cpp_err"; then
20477 ac_header_preproc=yes
20478else
20479 echo "$as_me: failed program was:" >&5
20480sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 ac_header_preproc=no
20483fi
20484
20485rm -f conftest.err conftest.$ac_ext
20486{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20487echo "${ECHO_T}$ac_header_preproc" >&6; }
20488
20489# So? What about this header?
20490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20491 yes:no: )
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20496 ac_header_preproc=yes
20497 ;;
20498 no:yes:* )
20499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20511 ( cat <<\_ASBOX
20512## ----------------------------------- ##
20513## Report this to llvmbugs@cs.uiuc.edu ##
20514## ----------------------------------- ##
20515_ASBOX
20516 ) | sed "s/^/$as_me: WARNING: /" >&2
20517 ;;
20518esac
20519{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20523else
20524 eval "$as_ac_Header=\$ac_header_preproc"
20525fi
20526ac_res=`eval echo '${'$as_ac_Header'}'`
20527 { echo "$as_me:$LINENO: result: $ac_res" >&5
20528echo "${ECHO_T}$ac_res" >&6; }
20529
20530fi
20531if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020532 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020534_ACEOF
20535
20536fi
20537
20538done
20539
20540
20541for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020542do
20543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20544{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20546if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20548else
20549 cat >conftest.$ac_ext <<_ACEOF
20550/* confdefs.h. */
20551_ACEOF
20552cat confdefs.h >>conftest.$ac_ext
20553cat >>conftest.$ac_ext <<_ACEOF
20554/* end confdefs.h. */
20555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20557#define $ac_func innocuous_$ac_func
20558
20559/* System header to define __stub macros and hopefully few prototypes,
20560 which can conflict with char $ac_func (); below.
20561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20562 <limits.h> exists even on freestanding compilers. */
20563
20564#ifdef __STDC__
20565# include <limits.h>
20566#else
20567# include <assert.h>
20568#endif
20569
20570#undef $ac_func
20571
20572/* Override any GCC internal prototype to avoid an error.
20573 Use char because int might match the return type of a GCC
20574 builtin and then its argument prototype would still apply. */
20575#ifdef __cplusplus
20576extern "C"
20577#endif
20578char $ac_func ();
20579/* The GNU C library defines this for functions which it implements
20580 to always fail with ENOSYS. Some functions are actually named
20581 something starting with __ and the normal name is an alias. */
20582#if defined __stub_$ac_func || defined __stub___$ac_func
20583choke me
20584#endif
20585
20586int
20587main ()
20588{
20589return $ac_func ();
20590 ;
20591 return 0;
20592}
20593_ACEOF
20594rm -f conftest.$ac_objext conftest$ac_exeext
20595if { (ac_try="$ac_link"
20596case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20599esac
20600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_link") 2>conftest.er1
20602 ac_status=$?
20603 grep -v '^ *+' conftest.er1 >conftest.err
20604 rm -f conftest.er1
20605 cat conftest.err >&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } &&
20608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20609 { (case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20612esac
20613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_try") 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest$ac_exeext'
20619 { (case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20622esac
20623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_try") 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 eval "$as_ac_var=yes"
20629else
20630 echo "$as_me: failed program was:" >&5
20631sed 's/^/| /' conftest.$ac_ext >&5
20632
20633 eval "$as_ac_var=no"
20634fi
20635
20636rm -f core conftest.err conftest.$ac_objext \
20637 conftest$ac_exeext conftest.$ac_ext
20638fi
20639ac_res=`eval echo '${'$as_ac_var'}'`
20640 { echo "$as_me:$LINENO: result: $ac_res" >&5
20641echo "${ECHO_T}$ac_res" >&6; }
20642if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020643 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020645_ACEOF
20646
20647fi
20648done
20649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020650{ echo "$as_me:$LINENO: checking for working mmap" >&5
20651echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20652if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020655 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020656 ac_cv_func_mmap_fixed_mapped=no
20657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020658 cat >conftest.$ac_ext <<_ACEOF
20659/* confdefs.h. */
20660_ACEOF
20661cat confdefs.h >>conftest.$ac_ext
20662cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020663/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020664$ac_includes_default
20665/* malloc might have been renamed as rpl_malloc. */
20666#undef malloc
20667
20668/* Thanks to Mike Haertel and Jim Avera for this test.
20669 Here is a matrix of mmap possibilities:
20670 mmap private not fixed
20671 mmap private fixed at somewhere currently unmapped
20672 mmap private fixed at somewhere already mapped
20673 mmap shared not fixed
20674 mmap shared fixed at somewhere currently unmapped
20675 mmap shared fixed at somewhere already mapped
20676 For private mappings, we should verify that changes cannot be read()
20677 back from the file, nor mmap's back from the file at a different
20678 address. (There have been systems where private was not correctly
20679 implemented like the infamous i386 svr4.0, and systems where the
20680 VM page cache was not coherent with the file system buffer cache
20681 like early versions of FreeBSD and possibly contemporary NetBSD.)
20682 For shared mappings, we should conversely verify that changes get
20683 propagated back to all the places they're supposed to be.
20684
20685 Grep wants private fixed already mapped.
20686 The main things grep needs to know about mmap are:
20687 * does it exist and is it safe to write into the mmap'd area
20688 * how to use it (BSD variants) */
20689
20690#include <fcntl.h>
20691#include <sys/mman.h>
20692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020693#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020694char *malloc ();
20695#endif
20696
20697/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020698#if !HAVE_GETPAGESIZE
20699/* Assume that all systems that can run configure have sys/param.h. */
20700# if !HAVE_SYS_PARAM_H
20701# define HAVE_SYS_PARAM_H 1
20702# endif
20703
John Criswell7a73b802003-06-30 21:59:07 +000020704# ifdef _SC_PAGESIZE
20705# define getpagesize() sysconf(_SC_PAGESIZE)
20706# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020707# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020708# include <sys/param.h>
20709# ifdef EXEC_PAGESIZE
20710# define getpagesize() EXEC_PAGESIZE
20711# else /* no EXEC_PAGESIZE */
20712# ifdef NBPG
20713# define getpagesize() NBPG * CLSIZE
20714# ifndef CLSIZE
20715# define CLSIZE 1
20716# endif /* no CLSIZE */
20717# else /* no NBPG */
20718# ifdef NBPC
20719# define getpagesize() NBPC
20720# else /* no NBPC */
20721# ifdef PAGESIZE
20722# define getpagesize() PAGESIZE
20723# endif /* PAGESIZE */
20724# endif /* no NBPC */
20725# endif /* no NBPG */
20726# endif /* no EXEC_PAGESIZE */
20727# else /* no HAVE_SYS_PARAM_H */
20728# define getpagesize() 8192 /* punt totally */
20729# endif /* no HAVE_SYS_PARAM_H */
20730# endif /* no _SC_PAGESIZE */
20731
20732#endif /* no HAVE_GETPAGESIZE */
20733
20734int
20735main ()
20736{
20737 char *data, *data2, *data3;
20738 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020739 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020740
20741 pagesize = getpagesize ();
20742
20743 /* First, make a file with some known garbage in it. */
20744 data = (char *) malloc (pagesize);
20745 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020746 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020747 for (i = 0; i < pagesize; ++i)
20748 *(data + i) = rand ();
20749 umask (0);
20750 fd = creat ("conftest.mmap", 0600);
20751 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020752 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020753 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020754 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020755 close (fd);
20756
20757 /* Next, try to mmap the file at a fixed address which already has
20758 something else allocated at it. If we can, also make sure that
20759 we see the same garbage. */
20760 fd = open ("conftest.mmap", O_RDWR);
20761 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020762 return 1;
20763 data2 = (char *) malloc (2 * pagesize);
20764 if (!data2)
20765 return 1;
20766 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020767 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020768 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020769 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020770 for (i = 0; i < pagesize; ++i)
20771 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020772 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020773
20774 /* Finally, make sure that changes to the mapped area do not
20775 percolate back to the file as seen by read(). (This is a bug on
20776 some variants of i386 svr4.0.) */
20777 for (i = 0; i < pagesize; ++i)
20778 *(data2 + i) = *(data2 + i) + 1;
20779 data3 = (char *) malloc (pagesize);
20780 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020781 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020782 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020783 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020784 for (i = 0; i < pagesize; ++i)
20785 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020786 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020787 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020788 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020789}
20790_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020791rm -f conftest$ac_exeext
20792if { (ac_try="$ac_link"
20793case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796esac
20797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20802 { (case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20805esac
20806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_try") 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020811 ac_cv_func_mmap_fixed_mapped=yes
20812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020813 echo "$as_me: program exited with status $ac_status" >&5
20814echo "$as_me: failed program was:" >&5
20815sed 's/^/| /' conftest.$ac_ext >&5
20816
20817( exit $ac_status )
20818ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020820rm -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 +000020821fi
Reid Spencera773bd52006-08-04 18:18:08 +000020822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020823
John Criswell7a73b802003-06-30 21:59:07 +000020824fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020825{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20826echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020827if test $ac_cv_func_mmap_fixed_mapped = yes; then
20828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020829cat >>confdefs.h <<\_ACEOF
20830#define HAVE_MMAP 1
20831_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020832
20833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020834rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020836 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20837echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20838if test "${ac_cv_func_mmap_file+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020840else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020841 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020842ac_cpp='$CPP $CPPFLAGS'
20843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845ac_compiler_gnu=$ac_cv_c_compiler_gnu
20846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020847 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020848 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020850 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020852 /* confdefs.h. */
20853_ACEOF
20854cat confdefs.h >>conftest.$ac_ext
20855cat >>conftest.$ac_ext <<_ACEOF
20856/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020857
John Criswell7a73b802003-06-30 21:59:07 +000020858#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020859#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020860#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020861
20862int
20863main ()
20864{
John Criswell7a73b802003-06-30 21:59:07 +000020865
20866 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020867 fd = creat ("foo",0777);
20868 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20869 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020870 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020871 ;
20872 return 0;
20873}
John Criswell7a73b802003-06-30 21:59:07 +000020874_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020875rm -f conftest$ac_exeext
20876if { (ac_try="$ac_link"
20877case "(($ac_try" in
20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20880esac
20881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_link") 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20886 { (case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889esac
20890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_try") 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020895 ac_cv_func_mmap_file=yes
20896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020897 echo "$as_me: program exited with status $ac_status" >&5
20898echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901( exit $ac_status )
20902ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020904rm -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 +000020905fi
Reid Spencera773bd52006-08-04 18:18:08 +000020906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020907
John Criswell7a73b802003-06-30 21:59:07 +000020908 ac_ext=c
20909ac_cpp='$CPP $CPPFLAGS'
20910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912ac_compiler_gnu=$ac_cv_c_compiler_gnu
20913
20914
20915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020916{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20917echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020918if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020920cat >>confdefs.h <<\_ACEOF
20921#define HAVE_MMAP_FILE
20922_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020923
20924 MMAP_FILE=yes
20925
20926fi
20927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020928 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20929echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20930if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020932else
Reid Spencer582a23c2004-12-29 07:07:57 +000020933 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020934 ac_cv_need_dev_zero_for_mmap=yes
20935 else
20936 ac_cv_need_dev_zero_for_mmap=no
20937 fi
20938
20939fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020940{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20941echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020942if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020944cat >>confdefs.h <<\_ACEOF
20945#define NEED_DEV_ZERO_FOR_MMAP 1
20946_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020947
20948fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020949
Reid Spencer30fe5262007-01-20 07:48:49 +000020950 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20951 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020952 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20953echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020954 fi
20955 if test "$ac_cv_func_mmap_file" = "no"
20956 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020957 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20958echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020959 fi
John Criswellb13092b2003-07-22 21:00:24 +000020960fi
John Criswell7a73b802003-06-30 21:59:07 +000020961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020962{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20963echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020964ac_ext=cpp
20965ac_cpp='$CXXCPP $CPPFLAGS'
20966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020970cat >conftest.$ac_ext <<_ACEOF
20971/* confdefs.h. */
20972_ACEOF
20973cat confdefs.h >>conftest.$ac_ext
20974cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020975/* end confdefs.h. */
20976int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020977 volatile unsigned long val = 1;
20978 __sync_synchronize();
20979 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020980 __sync_add_and_fetch(&val, 1);
20981 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020982 return 0;
20983 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020984
20985_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020986rm -f conftest.$ac_objext conftest$ac_exeext
20987if { (ac_try="$ac_link"
20988case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991esac
20992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>conftest.er1
20994 ac_status=$?
20995 grep -v '^ *+' conftest.er1 >conftest.err
20996 rm -f conftest.er1
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } &&
21000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21001 { (case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21004esac
21005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_try") 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; } &&
21010 { ac_try='test -s conftest$ac_exeext'
21011 { (case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21014esac
21015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_try") 2>&5
21017 ac_status=$?
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000021020 ac_ext=c
21021ac_cpp='$CPP $CPPFLAGS'
21022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21024ac_compiler_gnu=$ac_cv_c_compiler_gnu
21025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021026 { echo "$as_me:$LINENO: result: yes" >&5
21027echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000021028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021029cat >>confdefs.h <<\_ACEOF
21030#define LLVM_MULTITHREADED 1
21031_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000021032
Owen Andersond4b272b2009-05-18 23:58:51 +000021033else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021034 echo "$as_me: failed program was:" >&5
21035sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000021036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021037 { echo "$as_me:$LINENO: result: no" >&5
21038echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000021039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021040cat >>confdefs.h <<\_ACEOF
21041#define LLVM_MULTITHREADED 0
21042_ACEOF
21043
21044 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21045echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000021046fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021047
Owen Andersond4b272b2009-05-18 23:58:51 +000021048rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021049 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000021050
John Criswell7a73b802003-06-30 21:59:07 +000021051
Nick Lewycky4372e692009-09-29 06:18:23 +000021052if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021053 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21054echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21055if test "${llvm_cv_linux_mixed+set}" = set; then
21056 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000021057else
21058 ac_ext=c
21059ac_cpp='$CPP $CPPFLAGS'
21060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21062ac_compiler_gnu=$ac_cv_c_compiler_gnu
21063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021064 cat >conftest.$ac_ext <<_ACEOF
21065/* confdefs.h. */
21066_ACEOF
21067cat confdefs.h >>conftest.$ac_ext
21068cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000021069/* end confdefs.h. */
21070#ifndef __x86_64__
21071 error: Not x86-64 even if uname says so!
21072 #endif
21073
21074int
21075main ()
21076{
21077
21078 ;
21079 return 0;
21080}
21081_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021082rm -f conftest.$ac_objext
21083if { (ac_try="$ac_compile"
21084case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21087esac
21088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_compile") 2>conftest.er1
21090 ac_status=$?
21091 grep -v '^ *+' conftest.er1 >conftest.err
21092 rm -f conftest.er1
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21097 { (case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21100esac
21101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_try") 2>&5
21103 ac_status=$?
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try='test -s conftest.$ac_objext'
21107 { (case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21110esac
21111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_try") 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000021116 llvm_cv_linux_mixed=no
21117else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021118 echo "$as_me: failed program was:" >&5
21119sed 's/^/| /' conftest.$ac_ext >&5
21120
21121 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000021122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021123
Nick Lewycky4372e692009-09-29 06:18:23 +000021124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 ac_ext=c
21126ac_cpp='$CPP $CPPFLAGS'
21127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129ac_compiler_gnu=$ac_cv_c_compiler_gnu
21130
21131
21132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021133{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21134echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000021135
21136 if test "$llvm_cv_linux_mixed" = "yes"; then
21137 llvm_cv_target_arch="x86"
21138 ARCH="x86"
21139 fi
21140fi
21141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021142
Reid Spencer9372f152007-07-30 20:13:24 +000021143for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021144do
21145as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21146{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21147echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21148if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21150else
21151 cat >conftest.$ac_ext <<_ACEOF
21152/* confdefs.h. */
21153_ACEOF
21154cat confdefs.h >>conftest.$ac_ext
21155cat >>conftest.$ac_ext <<_ACEOF
21156/* end confdefs.h. */
21157/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21159#define $ac_func innocuous_$ac_func
21160
21161/* System header to define __stub macros and hopefully few prototypes,
21162 which can conflict with char $ac_func (); below.
21163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21164 <limits.h> exists even on freestanding compilers. */
21165
21166#ifdef __STDC__
21167# include <limits.h>
21168#else
21169# include <assert.h>
21170#endif
21171
21172#undef $ac_func
21173
21174/* Override any GCC internal prototype to avoid an error.
21175 Use char because int might match the return type of a GCC
21176 builtin and then its argument prototype would still apply. */
21177#ifdef __cplusplus
21178extern "C"
21179#endif
21180char $ac_func ();
21181/* The GNU C library defines this for functions which it implements
21182 to always fail with ENOSYS. Some functions are actually named
21183 something starting with __ and the normal name is an alias. */
21184#if defined __stub_$ac_func || defined __stub___$ac_func
21185choke me
21186#endif
21187
21188int
21189main ()
21190{
21191return $ac_func ();
21192 ;
21193 return 0;
21194}
21195_ACEOF
21196rm -f conftest.$ac_objext conftest$ac_exeext
21197if { (ac_try="$ac_link"
21198case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21201esac
21202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_link") 2>conftest.er1
21204 ac_status=$?
21205 grep -v '^ *+' conftest.er1 >conftest.err
21206 rm -f conftest.er1
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21211 { (case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21214esac
21215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_try") 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; } &&
21220 { ac_try='test -s conftest$ac_exeext'
21221 { (case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21224esac
21225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_try") 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 eval "$as_ac_var=yes"
21231else
21232 echo "$as_me: failed program was:" >&5
21233sed 's/^/| /' conftest.$ac_ext >&5
21234
21235 eval "$as_ac_var=no"
21236fi
21237
21238rm -f core conftest.err conftest.$ac_objext \
21239 conftest$ac_exeext conftest.$ac_ext
21240fi
21241ac_res=`eval echo '${'$as_ac_var'}'`
21242 { echo "$as_me:$LINENO: result: $ac_res" >&5
21243echo "${ECHO_T}$ac_res" >&6; }
21244if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021245 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021247_ACEOF
21248
21249fi
21250done
21251
21252
Tobias Grossera84b5672010-11-10 16:31:34 +000021253{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
21254echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
21255if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21257else
21258 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000021259if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000021260 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000021261 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000021262 if test $? -eq 0 ; then
21263 llvm_cv_llvmgcc_dragonegg="yes"
21264 fi
21265 rm conftest.c
21266fi
21267fi
21268{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
21269echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
21270
21271if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
21272 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sandsfcc482e2011-05-23 16:50:29 +000021273 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
Tobias Grossera84b5672010-11-10 16:31:34 +000021274else
21275 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000021276 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000021277fi
21278
21279
21280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021281{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21282echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
21283if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021285else
21286 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000021287if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021288 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000021289 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000021290 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021291 if test $? -eq 0 ; then
21292 llvm_cv_llvmgcc_sanity="yes"
21293 fi
21294 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000021295fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021297{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
21298echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021299
21300if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021301 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
21302echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000021303 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021304 LLVMCC1=$llvmcc1path
21305
Duncan Sands1526b192010-11-25 17:47:42 +000021306 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021307 LLVMCC1PLUS=$llvmcc1pluspath
21308
Reid Spencer502935f2004-12-22 05:56:56 +000021309 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
21310 LLVMGCCDIR=$llvmgccdir
21311
Duncan Sands1526b192010-11-25 17:47:42 +000021312 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000021313 LLVMGCC_LANGS=$llvmgcclangs
21314
Tobias Grossera84b5672010-11-10 16:31:34 +000021315 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
21316
21317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021318 { echo "$as_me:$LINENO: result: ok" >&5
21319echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000021320fi
21321
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021322SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021323
21324
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021325SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21326
21327
Reid Spencere9de0912004-08-20 09:03:57 +000021328# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021329# information into substitutions that will end up in Makefile.config.in
21330# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000021331if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021332 prefix="/usr/local"
21333fi
Reid Spencere9de0912004-08-20 09:03:57 +000021334eval LLVM_PREFIX="${prefix}";
21335eval LLVM_BINDIR="${prefix}/bin";
21336eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021337eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021338eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021339eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021340eval LLVM_INCLUDEDIR="${prefix}/include";
21341eval LLVM_INFODIR="${prefix}/info";
21342eval LLVM_MANDIR="${prefix}/man";
21343LLVM_CONFIGTIME=`date`
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021355# Place the various directores into the config.h file as #defines so that we
21356# can know about the installation paths within LLVM.
21357
Reid Spencere9de0912004-08-20 09:03:57 +000021358cat >>confdefs.h <<_ACEOF
21359#define LLVM_PREFIX "$LLVM_PREFIX"
21360_ACEOF
21361
21362
21363cat >>confdefs.h <<_ACEOF
21364#define LLVM_BINDIR "$LLVM_BINDIR"
21365_ACEOF
21366
21367
21368cat >>confdefs.h <<_ACEOF
21369#define LLVM_LIBDIR "$LLVM_LIBDIR"
21370_ACEOF
21371
21372
21373cat >>confdefs.h <<_ACEOF
21374#define LLVM_DATADIR "$LLVM_DATADIR"
21375_ACEOF
21376
21377
21378cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021379#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021380_ACEOF
21381
21382
21383cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021384#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021385_ACEOF
21386
21387
21388cat >>confdefs.h <<_ACEOF
21389#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21390_ACEOF
21391
21392
21393cat >>confdefs.h <<_ACEOF
21394#define LLVM_INFODIR "$LLVM_INFODIR"
21395_ACEOF
21396
21397
21398cat >>confdefs.h <<_ACEOF
21399#define LLVM_MANDIR "$LLVM_MANDIR"
21400_ACEOF
21401
21402
21403cat >>confdefs.h <<_ACEOF
21404#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21405_ACEOF
21406
21407
Eric Christopher790e11c2007-12-01 00:34:39 +000021408cat >>confdefs.h <<_ACEOF
21409#define LLVM_HOSTTRIPLE "$host"
21410_ACEOF
21411
21412
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021413# Determine which bindings to build.
21414if test "$BINDINGS_TO_BUILD" = auto ; then
21415 BINDINGS_TO_BUILD=""
21416 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21417 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21418 fi
21419fi
21420BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21421
21422
21423# This isn't really configurey, but it avoids having to repeat the list in
21424# other files.
21425ALL_BINDINGS=ocaml
21426
21427
Gordon Henriksenf0915682007-10-02 16:42:22 +000021428# Do any work necessary to ensure that bindings have what they need.
21429binding_prereqs_failed=0
21430for a_binding in $BINDINGS_TO_BUILD ; do
21431 case "$a_binding" in
21432 ocaml)
21433 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021434 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21435echo "$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 +000021436 binding_prereqs_failed=1
21437 fi
21438 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21440echo "$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 +000021441 binding_prereqs_failed=1
21442 fi
21443 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021444 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21445echo "$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 +000021446 fi
21447 if test "x$with_ocaml_libdir" != xauto ; then
21448 OCAML_LIBDIR=$with_ocaml_libdir
21449
21450 else
21451 ocaml_stdlib="`"$OCAMLC" -where`"
21452 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21453 then
21454 # ocaml stdlib is beneath our prefix; use stdlib
21455 OCAML_LIBDIR=$ocaml_stdlib
21456
21457 else
21458 # ocaml stdlib is outside our prefix; use libdir/ocaml
21459 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21460
21461 fi
21462 fi
21463 ;;
21464 esac
21465done
21466if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021467 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21468echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21469 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021470fi
21471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021472{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21473echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21474if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021476else
21477 ac_ext=cpp
21478ac_cpp='$CXXCPP $CPPFLAGS'
21479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21482
21483 oldcxxflags="$CXXFLAGS"
21484 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485 cat >conftest.$ac_ext <<_ACEOF
21486/* confdefs.h. */
21487_ACEOF
21488cat confdefs.h >>conftest.$ac_ext
21489cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021490/* end confdefs.h. */
21491
21492int
21493main ()
21494{
21495
21496 ;
21497 return 0;
21498}
21499_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021500rm -f conftest.$ac_objext
21501if { (ac_try="$ac_compile"
21502case "(($ac_try" in
21503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504 *) ac_try_echo=$ac_try;;
21505esac
21506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507 (eval "$ac_compile") 2>conftest.er1
21508 ac_status=$?
21509 grep -v '^ *+' conftest.er1 >conftest.err
21510 rm -f conftest.er1
21511 cat conftest.err >&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); } &&
21514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21515 { (case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21518esac
21519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_try") 2>&5
21521 ac_status=$?
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; } &&
21524 { ac_try='test -s conftest.$ac_objext'
21525 { (case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21528esac
21529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_try") 2>&5
21531 ac_status=$?
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021534 llvm_cv_cxx_visibility_inlines_hidden=yes
21535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021536 echo "$as_me: failed program was:" >&5
21537sed 's/^/| /' conftest.$ac_ext >&5
21538
21539 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021541
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543 CXXFLAGS="$oldcxxflags"
21544 ac_ext=c
21545ac_cpp='$CPP $CPPFLAGS'
21546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21548ac_compiler_gnu=$ac_cv_c_compiler_gnu
21549
21550
21551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021552{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21553echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021554if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21555 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21556
21557else
21558 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21559
21560fi
21561
Gordon Henriksenf0915682007-10-02 16:42:22 +000021562
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021563if test "$llvm_cv_link_use_r" = "yes" ; then
21564 RPATH="-Wl,-R"
21565else
21566 RPATH="-Wl,-rpath"
21567fi
21568
21569
21570if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21571 RDYNAMIC="-Wl,-export-dynamic"
21572else
21573 RDYNAMIC=""
21574fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021575
21576
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021577
Eric Christophera1cba682010-08-08 02:44:25 +000021578ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021579
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021580
21581
21582
21583
21584
Douglas Gregor1555a232009-06-16 20:12:29 +000021585ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21586
21587ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21588
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021589ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21590
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021591ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21592
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021593ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021594
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021595
Reid Spencera773bd52006-08-04 18:18:08 +000021596ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021597
21598
Reid Spencerea949cf2006-08-16 00:45:38 +000021599ac_config_files="$ac_config_files llvm.spec"
21600
21601
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021602ac_config_files="$ac_config_files docs/doxygen.cfg"
21603
21604if test -f ${srcdir}/tools/clang/README.txt; then
21605 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21606
21607fi
21608
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021609ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000021610
21611
Reid Spencera773bd52006-08-04 18:18:08 +000021612ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021613
21614
Reid Spencera773bd52006-08-04 18:18:08 +000021615ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021616
Reid Spencera773bd52006-08-04 18:18:08 +000021617ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021618
21619
Reid Spencera773bd52006-08-04 18:18:08 +000021620ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021621
21622
Reid Spencera773bd52006-08-04 18:18:08 +000021623ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021624
21625
Reid Spencera773bd52006-08-04 18:18:08 +000021626ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021627
21628
Reid Spencer8b2e1412006-11-17 03:32:33 +000021629ac_config_commands="$ac_config_commands runtime/Makefile"
21630
21631
Reid Spencera773bd52006-08-04 18:18:08 +000021632ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021633
21634
Reid Spencera773bd52006-08-04 18:18:08 +000021635ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021636
21637
Bill Wendlingf24eb392009-01-04 23:12:30 +000021638ac_config_commands="$ac_config_commands unittests/Makefile"
21639
21640
Reid Spencera773bd52006-08-04 18:18:08 +000021641ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021642
21643
Reid Spencera773bd52006-08-04 18:18:08 +000021644ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021645
21646
Reid Spencera773bd52006-08-04 18:18:08 +000021647ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021648
21649
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021650ac_config_commands="$ac_config_commands bindings/Makefile"
21651
21652
21653ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21654
21655
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021656
John Criswell7a73b802003-06-30 21:59:07 +000021657cat >confcache <<\_ACEOF
21658# This file is a shell script that caches the results of configure
21659# tests run on this system so they can be shared between configure
21660# scripts and configure runs, see configure's option --config-cache.
21661# It is not useful on other systems. If it contains results you don't
21662# want to keep, you may remove or edit it.
21663#
21664# config.status only pays attention to the cache file if you give it
21665# the --recheck option to rerun configure.
21666#
John Criswell0c38eaf2003-09-10 15:17:25 +000021667# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021668# loading this file, other *unset* `ac_cv_foo' will be assigned the
21669# following values.
21670
21671_ACEOF
21672
21673# The following way of writing the cache mishandles newlines in values,
21674# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021675# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021676# Ultrix sh set writes to stderr and can't be redirected directly,
21677# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021678(
21679 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21680 eval ac_val=\$$ac_var
21681 case $ac_val in #(
21682 *${as_nl}*)
21683 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021684 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21685echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021686 esac
21687 case $ac_var in #(
21688 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021689 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021690 esac ;;
21691 esac
21692 done
21693
John Criswell7a73b802003-06-30 21:59:07 +000021694 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021695 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21696 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021697 # `set' does not quote correctly, so add quotes (double-quote
21698 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021699 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021700 "s/'/'\\\\''/g;
21701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021702 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021703 *)
21704 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021706 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021707 esac |
21708 sort
21709) |
John Criswell7a73b802003-06-30 21:59:07 +000021710 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021711 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021712 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021713 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21715 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021716 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21717 :end' >>confcache
21718if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21719 if test -w "$cache_file"; then
21720 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021721 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21722echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021723 cat confcache >$cache_file
21724 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021725 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21726echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021727 fi
21728fi
21729rm -f confcache
21730
21731test "x$prefix" = xNONE && prefix=$ac_default_prefix
21732# Let make expand exec_prefix.
21733test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21734
John Criswell7a73b802003-06-30 21:59:07 +000021735DEFS=-DHAVE_CONFIG_H
21736
John Criswell0c38eaf2003-09-10 15:17:25 +000021737ac_libobjs=
21738ac_ltlibobjs=
21739for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21740 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021741 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021742 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021743 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21744 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021745 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21746 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021747done
21748LIBOBJS=$ac_libobjs
21749
21750LTLIBOBJS=$ac_ltlibobjs
21751
21752
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021753if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021754 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21755Usually this means the macro was only invoked conditionally." >&5
21756echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21757Usually this means the macro was only invoked conditionally." >&2;}
21758 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021759fi
21760if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021761 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21762Usually this means the macro was only invoked conditionally." >&5
21763echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21764Usually this means the macro was only invoked conditionally." >&2;}
21765 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021766fi
John Criswell7a73b802003-06-30 21:59:07 +000021767
21768: ${CONFIG_STATUS=./config.status}
21769ac_clean_files_save=$ac_clean_files
21770ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021771{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21772echo "$as_me: creating $CONFIG_STATUS" >&6;}
21773cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021774#! $SHELL
21775# Generated by $as_me.
21776# Run this file to recreate the current configuration.
21777# Compiler output produced by configure, useful for debugging
21778# configure, is in config.log if it exists.
21779
21780debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021781ac_cs_recheck=false
21782ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021783SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021784_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021786cat >>$CONFIG_STATUS <<\_ACEOF
21787## --------------------- ##
21788## M4sh Initialization. ##
21789## --------------------- ##
21790
21791# Be Bourne compatible
21792if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021793 emulate sh
21794 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021795 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021796 # is contrary to our usage. Disable this feature.
21797 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021798 setopt NO_GLOB_SUBST
21799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021800 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021802BIN_SH=xpg4; export BIN_SH # for Tru64
21803DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021804
John Criswell7a73b802003-06-30 21:59:07 +000021805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021806# PATH needs CR
21807# Avoid depending upon Character Ranges.
21808as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21809as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21810as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21811as_cr_digits='0123456789'
21812as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021813
21814# The user is always right.
21815if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021816 echo "#! /bin/sh" >conf$$.sh
21817 echo "exit 0" >>conf$$.sh
21818 chmod +x conf$$.sh
21819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21820 PATH_SEPARATOR=';'
21821 else
21822 PATH_SEPARATOR=:
21823 fi
21824 rm -f conf$$.sh
21825fi
21826
21827# Support unset when possible.
21828if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21829 as_unset=unset
21830else
21831 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021832fi
John Criswell7a73b802003-06-30 21:59:07 +000021833
Reid Spencera773bd52006-08-04 18:18:08 +000021834
21835# IFS
21836# We need space, tab and new line, in precisely that order. Quoting is
21837# there to prevent editors from complaining about space-tab.
21838# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21839# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021840as_nl='
21841'
Reid Spencera773bd52006-08-04 18:18:08 +000021842IFS=" "" $as_nl"
21843
21844# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021845case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021846 *[\\/]* ) as_myself=$0 ;;
21847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021848for as_dir in $PATH
21849do
21850 IFS=$as_save_IFS
21851 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21853done
Reid Spencera773bd52006-08-04 18:18:08 +000021854IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021855
Reid Spencera773bd52006-08-04 18:18:08 +000021856 ;;
21857esac
21858# We did not find ourselves, most probably we were run as `sh COMMAND'
21859# in which case we are not to be found in the path.
21860if test "x$as_myself" = x; then
21861 as_myself=$0
21862fi
21863if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021864 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21865 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021866fi
21867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021868# Work around bugs in pre-3.0 UWIN ksh.
21869for as_var in ENV MAIL MAILPATH
21870do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021871done
21872PS1='$ '
21873PS2='> '
21874PS4='+ '
21875
21876# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021877for as_var in \
21878 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21879 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21880 LC_TELEPHONE LC_TIME
21881do
21882 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21883 eval $as_var=C; export $as_var
21884 else
21885 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021886 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021887done
Torok Edwin871384f2010-01-26 08:50:50 +000021888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021889# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021890if expr a : '\(a\)' >/dev/null 2>&1 &&
21891 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21892 as_expr=expr
21893else
21894 as_expr=false
21895fi
21896
21897if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21898 as_basename=basename
21899else
21900 as_basename=false
21901fi
21902
21903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021905as_me=`$as_basename -- "$0" ||
21906$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21907 X"$0" : 'X\(//\)$' \| \
21908 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021909echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021910 sed '/^.*\/\([^/][^/]*\)\/*$/{
21911 s//\1/
21912 q
21913 }
21914 /^X\/\(\/\/\)$/{
21915 s//\1/
21916 q
21917 }
21918 /^X\/\(\/\).*/{
21919 s//\1/
21920 q
21921 }
21922 s/.*/./; q'`
21923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021924# CDPATH.
21925$as_unset CDPATH
21926
21927
21928
21929 as_lineno_1=$LINENO
21930 as_lineno_2=$LINENO
21931 test "x$as_lineno_1" != "x$as_lineno_2" &&
21932 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21933
21934 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21935 # uniformly replaced by the line number. The first 'sed' inserts a
21936 # line-number line after each line using $LINENO; the second 'sed'
21937 # does the real work. The second script uses 'N' to pair each
21938 # line-number line with the line containing $LINENO, and appends
21939 # trailing '-' during substitution so that $LINENO is not a special
21940 # case at line end.
21941 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21942 # scripts with optimization help from Paolo Bonzini. Blame Lee
21943 # E. McMahon (1931-1989) for sed's syntax. :-)
21944 sed -n '
21945 p
21946 /[$]LINENO/=
21947 ' <$as_myself |
21948 sed '
21949 s/[$]LINENO.*/&-/
21950 t lineno
21951 b
21952 :lineno
21953 N
21954 :loop
21955 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21956 t loop
21957 s/-\n.*//
21958 ' >$as_me.lineno &&
21959 chmod +x "$as_me.lineno" ||
21960 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21961 { (exit 1); exit 1; }; }
21962
21963 # Don't try to exec as it changes $[0], causing all sort of problems
21964 # (the dirname of $[0] is not the place where we might find the
21965 # original and so on. Autoconf is especially sensitive to this).
21966 . "./$as_me.lineno"
21967 # Exit status is that of the last command.
21968 exit
21969}
21970
21971
21972if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21973 as_dirname=dirname
21974else
21975 as_dirname=false
21976fi
Reid Spencera773bd52006-08-04 18:18:08 +000021977
21978ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021979case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021980-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021981 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021982 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021983 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021984 esac;;
21985*)
21986 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021987esac
21988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021989if expr a : '\(a\)' >/dev/null 2>&1 &&
21990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21991 as_expr=expr
21992else
21993 as_expr=false
21994fi
21995
John Criswell7a73b802003-06-30 21:59:07 +000021996rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021997if test -d conf$$.dir; then
21998 rm -f conf$$.dir/conf$$.file
21999else
22000 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022001 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000022002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022003echo >conf$$.file
22004if ln -s conf$$.file conf$$ 2>/dev/null; then
22005 as_ln_s='ln -s'
22006 # ... but there are two gotchas:
22007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22009 # In both cases, we have to default to `cp -p'.
22010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000022011 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012elif ln conf$$.file conf$$ 2>/dev/null; then
22013 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000022014else
22015 as_ln_s='cp -p'
22016fi
Reid Spencera773bd52006-08-04 18:18:08 +000022017rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22018rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000022019
John Criswell0c38eaf2003-09-10 15:17:25 +000022020if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022021 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022022else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022023 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000022024 as_mkdir_p=false
22025fi
22026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022027# Find out whether ``test -x'' works. Don't use a zero-byte file, as
22028# systems may use methods other than mode bits to determine executability.
22029cat >conf$$.file <<_ASEOF
22030#! /bin/sh
22031exit 0
22032_ASEOF
22033chmod +x conf$$.file
22034if test -x conf$$.file >/dev/null 2>&1; then
22035 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000022036else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022037 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000022038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022039rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000022040
22041# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022042as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000022043
22044# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022045as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000022046
22047
John Criswell7a73b802003-06-30 21:59:07 +000022048exec 6>&1
22049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022050# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000022051# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000022052# values after options handling.
22053ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000022054This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022055generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022056
22057 CONFIG_FILES = $CONFIG_FILES
22058 CONFIG_HEADERS = $CONFIG_HEADERS
22059 CONFIG_LINKS = $CONFIG_LINKS
22060 CONFIG_COMMANDS = $CONFIG_COMMANDS
22061 $ $0 $@
22062
Reid Spencera773bd52006-08-04 18:18:08 +000022063on `(hostname || uname -n) 2>/dev/null | sed 1q`
22064"
22065
John Criswell7a73b802003-06-30 21:59:07 +000022066_ACEOF
22067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022068cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022069# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000022070config_files="$ac_config_files"
22071config_headers="$ac_config_headers"
22072config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000022073
Reid Spencera773bd52006-08-04 18:18:08 +000022074_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022075
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022076cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022077ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022078\`$as_me' instantiates files from templates according to the
22079current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000022080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022081Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000022082
22083 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022084 -V, --version print version number, then exit
22085 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022086 -d, --debug don't remove temporary files
22087 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022088 --file=FILE[:TEMPLATE]
22089 instantiate the configuration file FILE
22090 --header=FILE[:TEMPLATE]
22091 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000022092
22093Configuration files:
22094$config_files
22095
22096Configuration headers:
22097$config_headers
22098
John Criswellc764fbc2003-09-06 15:17:13 +000022099Configuration commands:
22100$config_commands
22101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022102Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000022103
Reid Spencera773bd52006-08-04 18:18:08 +000022104_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022105cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022106ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000022107llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022108configured by $0, generated by GNU Autoconf 2.60,
22109 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000022110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022111Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000022112This config.status script is free software; the Free Software Foundation
22113gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000022114
22115ac_pwd='$ac_pwd'
22116srcdir='$srcdir'
22117INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000022118_ACEOF
22119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022120cat >>$CONFIG_STATUS <<\_ACEOF
22121# If no file are specified by the user, then we need to provide default
22122# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000022123ac_need_defaults=:
22124while test $# != 0
22125do
22126 case $1 in
22127 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000022128 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22129 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022130 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022131 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022132 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000022133 ac_option=$1
22134 ac_optarg=$2
22135 ac_shift=shift
22136 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022137 esac
22138
John Criswell0c38eaf2003-09-10 15:17:25 +000022139 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022140 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000022141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22142 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022143 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022144 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022145 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000022146 debug=: ;;
22147 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000022148 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022150 ac_need_defaults=false;;
22151 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000022152 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022153 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022154 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000022155 --he | --h)
22156 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022157 { echo "$as_me: error: ambiguous option: $1
22158Try \`$0 --help' for more information." >&2
22159 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022160 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22163 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22164 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022165
22166 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022167 -*) { echo "$as_me: error: unrecognized option: $1
22168Try \`$0 --help' for more information." >&2
22169 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000022170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022171 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000022172 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000022173
22174 esac
22175 shift
22176done
22177
John Criswell0c38eaf2003-09-10 15:17:25 +000022178ac_configure_extra_args=
22179
22180if $ac_cs_silent; then
22181 exec 6>/dev/null
22182 ac_configure_extra_args="$ac_configure_extra_args --silent"
22183fi
22184
22185_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022186cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022187if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022188 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22189 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000022190 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022191 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000022192fi
22193
John Criswell7a73b802003-06-30 21:59:07 +000022194_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022195cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022196exec 5>>config.log
22197{
22198 echo
22199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22200## Running $as_me. ##
22201_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022202 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000022203} >&5
John Criswell7a73b802003-06-30 21:59:07 +000022204
Reid Spencera773bd52006-08-04 18:18:08 +000022205_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022206cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000022207#
Reid Spencera773bd52006-08-04 18:18:08 +000022208# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000022209#
Reid Spencerc0682832005-02-24 19:05:19 +000022210llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000022211
22212_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022214cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022215
22216# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000022217for ac_config_target in $ac_config_targets
22218do
Reid Spencera773bd52006-08-04 18:18:08 +000022219 case $ac_config_target in
22220 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000022221 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000022222 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22223 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022224 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022225 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022226 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022227 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000022228 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022229 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22230 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000022231 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022232 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
22233 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22234 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22235 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22236 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22237 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022238 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022239 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22240 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022241 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022242 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22243 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22244 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022245 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22246 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022248 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22249echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22250 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000022251 esac
22252done
22253
Reid Spencera773bd52006-08-04 18:18:08 +000022254
John Criswell7a73b802003-06-30 21:59:07 +000022255# If the user did not use the arguments to specify the items to instantiate,
22256# then the envvar interface is used. Set only those that are not.
22257# We use the long form for the default assignment because of an extremely
22258# bizarre bug on SunOS 4.1.3.
22259if $ac_need_defaults; then
22260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022263fi
22264
John Criswell0c38eaf2003-09-10 15:17:25 +000022265# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022266# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022267# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022268# Hook for its removal unless debugging.
22269# Note that there is a small window in which the directory will not be cleaned:
22270# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022271$debug ||
22272{
Reid Spencera773bd52006-08-04 18:18:08 +000022273 tmp=
22274 trap 'exit_status=$?
22275 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22276' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022277 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022278}
John Criswell7a73b802003-06-30 21:59:07 +000022279# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022280
John Criswell7a73b802003-06-30 21:59:07 +000022281{
Reid Spencera773bd52006-08-04 18:18:08 +000022282 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022283 test -n "$tmp" && test -d "$tmp"
22284} ||
22285{
Reid Spencera773bd52006-08-04 18:18:08 +000022286 tmp=./conf$$-$RANDOM
22287 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022288} ||
22289{
22290 echo "$me: cannot create a temporary directory in ." >&2
22291 { (exit 1); exit 1; }
22292}
John Criswell7a73b802003-06-30 21:59:07 +000022293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022294#
22295# Set up the sed scripts for CONFIG_FILES section.
22296#
22297
22298# No need to generate the scripts if there are no CONFIG_FILES.
22299# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022300if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022301
22302_ACEOF
22303
Reid Spencera773bd52006-08-04 18:18:08 +000022304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022305
Reid Spencera773bd52006-08-04 18:18:08 +000022306ac_delim='%!_!# '
22307for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022308 cat >conf$$subs.sed <<_ACEOF
22309SHELL!$SHELL$ac_delim
22310PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22311PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22312PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22313PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22314PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22315PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22316exec_prefix!$exec_prefix$ac_delim
22317prefix!$prefix$ac_delim
22318program_transform_name!$program_transform_name$ac_delim
22319bindir!$bindir$ac_delim
22320sbindir!$sbindir$ac_delim
22321libexecdir!$libexecdir$ac_delim
22322datarootdir!$datarootdir$ac_delim
22323datadir!$datadir$ac_delim
22324sysconfdir!$sysconfdir$ac_delim
22325sharedstatedir!$sharedstatedir$ac_delim
22326localstatedir!$localstatedir$ac_delim
22327includedir!$includedir$ac_delim
22328oldincludedir!$oldincludedir$ac_delim
22329docdir!$docdir$ac_delim
22330infodir!$infodir$ac_delim
22331htmldir!$htmldir$ac_delim
22332dvidir!$dvidir$ac_delim
22333pdfdir!$pdfdir$ac_delim
22334psdir!$psdir$ac_delim
22335libdir!$libdir$ac_delim
22336localedir!$localedir$ac_delim
22337mandir!$mandir$ac_delim
22338DEFS!$DEFS$ac_delim
22339ECHO_C!$ECHO_C$ac_delim
22340ECHO_N!$ECHO_N$ac_delim
22341ECHO_T!$ECHO_T$ac_delim
22342LIBS!$LIBS$ac_delim
22343build_alias!$build_alias$ac_delim
22344host_alias!$host_alias$ac_delim
22345target_alias!$target_alias$ac_delim
22346LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022347CC!$CC$ac_delim
22348CFLAGS!$CFLAGS$ac_delim
22349LDFLAGS!$LDFLAGS$ac_delim
22350CPPFLAGS!$CPPFLAGS$ac_delim
22351ac_ct_CC!$ac_ct_CC$ac_delim
22352EXEEXT!$EXEEXT$ac_delim
22353OBJEXT!$OBJEXT$ac_delim
22354CXX!$CXX$ac_delim
22355CXXFLAGS!$CXXFLAGS$ac_delim
22356ac_ct_CXX!$ac_ct_CXX$ac_delim
22357CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022358subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022359ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22360LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022361build!$build$ac_delim
22362build_cpu!$build_cpu$ac_delim
22363build_vendor!$build_vendor$ac_delim
22364build_os!$build_os$ac_delim
22365host!$host$ac_delim
22366host_cpu!$host_cpu$ac_delim
22367host_vendor!$host_vendor$ac_delim
22368host_os!$host_os$ac_delim
22369target!$target$ac_delim
22370target_cpu!$target_cpu$ac_delim
22371target_vendor!$target_vendor$ac_delim
22372target_os!$target_os$ac_delim
22373OS!$OS$ac_delim
22374HOST_OS!$HOST_OS$ac_delim
22375TARGET_OS!$TARGET_OS$ac_delim
22376LINKALL!$LINKALL$ac_delim
22377NOLINKALL!$NOLINKALL$ac_delim
22378LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22379LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22380ARCH!$ARCH$ac_delim
22381ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022382GREP!$GREP$ac_delim
22383EGREP!$EGREP$ac_delim
22384LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22385BUILD_CC!$BUILD_CC$ac_delim
22386BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22387BUILD_CXX!$BUILD_CXX$ac_delim
22388CVSBUILD!$CVSBUILD$ac_delim
22389ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22390ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22391DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22392ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22393EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22394DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22395DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22396JIT!$JIT$ac_delim
22397TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022398ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022399ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22400ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022401ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022402ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022403ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022404ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000022405ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022406_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022408 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022409 break
22410 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022411 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22412echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22413 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022414 else
22415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022416 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022417done
22418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022419ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22420if test -n "$ac_eof"; then
22421 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22422 ac_eof=`expr $ac_eof + 1`
22423fi
22424
22425cat >>$CONFIG_STATUS <<_ACEOF
22426cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22427/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022428_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022429sed '
22430s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22431s/^/s,@/; s/!/@,|#_!!_#|/
22432:n
22433t n
22434s/'"$ac_delim"'$/,g/; t
22435s/$/\\/; p
22436N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22437' >>$CONFIG_STATUS <conf$$subs.sed
22438rm -f conf$$subs.sed
22439cat >>$CONFIG_STATUS <<_ACEOF
22440CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022441_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022442
22443
22444ac_delim='%!_!# '
22445for ac_last_try in false false false false false :; do
22446 cat >conf$$subs.sed <<_ACEOF
Eric Christopherffee5722011-09-16 20:36:25 +000022447TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22448LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22449LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022450LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022451LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022452ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022453CLANGPATH!$CLANGPATH$ac_delim
22454CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000022455ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022456OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022457EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022458EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022459BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022460NM!$NM$ac_delim
22461ifGNUmake!$ifGNUmake$ac_delim
22462LN_S!$LN_S$ac_delim
22463CMP!$CMP$ac_delim
22464CP!$CP$ac_delim
22465DATE!$DATE$ac_delim
22466FIND!$FIND$ac_delim
22467MKDIR!$MKDIR$ac_delim
22468MV!$MV$ac_delim
22469RANLIB!$RANLIB$ac_delim
22470AR!$AR$ac_delim
22471RM!$RM$ac_delim
22472SED!$SED$ac_delim
22473TAR!$TAR$ac_delim
22474BINPWD!$BINPWD$ac_delim
22475GRAPHVIZ!$GRAPHVIZ$ac_delim
22476DOT!$DOT$ac_delim
22477FDP!$FDP$ac_delim
22478NEATO!$NEATO$ac_delim
22479TWOPI!$TWOPI$ac_delim
22480CIRCO!$CIRCO$ac_delim
22481GV!$GV$ac_delim
22482DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022483XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022484PERL!$PERL$ac_delim
22485HAVE_PERL!$HAVE_PERL$ac_delim
22486INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22487INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22488INSTALL_DATA!$INSTALL_DATA$ac_delim
22489BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022490CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022491DOXYGEN!$DOXYGEN$ac_delim
22492GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022493GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022494POD2HTML!$POD2HTML$ac_delim
22495POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022496PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022497RUNTEST!$RUNTEST$ac_delim
22498TCLSH!$TCLSH$ac_delim
22499ZIP!$ZIP$ac_delim
22500OCAMLC!$OCAMLC$ac_delim
22501OCAMLOPT!$OCAMLOPT$ac_delim
22502OCAMLDEP!$OCAMLDEP$ac_delim
22503OCAMLDOC!$OCAMLDOC$ac_delim
22504GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022505HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022506INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22507INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22508CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22509CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22510LIBADD_DL!$LIBADD_DL$ac_delim
22511LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
22512LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
22513LLVMGCC!$LLVMGCC$ac_delim
22514LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022515LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022516NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22517NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22518USE_UDIS86!$USE_UDIS86$ac_delim
22519USE_OPROFILE!$USE_OPROFILE$ac_delim
22520HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22521HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22522MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000022523LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022524LLVMCC1!$LLVMCC1$ac_delim
22525LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
22526LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022527LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000022528LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000022529LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022530SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022531SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022532LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22533LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22534LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22535LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22536LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22537LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22538LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22539LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22540LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22541LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22542BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22543ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022544_ACEOF
22545
Tobias Grossera84b5672010-11-10 16:31:34 +000022546 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022547 break
22548 elif $ac_last_try; then
22549 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22550echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22551 { (exit 1); exit 1; }; }
22552 else
22553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22554 fi
22555done
22556
22557ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22558if test -n "$ac_eof"; then
22559 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22560 ac_eof=`expr $ac_eof + 1`
22561fi
22562
22563cat >>$CONFIG_STATUS <<_ACEOF
22564cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022565/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022566_ACEOF
22567sed '
22568s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22569s/^/s,@/; s/!/@,|#_!!_#|/
22570:n
22571t n
22572s/'"$ac_delim"'$/,g/; t
22573s/$/\\/; p
22574N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22575' >>$CONFIG_STATUS <conf$$subs.sed
22576rm -f conf$$subs.sed
22577cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022578CEOF$ac_eof
22579_ACEOF
22580
22581
Tobias Grossera84b5672010-11-10 16:31:34 +000022582ac_delim='%!_!# '
22583for ac_last_try in false false false false false :; do
22584 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbared344d22011-06-16 22:30:41 +000022585OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022586ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022587RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022588RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000022589LIBOBJS!$LIBOBJS$ac_delim
22590LTLIBOBJS!$LTLIBOBJS$ac_delim
22591_ACEOF
22592
Daniel Dunbared344d22011-06-16 22:30:41 +000022593 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022594 break
22595 elif $ac_last_try; then
22596 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22597echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22598 { (exit 1); exit 1; }; }
22599 else
22600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22601 fi
22602done
22603
22604ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22605if test -n "$ac_eof"; then
22606 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22607 ac_eof=`expr $ac_eof + 1`
22608fi
22609
22610cat >>$CONFIG_STATUS <<_ACEOF
22611cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22612/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22613_ACEOF
22614sed '
22615s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22616s/^/s,@/; s/!/@,|#_!!_#|/
22617:n
22618t n
22619s/'"$ac_delim"'$/,g/; t
22620s/$/\\/; p
22621N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22622' >>$CONFIG_STATUS <conf$$subs.sed
22623rm -f conf$$subs.sed
22624cat >>$CONFIG_STATUS <<_ACEOF
22625:end
22626s/|#_!!_#|//g
22627CEOF$ac_eof
22628_ACEOF
22629
22630
Reid Spencera773bd52006-08-04 18:18:08 +000022631# VPATH may cause trouble with some makes, so we remove $(srcdir),
22632# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22633# trailing colons and then remove the whole line if VPATH becomes empty
22634# (actually we leave an empty line to preserve line numbers).
22635if test "x$srcdir" = x.; then
22636 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22637s/:*\$(srcdir):*/:/
22638s/:*\${srcdir}:*/:/
22639s/:*@srcdir@:*/:/
22640s/^\([^=]*=[ ]*\):*/\1/
22641s/:*$//
22642s/^[^=]*=[ ]*$//
22643}'
22644fi
22645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022646cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022647fi # test -n "$CONFIG_FILES"
22648
Reid Spencera773bd52006-08-04 18:18:08 +000022649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022650for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022651do
22652 case $ac_tag in
22653 :[FHLC]) ac_mode=$ac_tag; continue;;
22654 esac
22655 case $ac_mode$ac_tag in
22656 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022657 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22658echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22659 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022660 :[FH]-) ac_tag=-:-;;
22661 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22662 esac
22663 ac_save_IFS=$IFS
22664 IFS=:
22665 set x $ac_tag
22666 IFS=$ac_save_IFS
22667 shift
22668 ac_file=$1
22669 shift
22670
22671 case $ac_mode in
22672 :L) ac_source=$1;;
22673 :[FH])
22674 ac_file_inputs=
22675 for ac_f
22676 do
22677 case $ac_f in
22678 -) ac_f="$tmp/stdin";;
22679 *) # Look for the file first in the build tree, then in the source tree
22680 # (if the path is not absolute). The absolute path cannot be DOS-style,
22681 # because $ac_f cannot contain `:'.
22682 test -f "$ac_f" ||
22683 case $ac_f in
22684 [\\/$]*) false;;
22685 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22686 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022687 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22688echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22689 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022690 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022691 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022692 done
22693
22694 # Let's still pretend it is `configure' which instantiates (i.e., don't
22695 # use $as_me), people would be surprised to read:
22696 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022697 configure_input="Generated from "`IFS=:
22698 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022699 if test x"$ac_file" != x-; then
22700 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022701 { echo "$as_me:$LINENO: creating $ac_file" >&5
22702echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022703 fi
22704
22705 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022706 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022707 esac
22708 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022709 esac
22710
Reid Spencera773bd52006-08-04 18:18:08 +000022711 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022712$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022713 X"$ac_file" : 'X\(//\)[^/]' \| \
22714 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022715 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022716echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22718 s//\1/
22719 q
22720 }
22721 /^X\(\/\/\)[^/].*/{
22722 s//\1/
22723 q
22724 }
22725 /^X\(\/\/\)$/{
22726 s//\1/
22727 q
22728 }
22729 /^X\(\/\).*/{
22730 s//\1/
22731 q
22732 }
22733 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022734 { as_dir="$ac_dir"
22735 case $as_dir in #(
22736 -*) as_dir=./$as_dir;;
22737 esac
22738 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22739 as_dirs=
22740 while :; do
22741 case $as_dir in #(
22742 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22743 *) as_qdir=$as_dir;;
22744 esac
22745 as_dirs="'$as_qdir' $as_dirs"
22746 as_dir=`$as_dirname -- "$as_dir" ||
22747$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22748 X"$as_dir" : 'X\(//\)[^/]' \| \
22749 X"$as_dir" : 'X\(//\)$' \| \
22750 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22751echo X"$as_dir" |
22752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22753 s//\1/
22754 q
22755 }
22756 /^X\(\/\/\)[^/].*/{
22757 s//\1/
22758 q
22759 }
22760 /^X\(\/\/\)$/{
22761 s//\1/
22762 q
22763 }
22764 /^X\(\/\).*/{
22765 s//\1/
22766 q
22767 }
22768 s/.*/./; q'`
22769 test -d "$as_dir" && break
22770 done
22771 test -z "$as_dirs" || eval "mkdir $as_dirs"
22772 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22773echo "$as_me: error: cannot create directory $as_dir" >&2;}
22774 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022775 ac_builddir=.
22776
Reid Spencera773bd52006-08-04 18:18:08 +000022777case "$ac_dir" in
22778.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22779*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022780 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022781 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022782 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022783 case $ac_top_builddir_sub in
22784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22786 esac ;;
22787esac
22788ac_abs_top_builddir=$ac_pwd
22789ac_abs_builddir=$ac_pwd$ac_dir_suffix
22790# for backward compatibility:
22791ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022792
22793case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022794 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022795 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022796 ac_top_srcdir=$ac_top_builddir_sub
22797 ac_abs_top_srcdir=$ac_pwd ;;
22798 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022799 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022800 ac_top_srcdir=$srcdir
22801 ac_abs_top_srcdir=$srcdir ;;
22802 *) # Relative name.
22803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22804 ac_top_srcdir=$ac_top_build_prefix$srcdir
22805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022806esac
Reid Spencera773bd52006-08-04 18:18:08 +000022807ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022808
John Criswell7a73b802003-06-30 21:59:07 +000022809
Reid Spencera773bd52006-08-04 18:18:08 +000022810 case $ac_mode in
22811 :F)
22812 #
22813 # CONFIG_FILE
22814 #
John Criswell7a73b802003-06-30 21:59:07 +000022815
22816 case $INSTALL in
22817 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022818 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022819 esac
John Criswell7a73b802003-06-30 21:59:07 +000022820_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022822cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022823# If the template does not know about datarootdir, expand it.
22824# FIXME: This hack should be removed a few years after 2.60.
22825ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022826
22827case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022828 p
22829 q
22830}
22831/@datadir@/p
22832/@docdir@/p
22833/@infodir@/p
22834/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022835/@mandir@/p
22836' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022837*datarootdir*) ac_datarootdir_seen=yes;;
22838*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022839 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22840echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022841_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022842cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022843 ac_datarootdir_hack='
22844 s&@datadir@&$datadir&g
22845 s&@docdir@&$docdir&g
22846 s&@infodir@&$infodir&g
22847 s&@localedir@&$localedir&g
22848 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022849 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022850esac
22851_ACEOF
22852
22853# Neutralize VPATH when `$srcdir' = `.'.
22854# Shell code in configure.ac might set extrasub.
22855# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022856cat >>$CONFIG_STATUS <<_ACEOF
22857 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022858$extrasub
22859_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022860cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022861:t
22862/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022863s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022864s&@top_builddir@&$ac_top_builddir_sub&;t t
22865s&@srcdir@&$ac_srcdir&;t t
22866s&@abs_srcdir@&$ac_abs_srcdir&;t t
22867s&@top_srcdir@&$ac_top_srcdir&;t t
22868s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22869s&@builddir@&$ac_builddir&;t t
22870s&@abs_builddir@&$ac_abs_builddir&;t t
22871s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22872s&@INSTALL@&$ac_INSTALL&;t t
22873$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000022874" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022875
Reid Spencera773bd52006-08-04 18:18:08 +000022876test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22877 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22878 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022879 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022880which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022881echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022882which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022883
Reid Spencera773bd52006-08-04 18:18:08 +000022884 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022885 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022886 -) cat "$tmp/out"; rm -f "$tmp/out";;
22887 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22888 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022889 ;;
22890 :H)
22891 #
22892 # CONFIG_HEADER
22893 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022894_ACEOF
22895
22896# Transform confdefs.h into a sed script `conftest.defines', that
22897# substitutes the proper values into config.h.in to produce config.h.
22898rm -f conftest.defines conftest.tail
22899# First, append a space to every undef/define line, to ease matching.
22900echo 's/$/ /' >conftest.defines
22901# Then, protect against being on the right side of a sed subst, or in
22902# an unquoted here document, in config.status. If some macros were
22903# called several times there might be several #defines for the same
22904# symbol, which is useless. But do not sort them, since the last
22905# AC_DEFINE must be honored.
22906ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22907# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22908# NAME is the cpp macro being defined, VALUE is the value it is being given.
22909# PARAMS is the parameter list in the macro definition--in most cases, it's
22910# just an empty string.
22911ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22912ac_dB='\\)[ (].*,\\1define\\2'
22913ac_dC=' '
22914ac_dD=' ,'
22915
22916uniq confdefs.h |
22917 sed -n '
22918 t rset
22919 :rset
22920 s/^[ ]*#[ ]*define[ ][ ]*//
22921 t ok
22922 d
22923 :ok
22924 s/[\\&,]/\\&/g
22925 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22926 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22927 ' >>conftest.defines
22928
22929# Remove the space that was appended to ease matching.
22930# Then replace #undef with comments. This is necessary, for
22931# example, in the case of _POSIX_SOURCE, which is predefined and required
22932# on some systems where configure will not decide to define it.
22933# (The regexp can be short, since the line contains either #define or #undef.)
22934echo 's/ $//
22935s,^[ #]*u.*,/* & */,' >>conftest.defines
22936
22937# Break up conftest.defines:
22938ac_max_sed_lines=50
22939
22940# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22941# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22942# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22943# et cetera.
22944ac_in='$ac_file_inputs'
22945ac_out='"$tmp/out1"'
22946ac_nxt='"$tmp/out2"'
22947
22948while :
22949do
22950 # Write a here document:
22951 cat >>$CONFIG_STATUS <<_ACEOF
22952 # First, check the format of the line:
22953 cat >"\$tmp/defines.sed" <<\\CEOF
22954/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22955/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22956b
22957:def
22958_ACEOF
22959 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22960 echo 'CEOF
22961 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22962 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22963 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22964 grep . conftest.tail >/dev/null || break
22965 rm -f conftest.defines
22966 mv conftest.tail conftest.defines
22967done
22968rm -f conftest.defines conftest.tail
22969
22970echo "ac_result=$ac_in" >>$CONFIG_STATUS
22971cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022972 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022973 echo "/* $configure_input */" >"$tmp/config.h"
22974 cat "$ac_result" >>"$tmp/config.h"
22975 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22976 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22977echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022978 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022979 rm -f $ac_file
22980 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022981 fi
22982 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022983 echo "/* $configure_input */"
22984 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022985 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022986 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022987 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022989 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22990echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022991 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022992 esac
John Criswell7a73b802003-06-30 21:59:07 +000022993
Reid Spencera773bd52006-08-04 18:18:08 +000022994
22995 case $ac_file$ac_mode in
22996 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022998 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023000 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023002 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023004 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023006 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023008 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000023009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023010 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023012 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023014 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023016 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023018 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023020 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000023021 ${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 +000023022
23023 esac
23024done # for ac_tag
23025
John Criswell7a73b802003-06-30 21:59:07 +000023026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023027{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000023028_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023029chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023030ac_clean_files=$ac_clean_files_save
23031
23032
23033# configure is writing to config.log, and then calls config.status.
23034# config.status does its own redirection, appending to config.log.
23035# Unfortunately, on DOS this fails, as config.log is still kept open
23036# by configure, so config.status won't be able to write to it; its
23037# output is simply discarded. So we exec the FD to /dev/null,
23038# effectively closing config.log, so it can be properly (re)opened and
23039# appended to by config.status. When coming back to configure, we
23040# need to make the FD available again.
23041if test "$no_create" != yes; then
23042 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023043 ac_config_status_args=
23044 test "$silent" = yes &&
23045 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023046 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000023047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023048 exec 5>>config.log
23049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23050 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023051 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000023052fi
23053
John Criswell12399a12003-09-30 15:55:44 +000023054#
23055# CONFIG_SUBDIRS section.
23056#
23057if test "$no_recursion" != yes; then
23058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023059 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000023060 ac_sub_configure_args=
23061 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000023062 eval "set x $ac_configure_args"
23063 shift
23064 for ac_arg
23065 do
John Criswell12399a12003-09-30 15:55:44 +000023066 if test -n "$ac_prev"; then
23067 ac_prev=
23068 continue
23069 fi
23070 case $ac_arg in
23071 -cache-file | --cache-file | --cache-fil | --cache-fi \
23072 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23073 ac_prev=cache_file ;;
23074 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23075 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23076 | --c=*)
23077 ;;
23078 --config-cache | -C)
23079 ;;
23080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23081 ac_prev=srcdir ;;
23082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23083 ;;
23084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23085 ac_prev=prefix ;;
23086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23087 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023088 *)
23089 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023090 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023091 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023092 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000023093 esac
23094 done
23095
23096 # Always prepend --prefix to ensure using the same prefix
23097 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000023098 ac_arg="--prefix=$prefix"
23099 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023100 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023101 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023102 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000023103
23104 ac_popdir=`pwd`
23105 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23106
23107 # Do not complain, so a configure script can configure whichever
23108 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000023109 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000023110
Reid Spencera773bd52006-08-04 18:18:08 +000023111 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023112 echo "$as_me:$LINENO: $ac_msg" >&5
23113 echo "$ac_msg" >&6
23114 { as_dir="$ac_dir"
23115 case $as_dir in #(
23116 -*) as_dir=./$as_dir;;
23117 esac
23118 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23119 as_dirs=
23120 while :; do
23121 case $as_dir in #(
23122 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23123 *) as_qdir=$as_dir;;
23124 esac
23125 as_dirs="'$as_qdir' $as_dirs"
23126 as_dir=`$as_dirname -- "$as_dir" ||
23127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23128 X"$as_dir" : 'X\(//\)[^/]' \| \
23129 X"$as_dir" : 'X\(//\)$' \| \
23130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23131echo X"$as_dir" |
23132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23133 s//\1/
23134 q
23135 }
23136 /^X\(\/\/\)[^/].*/{
23137 s//\1/
23138 q
23139 }
23140 /^X\(\/\/\)$/{
23141 s//\1/
23142 q
23143 }
23144 /^X\(\/\).*/{
23145 s//\1/
23146 q
23147 }
23148 s/.*/./; q'`
23149 test -d "$as_dir" && break
23150 done
23151 test -z "$as_dirs" || eval "mkdir $as_dirs"
23152 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23153echo "$as_me: error: cannot create directory $as_dir" >&2;}
23154 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000023155 ac_builddir=.
23156
Reid Spencera773bd52006-08-04 18:18:08 +000023157case "$ac_dir" in
23158.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23159*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023161 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023162 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023163 case $ac_top_builddir_sub in
23164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23166 esac ;;
23167esac
23168ac_abs_top_builddir=$ac_pwd
23169ac_abs_builddir=$ac_pwd$ac_dir_suffix
23170# for backward compatibility:
23171ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000023172
23173case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023174 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000023175 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023176 ac_top_srcdir=$ac_top_builddir_sub
23177 ac_abs_top_srcdir=$ac_pwd ;;
23178 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000023179 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023180 ac_top_srcdir=$srcdir
23181 ac_abs_top_srcdir=$srcdir ;;
23182 *) # Relative name.
23183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23184 ac_top_srcdir=$ac_top_build_prefix$srcdir
23185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000023186esac
Reid Spencera773bd52006-08-04 18:18:08 +000023187ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000023188
23189
Reid Spencera773bd52006-08-04 18:18:08 +000023190 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000023191
23192 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000023193 if test -f "$ac_srcdir/configure.gnu"; then
23194 ac_sub_configure=$ac_srcdir/configure.gnu
23195 elif test -f "$ac_srcdir/configure"; then
23196 ac_sub_configure=$ac_srcdir/configure
23197 elif test -f "$ac_srcdir/configure.in"; then
23198 # This should be Cygnus configure.
23199 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000023200 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023201 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23202echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000023203 ac_sub_configure=
23204 fi
23205
23206 # The recursion is here.
23207 if test -n "$ac_sub_configure"; then
23208 # Make the cache file name correct relative to the subdirectory.
23209 case $cache_file in
23210 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023211 *) # Relative name.
23212 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000023213 esac
23214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023215 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23216echo "$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 +000023217 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000023218 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23219 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023220 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23221echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23222 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000023223 fi
23224
Reid Spencera773bd52006-08-04 18:18:08 +000023225 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000023226 done
23227fi
23228