blob: 5b67891dd81d44e95b7a7bada0317dc0e478bab3 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.8svn.
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#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 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-'
Tanya Lattnerdc29dff2010-03-19 21:22:13 +0000564PACKAGE_VERSION='2.8svn'
565PACKAGE_STRING='llvm 2.8svn'
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
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000692ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000693ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000694TARGETS_TO_BUILD
695LLVM_ENUM_TARGETS
696LLVM_ENUM_ASM_PRINTERS
697LLVM_ENUM_ASM_PARSERS
698LLVM_ENUM_DISASSEMBLERS
699ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000700CLANGPATH
701CLANGXXPATH
702ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703OPTIMIZE_OPTION
704EXTRA_OPTIONS
705BINUTILS_INCDIR
706ENABLE_LLVMC_DYNAMIC
707ENABLE_LLVMC_DYNAMIC_PLUGINS
708CXX
709CXXFLAGS
710ac_ct_CXX
711NM
712ifGNUmake
713LN_S
714CMP
715CP
716DATE
717FIND
718MKDIR
719MV
720RANLIB
721AR
722RM
723SED
724TAR
725BINPWD
726GRAPHVIZ
727DOT
728FDP
729NEATO
730TWOPI
731CIRCO
732GV
733DOTTY
734PERL
735HAVE_PERL
736INSTALL_PROGRAM
737INSTALL_SCRIPT
738INSTALL_DATA
739BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000740CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000741DOXYGEN
742GROFF
743GZIP
744POD2HTML
745POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000746PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747RUNTEST
748TCLSH
749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
754GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000755HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
761LLVMGCCCOMMAND
762LLVMGXXCOMMAND
763LLVMGCC
764LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000765LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766NO_VARIADIC_MACROS
767NO_MISSING_FIELD_INITIALIZERS
768USE_UDIS86
769USE_OPROFILE
770HAVE_PTHREAD
771HUGE_VAL_SANITY
772MMAP_FILE
773LLVMCC1
774LLVMCC1PLUS
775LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776LLVMGCC_LANGS
777SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000778SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVM_PREFIX
780LLVM_BINDIR
781LLVM_LIBDIR
782LLVM_DATADIR
783LLVM_DOCSDIR
784LLVM_ETCDIR
785LLVM_INCLUDEDIR
786LLVM_INFODIR
787LLVM_MANDIR
788LLVM_CONFIGTIME
789BINDINGS_TO_BUILD
790ALL_BINDINGS
791OCAML_LIBDIR
792ENABLE_VISIBILITY_INLINES_HIDDEN
793RPATH
794RDYNAMIC
795LIBOBJS
796LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000797ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000798 ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804CPPFLAGS
805CPP
806CXX
807CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000808CCC'
John Criswell0157f502010-03-19 21:31:39 +0000809ac_subdirs_all='projects/llvm-gcc
810projects/test-suite
811projects/llvm-test
812projects/poolalloc
813projects/llvm-poolalloc
814projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000816projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000818projects/llvm-java
819projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000820projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000821projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000822
823# Initialize some variables set by options.
824ac_init_help=
825ac_init_version=false
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000848# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000857includedir='${prefix}/include'
858oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000868
869ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000870ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000871for ac_option
872do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000875 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000876 ac_prev=
877 continue
878 fi
879
Reid Spencera773bd52006-08-04 18:18:08 +0000880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
John Criswell7a73b802003-06-30 21:59:07 +0000884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
Reid Spencera773bd52006-08-04 18:18:08 +0000887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000912 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000914 datadir=$ac_optarg ;;
915
Reid Spencera773bd52006-08-04 18:18:08 +0000916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
John Criswell7a73b802003-06-30 21:59:07 +0000923 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000925 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000941
942 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000944 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
Reid Spencera773bd52006-08-04 18:18:08 +0000976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
John Criswell7a73b802003-06-30 21:59:07 +0000982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
Reid Spencera773bd52006-08-04 18:18:08 +00001006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
John Criswell7a73b802003-06-30 21:59:07 +00001011 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
Reid Spencera773bd52006-08-04 18:18:08 +00001080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
John Criswell7a73b802003-06-30 21:59:07 +00001090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001141 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001147
1148 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001186 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001204fi
1205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001206# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001211do
Reid Spencera773bd52006-08-04 18:18:08 +00001212 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001213 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001216 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1236 fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
Reid Spencera773bd52006-08-04 18:18:08 +00001245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001253
1254
John Criswell7a73b802003-06-30 21:59:07 +00001255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001258 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001259 ac_confdir=`$as_dirname -- "$0" ||
1260$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001283 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001293fi
Reid Spencera773bd52006-08-04 18:18:08 +00001294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
John Criswell7a73b802003-06-30 21:59:07 +00001315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001323\`configure' configures llvm 2.8svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
John Criswell7a73b802003-06-30 21:59:07 +00001343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001347 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001376_ACEOF
1377
1378 cat <<\_ACEOF
1379
1380System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384_ACEOF
1385fi
1386
1387if test -n "$ac_init_help"; then
1388 case $ac_init_help in
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001389 short | recursive ) echo "Configuration of llvm 2.8svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001390 esac
1391 cat <<\_ACEOF
1392
1393Optional Features:
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1399 YES)
David Greenea696d242007-06-28 19:36:08 +00001400 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001401 Compile with expensive debug checks enabled (default
1402 is NO)
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001407 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001408 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001409 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001410 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001411 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001412 --enable-shared Build a shared library and link tools against it
1413 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001414 --enable-timestamps Enable embedding timestamp information in build
1415 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1420 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001425 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001426 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1427 Win32)
1428 --enable-llvmc-dynamic-plugins
1429 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001430 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001431
1432Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001435 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1436 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001437 --with-llvmgcc Specify location of llvm-gcc driver (default
1438 searches PATH)
1439 --with-llvmgxx Specify location of llvm-g++ driver (default
1440 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001441 --with-clang Specify location of clang compiler (default is
1442 --with-built-clang)
1443 --with-built-clang Use the compiled Clang as the LLVM compiler
1444 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001445 --with-optimize-option Select the compiler options to use for optimized
1446 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001447 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001448 --with-ocaml-libdir Specify install location for ocaml bindings (default
1449 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001450 --with-c-include-dirs Colon separated list of directories clang will
1451 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001452 --with-cxx-include-root Directory with the libstdc++ headers.
1453 --with-cxx-include-arch Architecture of the libstdc++ headers.
1454 --with-cxx-include-32bit-dir
1455 32 bit multilib dir.
1456 --with-cxx-include-64bit-dir
1457 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001458 --with-binutils-include Specify path to binutils/include/ containing
1459 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001460 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001461 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1462 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001463 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001464 --with-oprofile=<prefix>
1465 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001468 CC C compiler command
1469 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001473 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001474 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001477
1478Use these variables to override the choices made by `configure' or to help
1479it to find libraries and programs with nonstandard names/locations.
1480
1481Report bugs to <llvmbugs@cs.uiuc.edu>.
1482_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001483ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001490 ac_builddir=.
1491
Reid Spencera773bd52006-08-04 18:18:08 +00001492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001496 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001507
1508case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001509 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001510 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001514 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001521esac
Reid Spencera773bd52006-08-04 18:18:08 +00001522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001523
Reid Spencera773bd52006-08-04 18:18:08 +00001524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001532 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001536 done
1537fi
1538
Reid Spencera773bd52006-08-04 18:18:08 +00001539test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001540if $ac_init_version; then
1541 cat <<\_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001542llvm configure 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001543generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001545Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15462002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001549
John Criswell5a129712010-03-19 21:04:16 +00001550Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001551_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001552 exit
John Criswell7a73b802003-06-30 21:59:07 +00001553fi
Reid Spencera773bd52006-08-04 18:18:08 +00001554cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001555This file contains any messages produced by compilers while
1556running configure, to aid debugging if configure makes a mistake.
1557
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001558It was created by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001560
1561 $ $0 $@
1562
1563_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001564exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001565{
1566cat <<_ASUNAME
1567## --------- ##
1568## Platform. ##
1569## --------- ##
1570
1571hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576
1577/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1579
1580/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1581/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1582/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001583/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001584/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1585/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1586/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1587
1588_ASUNAME
1589
1590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591for as_dir in $PATH
1592do
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001595 echo "PATH: $as_dir"
1596done
Reid Spencera773bd52006-08-04 18:18:08 +00001597IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001598
1599} >&5
1600
1601cat >&5 <<_ACEOF
1602
1603
1604## ----------- ##
1605## Core tests. ##
1606## ----------- ##
1607
1608_ACEOF
1609
1610
1611# Keep a trace of the command line.
1612# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001613# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001614# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001615# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001616ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001617ac_configure_args0=
1618ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001619ac_must_keep_next=false
1620for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001621do
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 for ac_arg
1623 do
1624 case $ac_arg in
1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1628 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001629 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 esac
1632 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001635 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001637 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001639 case $ac_arg in
1640 *=* | --config-cache | -C | -disable-* | --disable-* \
1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643 | -with-* | --with-* | -without-* | --without-* | --x)
1644 case "$ac_configure_args0 " in
1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646 esac
1647 ;;
1648 -* ) ac_must_keep_next=true ;;
1649 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 ;;
1653 esac
1654 done
John Criswell7a73b802003-06-30 21:59:07 +00001655done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001656$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657$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 +00001658
1659# When interrupted or exit'd, cleanup temporary files, and complete
1660# config.log. We remove comments because anyway the quotes in there
1661# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001662# WARNING: Use '\'' to represent an apostrophe within the trap.
1663# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001664trap 'exit_status=$?
1665 # Save into config.log some information that might help in debugging.
1666 {
1667 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001668
John Criswell7a73b802003-06-30 21:59:07 +00001669 cat <<\_ASBOX
1670## ---------------- ##
1671## Cache variables. ##
1672## ---------------- ##
1673_ASBOX
1674 echo
1675 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001676(
1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678 eval ac_val=\$$ac_var
1679 case $ac_val in #(
1680 *${as_nl}*)
1681 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001684 esac
1685 case $ac_var in #(
1686 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001687 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001688 esac ;;
1689 esac
1690 done
John Criswell7a73b802003-06-30 21:59:07 +00001691 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001694 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001698 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001700 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001701 esac |
1702 sort
1703)
John Criswell7a73b802003-06-30 21:59:07 +00001704 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001705
1706 cat <<\_ASBOX
1707## ----------------- ##
1708## Output variables. ##
1709## ----------------- ##
1710_ASBOX
1711 echo
1712 for ac_var in $ac_subst_vars
1713 do
Reid Spencera773bd52006-08-04 18:18:08 +00001714 eval ac_val=\$$ac_var
1715 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001717 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001718 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 done | sort
1720 echo
1721
1722 if test -n "$ac_subst_files"; then
1723 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001724## ------------------- ##
1725## File substitutions. ##
1726## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001727_ASBOX
1728 echo
1729 for ac_var in $ac_subst_files
1730 do
Reid Spencera773bd52006-08-04 18:18:08 +00001731 eval ac_val=\$$ac_var
1732 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001734 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001735 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 done | sort
1737 echo
1738 fi
1739
John Criswell7a73b802003-06-30 21:59:07 +00001740 if test -s confdefs.h; then
1741 cat <<\_ASBOX
1742## ----------- ##
1743## confdefs.h. ##
1744## ----------- ##
1745_ASBOX
1746 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001747 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001748 echo
1749 fi
1750 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 echo "$as_me: caught signal $ac_signal"
1752 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001753 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001756 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001757' 0
John Criswell7a73b802003-06-30 21:59:07 +00001758for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001760done
1761ac_signal=0
1762
1763# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001764rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001765
1766# Predefined preprocessor variables.
1767
1768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_NAME "$PACKAGE_NAME"
1770_ACEOF
1771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001772
John Criswell7a73b802003-06-30 21:59:07 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_VERSION "$PACKAGE_VERSION"
1780_ACEOF
1781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782
John Criswell7a73b802003-06-30 21:59:07 +00001783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_STRING "$PACKAGE_STRING"
1785_ACEOF
1786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787
John Criswell7a73b802003-06-30 21:59:07 +00001788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790_ACEOF
1791
1792
1793# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001795if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001797elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 set x "$ac_default_prefix/share/config.site" \
1801 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803shift
1804for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001805do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001806 if test -r "$ac_site_file"; then
1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001809 sed 's/^/| /' "$ac_site_file" >&5
1810 . "$ac_site_file"
1811 fi
1812done
1813
1814if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001820 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001823 esac
1824 fi
1825else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001828 >$cache_file
1829fi
1830
1831# Check that the precious variables saved in the cache have kept the same
1832# value.
1833ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001834for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001839 case $ac_old_set,$ac_new_set in
1840 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001843 ac_cache_corrupted=: ;;
1844 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001847 ac_cache_corrupted=: ;;
1848 ,);;
1849 *)
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001858 fi;;
1859 esac
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1862 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001864 *) ac_arg=$ac_var=$ac_new_val ;;
1865 esac
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001869 esac
1870 fi
1871done
1872if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
Reid Spencera773bd52006-08-04 18:18:08 +00001903
John Criswell7a73b802003-06-30 21:59:07 +00001904ac_ext=c
1905ac_cpp='$CPP $CPPFLAGS'
1906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909
1910
1911
John Criswell5a129712010-03-19 21:04:16 +00001912LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001913
1914
1915
1916
1917
1918
1919
John Criswell7a73b802003-06-30 21:59:07 +00001920ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001921for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001922 if test -f "$ac_dir/install-sh"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
1926 elif test -f "$ac_dir/install.sh"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
1930 elif test -f "$ac_dir/shtool"; then
1931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1934 fi
John Criswell7a73b802003-06-30 21:59:07 +00001935done
1936if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001940fi
Reid Spencera773bd52006-08-04 18:18:08 +00001941
1942# These three variables are undocumented and unsupported,
1943# and are intended to be withdrawn in a future Autoconf release.
1944# They can cause serious problems if a builder's source tree is in a directory
1945# whose full name contains unusual characters.
1946ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1949
John Criswell7a73b802003-06-30 21:59:07 +00001950
John Criswell392aaa32003-07-22 19:18:09 +00001951
Reid Spencer2706f8c2004-09-19 23:53:36 +00001952if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001953 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001954 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001957 fi
John Criswell93e1c722003-09-15 17:04:06 +00001958fi
1959
John Criswell0157f502010-03-19 21:31:39 +00001960
1961
1962if test -d ${srcdir}/projects/llvm-gcc ; then
1963 subdirs="$subdirs projects/llvm-gcc"
1964
1965fi
1966
1967if test -d ${srcdir}/projects/test-suite ; then
1968 subdirs="$subdirs projects/test-suite"
1969
1970fi
1971
1972if test -d ${srcdir}/projects/llvm-test ; then
1973 subdirs="$subdirs projects/llvm-test"
1974
1975fi
1976
1977if test -d ${srcdir}/projects/poolalloc ; then
1978 subdirs="$subdirs projects/poolalloc"
1979
1980fi
1981
1982if test -d ${srcdir}/projects/llvm-poolalloc ; then
1983 subdirs="$subdirs projects/llvm-poolalloc"
1984
1985fi
1986
John Criswell33a911a2003-11-25 20:36:46 +00001987for i in `ls ${srcdir}/projects`
1988do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001989 if test -d ${srcdir}/projects/${i} ; then
1990 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001991 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001992 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001993 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001994 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001995 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001996 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001997 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001998 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001999;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002000 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002001 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002002 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002003 ;;
John Criswell7def2932010-02-25 22:57:19 +00002004 safecode) subdirs="$subdirs projects/safecode"
2005 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002006 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002007 ;;
John Criswell52c02862010-03-25 13:59:09 +00002008 llvm-gcc) ;;
2009 test-suite) ;;
2010 llvm-test) ;;
2011 poolalloc) ;;
2012 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002013 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002014 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2015echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002016 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002017 esac
John Criswell33a911a2003-11-25 20:36:46 +00002018 fi
2019done
John Criswell559a6c12003-09-30 16:31:48 +00002020
John Criswell7a73b802003-06-30 21:59:07 +00002021
2022# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002023$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002024 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2025echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2026 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002028{ echo "$as_me:$LINENO: checking build system type" >&5
2029echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2030if test "${ac_cv_build+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002032else
Reid Spencera773bd52006-08-04 18:18:08 +00002033 ac_build_alias=$build_alias
2034test "x$ac_build_alias" = x &&
2035 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2036test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002037 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2038echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2039 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002040ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002041 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2042echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2043 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002044
2045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2047echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002048case $ac_cv_build in
2049*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002050*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2051echo "$as_me: error: invalid value of canonical build" >&2;}
2052 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002053esac
John Criswell7a73b802003-06-30 21:59:07 +00002054build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002055ac_save_IFS=$IFS; IFS='-'
2056set x $ac_cv_build
2057shift
2058build_cpu=$1
2059build_vendor=$2
2060shift; shift
2061# Remember, the first character of IFS is used to create $*,
2062# except with old shells:
2063build_os=$*
2064IFS=$ac_save_IFS
2065case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002066
2067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068{ echo "$as_me:$LINENO: checking host system type" >&5
2069echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2070if test "${ac_cv_host+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002072else
Reid Spencera773bd52006-08-04 18:18:08 +00002073 if test "x$host_alias" = x; then
2074 ac_cv_host=$ac_cv_build
2075else
2076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2078echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2079 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002080fi
John Criswell7a73b802003-06-30 21:59:07 +00002081
2082fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2084echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002085case $ac_cv_host in
2086*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002087*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2088echo "$as_me: error: invalid value of canonical host" >&2;}
2089 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002090esac
John Criswell7a73b802003-06-30 21:59:07 +00002091host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002092ac_save_IFS=$IFS; IFS='-'
2093set x $ac_cv_host
2094shift
2095host_cpu=$1
2096host_vendor=$2
2097shift; shift
2098# Remember, the first character of IFS is used to create $*,
2099# except with old shells:
2100host_os=$*
2101IFS=$ac_save_IFS
2102case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002103
2104
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002105{ echo "$as_me:$LINENO: checking target system type" >&5
2106echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2107if test "${ac_cv_target+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002109else
Reid Spencera773bd52006-08-04 18:18:08 +00002110 if test "x$target_alias" = x; then
2111 ac_cv_target=$ac_cv_host
2112else
2113 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2115echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002117fi
John Criswell7a73b802003-06-30 21:59:07 +00002118
2119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2121echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002122case $ac_cv_target in
2123*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002124*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2125echo "$as_me: error: invalid value of canonical target" >&2;}
2126 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002127esac
John Criswell7a73b802003-06-30 21:59:07 +00002128target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002129ac_save_IFS=$IFS; IFS='-'
2130set x $ac_cv_target
2131shift
2132target_cpu=$1
2133target_vendor=$2
2134shift; shift
2135# Remember, the first character of IFS is used to create $*,
2136# except with old shells:
2137target_os=$*
2138IFS=$ac_save_IFS
2139case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002140
2141
2142# The aliases save the names the user supplied, while $host etc.
2143# will get canonicalized.
2144test -n "$target_alias" &&
2145 test "$program_prefix$program_suffix$program_transform_name" = \
2146 NONENONEs,x,x, &&
2147 program_prefix=${target_alias}-
2148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002149{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2150echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2151if test "${llvm_cv_os_type+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002153else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002154 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002155 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002158 llvm_cv_os_type="AIX"
2159 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002160 *-*-irix*)
2161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163 llvm_cv_os_type="IRIX"
2164 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002165 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002166 llvm_cv_link_all_option="-Wl,--whole-archive"
2167 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002168 llvm_cv_os_type="Cygwin"
2169 llvm_cv_platform_type="Unix" ;;
2170 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002171 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002172 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002173 llvm_cv_os_type="Darwin"
2174 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002175 *-*-minix*)
2176 llvm_cv_link_all_option="-Wl,-all_load"
2177 llvm_cv_no_link_all_option="-Wl,-noall_load"
2178 llvm_cv_os_type="Minix"
2179 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002180 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002181 llvm_cv_link_all_option="-Wl,--whole-archive"
2182 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002183 llvm_cv_os_type="FreeBSD"
2184 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002185 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002186 llvm_cv_link_all_option="-Wl,--whole-archive"
2187 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002188 llvm_cv_os_type="OpenBSD"
2189 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002190 *-*-netbsd*)
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="NetBSD"
2194 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002195 *-*-dragonfly*)
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="DragonFly"
2199 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002200 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002203 llvm_cv_os_type="HP-UX"
2204 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002205 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002208 llvm_cv_os_type="Interix"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002211 llvm_cv_link_all_option="-Wl,--whole-archive"
2212 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002213 llvm_cv_os_type="Linux"
2214 llvm_cv_platform_type="Unix" ;;
2215 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002216 llvm_cv_link_all_option="-Wl,-z,allextract"
2217 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218 llvm_cv_os_type="SunOS"
2219 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002220 *-*-auroraux*)
2221 llvm_cv_link_all_option="-Wl,-z,allextract"
2222 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2223 llvm_cv_os_type="AuroraUX"
2224 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002225 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002228 llvm_cv_os_type="Win32"
2229 llvm_cv_platform_type="Win32" ;;
2230 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002233 llvm_cv_os_type="MingW"
2234 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002235 *-*-haiku*)
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="Haiku"
2239 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002240 *-unknown-eabi*)
2241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243 llvm_cv_os_type="Freestanding"
2244 llvm_cv_platform_type="Unix" ;;
2245 *-unknown-elf*)
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="Freestanding"
2249 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002250 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002251 llvm_cv_link_all_option=""
2252 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 llvm_cv_os_type="Unknown"
2254 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002255esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002257{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2258echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002260{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2261echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2262if test "${llvm_cv_target_os_type+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002264else
2265 case $target in
2266 *-*-aix*)
2267 llvm_cv_target_os_type="AIX" ;;
2268 *-*-irix*)
2269 llvm_cv_target_os_type="IRIX" ;;
2270 *-*-cygwin*)
2271 llvm_cv_target_os_type="Cygwin" ;;
2272 *-*-darwin*)
2273 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002274 *-*-minix*)
2275 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002276 *-*-freebsd*)
2277 llvm_cv_target_os_type="FreeBSD" ;;
2278 *-*-openbsd*)
2279 llvm_cv_target_os_type="OpenBSD" ;;
2280 *-*-netbsd*)
2281 llvm_cv_target_os_type="NetBSD" ;;
2282 *-*-dragonfly*)
2283 llvm_cv_target_os_type="DragonFly" ;;
2284 *-*-hpux*)
2285 llvm_cv_target_os_type="HP-UX" ;;
2286 *-*-interix*)
2287 llvm_cv_target_os_type="Interix" ;;
2288 *-*-linux*)
2289 llvm_cv_target_os_type="Linux" ;;
2290 *-*-solaris*)
2291 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002292 *-*-auroraux*)
2293 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002294 *-*-win32*)
2295 llvm_cv_target_os_type="Win32" ;;
2296 *-*-mingw*)
2297 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002298 *-*-haiku*)
2299 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002300 *-unknown-eabi*)
2301 llvm_cv_target_os_type="Freestanding" ;;
2302 *)
2303 llvm_cv_target_os_type="Unknown" ;;
2304esac
2305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002306{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2307echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002308
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002310 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2311echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2312 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002313fi
2314
Reid Spencer7b3e8512004-12-24 06:29:05 +00002315OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002316
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002317HOST_OS=$llvm_cv_os_type
2318
2319TARGET_OS=$llvm_cv_target_os_type
2320
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002321
Reid Spencera773bd52006-08-04 18:18:08 +00002322LINKALL=$llvm_cv_link_all_option
2323
2324NOLINKALL=$llvm_cv_no_link_all_option
2325
2326
Reid Spencer7b3e8512004-12-24 06:29:05 +00002327case $llvm_cv_platform_type in
2328 Unix)
2329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002330cat >>confdefs.h <<\_ACEOF
2331#define LLVM_ON_UNIX 1
2332_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002333
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002334 LLVM_ON_UNIX=1
2335
2336 LLVM_ON_WIN32=0
2337
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338 ;;
2339 Win32)
2340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341cat >>confdefs.h <<\_ACEOF
2342#define LLVM_ON_WIN32 1
2343_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002345 LLVM_ON_UNIX=0
2346
2347 LLVM_ON_WIN32=1
2348
Reid Spencer7b3e8512004-12-24 06:29:05 +00002349 ;;
2350esac
2351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352{ echo "$as_me:$LINENO: checking target architecture" >&5
2353echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2354if test "${llvm_cv_target_arch+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002356else
2357 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002358 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002359 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002360 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2361 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002362 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002363 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002364 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002365 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002366 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002367 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002368 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002369 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002370 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002371 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002372esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002374{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2375echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002376
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002377if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002378 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2379echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002380fi
John Criswell76595452003-07-01 22:07:39 +00002381
Nick Lewycky83fc4472009-09-29 05:48:51 +00002382# Determine the LLVM native architecture for the target
2383case "$llvm_cv_target_arch" in
2384 x86) LLVM_NATIVE_ARCH="X86" ;;
2385 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2386 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2387esac
2388
2389ARCH=$llvm_cv_target_arch
2390
2391
2392ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393ac_cpp='$CPP $CPPFLAGS'
2394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002397if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2399set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404else
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 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 +00002415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417 break 2
2418 fi
2419done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420done
Reid Spencera773bd52006-08-04 18:18:08 +00002421IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422
2423fi
2424fi
2425CC=$ac_cv_prog_CC
2426if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427 { echo "$as_me:$LINENO: result: $CC" >&5
2428echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002430 { echo "$as_me:$LINENO: result: no" >&5
2431echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432fi
2433
Reid Spencera773bd52006-08-04 18:18:08 +00002434
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435fi
2436if test -z "$ac_cv_prog_CC"; then
2437 ac_ct_CC=$CC
2438 # Extract the first word of "gcc", so it can be a program name with args.
2439set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002444else
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 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 +00002455 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457 break 2
2458 fi
2459done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460done
Reid Spencera773bd52006-08-04 18:18:08 +00002461IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462
2463fi
2464fi
2465ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002470 { echo "$as_me:$LINENO: result: no" >&5
2471echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472fi
2473
Reid Spencera773bd52006-08-04 18:18:08 +00002474 if test "x$ac_ct_CC" = x; then
2475 CC=""
2476 else
2477 case $cross_compiling:$ac_tool_warned in
2478yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002479{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480whose name does not start with the host triplet. If you think this
2481configuration is useful to you, please write to autoconf@gnu.org." >&5
2482echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483whose name does not start with the host triplet. If you think this
2484configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002485ac_tool_warned=yes ;;
2486esac
2487 CC=$ac_ct_CC
2488 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002489else
2490 CC="$ac_cv_prog_CC"
2491fi
2492
2493if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504else
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 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 +00002512 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514 break 2
2515 fi
2516done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002517done
Reid Spencera773bd52006-08-04 18:18:08 +00002518IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519
2520fi
2521fi
2522CC=$ac_cv_prog_CC
2523if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002524 { echo "$as_me:$LINENO: result: $CC" >&5
2525echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002527 { echo "$as_me:$LINENO: result: no" >&5
2528echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002529fi
2530
Reid Spencera773bd52006-08-04 18:18:08 +00002531
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533fi
2534if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002541else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544else
2545 ac_prog_rejected=no
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 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 +00002553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2555 continue
2556 fi
2557 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559 break 2
2560 fi
2561done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002562done
Reid Spencera773bd52006-08-04 18:18:08 +00002563IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564
2565if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2568 shift
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2573 shift
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2575 fi
2576fi
2577fi
2578fi
2579CC=$ac_cv_prog_CC
2580if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002581 { echo "$as_me:$LINENO: result: $CC" >&5
2582echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002584 { echo "$as_me:$LINENO: result: no" >&5
2585echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002586fi
2587
Reid Spencera773bd52006-08-04 18:18:08 +00002588
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002589fi
2590if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002592 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002593 do
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002600else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 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 +00002611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002613 break 2
2614 fi
2615done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616done
Reid Spencera773bd52006-08-04 18:18:08 +00002617IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002618
2619fi
2620fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621CC=$ac_cv_prog_CC
2622if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623 { echo "$as_me:$LINENO: result: $CC" >&5
2624echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002626 { echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002628fi
2629
Reid Spencera773bd52006-08-04 18:18:08 +00002630
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002632 done
2633fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634if test -z "$CC"; then
2635 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002636 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002637do
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002644else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 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 +00002655 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002657 break 2
2658 fi
2659done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002660done
Reid Spencera773bd52006-08-04 18:18:08 +00002661IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002662
2663fi
2664fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002670 { echo "$as_me:$LINENO: result: no" >&5
2671echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002672fi
2673
Reid Spencera773bd52006-08-04 18:18:08 +00002674
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002676done
John Criswell7a73b802003-06-30 21:59:07 +00002677
Reid Spencera773bd52006-08-04 18:18:08 +00002678 if test "x$ac_ct_CC" = x; then
2679 CC=""
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002683{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684whose name does not start with the host triplet. If you think this
2685configuration is useful to you, please write to autoconf@gnu.org." >&5
2686echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687whose name does not start with the host triplet. If you think this
2688configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002689ac_tool_warned=yes ;;
2690esac
2691 CC=$ac_ct_CC
2692 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693fi
2694
John Criswell7a73b802003-06-30 21:59:07 +00002695fi
2696
2697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2699See \`config.log' for more details." >&5
2700echo "$as_me: error: no acceptable C compiler found in \$PATH
2701See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002703
John Criswell7a73b802003-06-30 21:59:07 +00002704# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002705echo "$as_me:$LINENO: checking for C compiler version" >&5
2706ac_compiler=`set X $ac_compile; echo $2`
2707{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002708case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002714 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }
2717{ (ac_try="$ac_compiler -v >&5"
2718case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compiler -v >&5") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }
2727{ (ac_try="$ac_compiler -V >&5"
2728case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731esac
2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compiler -V >&5") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002738cat >conftest.$ac_ext <<_ACEOF
2739/* confdefs.h. */
2740_ACEOF
2741cat confdefs.h >>conftest.$ac_ext
2742cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002744
John Criswell7a73b802003-06-30 21:59:07 +00002745int
2746main ()
2747{
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002754ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002755# Try to create an executable without -o first, disregard a.out.
2756# It will help us diagnose broken compilers, and finding out an intuition
2757# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002758{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2759echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2760ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761#
2762# List of possible output files, starting from the most likely.
2763# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764# only as a last resort. b.out is created by i960 compilers.
2765ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2766#
2767# The IRIX 6 linker writes into existing files which may not be
2768# executable, retaining their permissions. Remove them first so a
2769# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002770ac_rmfiles=
2771for ac_file in $ac_files
2772do
2773 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776 esac
2777done
2778rm -f $ac_rmfiles
2779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002780if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002781case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002786 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002787 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792# in a Makefile. We should not override ac_cv_exeext if it was cached,
2793# so that the user can short-circuit this test for compilers unknown to
2794# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002795for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002796do
2797 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002798 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002800 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002801 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002802 # We found the default executable, but exeext='' is most
2803 # certainly right.
2804 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002805 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002807 then :; else
2808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809 fi
2810 # We set ac_cv_exeext here because the later test for it is not
2811 # safe: cross compilers may not add the suffix if given an `-o'
2812 # argument, so we may need to know it at that point already.
2813 # Even if this section looks crufty: it has the advantage of
2814 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002815 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002816 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002817 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002818 esac
2819done
Reid Spencera773bd52006-08-04 18:18:08 +00002820test "$ac_cv_exeext" = no && ac_cv_exeext=
2821
John Criswell7a73b802003-06-30 21:59:07 +00002822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002824sed 's/^/| /' conftest.$ac_ext >&5
2825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002826{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2827See \`config.log' for more details." >&5
2828echo "$as_me: error: C compiler cannot create executables
2829See \`config.log' for more details." >&2;}
2830 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002831fi
John Criswell7a73b802003-06-30 21:59:07 +00002832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002833ac_exeext=$ac_cv_exeext
2834{ echo "$as_me:$LINENO: result: $ac_file" >&5
2835echo "${ECHO_T}$ac_file" >&6; }
2836
2837# Check that the compiler produces executables we can run. If not, either
2838# the compiler is broken, or we cross compile.
2839{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842# If not cross compiling, check that we can run a simple program.
2843if test "$cross_compiling" != yes; then
2844 if { ac_try='./$ac_file'
2845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848esac
2849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 cross_compiling=no
2855 else
2856 if test "$cross_compiling" = maybe; then
2857 cross_compiling=yes
2858 else
2859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860If you meant to cross compile, use \`--host'.
2861See \`config.log' for more details." >&5
2862echo "$as_me: error: cannot run C compiled programs.
2863If you meant to cross compile, use \`--host'.
2864See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2866 fi
2867 fi
2868fi
2869{ echo "$as_me:$LINENO: result: yes" >&5
2870echo "${ECHO_T}yes" >&6; }
2871
2872rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002873ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002874# Check that the compiler produces executables we can run. If not, either
2875# the compiler is broken, or we cross compile.
2876{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879echo "${ECHO_T}$cross_compiling" >&6; }
2880
2881{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002889 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002890 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895# work properly (i.e., refer to `conftest.exe'), while it won't with
2896# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002897for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002899 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002902 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002903 * ) break;;
2904 esac
2905done
2906else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908See \`config.log' for more details." >&5
2909echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002913
2914rm -f conftest$ac_cv_exeext
2915{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002917
2918rm -f conftest.$ac_ext
2919EXEEXT=$ac_cv_exeext
2920ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002921{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923if test "${ac_cv_objext+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002926 cat >conftest.$ac_ext <<_ACEOF
2927/* confdefs.h. */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002932
John Criswell7a73b802003-06-30 21:59:07 +00002933int
2934main ()
2935{
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002942if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002943case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002948 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002949 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002954 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957 break;;
2958 esac
2959done
2960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002961 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002962sed 's/^/| /' conftest.$ac_ext >&5
2963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002964{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965See \`config.log' for more details." >&5
2966echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002969fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002970
John Criswell7a73b802003-06-30 21:59:07 +00002971rm -f conftest.$ac_cv_objext conftest.$ac_ext
2972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002973{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002975OBJEXT=$ac_cv_objext
2976ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002977{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002982 cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h. */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002987/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002988
John Criswell7a73b802003-06-30 21:59:07 +00002989int
2990main ()
2991{
2992#ifndef __GNUC__
2993 choke me
2994#endif
2995
2996 ;
2997 return 0;
2998}
2999_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003000rm -f conftest.$ac_objext
3001if { (ac_try="$ac_compile"
3002case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015 { (case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
3019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003034 ac_compiler_gnu=yes
3035else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003036 echo "$as_me: failed program was:" >&5
3037sed 's/^/| /' conftest.$ac_ext >&5
3038
3039 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003041
Reid Spencera773bd52006-08-04 18:18:08 +00003042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003043ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003044
3045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003046{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3048GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003049ac_test_CFLAGS=${CFLAGS+set}
3050ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003051{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3053if test "${ac_cv_prog_cc_g+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003055else
Reid Spencera773bd52006-08-04 18:18:08 +00003056 ac_save_c_werror_flag=$ac_c_werror_flag
3057 ac_c_werror_flag=yes
3058 ac_cv_prog_cc_g=no
3059 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003060 cat >conftest.$ac_ext <<_ACEOF
3061/* confdefs.h. */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003066
John Criswell7a73b802003-06-30 21:59:07 +00003067int
3068main ()
3069{
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003075rm -f conftest.$ac_objext
3076if { (ac_try="$ac_compile"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003109 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 CFLAGS=""
3115 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003120/* end confdefs.h. */
3121
3122int
3123main ()
3124{
3125
3126 ;
3127 return 0;
3128}
3129_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003130rm -f conftest.$ac_objext
3131if { (ac_try="$ac_compile"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158esac
3159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_try") 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 :
Torok Edwin871384f2010-01-26 08:50:50 +00003165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003166 echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003170 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003171 cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003186rm -f conftest.$ac_objext
3187if { (ac_try="$ac_compile"
3188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest.$ac_objext'
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
3215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_try") 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003220 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003221else
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
3225
John Criswell7a73b802003-06-30 21:59:07 +00003226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003227
Reid Spencera773bd52006-08-04 18:18:08 +00003228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230
Reid Spencera773bd52006-08-04 18:18:08 +00003231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003233
Reid Spencera773bd52006-08-04 18:18:08 +00003234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003237{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003239if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3243 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003244 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003245 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003246 fi
3247else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003248 if test "$GCC" = yes; then
3249 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003250 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003251 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003252 fi
3253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003254{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256if test "${ac_cv_prog_cc_c89+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258else
Reid Spencera773bd52006-08-04 18:18:08 +00003259 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003261cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266/* end confdefs.h. */
3267#include <stdarg.h>
3268#include <stdio.h>
3269#include <sys/types.h>
3270#include <sys/stat.h>
3271/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272struct buf { int x; };
3273FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274static char *e (p, i)
3275 char **p;
3276 int i;
3277{
3278 return p[i];
3279}
3280static char *f (char * (*g) (char **, int), char **p, ...)
3281{
3282 char *s;
3283 va_list v;
3284 va_start (v,p);
3285 s = g (p, va_arg (v,int));
3286 va_end (v);
3287 return s;
3288}
3289
3290/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003293 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003296 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298
Reid Spencera773bd52006-08-04 18:18:08 +00003299/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3301#define FOO(x) 'x'
3302int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304int test (int i, double x);
3305struct s1 {int (*f) (int a);};
3306struct s2 {int (*f) (double a);};
3307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308int argc;
3309char **argv;
3310int
3311main ()
3312{
3313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3314 ;
3315 return 0;
3316}
3317_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003318for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003320do
3321 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003322 rm -f conftest.$ac_objext
3323if { (ac_try="$ac_compile"
3324case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
3328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337 { (case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340esac
3341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_try") 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
3351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_try") 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003356 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003357else
3358 echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
3361
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003363
Reid Spencera773bd52006-08-04 18:18:08 +00003364rm -f core conftest.err conftest.$ac_objext
3365 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003366done
Reid Spencera773bd52006-08-04 18:18:08 +00003367rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368CC=$ac_save_CC
3369
3370fi
Reid Spencera773bd52006-08-04 18:18:08 +00003371# AC_CACHE_VAL
3372case "x$ac_cv_prog_cc_c89" in
3373 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374 { echo "$as_me:$LINENO: result: none needed" >&5
3375echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003376 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003377 { echo "$as_me:$LINENO: result: unsupported" >&5
3378echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003380 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3382echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383esac
3384
John Criswell0c38eaf2003-09-10 15:17:25 +00003385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391
3392
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393ac_ext=c
3394ac_cpp='$CPP $CPPFLAGS'
3395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003398{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3399echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400# On Suns, sometimes $CPP names a directory.
3401if test -n "$CPP" && test -d "$CPP"; then
3402 CPP=
3403fi
3404if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405 if test "${ac_cv_prog_CPP+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003407else
3408 # Double quotes because CPP needs to be expanded
3409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3410 do
3411 ac_preproc_ok=false
3412for ac_c_preproc_warn_flag in '' yes
3413do
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003420 cat >conftest.$ac_ext <<_ACEOF
3421/* confdefs.h. */
3422_ACEOF
3423cat confdefs.h >>conftest.$ac_ext
3424cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425/* end confdefs.h. */
3426#ifdef __STDC__
3427# include <limits.h>
3428#else
3429# include <assert.h>
3430#endif
3431 Syntax error
3432_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003433if { (ac_try="$ac_cpp conftest.$ac_ext"
3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
3438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 else
3450 ac_cpp_err=
3451 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003453 ac_cpp_err=yes
3454fi
3455if test -z "$ac_cpp_err"; then
3456 :
3457else
3458 echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461 # Broken: fails on valid input.
3462continue
3463fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003464
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003465rm -f conftest.err conftest.$ac_ext
3466
Reid Spencera773bd52006-08-04 18:18:08 +00003467 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003468 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003469 cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003474/* end confdefs.h. */
3475#include <ac_nonexistent.h>
3476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003477if { (ac_try="$ac_cpp conftest.$ac_ext"
3478case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481esac
3482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 else
3494 ac_cpp_err=
3495 fi
3496else
3497 ac_cpp_err=yes
3498fi
3499if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003500 # Broken: success on invalid input.
3501continue
3502else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003503 echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506 # Passes both tests.
3507ac_preproc_ok=:
3508break
3509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003510
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511rm -f conftest.err conftest.$ac_ext
3512
3513done
3514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003516if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003517 break
3518fi
3519
3520 done
3521 ac_cv_prog_CPP=$CPP
3522
3523fi
3524 CPP=$ac_cv_prog_CPP
3525else
3526 ac_cv_prog_CPP=$CPP
3527fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003528{ echo "$as_me:$LINENO: result: $CPP" >&5
3529echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003530ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533 # Use a header file that comes with gcc, so configuring glibc
3534 # with a fresh cross-compiler works.
3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 # <limits.h> exists even on freestanding compilers.
3537 # On the NeXT, cc -E runs the code through the compiler's parser,
3538 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003539 cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544/* end confdefs.h. */
3545#ifdef __STDC__
3546# include <limits.h>
3547#else
3548# include <assert.h>
3549#endif
3550 Syntax error
3551_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003552if { (ac_try="$ac_cpp conftest.$ac_ext"
3553case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556esac
3557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 else
3569 ac_cpp_err=
3570 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003572 ac_cpp_err=yes
3573fi
3574if test -z "$ac_cpp_err"; then
3575 :
3576else
3577 echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003580 # Broken: fails on valid input.
3581continue
3582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003583
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003584rm -f conftest.err conftest.$ac_ext
3585
Reid Spencera773bd52006-08-04 18:18:08 +00003586 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003587 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003588 cat >conftest.$ac_ext <<_ACEOF
3589/* confdefs.h. */
3590_ACEOF
3591cat confdefs.h >>conftest.$ac_ext
3592cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003593/* end confdefs.h. */
3594#include <ac_nonexistent.h>
3595_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003596if { (ac_try="$ac_cpp conftest.$ac_ext"
3597case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600esac
3601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 else
3613 ac_cpp_err=
3614 fi
3615else
3616 ac_cpp_err=yes
3617fi
3618if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003619 # Broken: success on invalid input.
3620continue
3621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003622 echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625 # Passes both tests.
3626ac_preproc_ok=:
3627break
3628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003629
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003630rm -f conftest.err conftest.$ac_ext
3631
3632done
3633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003635if $ac_preproc_ok; then
3636 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639See \`config.log' for more details." >&5
3640echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003643fi
3644
John Criswell7a73b802003-06-30 21:59:07 +00003645ac_ext=c
3646ac_cpp='$CPP $CPPFLAGS'
3647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
John Criswell7a73b802003-06-30 21:59:07 +00003651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003652{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003657 # Extract the first word of "grep ggrep" to use in msg output
3658if test -z "$GREP"; then
3659set dummy grep ggrep; ac_prog_name=$2
3660if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
Reid Spencera773bd52006-08-04 18:18:08 +00003663 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003664# Loop through the user's path and test for each of PROGNAME-LIST
3665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003667do
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003670 for ac_prog in grep ggrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3674 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003675 # Check for GNU $ac_path_GREP
3676case `"$ac_path_GREP" --version 2>&1` in
3677*GNU*)
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3679*)
3680 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003682 while :
3683 do
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003687 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003690 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003695 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3698 done
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700esac
3701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003702
3703 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003704 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003705done
3706
3707done
Reid Spencera773bd52006-08-04 18:18:08 +00003708IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003709
3710
3711fi
3712
3713GREP="$ac_cv_path_GREP"
3714if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3718fi
3719
Reid Spencera773bd52006-08-04 18:18:08 +00003720else
3721 ac_cv_path_GREP=$GREP
3722fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003724
Reid Spencera773bd52006-08-04 18:18:08 +00003725fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003726{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003728 GREP="$ac_cv_path_GREP"
3729
3730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003731{ echo "$as_me:$LINENO: checking for egrep" >&5
3732echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003735else
3736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737 then ac_cv_path_EGREP="$GREP -E"
3738 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003739 # Extract the first word of "egrep" to use in msg output
3740if test -z "$EGREP"; then
3741set dummy egrep; ac_prog_name=$2
3742if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
Reid Spencera773bd52006-08-04 18:18:08 +00003745 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003746# Loop through the user's path and test for each of PROGNAME-LIST
3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003748for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749do
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003752 for ac_prog in egrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3755 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3756 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003757 # Check for GNU $ac_path_EGREP
3758case `"$ac_path_EGREP" --version 2>&1` in
3759*GNU*)
3760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3761*)
3762 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003764 while :
3765 do
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003769 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003772 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP="$ac_path_EGREP"
3776 ac_path_EGREP_max=$ac_count
3777 fi
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3780 done
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782esac
3783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003784
3785 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003786 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003787done
3788
3789done
Reid Spencera773bd52006-08-04 18:18:08 +00003790IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003791
3792
3793fi
3794
3795EGREP="$ac_cv_path_EGREP"
3796if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3800fi
3801
Reid Spencera773bd52006-08-04 18:18:08 +00003802else
3803 ac_cv_path_EGREP=$EGREP
3804fi
3805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003806
Reid Spencera773bd52006-08-04 18:18:08 +00003807 fi
3808fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003809{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003811 EGREP="$ac_cv_path_EGREP"
3812
3813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003814{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3816if test "${ac_cv_header_stdc+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003819 cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h. */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003824/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003825#include <stdlib.h>
3826#include <stdarg.h>
3827#include <string.h>
3828#include <float.h>
3829
John Criswell0c38eaf2003-09-10 15:17:25 +00003830int
3831main ()
3832{
3833
3834 ;
3835 return 0;
3836}
John Criswell7a73b802003-06-30 21:59:07 +00003837_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003838rm -f conftest.$ac_objext
3839if { (ac_try="$ac_compile"
3840case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843esac
3844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853 { (case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856esac
3857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_try") 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866esac
3867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_try") 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003872 ac_cv_header_stdc=yes
3873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003874 echo "$as_me: failed program was:" >&5
3875sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003879
Reid Spencera773bd52006-08-04 18:18:08 +00003880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003881
3882if test $ac_cv_header_stdc = yes; then
3883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003884 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003889/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003890#include <string.h>
3891
3892_ACEOF
3893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003894 $EGREP "memchr" >/dev/null 2>&1; then
3895 :
John Criswell7a73b802003-06-30 21:59:07 +00003896else
3897 ac_cv_header_stdc=no
3898fi
3899rm -f conftest*
3900
3901fi
3902
3903if test $ac_cv_header_stdc = yes; then
3904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003905 cat >conftest.$ac_ext <<_ACEOF
3906/* confdefs.h. */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003910/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003911#include <stdlib.h>
3912
3913_ACEOF
3914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003915 $EGREP "free" >/dev/null 2>&1; then
3916 :
John Criswell7a73b802003-06-30 21:59:07 +00003917else
3918 ac_cv_header_stdc=no
3919fi
3920rm -f conftest*
3921
3922fi
3923
3924if test $ac_cv_header_stdc = yes; then
3925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003927 :
3928else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003929 cat >conftest.$ac_ext <<_ACEOF
3930/* confdefs.h. */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003934/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003935#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003936#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003937#if ((' ' & 0x0FF) == 0x020)
3938# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003941# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003942 (('a' <= (c) && (c) <= 'i') \
3943 || ('j' <= (c) && (c) <= 'r') \
3944 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003945# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3946#endif
3947
3948#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3949int
3950main ()
3951{
3952 int i;
3953 for (i = 0; i < 256; i++)
3954 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003955 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003956 return 2;
3957 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003958}
3959_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003960rm -f conftest$ac_exeext
3961if { (ac_try="$ac_link"
3962case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965esac
3966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_link") 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974esac
3975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3980 :
John Criswell7a73b802003-06-30 21:59:07 +00003981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982 echo "$as_me: program exited with status $ac_status" >&5
3983echo "$as_me: failed program was:" >&5
3984sed 's/^/| /' conftest.$ac_ext >&5
3985
3986( exit $ac_status )
3987ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003988fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003989rm -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 +00003990fi
3991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992
John Criswell7a73b802003-06-30 21:59:07 +00003993fi
3994fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003995{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3996echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003997if test $ac_cv_header_stdc = yes; then
3998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999cat >>confdefs.h <<\_ACEOF
4000#define STDC_HEADERS 1
4001_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004002
4003fi
4004
Reid Spencera773bd52006-08-04 18:18:08 +00004005# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004006
4007
4008
4009
4010
4011
4012
4013
4014
Reid Spencera773bd52006-08-04 18:18:08 +00004015for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4016 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004017do
4018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023else
4024 cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h. */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h. */
4030$ac_includes_default
4031
4032#include <$ac_header>
4033_ACEOF
4034rm -f conftest.$ac_objext
4035if { (ac_try="$ac_compile"
4036case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039esac
4040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4049 { (case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052esac
4053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_try") 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062esac
4063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_try") 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 eval "$as_ac_Header=yes"
4069else
4070 echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 eval "$as_ac_Header=no"
4074fi
4075
4076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077fi
4078ac_res=`eval echo '${'$as_ac_Header'}'`
4079 { echo "$as_me:$LINENO: result: $ac_res" >&5
4080echo "${ECHO_T}$ac_res" >&6; }
4081if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004082 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004084_ACEOF
4085
4086fi
4087
4088done
4089
4090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004091{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4092echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4093if test "${ac_cv_c_bigendian+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004095else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004096 # See if sys/param.h defines the BYTE_ORDER macro.
4097cat >conftest.$ac_ext <<_ACEOF
4098/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004099_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004100cat confdefs.h >>conftest.$ac_ext
4101cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004102/* end confdefs.h. */
4103#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004104#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004105
4106int
4107main ()
4108{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004109#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4110 bogus endian macros
4111#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004112
4113 ;
4114 return 0;
4115}
4116_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004117rm -f conftest.$ac_objext
4118if { (ac_try="$ac_compile"
4119case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4132 { (case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_try") 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145esac
4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004151 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004152cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004157/* end confdefs.h. */
4158#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004160
4161int
4162main ()
4163{
4164#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004165 not big endian
4166#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004167
4168 ;
4169 return 0;
4170}
4171_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004172rm -f conftest.$ac_objext
4173if { (ac_try="$ac_compile"
4174case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177esac
4178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4187 { (case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190esac
4191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_try") 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200esac
4201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004206 ac_cv_c_bigendian=yes
4207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004208 echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004211 ac_cv_c_bigendian=no
4212fi
4213
4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215else
4216 echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 # It does not; compile a test program.
4220if test "$cross_compiling" = yes; then
4221 # try to guess the endianness by grepping values into an object file
4222 ac_cv_c_bigendian=unknown
4223 cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h. */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h. */
4229short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4230short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4231void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4232short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4233short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4234void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004235int
4236main ()
4237{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004239 ;
4240 return 0;
4241}
4242_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004243rm -f conftest.$ac_objext
4244if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4258 { (case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261esac
4262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_try") 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest.$ac_objext'
4268 { (case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271esac
4272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_try") 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004278 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004279fi
4280if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4281 if test "$ac_cv_c_bigendian" = unknown; then
4282 ac_cv_c_bigendian=no
4283 else
4284 # finding both strings is unlikely to happen, but who knows?
4285 ac_cv_c_bigendian=unknown
4286 fi
4287fi
Reid Spencera773bd52006-08-04 18:18:08 +00004288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289 echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292
Torok Edwin871384f2010-01-26 08:50:50 +00004293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004294
Reid Spencera773bd52006-08-04 18:18:08 +00004295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004297 cat >conftest.$ac_ext <<_ACEOF
4298/* confdefs.h. */
4299_ACEOF
4300cat confdefs.h >>conftest.$ac_ext
4301cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004302/* end confdefs.h. */
4303$ac_includes_default
4304int
4305main ()
4306{
4307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004308 /* Are we little or big endian? From Harbison&Steele. */
4309 union
4310 {
4311 long int l;
4312 char c[sizeof (long int)];
4313 } u;
4314 u.l = 1;
4315 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004316
4317 ;
4318 return 0;
4319}
4320_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004321rm -f conftest$ac_exeext
4322if { (ac_try="$ac_link"
4323case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326esac
4327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_link") 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004341 ac_cv_c_bigendian=no
4342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004343 echo "$as_me: program exited with status $ac_status" >&5
4344echo "$as_me: failed program was:" >&5
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
4347( exit $ac_status )
4348ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004350rm -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 +00004351fi
4352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004353
Reid Spencera773bd52006-08-04 18:18:08 +00004354fi
4355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357fi
4358{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4359echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4360case $ac_cv_c_bigendian in
4361 yes)
4362 ENDIAN=big
4363 ;;
4364 no)
4365 ENDIAN=little
4366 ;;
4367 *)
4368 { { echo "$as_me:$LINENO: error: unknown endianness
4369presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4370echo "$as_me: error: unknown endianness
4371presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4372 { (exit 1); exit 1; }; } ;;
4373esac
Reid Spencera773bd52006-08-04 18:18:08 +00004374
4375
4376if test "$cross_compiling" = yes; then
4377 LLVM_CROSS_COMPILING=1
4378
4379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004380{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4381echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4382if test "${ac_cv_build_exeext+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004384else
4385 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4386 ac_cv_build_exeext=.exe
4387else
4388 ac_build_prefix=${build_alias}-
4389
4390 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4391set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004396else
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 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 +00004407 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004409 break 2
4410 fi
4411done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004412done
Reid Spencera773bd52006-08-04 18:18:08 +00004413IFS=$as_save_IFS
4414
4415fi
4416fi
4417BUILD_CC=$ac_cv_prog_BUILD_CC
4418if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004422 { echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004424fi
4425
4426
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "gcc", so it can be a program name with args.
4429set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004434else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437else
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 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 +00004445 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004447 break 2
4448 fi
4449done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450done
Reid Spencera773bd52006-08-04 18:18:08 +00004451IFS=$as_save_IFS
4452
4453fi
4454fi
4455BUILD_CC=$ac_cv_prog_BUILD_CC
4456if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004460 { echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004462fi
4463
4464
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "cc", so it can be a program name with args.
4467set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004472else
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475else
4476 ac_prog_rejected=no
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 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 +00004484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485 ac_prog_rejected=yes
4486 continue
4487 fi
4488 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004490 break 2
4491 fi
4492done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004493done
Reid Spencera773bd52006-08-04 18:18:08 +00004494IFS=$as_save_IFS
4495
4496if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CC
4499 shift
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CC to just the basename; use the full file name.
4504 shift
4505 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4506 fi
4507fi
4508fi
4509fi
4510BUILD_CC=$ac_cv_prog_BUILD_CC
4511if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004512 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4513echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004515 { echo "$as_me:$LINENO: result: no" >&5
4516echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004517fi
4518
4519
4520 fi
4521 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004522 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4523echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4524 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004525 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4526 rm -f conftest*
4527 echo 'int main () { return 0; }' > conftest.$ac_ext
4528 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004529 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004530 (eval $ac_build_link) 2>&5
4531 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004534 for file in conftest.*; do
4535 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004536 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004537 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4538 esac
4539 done
4540 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004541 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4542echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4543 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004544 fi
4545 rm -f conftest*
4546 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4547fi
4548fi
4549
4550BUILD_EXEEXT=""
4551test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4553echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004554ac_build_exeext=$BUILD_EXEEXT
4555
Jim Grosbach673612e2008-10-02 22:56:44 +00004556 ac_build_prefix=${build_alias}-
4557 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4558set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4561if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004563else
4564 if test -n "$BUILD_CXX"; then
4565 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 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 +00004574 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004576 break 2
4577 fi
4578done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579done
Jim Grosbach673612e2008-10-02 22:56:44 +00004580IFS=$as_save_IFS
4581
4582fi
4583fi
4584BUILD_CXX=$ac_cv_prog_BUILD_CXX
4585if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004586 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4587echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004588else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004589 { echo "$as_me:$LINENO: result: no" >&5
4590echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004591fi
4592
4593
4594 if test -z "$BUILD_CXX"; then
4595 # Extract the first word of "g++", so it can be a program name with args.
4596set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004601else
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 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 +00004612 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004614 break 2
4615 fi
4616done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617done
Jim Grosbach673612e2008-10-02 22:56:44 +00004618IFS=$as_save_IFS
4619
4620fi
4621fi
4622BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004626else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004627 { echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004629fi
4630
4631
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "c++", so it can be a program name with args.
4634set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004639else
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642else
4643 ac_prog_rejected=no
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 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 +00004651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4652 ac_prog_rejected=yes
4653 continue
4654 fi
4655 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004657 break 2
4658 fi
4659done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004660done
Jim Grosbach673612e2008-10-02 22:56:44 +00004661IFS=$as_save_IFS
4662
4663if test $ac_prog_rejected = yes; then
4664 # We found a bogon in the path, so make sure we never use it.
4665 set dummy $ac_cv_prog_BUILD_CXX
4666 shift
4667 if test $# != 0; then
4668 # We chose a different compiler from the bogus one.
4669 # However, it has the same basename, so the bogon will be chosen
4670 # first if we set BUILD_CXX to just the basename; use the full file name.
4671 shift
4672 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4673 fi
4674fi
4675fi
4676fi
4677BUILD_CXX=$ac_cv_prog_BUILD_CXX
4678if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004679 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4680echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004682 { echo "$as_me:$LINENO: result: no" >&5
4683echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004684fi
4685
4686
4687 fi
4688 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004689else
4690 LLVM_CROSS_COMPILING=0
4691
4692fi
4693
Nick Lewycky5b28f862009-04-10 05:18:27 +00004694if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004695 cvsbuild="yes"
4696 optimize="no"
4697 CVSBUILD=CVSBUILD=1
4698
4699else
4700 cvsbuild="no"
4701 optimize="yes"
4702fi
4703
4704
4705# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004707 enableval=$enable_optimized;
4708else
4709 enableval=$optimize
4710fi
4711
4712if test ${enableval} = "no" ; then
4713 ENABLE_OPTIMIZED=
4714
4715else
4716 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4717
4718fi
4719
David Greene2a5a12c2009-04-17 14:50:39 +00004720# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004721if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004722 enableval=$enable_profiling;
4723else
4724 enableval="no"
4725fi
4726
4727if test ${enableval} = "no" ; then
4728 ENABLE_PROFILING=
4729
4730else
4731 ENABLE_PROFILING=ENABLE_PROFILING=1
4732
4733fi
4734
Reid Spencera773bd52006-08-04 18:18:08 +00004735# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004736if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004737 enableval=$enable_assertions;
4738else
4739 enableval="yes"
4740fi
4741
4742if test ${enableval} = "yes" ; then
4743 DISABLE_ASSERTIONS=
4744
4745else
4746 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4747
4748fi
4749
David Greenea696d242007-06-28 19:36:08 +00004750# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004751if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004752 enableval=$enable_expensive_checks;
4753else
4754 enableval="no"
4755fi
4756
4757if test ${enableval} = "yes" ; then
4758 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4759
4760 EXPENSIVE_CHECKS=yes
4761
4762else
4763 ENABLE_EXPENSIVE_CHECKS=
4764
4765 EXPENSIVE_CHECKS=no
4766
4767fi
4768
Reid Spencer8b2e1412006-11-17 03:32:33 +00004769# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004770if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004771 enableval=$enable_debug_runtime;
4772else
4773 enableval=no
4774fi
4775
4776if test ${enableval} = "no" ; then
4777 DEBUG_RUNTIME=
4778
4779else
4780 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4781
4782fi
4783
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004784# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004785if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004786 enableval=$enable_debug_symbols;
4787else
4788 enableval=no
4789fi
4790
4791if test ${enableval} = "no" ; then
4792 DEBUG_SYMBOLS=
4793
4794else
4795 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4796
4797fi
4798
Reid Spencera773bd52006-08-04 18:18:08 +00004799# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004800if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004801 enableval=$enable_jit;
4802else
4803 enableval=default
4804fi
4805
4806if test ${enableval} = "no"
4807then
4808 JIT=
4809
4810else
4811 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004812 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004813 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004814 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004815 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004816 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004817 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004818 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004819 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004820 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004821 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004822 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004823 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004824 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004825 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004826 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004827 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004828 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004829 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004830 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004831 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004832 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004833 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004834 Blackfin) TARGET_HAS_JIT=0
4835 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004836 MBlaze) TARGET_HAS_JIT=0
4837 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004838 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004839 ;;
4840 esac
4841fi
4842
4843# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004844if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004845 enableval=$enable_doxygen;
4846else
4847 enableval=default
4848fi
4849
4850case "$enableval" in
4851 yes) ENABLE_DOXYGEN=1
4852 ;;
4853 no) ENABLE_DOXYGEN=0
4854 ;;
4855 default) ENABLE_DOXYGEN=0
4856 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004857 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4858echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4859 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004860esac
4861
4862# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004863if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004864 enableval=$enable_threads;
4865else
Reid Spencer65c5d752006-11-05 17:08:18 +00004866 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004867fi
4868
4869case "$enableval" in
4870 yes) ENABLE_THREADS=1
4871 ;;
4872 no) ENABLE_THREADS=0
4873 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004874 default) ENABLE_THREADS=1
4875 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004876 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4877echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4878 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004879esac
4880
Owen Andersona8603702009-05-19 22:18:56 +00004881cat >>confdefs.h <<_ACEOF
4882#define ENABLE_THREADS $ENABLE_THREADS
4883_ACEOF
4884
4885
Reid Spencer89b0d992006-12-16 22:07:52 +00004886# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004887if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004888 enableval=$enable_pic;
4889else
4890 enableval=default
4891fi
4892
4893case "$enableval" in
4894 yes) ENABLE_PIC=1
4895 ;;
4896 no) ENABLE_PIC=0
4897 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004898 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004899 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004900 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4901echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4902 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004903esac
4904
4905cat >>confdefs.h <<_ACEOF
4906#define ENABLE_PIC $ENABLE_PIC
4907_ACEOF
4908
4909
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004910# Check whether --enable-shared was given.
4911if test "${enable_shared+set}" = set; then
4912 enableval=$enable_shared;
4913else
4914 enableval=default
4915fi
4916
4917case "$enableval" in
4918 yes) ENABLE_SHARED=1
4919 ;;
4920 no) ENABLE_SHARED=0
4921 ;;
4922 default) ENABLE_SHARED=0
4923 ;;
4924 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4925echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4926 { (exit 1); exit 1; }; } ;;
4927esac
4928
Daniel Dunbardd464df2010-05-10 20:11:56 +00004929# Check whether --enable-timestamps was given.
4930if test "${enable_timestamps+set}" = set; then
4931 enableval=$enable_timestamps;
4932else
4933 enableval=default
4934fi
4935
4936case "$enableval" in
4937 yes) ENABLE_TIMESTAMPS=1
4938 ;;
4939 no) ENABLE_TIMESTAMPS=0
4940 ;;
4941 default) ENABLE_TIMESTAMPS=1
4942 ;;
4943 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4944echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4945 { (exit 1); exit 1; }; } ;;
4946esac
4947
4948cat >>confdefs.h <<_ACEOF
4949#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4950_ACEOF
4951
4952
Reid Spencera773bd52006-08-04 18:18:08 +00004953TARGETS_TO_BUILD=""
4954# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004955if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004956 enableval=$enable_targets;
4957else
4958 enableval=all
4959fi
4960
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004961if test "$enableval" = host-only ; then
4962 enableval=host
4963fi
Reid Spencera773bd52006-08-04 18:18:08 +00004964case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004965 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004966 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4967 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004968 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4969 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4970 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4971 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4972 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4973 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4974 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4975 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4976 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4977 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4978 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4979 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4980 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4981 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4982 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4983 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004984 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004985 host) case "$llvm_cv_target_arch" in
4986 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4987 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4988 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4989 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4990 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4991 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4992 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004993 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004994 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4995 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4996 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4997 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004998 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004999 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005000 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5001echo "$as_me: error: Can not set target to build" >&2;}
5002 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005003 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005004 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5005echo "$as_me: error: Unrecognized target $a_target" >&2;}
5006 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005007 esac
5008 done
5009 ;;
5010esac
Reid Spencera773bd52006-08-04 18:18:08 +00005011TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5012
5013
Douglas Gregor0711c302009-06-17 00:43:20 +00005014# Determine whether we are building LLVM support for the native architecture.
5015# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5016for a_target in $TARGETS_TO_BUILD; do
5017 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005018 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005019
5020cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005021#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005022_ACEOF
5023
5024 fi
5025done
5026
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005027# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5028# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005029LLVM_ENUM_TARGETS=""
5030LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005031LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005032LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005033for target_to_build in $TARGETS_TO_BUILD; do
5034 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5035 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5036 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5037 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005038 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5039 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5040 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005041 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5042 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5043 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005044done
5045
5046
5047
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005048
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005049
Reid Spencer65c5d752006-11-05 17:08:18 +00005050# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005051if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005052 enableval=$enable_cbe_printf_a;
5053else
5054 enableval=default
5055fi
5056
5057case "$enableval" in
5058 yes) ENABLE_CBE_PRINTF_A=1
5059 ;;
5060 no) ENABLE_CBE_PRINTF_A=0
5061 ;;
5062 default) ENABLE_CBE_PRINTF_A=1
5063 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005064 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5065echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5066 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005067esac
5068
5069cat >>confdefs.h <<_ACEOF
5070#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5071_ACEOF
5072
5073
Reid Spencera773bd52006-08-04 18:18:08 +00005074
5075# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005076if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005077 withval=$with_llvmgccdir;
5078else
5079 withval=default
5080fi
5081
5082case "$withval" in
5083 default) WITH_LLVMGCCDIR=default ;;
5084 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005085 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5086echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5087 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005088esac
5089
5090
Devang Patel5d28b882007-12-04 22:54:47 +00005091# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005092if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005093 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5094 WITH_LLVMGCCDIR=""
5095fi
5096
5097
5098
5099# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005100if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005101 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5102 WITH_LLVMGCCDIR=""
5103fi
5104
Douglas Gregor01746742009-05-11 18:05:52 +00005105
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005106if test -n "$LLVMGCC"; then
5107 LLVMGCCCOMMAND="$LLVMGCC"
5108fi
5109
5110if test -n "$LLVMGXX"; then
5111 LLVMGXXCOMMAND="$LLVMGXX"
5112fi
Devang Patel5d28b882007-12-04 22:54:47 +00005113
5114if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005115 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5116echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5117 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005118fi
5119
5120if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005121 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5122echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5123 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005124fi
5125
5126
Daniel Dunbar98515672010-02-23 10:00:49 +00005127# Check whether --with-clang was given.
5128if test "${with_clang+set}" = set; then
5129 withval=$with_clang;
5130else
5131 with_clang=default
5132fi
5133
5134
5135
5136# Check whether --with-built-clang was given.
5137if test "${with_built_clang+set}" = set; then
5138 withval=$with_built_clang;
5139else
5140 with_built_clang=check
5141fi
5142
5143
5144{ echo "$as_me:$LINENO: checking clang compiler" >&5
5145echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5146WITH_CLANGPATH=""
5147WITH_BUILT_CLANG=0
5148if test "$with_clang" != "default"; then
5149 WITH_CLANGPATH="$with_clang"
5150 if ! test -x "$WITH_CLANGPATH"; then
5151 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5152echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5153 { (exit 1); exit 1; }; }
5154 fi
5155elif test "$with_built_clang" = "yes"; then
5156 WITH_BUILT_CLANG=1
5157elif test "$with_built_clang" = "no"; then
5158 WITH_BUILT_CLANG=0
5159else
5160 if test "$with_built_clang" != "check"; then
5161 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5162echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5163 { (exit 1); exit 1; }; }
5164 fi
5165
5166 if test -f ${srcdir}/tools/clang/README.txt; then
5167 WITH_BUILT_CLANG=1
5168 fi
5169fi
5170
5171if ! test -z "$WITH_CLANGPATH"; then
5172 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5173echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5174 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5175elif test "$WITH_BUILT_CLANG" = "1"; then
5176 { echo "$as_me:$LINENO: result: built" >&5
5177echo "${ECHO_T}built" >&6; }
5178else
5179 { echo "$as_me:$LINENO: result: none" >&5
5180echo "${ECHO_T}none" >&6; }
5181fi
5182CLANGPATH=$WITH_CLANGPATH
5183
5184CLANGXXPATH=$WITH_CLANGXXPATH
5185
5186ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5187
5188
5189
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005190# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005191if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005192 withval=$with_optimize_option;
5193else
5194 withval=default
5195fi
5196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005197{ echo "$as_me:$LINENO: checking optimization flags" >&5
5198echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005199case "$withval" in
5200 default)
5201 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005202 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005203 MingW) optimize_option=-O2 ;;
5204 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005205 esac ;;
5206 *) optimize_option="$withval" ;;
5207esac
5208OPTIMIZE_OPTION=$optimize_option
5209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005210{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5211echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005212
5213
Reid Spencera773bd52006-08-04 18:18:08 +00005214# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005215if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005216 withval=$with_extra_options;
5217else
5218 withval=default
5219fi
5220
5221case "$withval" in
5222 default) EXTRA_OPTIONS= ;;
5223 *) EXTRA_OPTIONS=$withval ;;
5224esac
5225EXTRA_OPTIONS=$EXTRA_OPTIONS
5226
5227
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005228# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005229if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005230 enableval=$enable_bindings;
5231else
5232 enableval=default
5233fi
5234
5235BINDINGS_TO_BUILD=""
5236case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005237 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005238 all ) BINDINGS_TO_BUILD="ocaml" ;;
5239 none | no) BINDINGS_TO_BUILD="" ;;
5240 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5241 case "$a_binding" in
5242 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005243 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5244echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5245 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005246 esac
5247 done
5248 ;;
5249esac
5250
Reid Spencera773bd52006-08-04 18:18:08 +00005251
Gordon Henriksenf0915682007-10-02 16:42:22 +00005252# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005253if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005254 withval=$with_ocaml_libdir;
5255else
5256 withval=auto
5257fi
5258
5259case "$withval" in
5260 auto) with_ocaml_libdir="$withval" ;;
5261 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005262 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5263echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5264 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005265esac
5266
5267
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005268# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005269if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005270 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005271else
5272 withval=""
5273fi
5274
5275
5276cat >>confdefs.h <<_ACEOF
5277#define C_INCLUDE_DIRS "$withval"
5278_ACEOF
5279
5280
5281
Rafael Espindola420d23c2009-11-16 19:46:55 +00005282# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005283if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005284 withval=$with_cxx_include_root;
5285else
5286 withval=""
5287fi
5288
5289
5290cat >>confdefs.h <<_ACEOF
5291#define CXX_INCLUDE_ROOT "$withval"
5292_ACEOF
5293
5294
5295
5296# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005297if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005298 withval=$with_cxx_include_arch;
5299else
5300 withval=""
5301fi
5302
5303
5304cat >>confdefs.h <<_ACEOF
5305#define CXX_INCLUDE_ARCH "$withval"
5306_ACEOF
5307
5308
5309
5310# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005311if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005312 withval=$with_cxx_include_32bit_dir;
5313else
5314 withval=""
5315fi
5316
5317
5318cat >>confdefs.h <<_ACEOF
5319#define CXX_INCLUDE_32BIT_DIR "$withval"
5320_ACEOF
5321
5322
5323
5324# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005325if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005326 withval=$with_cxx_include_64bit_dir;
5327else
5328 withval=""
5329fi
5330
5331
5332cat >>confdefs.h <<_ACEOF
5333#define CXX_INCLUDE_64BIT_DIR "$withval"
5334_ACEOF
5335
5336
5337
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005338# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005339if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005340 withval=$with_binutils_include;
5341else
5342 withval=default
5343fi
5344
5345case "$withval" in
5346 default) WITH_BINUTILS_INCDIR=default ;;
5347 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005348 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5349echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5350 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005351esac
5352if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5353 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5354
5355 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5356 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005357 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5358echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5359 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005360 fi
5361fi
5362
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005363# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005364if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005365 enableval=$enable_libffi; case "$enableval" in
5366 yes) llvm_cv_enable_libffi="yes" ;;
5367 no) llvm_cv_enable_libffi="no" ;;
5368 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005369echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5370 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005371 esac
5372else
5373 llvm_cv_enable_libffi=no
5374fi
5375
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005376
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005377if test "$llvm_cv_os_type" = "Win32" ; then
5378 llvmc_dynamic="yes"
5379else
5380 llvmc_dynamic="no"
5381fi
5382
5383# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005384if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005385 enableval=$enable_llvmc_dynamic;
5386else
5387 enableval=$llvmc_dynamic
5388fi
5389
5390if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5391 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5392
5393else
5394 ENABLE_LLVMC_DYNAMIC=
5395
5396fi
5397
5398# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005399if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005400 enableval=$enable_llvmc_dynamic_plugins;
5401else
5402 enableval=yes
5403fi
5404
5405if test ${enableval} = "yes" ; then
5406 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5407
5408else
5409 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5410
5411fi
5412
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005413
Reid Spencera773bd52006-08-04 18:18:08 +00005414ac_ext=c
5415ac_cpp='$CPP $CPPFLAGS'
5416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005419{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5420echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005421# On Suns, sometimes $CPP names a directory.
5422if test -n "$CPP" && test -d "$CPP"; then
5423 CPP=
5424fi
5425if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005426 if test "${ac_cv_prog_CPP+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005428else
5429 # Double quotes because CPP needs to be expanded
5430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5431 do
5432 ac_preproc_ok=false
5433for ac_c_preproc_warn_flag in '' yes
5434do
5435 # Use a header file that comes with gcc, so configuring glibc
5436 # with a fresh cross-compiler works.
5437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 # <limits.h> exists even on freestanding compilers.
5439 # On the NeXT, cc -E runs the code through the compiler's parser,
5440 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005441 cat >conftest.$ac_ext <<_ACEOF
5442/* confdefs.h. */
5443_ACEOF
5444cat confdefs.h >>conftest.$ac_ext
5445cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005446/* end confdefs.h. */
5447#ifdef __STDC__
5448# include <limits.h>
5449#else
5450# include <assert.h>
5451#endif
5452 Syntax error
5453_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005454if { (ac_try="$ac_cpp conftest.$ac_ext"
5455case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5458esac
5459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5461 ac_status=$?
5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } >/dev/null; then
5467 if test -s conftest.err; then
5468 ac_cpp_err=$ac_c_preproc_warn_flag
5469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5470 else
5471 ac_cpp_err=
5472 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005474 ac_cpp_err=yes
5475fi
5476if test -z "$ac_cpp_err"; then
5477 :
5478else
5479 echo "$as_me: failed program was:" >&5
5480sed 's/^/| /' conftest.$ac_ext >&5
5481
Reid Spencera773bd52006-08-04 18:18:08 +00005482 # Broken: fails on valid input.
5483continue
5484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005485
Reid Spencera773bd52006-08-04 18:18:08 +00005486rm -f conftest.err conftest.$ac_ext
5487
5488 # OK, works on sane cases. Now check whether nonexistent headers
5489 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005490 cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h. */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005495/* end confdefs.h. */
5496#include <ac_nonexistent.h>
5497_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005498if { (ac_try="$ac_cpp conftest.$ac_ext"
5499case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502esac
5503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } >/dev/null; then
5511 if test -s conftest.err; then
5512 ac_cpp_err=$ac_c_preproc_warn_flag
5513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5514 else
5515 ac_cpp_err=
5516 fi
5517else
5518 ac_cpp_err=yes
5519fi
5520if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005521 # Broken: success on invalid input.
5522continue
5523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005524 echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
Reid Spencera773bd52006-08-04 18:18:08 +00005527 # Passes both tests.
5528ac_preproc_ok=:
5529break
5530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005531
Reid Spencera773bd52006-08-04 18:18:08 +00005532rm -f conftest.err conftest.$ac_ext
5533
5534done
5535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5536rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005537if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005538 break
5539fi
5540
5541 done
5542 ac_cv_prog_CPP=$CPP
5543
5544fi
5545 CPP=$ac_cv_prog_CPP
5546else
5547 ac_cv_prog_CPP=$CPP
5548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005549{ echo "$as_me:$LINENO: result: $CPP" >&5
5550echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005551ac_preproc_ok=false
5552for ac_c_preproc_warn_flag in '' yes
5553do
5554 # Use a header file that comes with gcc, so configuring glibc
5555 # with a fresh cross-compiler works.
5556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5557 # <limits.h> exists even on freestanding compilers.
5558 # On the NeXT, cc -E runs the code through the compiler's parser,
5559 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005560 cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005565/* end confdefs.h. */
5566#ifdef __STDC__
5567# include <limits.h>
5568#else
5569# include <assert.h>
5570#endif
5571 Syntax error
5572_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005573if { (ac_try="$ac_cpp conftest.$ac_ext"
5574case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577esac
5578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } >/dev/null; then
5586 if test -s conftest.err; then
5587 ac_cpp_err=$ac_c_preproc_warn_flag
5588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5589 else
5590 ac_cpp_err=
5591 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005593 ac_cpp_err=yes
5594fi
5595if test -z "$ac_cpp_err"; then
5596 :
5597else
5598 echo "$as_me: failed program was:" >&5
5599sed 's/^/| /' conftest.$ac_ext >&5
5600
Reid Spencera773bd52006-08-04 18:18:08 +00005601 # Broken: fails on valid input.
5602continue
5603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005604
Reid Spencera773bd52006-08-04 18:18:08 +00005605rm -f conftest.err conftest.$ac_ext
5606
5607 # OK, works on sane cases. Now check whether nonexistent headers
5608 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005609 cat >conftest.$ac_ext <<_ACEOF
5610/* confdefs.h. */
5611_ACEOF
5612cat confdefs.h >>conftest.$ac_ext
5613cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005614/* end confdefs.h. */
5615#include <ac_nonexistent.h>
5616_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005617if { (ac_try="$ac_cpp conftest.$ac_ext"
5618case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621esac
5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } >/dev/null; then
5630 if test -s conftest.err; then
5631 ac_cpp_err=$ac_c_preproc_warn_flag
5632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5633 else
5634 ac_cpp_err=
5635 fi
5636else
5637 ac_cpp_err=yes
5638fi
5639if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005640 # Broken: success on invalid input.
5641continue
5642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005643 echo "$as_me: failed program was:" >&5
5644sed 's/^/| /' conftest.$ac_ext >&5
5645
Reid Spencera773bd52006-08-04 18:18:08 +00005646 # Passes both tests.
5647ac_preproc_ok=:
5648break
5649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005650
Reid Spencera773bd52006-08-04 18:18:08 +00005651rm -f conftest.err conftest.$ac_ext
5652
5653done
5654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5655rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005656if $ac_preproc_ok; then
5657 :
Reid Spencera773bd52006-08-04 18:18:08 +00005658else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005659 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5660See \`config.log' for more details." >&5
5661echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5662See \`config.log' for more details." >&2;}
5663 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005664fi
5665
5666ac_ext=c
5667ac_cpp='$CPP $CPPFLAGS'
5668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5670ac_compiler_gnu=$ac_cv_c_compiler_gnu
5671
5672ac_ext=c
5673ac_cpp='$CPP $CPPFLAGS'
5674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677if test -n "$ac_tool_prefix"; then
5678 for ac_prog in gcc
5679 do
5680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5681set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5684if test "${ac_cv_prog_CC+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005686else
5687 if test -n "$CC"; then
5688 ac_cv_prog_CC="$CC" # Let the user override the test.
5689else
5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 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 +00005697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005699 break 2
5700 fi
5701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005702done
Reid Spencera773bd52006-08-04 18:18:08 +00005703IFS=$as_save_IFS
5704
5705fi
5706fi
5707CC=$ac_cv_prog_CC
5708if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005709 { echo "$as_me:$LINENO: result: $CC" >&5
5710echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005711else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005712 { echo "$as_me:$LINENO: result: no" >&5
5713echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005714fi
5715
5716
5717 test -n "$CC" && break
5718 done
5719fi
5720if test -z "$CC"; then
5721 ac_ct_CC=$CC
5722 for ac_prog in gcc
5723do
5724 # Extract the first word of "$ac_prog", so it can be a program name with args.
5725set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5728if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005730else
5731 if test -n "$ac_ct_CC"; then
5732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 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 +00005741 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005743 break 2
5744 fi
5745done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005746done
Reid Spencera773bd52006-08-04 18:18:08 +00005747IFS=$as_save_IFS
5748
5749fi
5750fi
5751ac_ct_CC=$ac_cv_prog_ac_ct_CC
5752if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005753 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5754echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005756 { echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005758fi
5759
5760
5761 test -n "$ac_ct_CC" && break
5762done
5763
5764 if test "x$ac_ct_CC" = x; then
5765 CC=""
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5770whose name does not start with the host triplet. If you think this
5771configuration is useful to you, please write to autoconf@gnu.org." >&5
5772echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5773whose name does not start with the host triplet. If you think this
5774configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005775ac_tool_warned=yes ;;
5776esac
5777 CC=$ac_ct_CC
5778 fi
5779fi
5780
5781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005782test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5783See \`config.log' for more details." >&5
5784echo "$as_me: error: no acceptable C compiler found in \$PATH
5785See \`config.log' for more details." >&2;}
5786 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005787
5788# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789echo "$as_me:$LINENO: checking for C compiler version" >&5
5790ac_compiler=`set X $ac_compile; echo $2`
5791{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005792case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005798 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }
5801{ (ac_try="$ac_compiler -v >&5"
5802case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805esac
5806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compiler -v >&5") 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }
5811{ (ac_try="$ac_compiler -V >&5"
5812case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815esac
5816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_compiler -V >&5") 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5823echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5824if test "${ac_cv_c_compiler_gnu+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005827 cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h. */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005832/* end confdefs.h. */
5833
5834int
5835main ()
5836{
5837#ifndef __GNUC__
5838 choke me
5839#endif
5840
5841 ;
5842 return 0;
5843}
5844_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845rm -f conftest.$ac_objext
5846if { (ac_try="$ac_compile"
5847case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850esac
5851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_compile") 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5860 { (case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_try") 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_try") 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005879 ac_compiler_gnu=yes
5880else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881 echo "$as_me: failed program was:" >&5
5882sed 's/^/| /' conftest.$ac_ext >&5
5883
5884 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886
Reid Spencera773bd52006-08-04 18:18:08 +00005887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888ac_cv_c_compiler_gnu=$ac_compiler_gnu
5889
5890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005891{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5892echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5893GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005894ac_test_CFLAGS=${CFLAGS+set}
5895ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005896{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5897echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5898if test "${ac_cv_prog_cc_g+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005900else
5901 ac_save_c_werror_flag=$ac_c_werror_flag
5902 ac_c_werror_flag=yes
5903 ac_cv_prog_cc_g=no
5904 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005905 cat >conftest.$ac_ext <<_ACEOF
5906/* confdefs.h. */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005910/* end confdefs.h. */
5911
5912int
5913main ()
5914{
5915
5916 ;
5917 return 0;
5918}
5919_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920rm -f conftest.$ac_objext
5921if { (ac_try="$ac_compile"
5922case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925esac
5926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5935 { (case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938esac
5939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_try") 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948esac
5949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_try") 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005954 ac_cv_prog_cc_g=yes
5955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005956 echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 CFLAGS=""
5960 cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h. */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005965/* end confdefs.h. */
5966
5967int
5968main ()
5969{
5970
5971 ;
5972 return 0;
5973}
5974_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005975rm -f conftest.$ac_objext
5976if { (ac_try="$ac_compile"
5977case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993esac
5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 :
Torok Edwin871384f2010-01-26 08:50:50 +00006010else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006011 echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006015 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006016 cat >conftest.$ac_ext <<_ACEOF
6017/* confdefs.h. */
6018_ACEOF
6019cat confdefs.h >>conftest.$ac_ext
6020cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006021/* end confdefs.h. */
6022
6023int
6024main ()
6025{
6026
6027 ;
6028 return 0;
6029}
6030_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006031rm -f conftest.$ac_objext
6032if { (ac_try="$ac_compile"
6033case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036esac
6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_compile") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6046 { (case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049esac
6050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_try") 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; } &&
6055 { ac_try='test -s conftest.$ac_objext'
6056 { (case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059esac
6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_try") 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006065 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006066else
6067 echo "$as_me: failed program was:" >&5
6068sed 's/^/| /' conftest.$ac_ext >&5
6069
6070
Reid Spencera773bd52006-08-04 18:18:08 +00006071fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006072
Reid Spencera773bd52006-08-04 18:18:08 +00006073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006075
Reid Spencera773bd52006-08-04 18:18:08 +00006076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006078
Reid Spencera773bd52006-08-04 18:18:08 +00006079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 ac_c_werror_flag=$ac_save_c_werror_flag
6081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006082{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6083echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006084if test "$ac_test_CFLAGS" = set; then
6085 CFLAGS=$ac_save_CFLAGS
6086elif test $ac_cv_prog_cc_g = yes; then
6087 if test "$GCC" = yes; then
6088 CFLAGS="-g -O2"
6089 else
6090 CFLAGS="-g"
6091 fi
6092else
6093 if test "$GCC" = yes; then
6094 CFLAGS="-O2"
6095 else
6096 CFLAGS=
6097 fi
6098fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006099{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6100echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6101if test "${ac_cv_prog_cc_c89+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006103else
6104 ac_cv_prog_cc_c89=no
6105ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006106cat >conftest.$ac_ext <<_ACEOF
6107/* confdefs.h. */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006111/* end confdefs.h. */
6112#include <stdarg.h>
6113#include <stdio.h>
6114#include <sys/types.h>
6115#include <sys/stat.h>
6116/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6117struct buf { int x; };
6118FILE * (*rcsopen) (struct buf *, struct stat *, int);
6119static char *e (p, i)
6120 char **p;
6121 int i;
6122{
6123 return p[i];
6124}
6125static char *f (char * (*g) (char **, int), char **p, ...)
6126{
6127 char *s;
6128 va_list v;
6129 va_start (v,p);
6130 s = g (p, va_arg (v,int));
6131 va_end (v);
6132 return s;
6133}
6134
6135/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6136 function prototypes and stuff, but not '\xHH' hex character constants.
6137 These don't provoke an error unfortunately, instead are silently treated
6138 as 'x'. The following induces an error, until -std is added to get
6139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6140 array size at least. It's necessary to write '\x00'==0 to get something
6141 that's true only with -std. */
6142int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6143
6144/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6145 inside strings and character constants. */
6146#define FOO(x) 'x'
6147int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6148
6149int test (int i, double x);
6150struct s1 {int (*f) (int a);};
6151struct s2 {int (*f) (double a);};
6152int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6153int argc;
6154char **argv;
6155int
6156main ()
6157{
6158return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6159 ;
6160 return 0;
6161}
6162_ACEOF
6163for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6165do
6166 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167 rm -f conftest.$ac_objext
6168if { (ac_try="$ac_compile"
6169case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172esac
6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6182 { (case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185esac
6186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_try") 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest.$ac_objext'
6192 { (case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195esac
6196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_try") 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006201 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202else
6203 echo "$as_me: failed program was:" >&5
6204sed 's/^/| /' conftest.$ac_ext >&5
6205
6206
Reid Spencera773bd52006-08-04 18:18:08 +00006207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208
Reid Spencera773bd52006-08-04 18:18:08 +00006209rm -f core conftest.err conftest.$ac_objext
6210 test "x$ac_cv_prog_cc_c89" != "xno" && break
6211done
6212rm -f conftest.$ac_ext
6213CC=$ac_save_CC
6214
6215fi
6216# AC_CACHE_VAL
6217case "x$ac_cv_prog_cc_c89" in
6218 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006219 { echo "$as_me:$LINENO: result: none needed" >&5
6220echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006221 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006222 { echo "$as_me:$LINENO: result: unsupported" >&5
6223echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006224 *)
6225 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6227echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006228esac
6229
6230
6231ac_ext=c
6232ac_cpp='$CPP $CPPFLAGS'
6233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235ac_compiler_gnu=$ac_cv_c_compiler_gnu
6236
6237ac_ext=cpp
6238ac_cpp='$CXXCPP $CPPFLAGS'
6239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6242if test -z "$CXX"; then
6243 if test -n "$CCC"; then
6244 CXX=$CCC
6245 else
6246 if test -n "$ac_tool_prefix"; then
6247 for ac_prog in g++
6248 do
6249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006251{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253if test "${ac_cv_prog_CXX+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006255else
6256 if test -n "$CXX"; then
6257 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 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 +00006266 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006268 break 2
6269 fi
6270done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006271done
Reid Spencera773bd52006-08-04 18:18:08 +00006272IFS=$as_save_IFS
6273
6274fi
6275fi
6276CXX=$ac_cv_prog_CXX
6277if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006278 { echo "$as_me:$LINENO: result: $CXX" >&5
6279echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281 { echo "$as_me:$LINENO: result: no" >&5
6282echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006283fi
6284
6285
6286 test -n "$CXX" && break
6287 done
6288fi
6289if test -z "$CXX"; then
6290 ac_ct_CXX=$CXX
6291 for ac_prog in g++
6292do
6293 # Extract the first word of "$ac_prog", so it can be a program name with args.
6294set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6297if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006299else
6300 if test -n "$ac_ct_CXX"; then
6301 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 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 +00006310 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006312 break 2
6313 fi
6314done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315done
Reid Spencera773bd52006-08-04 18:18:08 +00006316IFS=$as_save_IFS
6317
6318fi
6319fi
6320ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6321if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6323echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325 { echo "$as_me:$LINENO: result: no" >&5
6326echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006327fi
6328
6329
6330 test -n "$ac_ct_CXX" && break
6331done
6332
6333 if test "x$ac_ct_CXX" = x; then
6334 CXX="g++"
6335 else
6336 case $cross_compiling:$ac_tool_warned in
6337yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6339whose name does not start with the host triplet. If you think this
6340configuration is useful to you, please write to autoconf@gnu.org." >&5
6341echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6342whose name does not start with the host triplet. If you think this
6343configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006344ac_tool_warned=yes ;;
6345esac
6346 CXX=$ac_ct_CXX
6347 fi
6348fi
6349
6350 fi
6351fi
6352# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006353echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6354ac_compiler=`set X $ac_compile; echo $2`
6355{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006356case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006362 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }
6365{ (ac_try="$ac_compiler -v >&5"
6366case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369esac
6370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compiler -v >&5") 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }
6375{ (ac_try="$ac_compiler -V >&5"
6376case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379esac
6380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compiler -V >&5") 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006386{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6387echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6388if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006390else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006391 cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h. */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006396/* end confdefs.h. */
6397
6398int
6399main ()
6400{
6401#ifndef __GNUC__
6402 choke me
6403#endif
6404
6405 ;
6406 return 0;
6407}
6408_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006409rm -f conftest.$ac_objext
6410if { (ac_try="$ac_compile"
6411case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414esac
6415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_compile") 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6424 { (case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427esac
6428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_try") 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437esac
6438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_try") 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006443 ac_compiler_gnu=yes
6444else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006445 echo "$as_me: failed program was:" >&5
6446sed 's/^/| /' conftest.$ac_ext >&5
6447
6448 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006450
Reid Spencera773bd52006-08-04 18:18:08 +00006451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6453
6454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6456echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6457GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006458ac_test_CXXFLAGS=${CXXFLAGS+set}
6459ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006460{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6461echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6462if test "${ac_cv_prog_cxx_g+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006464else
6465 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6466 ac_cxx_werror_flag=yes
6467 ac_cv_prog_cxx_g=no
6468 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006469 cat >conftest.$ac_ext <<_ACEOF
6470/* confdefs.h. */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006474/* end confdefs.h. */
6475
6476int
6477main ()
6478{
6479
6480 ;
6481 return 0;
6482}
6483_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006484rm -f conftest.$ac_objext
6485if { (ac_try="$ac_compile"
6486case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6489esac
6490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_compile") 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6499 { (case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502esac
6503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_try") 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; } &&
6508 { ac_try='test -s conftest.$ac_objext'
6509 { (case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6512esac
6513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_try") 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006518 ac_cv_prog_cxx_g=yes
6519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006520 echo "$as_me: failed program was:" >&5
6521sed 's/^/| /' conftest.$ac_ext >&5
6522
6523 CXXFLAGS=""
6524 cat >conftest.$ac_ext <<_ACEOF
6525/* confdefs.h. */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006529/* end confdefs.h. */
6530
6531int
6532main ()
6533{
6534
6535 ;
6536 return 0;
6537}
6538_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006539rm -f conftest.$ac_objext
6540if { (ac_try="$ac_compile"
6541case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544esac
6545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6554 { (case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557esac
6558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_try") 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567esac
6568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_try") 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 :
Torok Edwin871384f2010-01-26 08:50:50 +00006574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006575 echo "$as_me: failed program was:" >&5
6576sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006579 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006580 cat >conftest.$ac_ext <<_ACEOF
6581/* confdefs.h. */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006585/* end confdefs.h. */
6586
6587int
6588main ()
6589{
6590
6591 ;
6592 return 0;
6593}
6594_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006595rm -f conftest.$ac_objext
6596if { (ac_try="$ac_compile"
6597case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600esac
6601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_compile") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6610 { (case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6613esac
6614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_try") 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try='test -s conftest.$ac_objext'
6620 { (case "(($ac_try" in
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6623esac
6624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_try") 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006629 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006630else
6631 echo "$as_me: failed program was:" >&5
6632sed 's/^/| /' conftest.$ac_ext >&5
6633
6634
Reid Spencera773bd52006-08-04 18:18:08 +00006635fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006636
Reid Spencera773bd52006-08-04 18:18:08 +00006637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006639
Reid Spencera773bd52006-08-04 18:18:08 +00006640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006642
Reid Spencera773bd52006-08-04 18:18:08 +00006643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6645fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6647echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006648if test "$ac_test_CXXFLAGS" = set; then
6649 CXXFLAGS=$ac_save_CXXFLAGS
6650elif test $ac_cv_prog_cxx_g = yes; then
6651 if test "$GXX" = yes; then
6652 CXXFLAGS="-g -O2"
6653 else
6654 CXXFLAGS="-g"
6655 fi
6656else
6657 if test "$GXX" = yes; then
6658 CXXFLAGS="-O2"
6659 else
6660 CXXFLAGS=
6661 fi
6662fi
6663ac_ext=c
6664ac_cpp='$CPP $CPPFLAGS'
6665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667ac_compiler_gnu=$ac_cv_c_compiler_gnu
6668
Reid Spencera773bd52006-08-04 18:18:08 +00006669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006670{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6671echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6672if test "${lt_cv_path_NM+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006674else
6675 if test -n "$NM"; then
6676 # Let the user override the test.
6677 lt_cv_path_NM="$NM"
6678else
6679 lt_nm_to_check="${ac_tool_prefix}nm"
6680 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6681 lt_nm_to_check="$lt_nm_to_check nm"
6682 fi
6683 for lt_tmp_nm in $lt_nm_to_check; do
6684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6685 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6686 IFS="$lt_save_ifs"
6687 test -z "$ac_dir" && ac_dir=.
6688 tmp_nm="$ac_dir/$lt_tmp_nm"
6689 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6690 # Check to see if the nm accepts a BSD-compat flag.
6691 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6692 # nm: unknown option "B" ignored
6693 # Tru64's nm complains that /dev/null is an invalid object file
6694 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6695 */dev/null* | *'Invalid file or object type'*)
6696 lt_cv_path_NM="$tmp_nm -B"
6697 break
6698 ;;
6699 *)
6700 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6701 */dev/null*)
6702 lt_cv_path_NM="$tmp_nm -p"
6703 break
6704 ;;
6705 *)
6706 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6707 continue # so that we can try to find one that supports BSD flags
6708 ;;
6709 esac
6710 ;;
6711 esac
6712 fi
6713 done
6714 IFS="$lt_save_ifs"
6715 done
6716 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6717fi
6718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006719{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6720echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006721NM="$lt_cv_path_NM"
6722
6723
6724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006725{ echo "$as_me:$LINENO: checking for GNU make" >&5
6726echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6727if test "${llvm_cv_gnu_make_command+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006729else
6730 llvm_cv_gnu_make_command=''
6731 for a in "$MAKE" make gmake gnumake ; do
6732 if test -z "$a" ; then continue ; fi ;
6733 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6734 then
6735 llvm_cv_gnu_make_command=$a ;
6736 break;
6737 fi
6738 done
6739fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6741echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006742 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6743 ifGNUmake='' ;
6744 else
6745 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006746 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6747echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006748 fi
6749
6750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006751{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6752echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006753LN_S=$as_ln_s
6754if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006755 { echo "$as_me:$LINENO: result: yes" >&5
6756echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006758 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6759echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006760fi
6761
6762# Extract the first word of "cmp", so it can be a program name with args.
6763set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766if test "${ac_cv_path_CMP+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006768else
6769 case $CMP in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6772 ;;
6773 *)
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 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 +00006781 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006783 break 2
6784 fi
6785done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786done
Reid Spencera773bd52006-08-04 18:18:08 +00006787IFS=$as_save_IFS
6788
6789 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6790 ;;
6791esac
6792fi
6793CMP=$ac_cv_path_CMP
6794if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006795 { echo "$as_me:$LINENO: result: $CMP" >&5
6796echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006798 { echo "$as_me:$LINENO: result: no" >&5
6799echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006800fi
6801
6802
6803# Extract the first word of "cp", so it can be a program name with args.
6804set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807if test "${ac_cv_path_CP+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006809else
6810 case $CP in
6811 [\\/]* | ?:[\\/]*)
6812 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6813 ;;
6814 *)
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 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 +00006822 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006824 break 2
6825 fi
6826done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006827done
Reid Spencera773bd52006-08-04 18:18:08 +00006828IFS=$as_save_IFS
6829
6830 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6831 ;;
6832esac
6833fi
6834CP=$ac_cv_path_CP
6835if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006836 { echo "$as_me:$LINENO: result: $CP" >&5
6837echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839 { echo "$as_me:$LINENO: result: no" >&5
6840echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006841fi
6842
6843
6844# Extract the first word of "date", so it can be a program name with args.
6845set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848if test "${ac_cv_path_DATE+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006850else
6851 case $DATE in
6852 [\\/]* | ?:[\\/]*)
6853 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6854 ;;
6855 *)
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 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 +00006863 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006865 break 2
6866 fi
6867done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006868done
Reid Spencera773bd52006-08-04 18:18:08 +00006869IFS=$as_save_IFS
6870
6871 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6872 ;;
6873esac
6874fi
6875DATE=$ac_cv_path_DATE
6876if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006877 { echo "$as_me:$LINENO: result: $DATE" >&5
6878echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006879else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006880 { echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006882fi
6883
6884
6885# Extract the first word of "find", so it can be a program name with args.
6886set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6889if test "${ac_cv_path_FIND+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006891else
6892 case $FIND in
6893 [\\/]* | ?:[\\/]*)
6894 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6895 ;;
6896 *)
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 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 +00006904 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006906 break 2
6907 fi
6908done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006909done
Reid Spencera773bd52006-08-04 18:18:08 +00006910IFS=$as_save_IFS
6911
6912 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6913 ;;
6914esac
6915fi
6916FIND=$ac_cv_path_FIND
6917if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006918 { echo "$as_me:$LINENO: result: $FIND" >&5
6919echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921 { echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006923fi
6924
6925
6926# Extract the first word of "grep", so it can be a program name with args.
6927set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930if test "${ac_cv_path_GREP+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006932else
6933 case $GREP in
6934 [\\/]* | ?:[\\/]*)
6935 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6936 ;;
6937 *)
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 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 +00006945 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006947 break 2
6948 fi
6949done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950done
Reid Spencera773bd52006-08-04 18:18:08 +00006951IFS=$as_save_IFS
6952
6953 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6954 ;;
6955esac
6956fi
6957GREP=$ac_cv_path_GREP
6958if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006959 { echo "$as_me:$LINENO: result: $GREP" >&5
6960echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 { echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006964fi
6965
6966
6967# Extract the first word of "mkdir", so it can be a program name with args.
6968set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971if test "${ac_cv_path_MKDIR+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006973else
6974 case $MKDIR in
6975 [\\/]* | ?:[\\/]*)
6976 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6977 ;;
6978 *)
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $PATH
6981do
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 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 +00006986 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006988 break 2
6989 fi
6990done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991done
Reid Spencera773bd52006-08-04 18:18:08 +00006992IFS=$as_save_IFS
6993
6994 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6995 ;;
6996esac
6997fi
6998MKDIR=$ac_cv_path_MKDIR
6999if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007000 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7001echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007002else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003 { echo "$as_me:$LINENO: result: no" >&5
7004echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007005fi
7006
7007
7008# Extract the first word of "mv", so it can be a program name with args.
7009set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7012if test "${ac_cv_path_MV+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007014else
7015 case $MV in
7016 [\\/]* | ?:[\\/]*)
7017 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7018 ;;
7019 *)
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 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 +00007027 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007029 break 2
7030 fi
7031done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007032done
Reid Spencera773bd52006-08-04 18:18:08 +00007033IFS=$as_save_IFS
7034
7035 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7036 ;;
7037esac
7038fi
7039MV=$ac_cv_path_MV
7040if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041 { echo "$as_me:$LINENO: result: $MV" >&5
7042echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044 { echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007046fi
7047
7048
7049if test -n "$ac_tool_prefix"; then
7050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7051set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054if test "${ac_cv_prog_RANLIB+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007056else
7057 if test -n "$RANLIB"; then
7058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7059else
7060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061for as_dir in $PATH
7062do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 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 +00007067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007069 break 2
7070 fi
7071done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007072done
Reid Spencera773bd52006-08-04 18:18:08 +00007073IFS=$as_save_IFS
7074
7075fi
7076fi
7077RANLIB=$ac_cv_prog_RANLIB
7078if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007079 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7080echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007081else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082 { echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007084fi
7085
7086
7087fi
7088if test -z "$ac_cv_prog_RANLIB"; then
7089 ac_ct_RANLIB=$RANLIB
7090 # Extract the first word of "ranlib", so it can be a program name with args.
7091set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007096else
7097 if test -n "$ac_ct_RANLIB"; then
7098 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7099else
7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 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 +00007107 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007109 break 2
7110 fi
7111done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007112done
Reid Spencera773bd52006-08-04 18:18:08 +00007113IFS=$as_save_IFS
7114
7115fi
7116fi
7117ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7118if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007119 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7120echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007121else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122 { echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007124fi
7125
7126 if test "x$ac_ct_RANLIB" = x; then
7127 RANLIB=":"
7128 else
7129 case $cross_compiling:$ac_tool_warned in
7130yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7132whose name does not start with the host triplet. If you think this
7133configuration is useful to you, please write to autoconf@gnu.org." >&5
7134echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7135whose name does not start with the host triplet. If you think this
7136configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007137ac_tool_warned=yes ;;
7138esac
7139 RANLIB=$ac_ct_RANLIB
7140 fi
7141else
7142 RANLIB="$ac_cv_prog_RANLIB"
7143fi
7144
Torok Edwin871384f2010-01-26 08:50:50 +00007145if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7147set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150if test "${ac_cv_prog_AR+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007152else
7153 if test -n "$AR"; then
7154 ac_cv_prog_AR="$AR" # Let the user override the test.
7155else
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 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 +00007163 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007165 break 2
7166 fi
7167done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168done
Torok Edwin871384f2010-01-26 08:50:50 +00007169IFS=$as_save_IFS
7170
7171fi
7172fi
7173AR=$ac_cv_prog_AR
7174if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175 { echo "$as_me:$LINENO: result: $AR" >&5
7176echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007177else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178 { echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007180fi
7181
7182
7183fi
7184if test -z "$ac_cv_prog_AR"; then
7185 ac_ct_AR=$AR
7186 # Extract the first word of "ar", so it can be a program name with args.
7187set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007192else
7193 if test -n "$ac_ct_AR"; then
7194 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 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 +00007203 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007205 break 2
7206 fi
7207done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208done
Torok Edwin871384f2010-01-26 08:50:50 +00007209IFS=$as_save_IFS
7210
7211fi
7212fi
7213ac_ct_AR=$ac_cv_prog_ac_ct_AR
7214if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7216echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007217else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007218 { echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007220fi
7221
7222 if test "x$ac_ct_AR" = x; then
7223 AR="false"
7224 else
7225 case $cross_compiling:$ac_tool_warned in
7226yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7228whose name does not start with the host triplet. If you think this
7229configuration is useful to you, please write to autoconf@gnu.org." >&5
7230echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7231whose name does not start with the host triplet. If you think this
7232configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007233ac_tool_warned=yes ;;
7234esac
7235 AR=$ac_ct_AR
7236 fi
7237else
7238 AR="$ac_cv_prog_AR"
7239fi
7240
Reid Spencera773bd52006-08-04 18:18:08 +00007241# Extract the first word of "rm", so it can be a program name with args.
7242set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245if test "${ac_cv_path_RM+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007247else
7248 case $RM in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7251 ;;
7252 *)
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 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 +00007260 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007262 break 2
7263 fi
7264done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007265done
Reid Spencera773bd52006-08-04 18:18:08 +00007266IFS=$as_save_IFS
7267
7268 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7269 ;;
7270esac
7271fi
7272RM=$ac_cv_path_RM
7273if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007274 { echo "$as_me:$LINENO: result: $RM" >&5
7275echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 { echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007279fi
7280
7281
7282# Extract the first word of "sed", so it can be a program name with args.
7283set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286if test "${ac_cv_path_SED+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007288else
7289 case $SED in
7290 [\\/]* | ?:[\\/]*)
7291 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7292 ;;
7293 *)
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007301 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007303 break 2
7304 fi
7305done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007306done
Reid Spencera773bd52006-08-04 18:18:08 +00007307IFS=$as_save_IFS
7308
7309 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7310 ;;
7311esac
7312fi
7313SED=$ac_cv_path_SED
7314if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007315 { echo "$as_me:$LINENO: result: $SED" >&5
7316echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007317else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 { echo "$as_me:$LINENO: result: no" >&5
7319echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007320fi
7321
7322
7323# Extract the first word of "tar", so it can be a program name with args.
7324set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007325{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7327if test "${ac_cv_path_TAR+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007329else
7330 case $TAR in
7331 [\\/]* | ?:[\\/]*)
7332 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7333 ;;
7334 *)
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 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 +00007342 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007344 break 2
7345 fi
7346done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007347done
Reid Spencera773bd52006-08-04 18:18:08 +00007348IFS=$as_save_IFS
7349
7350 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7351 ;;
7352esac
7353fi
7354TAR=$ac_cv_path_TAR
7355if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007356 { echo "$as_me:$LINENO: result: $TAR" >&5
7357echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007358else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007359 { echo "$as_me:$LINENO: result: no" >&5
7360echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007361fi
7362
7363
7364# Extract the first word of "pwd", so it can be a program name with args.
7365set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007366{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368if test "${ac_cv_path_BINPWD+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007370else
7371 case $BINPWD in
7372 [\\/]* | ?:[\\/]*)
7373 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7374 ;;
7375 *)
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377for as_dir in $PATH
7378do
7379 IFS=$as_save_IFS
7380 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 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 +00007383 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007385 break 2
7386 fi
7387done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388done
Reid Spencera773bd52006-08-04 18:18:08 +00007389IFS=$as_save_IFS
7390
7391 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7392 ;;
7393esac
7394fi
7395BINPWD=$ac_cv_path_BINPWD
7396if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7398echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007399else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007400 { echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007402fi
7403
7404
7405
7406# Extract the first word of "Graphviz", so it can be a program name with args.
7407set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007412else
7413 case $GRAPHVIZ in
7414 [\\/]* | ?:[\\/]*)
7415 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7416 ;;
7417 *)
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419for as_dir in $PATH
7420do
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 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 +00007425 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007427 break 2
7428 fi
7429done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007430done
Reid Spencera773bd52006-08-04 18:18:08 +00007431IFS=$as_save_IFS
7432
7433 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7434 ;;
7435esac
7436fi
7437GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7438if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7440echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442 { echo "$as_me:$LINENO: result: no" >&5
7443echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007444fi
7445
7446
7447if test "$GRAPHVIZ" != "echo Graphviz" ; then
7448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007449cat >>confdefs.h <<\_ACEOF
7450#define HAVE_GRAPHVIZ 1
7451_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007452
Jeff Cohen28783c32007-01-12 18:22:38 +00007453 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007454 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7455 fi
7456
7457cat >>confdefs.h <<_ACEOF
7458#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7459_ACEOF
7460
7461fi
7462# Extract the first word of "dot", so it can be a program name with args.
7463set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466if test "${ac_cv_path_DOT+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007468else
7469 case $DOT in
7470 [\\/]* | ?:[\\/]*)
7471 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7472 ;;
7473 *)
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 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 +00007481 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007483 break 2
7484 fi
7485done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486done
Reid Spencera773bd52006-08-04 18:18:08 +00007487IFS=$as_save_IFS
7488
7489 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7490 ;;
7491esac
7492fi
7493DOT=$ac_cv_path_DOT
7494if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007495 { echo "$as_me:$LINENO: result: $DOT" >&5
7496echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007497else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007498 { echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007500fi
7501
7502
7503if test "$DOT" != "echo dot" ; then
7504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007505cat >>confdefs.h <<\_ACEOF
7506#define HAVE_DOT 1
7507_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007508
Jeff Cohen28783c32007-01-12 18:22:38 +00007509 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007510 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7511 fi
7512
7513cat >>confdefs.h <<_ACEOF
7514#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7515_ACEOF
7516
7517fi
David Greenef0b9eff2009-07-09 17:16:26 +00007518# Extract the first word of "fdp", so it can be a program name with args.
7519set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7522if test "${ac_cv_path_FDP+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007524else
7525 case $FDP in
7526 [\\/]* | ?:[\\/]*)
7527 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7528 ;;
7529 *)
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 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 +00007537 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007539 break 2
7540 fi
7541done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007542done
David Greenef0b9eff2009-07-09 17:16:26 +00007543IFS=$as_save_IFS
7544
7545 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7546 ;;
7547esac
7548fi
7549FDP=$ac_cv_path_FDP
7550if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007551 { echo "$as_me:$LINENO: result: $FDP" >&5
7552echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554 { echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007556fi
7557
7558
7559if test "$FDP" != "echo fdp" ; then
7560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007561cat >>confdefs.h <<\_ACEOF
7562#define HAVE_FDP 1
7563_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007564
7565 if test "$llvm_cv_os_type" = "MingW" ; then
7566 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7567 fi
7568
7569cat >>confdefs.h <<_ACEOF
7570#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7571_ACEOF
7572
7573fi
7574# Extract the first word of "neato", so it can be a program name with args.
7575set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578if test "${ac_cv_path_NEATO+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007580else
7581 case $NEATO in
7582 [\\/]* | ?:[\\/]*)
7583 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7584 ;;
7585 *)
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 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 +00007593 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007595 break 2
7596 fi
7597done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007598done
David Greenef0b9eff2009-07-09 17:16:26 +00007599IFS=$as_save_IFS
7600
7601 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7602 ;;
7603esac
7604fi
7605NEATO=$ac_cv_path_NEATO
7606if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007607 { echo "$as_me:$LINENO: result: $NEATO" >&5
7608echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007609else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610 { echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007612fi
7613
7614
7615if test "$NEATO" != "echo neato" ; then
7616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007617cat >>confdefs.h <<\_ACEOF
7618#define HAVE_NEATO 1
7619_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007620
7621 if test "$llvm_cv_os_type" = "MingW" ; then
7622 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7623 fi
7624
7625cat >>confdefs.h <<_ACEOF
7626#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7627_ACEOF
7628
7629fi
7630# Extract the first word of "twopi", so it can be a program name with args.
7631set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634if test "${ac_cv_path_TWOPI+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007636else
7637 case $TWOPI in
7638 [\\/]* | ?:[\\/]*)
7639 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7640 ;;
7641 *)
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643for as_dir in $PATH
7644do
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007649 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007651 break 2
7652 fi
7653done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007654done
David Greenef0b9eff2009-07-09 17:16:26 +00007655IFS=$as_save_IFS
7656
7657 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7658 ;;
7659esac
7660fi
7661TWOPI=$ac_cv_path_TWOPI
7662if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007663 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7664echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666 { echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007668fi
7669
7670
7671if test "$TWOPI" != "echo twopi" ; then
7672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007673cat >>confdefs.h <<\_ACEOF
7674#define HAVE_TWOPI 1
7675_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007676
7677 if test "$llvm_cv_os_type" = "MingW" ; then
7678 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7679 fi
7680
7681cat >>confdefs.h <<_ACEOF
7682#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7683_ACEOF
7684
7685fi
7686# Extract the first word of "circo", so it can be a program name with args.
7687set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7690if test "${ac_cv_path_CIRCO+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007692else
7693 case $CIRCO in
7694 [\\/]* | ?:[\\/]*)
7695 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7696 ;;
7697 *)
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 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 +00007705 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007707 break 2
7708 fi
7709done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710done
David Greenef0b9eff2009-07-09 17:16:26 +00007711IFS=$as_save_IFS
7712
7713 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7714 ;;
7715esac
7716fi
7717CIRCO=$ac_cv_path_CIRCO
7718if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007719 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7720echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007721else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007722 { echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007724fi
7725
7726
7727if test "$CIRCO" != "echo circo" ; then
7728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007729cat >>confdefs.h <<\_ACEOF
7730#define HAVE_CIRCO 1
7731_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007732
7733 if test "$llvm_cv_os_type" = "MingW" ; then
7734 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7735 fi
7736
7737cat >>confdefs.h <<_ACEOF
7738#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7739_ACEOF
7740
7741fi
Reid Spencera773bd52006-08-04 18:18:08 +00007742for ac_prog in gv gsview32
7743do
7744 # Extract the first word of "$ac_prog", so it can be a program name with args.
7745set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748if test "${ac_cv_path_GV+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007750else
7751 case $GV in
7752 [\\/]* | ?:[\\/]*)
7753 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7754 ;;
7755 *)
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757for as_dir in $PATH
7758do
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 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 +00007763 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007765 break 2
7766 fi
7767done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007768done
Reid Spencera773bd52006-08-04 18:18:08 +00007769IFS=$as_save_IFS
7770
7771 ;;
7772esac
7773fi
7774GV=$ac_cv_path_GV
7775if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007776 { echo "$as_me:$LINENO: result: $GV" >&5
7777echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007779 { echo "$as_me:$LINENO: result: no" >&5
7780echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007781fi
7782
7783
7784 test -n "$GV" && break
7785done
7786test -n "$GV" || GV="echo gv"
7787
7788if test "$GV" != "echo gv" ; then
7789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007790cat >>confdefs.h <<\_ACEOF
7791#define HAVE_GV 1
7792_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007793
Jeff Cohen28783c32007-01-12 18:22:38 +00007794 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007795 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7796 fi
7797
7798cat >>confdefs.h <<_ACEOF
7799#define LLVM_PATH_GV "$GV${EXEEXT}"
7800_ACEOF
7801
7802fi
7803# Extract the first word of "dotty", so it can be a program name with args.
7804set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807if test "${ac_cv_path_DOTTY+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007809else
7810 case $DOTTY in
7811 [\\/]* | ?:[\\/]*)
7812 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7813 ;;
7814 *)
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 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 +00007822 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007824 break 2
7825 fi
7826done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007827done
Reid Spencera773bd52006-08-04 18:18:08 +00007828IFS=$as_save_IFS
7829
7830 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7831 ;;
7832esac
7833fi
7834DOTTY=$ac_cv_path_DOTTY
7835if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007836 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7837echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007839 { echo "$as_me:$LINENO: result: no" >&5
7840echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007841fi
7842
7843
7844if test "$DOTTY" != "echo dotty" ; then
7845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007846cat >>confdefs.h <<\_ACEOF
7847#define HAVE_DOTTY 1
7848_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007849
Jeff Cohen28783c32007-01-12 18:22:38 +00007850 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007851 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7852 fi
7853
7854cat >>confdefs.h <<_ACEOF
7855#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7856_ACEOF
7857
7858fi
7859
7860
7861# Extract the first word of "perl", so it can be a program name with args.
7862set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7865if test "${ac_cv_path_PERL+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007867else
7868 case $PERL in
7869 [\\/]* | ?:[\\/]*)
7870 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7871 ;;
7872 *)
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH
7875do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 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 +00007880 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007882 break 2
7883 fi
7884done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007885done
Reid Spencera773bd52006-08-04 18:18:08 +00007886IFS=$as_save_IFS
7887
7888 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7889 ;;
7890esac
7891fi
7892PERL=$ac_cv_path_PERL
7893if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007894 { echo "$as_me:$LINENO: result: $PERL" >&5
7895echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007897 { echo "$as_me:$LINENO: result: no" >&5
7898echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007899fi
7900
7901
7902if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7904echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007905 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906 { echo "$as_me:$LINENO: result: yes" >&5
7907echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007908 else
7909 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007910 { echo "$as_me:$LINENO: result: not found" >&5
7911echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007912 fi
7913fi
7914
7915
7916if test x"$PERL" = xnone; then
7917 HAVE_PERL=0
7918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007919 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7920echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7921 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007922else
7923 HAVE_PERL=1
7924
7925fi
7926
7927# Find a good install program. We prefer a C program (faster),
7928# so one script is as good as another. But avoid the broken or
7929# incompatible versions:
7930# SysV /etc/install, /usr/sbin/install
7931# SunOS /usr/etc/install
7932# IRIX /sbin/install
7933# AIX /bin/install
7934# AmigaOS /C/install, which installs bootblocks on floppy discs
7935# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7936# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7937# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7938# OS/2's system install, which has a completely different semantic
7939# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007940{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7941echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007942if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007943if test "${ac_cv_path_install+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007945else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947for as_dir in $PATH
7948do
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007951 # Account for people who put trailing slashes in PATH elements.
7952case $as_dir/ in
7953 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007955 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007956 /usr/ucb/* ) ;;
7957 *)
7958 # OSF1 and SCO ODT 3.0 have their own names for install.
7959 # Don't use installbsd from OSF since it installs stuff as root
7960 # by default.
7961 for ac_prog in ginstall scoinst install; do
7962 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007963 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 +00007964 if test $ac_prog = install &&
7965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7966 # AIX install. It has an incompatible calling convention.
7967 :
7968 elif test $ac_prog = install &&
7969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7970 # program-specific install script used by HP pwplus--don't use.
7971 :
7972 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007973 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7974 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007975 fi
7976 fi
7977 done
7978 done
7979 ;;
7980esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007981done
Reid Spencera773bd52006-08-04 18:18:08 +00007982IFS=$as_save_IFS
7983
7984
7985fi
7986 if test "${ac_cv_path_install+set}" = set; then
7987 INSTALL=$ac_cv_path_install
7988 else
7989 # As a last resort, use the slow shell script. Don't cache a
7990 # value for INSTALL within a source directory, because that will
7991 # break other packages using the cache if that directory is
7992 # removed, or if the value is a relative name.
7993 INSTALL=$ac_install_sh
7994 fi
7995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007996{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7997echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007998
7999# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8000# It thinks the first close brace ends the variable substitution.
8001test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8002
8003test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8004
8005test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8006
8007
8008# Extract the first word of "bzip2", so it can be a program name with args.
8009set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012if test "${ac_cv_path_BZIP2+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008014else
8015 case $BZIP2 in
8016 [\\/]* | ?:[\\/]*)
8017 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8018 ;;
8019 *)
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 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 +00008027 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008029 break 2
8030 fi
8031done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008032done
Reid Spencera773bd52006-08-04 18:18:08 +00008033IFS=$as_save_IFS
8034
Reid Spencera773bd52006-08-04 18:18:08 +00008035 ;;
8036esac
8037fi
8038BZIP2=$ac_cv_path_BZIP2
8039if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008040 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8041echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008043 { echo "$as_me:$LINENO: result: no" >&5
8044echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008045fi
8046
8047
mike-m68cb3192010-05-06 23:45:43 +00008048# Extract the first word of "cat", so it can be a program name with args.
8049set dummy cat; ac_word=$2
8050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052if test "${ac_cv_path_CAT+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054else
8055 case $CAT in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8058 ;;
8059 *)
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071done
8072done
8073IFS=$as_save_IFS
8074
8075 ;;
8076esac
8077fi
8078CAT=$ac_cv_path_CAT
8079if test -n "$CAT"; then
8080 { echo "$as_me:$LINENO: result: $CAT" >&5
8081echo "${ECHO_T}$CAT" >&6; }
8082else
8083 { echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6; }
8085fi
8086
8087
Reid Spencera773bd52006-08-04 18:18:08 +00008088# Extract the first word of "doxygen", so it can be a program name with args.
8089set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8092if test "${ac_cv_path_DOXYGEN+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008094else
8095 case $DOXYGEN in
8096 [\\/]* | ?:[\\/]*)
8097 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8098 ;;
8099 *)
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 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 +00008107 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008109 break 2
8110 fi
8111done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008112done
Reid Spencera773bd52006-08-04 18:18:08 +00008113IFS=$as_save_IFS
8114
Reid Spencera773bd52006-08-04 18:18:08 +00008115 ;;
8116esac
8117fi
8118DOXYGEN=$ac_cv_path_DOXYGEN
8119if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008120 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8121echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008122else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008123 { echo "$as_me:$LINENO: result: no" >&5
8124echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008125fi
8126
8127
Reid Spencera773bd52006-08-04 18:18:08 +00008128# Extract the first word of "groff", so it can be a program name with args.
8129set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132if test "${ac_cv_path_GROFF+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008134else
8135 case $GROFF in
8136 [\\/]* | ?:[\\/]*)
8137 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8138 ;;
8139 *)
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 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 +00008147 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008149 break 2
8150 fi
8151done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152done
Reid Spencera773bd52006-08-04 18:18:08 +00008153IFS=$as_save_IFS
8154
Reid Spencera773bd52006-08-04 18:18:08 +00008155 ;;
8156esac
8157fi
8158GROFF=$ac_cv_path_GROFF
8159if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008160 { echo "$as_me:$LINENO: result: $GROFF" >&5
8161echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008163 { echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008165fi
8166
8167
8168# Extract the first word of "gzip", so it can be a program name with args.
8169set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8172if test "${ac_cv_path_GZIP+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008174else
8175 case $GZIP in
8176 [\\/]* | ?:[\\/]*)
8177 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8178 ;;
8179 *)
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 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 +00008187 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008189 break 2
8190 fi
8191done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008192done
Reid Spencera773bd52006-08-04 18:18:08 +00008193IFS=$as_save_IFS
8194
Reid Spencera773bd52006-08-04 18:18:08 +00008195 ;;
8196esac
8197fi
8198GZIP=$ac_cv_path_GZIP
8199if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008200 { echo "$as_me:$LINENO: result: $GZIP" >&5
8201echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008203 { echo "$as_me:$LINENO: result: no" >&5
8204echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008205fi
8206
8207
8208# Extract the first word of "pod2html", so it can be a program name with args.
8209set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8212if test "${ac_cv_path_POD2HTML+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008214else
8215 case $POD2HTML in
8216 [\\/]* | ?:[\\/]*)
8217 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8218 ;;
8219 *)
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221for as_dir in $PATH
8222do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 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 +00008227 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008229 break 2
8230 fi
8231done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232done
Reid Spencera773bd52006-08-04 18:18:08 +00008233IFS=$as_save_IFS
8234
Reid Spencera773bd52006-08-04 18:18:08 +00008235 ;;
8236esac
8237fi
8238POD2HTML=$ac_cv_path_POD2HTML
8239if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8241echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243 { echo "$as_me:$LINENO: result: no" >&5
8244echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008245fi
8246
8247
8248# Extract the first word of "pod2man", so it can be a program name with args.
8249set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8252if test "${ac_cv_path_POD2MAN+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008254else
8255 case $POD2MAN in
8256 [\\/]* | ?:[\\/]*)
8257 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8258 ;;
8259 *)
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 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 +00008267 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008269 break 2
8270 fi
8271done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008272done
Reid Spencera773bd52006-08-04 18:18:08 +00008273IFS=$as_save_IFS
8274
Reid Spencera773bd52006-08-04 18:18:08 +00008275 ;;
8276esac
8277fi
8278POD2MAN=$ac_cv_path_POD2MAN
8279if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008280 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8281echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008283 { echo "$as_me:$LINENO: result: no" >&5
8284echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008285fi
8286
8287
mike-m68cb3192010-05-06 23:45:43 +00008288# Extract the first word of "pdfroff", so it can be a program name with args.
8289set dummy pdfroff; ac_word=$2
8290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292if test "${ac_cv_path_PDFROFF+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294else
8295 case $PDFROFF in
8296 [\\/]* | ?:[\\/]*)
8297 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8298 ;;
8299 *)
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8307 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8310 fi
8311done
8312done
8313IFS=$as_save_IFS
8314
8315 ;;
8316esac
8317fi
8318PDFROFF=$ac_cv_path_PDFROFF
8319if test -n "$PDFROFF"; then
8320 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8321echo "${ECHO_T}$PDFROFF" >&6; }
8322else
8323 { echo "$as_me:$LINENO: result: no" >&5
8324echo "${ECHO_T}no" >&6; }
8325fi
8326
8327
Reid Spencera773bd52006-08-04 18:18:08 +00008328# Extract the first word of "runtest", so it can be a program name with args.
8329set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8332if test "${ac_cv_path_RUNTEST+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008334else
8335 case $RUNTEST in
8336 [\\/]* | ?:[\\/]*)
8337 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8338 ;;
8339 *)
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341for as_dir in $PATH
8342do
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 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 +00008347 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008349 break 2
8350 fi
8351done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352done
Reid Spencera773bd52006-08-04 18:18:08 +00008353IFS=$as_save_IFS
8354
Reid Spencera773bd52006-08-04 18:18:08 +00008355 ;;
8356esac
8357fi
8358RUNTEST=$ac_cv_path_RUNTEST
8359if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008360 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8361echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008363 { echo "$as_me:$LINENO: result: no" >&5
8364echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008365fi
8366
8367
8368
8369no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008370{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8371echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008372
8373# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008374if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008375 withval=$with_tclinclude; with_tclinclude=${withval}
8376else
8377 with_tclinclude=''
8378fi
8379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008380if test "${ac_cv_path_tclsh+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008382else
8383
8384if test x"${with_tclinclude}" != x ; then
8385 if test -f ${with_tclinclude}/tclsh ; then
8386 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8387 elif test -f ${with_tclinclude}/src/tclsh ; then
8388 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8389 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008390 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8391echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8392 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008393 fi
8394fi
Torok Edwin871384f2010-01-26 08:50:50 +00008395fi
8396
Reid Spencera773bd52006-08-04 18:18:08 +00008397
8398if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008399 { echo "$as_me:$LINENO: result: none" >&5
8400echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008401 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
8402do
8403 # Extract the first word of "$ac_prog", so it can be a program name with args.
8404set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8407if test "${ac_cv_path_TCLSH+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008409else
8410 case $TCLSH in
8411 [\\/]* | ?:[\\/]*)
8412 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8413 ;;
8414 *)
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 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 +00008422 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008424 break 2
8425 fi
8426done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008427done
Reid Spencera773bd52006-08-04 18:18:08 +00008428IFS=$as_save_IFS
8429
8430 ;;
8431esac
8432fi
8433TCLSH=$ac_cv_path_TCLSH
8434if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008435 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8436echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008438 { echo "$as_me:$LINENO: result: no" >&5
8439echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008440fi
8441
8442
8443 test -n "$TCLSH" && break
8444done
8445
8446 if test x"${TCLSH}" = x ; then
8447 ac_cv_path_tclsh='';
8448 else
8449 ac_cv_path_tclsh="${TCLSH}";
8450 fi
8451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008452 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8453echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008454 TCLSH="${ac_cv_path_tclsh}"
8455
8456fi
8457
Reid Spencera773bd52006-08-04 18:18:08 +00008458# Extract the first word of "zip", so it can be a program name with args.
8459set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462if test "${ac_cv_path_ZIP+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008464else
8465 case $ZIP in
8466 [\\/]* | ?:[\\/]*)
8467 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8468 ;;
8469 *)
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 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 +00008477 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008479 break 2
8480 fi
8481done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008482done
Reid Spencera773bd52006-08-04 18:18:08 +00008483IFS=$as_save_IFS
8484
Reid Spencera773bd52006-08-04 18:18:08 +00008485 ;;
8486esac
8487fi
8488ZIP=$ac_cv_path_ZIP
8489if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490 { echo "$as_me:$LINENO: result: $ZIP" >&5
8491echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008493 { echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008495fi
8496
8497
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008498for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008499do
8500 # Extract the first word of "$ac_prog", so it can be a program name with args.
8501set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8504if test "${ac_cv_path_OCAMLC+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008506else
8507 case $OCAMLC in
8508 [\\/]* | ?:[\\/]*)
8509 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8510 ;;
8511 *)
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 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 +00008519 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008521 break 2
8522 fi
8523done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008524done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008525IFS=$as_save_IFS
8526
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008527 ;;
8528esac
8529fi
8530OCAMLC=$ac_cv_path_OCAMLC
8531if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008532 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8533echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008535 { echo "$as_me:$LINENO: result: no" >&5
8536echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008537fi
8538
8539
Gordon Henriksene7072162008-03-07 18:20:01 +00008540 test -n "$OCAMLC" && break
8541done
8542
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008543for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008544do
8545 # Extract the first word of "$ac_prog", so it can be a program name with args.
8546set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8549if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008551else
8552 case $OCAMLOPT in
8553 [\\/]* | ?:[\\/]*)
8554 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8555 ;;
8556 *)
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558for as_dir in $PATH
8559do
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 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 +00008564 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008566 break 2
8567 fi
8568done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008569done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008570IFS=$as_save_IFS
8571
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008572 ;;
8573esac
8574fi
8575OCAMLOPT=$ac_cv_path_OCAMLOPT
8576if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008577 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8578echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008579else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008580 { echo "$as_me:$LINENO: result: no" >&5
8581echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008582fi
8583
8584
Gordon Henriksene7072162008-03-07 18:20:01 +00008585 test -n "$OCAMLOPT" && break
8586done
8587
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008588for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008589do
8590 # Extract the first word of "$ac_prog", so it can be a program name with args.
8591set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8594if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008596else
8597 case $OCAMLDEP in
8598 [\\/]* | ?:[\\/]*)
8599 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8600 ;;
8601 *)
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603for as_dir in $PATH
8604do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 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 +00008609 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008611 break 2
8612 fi
8613done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008614done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008615IFS=$as_save_IFS
8616
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008617 ;;
8618esac
8619fi
8620OCAMLDEP=$ac_cv_path_OCAMLDEP
8621if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008622 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8623echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008625 { echo "$as_me:$LINENO: result: no" >&5
8626echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008627fi
8628
8629
Gordon Henriksene7072162008-03-07 18:20:01 +00008630 test -n "$OCAMLDEP" && break
8631done
8632
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008633for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008634do
8635 # Extract the first word of "$ac_prog", so it can be a program name with args.
8636set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8639if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008641else
8642 case $OCAMLDOC in
8643 [\\/]* | ?:[\\/]*)
8644 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8645 ;;
8646 *)
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648for as_dir in $PATH
8649do
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 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 +00008654 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008656 break 2
8657 fi
8658done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008659done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008660IFS=$as_save_IFS
8661
8662 ;;
8663esac
8664fi
8665OCAMLDOC=$ac_cv_path_OCAMLDOC
8666if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008667 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8668echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008670 { echo "$as_me:$LINENO: result: no" >&5
8671echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008672fi
8673
8674
8675 test -n "$OCAMLDOC" && break
8676done
8677
Torok Edwincc499a42008-10-22 09:56:27 +00008678for ac_prog in gas as
8679do
8680 # Extract the first word of "$ac_prog", so it can be a program name with args.
8681set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8684if test "${ac_cv_path_GAS+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008686else
8687 case $GAS in
8688 [\\/]* | ?:[\\/]*)
8689 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8690 ;;
8691 *)
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 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 +00008699 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008701 break 2
8702 fi
8703done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008704done
Torok Edwincc499a42008-10-22 09:56:27 +00008705IFS=$as_save_IFS
8706
8707 ;;
8708esac
8709fi
8710GAS=$ac_cv_path_GAS
8711if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008712 { echo "$as_me:$LINENO: result: $GAS" >&5
8713echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008715 { echo "$as_me:$LINENO: result: no" >&5
8716echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008717fi
8718
8719
8720 test -n "$GAS" && break
8721done
8722
Reid Spencera773bd52006-08-04 18:18:08 +00008723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008724{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8725echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8726if test "${llvm_cv_link_use_r+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008728else
8729 ac_ext=c
8730ac_cpp='$CPP $CPPFLAGS'
8731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8733ac_compiler_gnu=$ac_cv_c_compiler_gnu
8734
8735 oldcflags="$CFLAGS"
8736 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008737 cat >conftest.$ac_ext <<_ACEOF
8738/* confdefs.h. */
8739_ACEOF
8740cat confdefs.h >>conftest.$ac_ext
8741cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008742/* end confdefs.h. */
8743
8744int
8745main ()
8746{
Dan Gohman39ed6782010-04-25 00:12:20 +00008747
Reid Spencera773bd52006-08-04 18:18:08 +00008748 ;
8749 return 0;
8750}
8751_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008752rm -f conftest.$ac_objext conftest$ac_exeext
8753if { (ac_try="$ac_link"
8754case "(($ac_try" in
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8757esac
8758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval "$ac_link") 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8767 { (case "(($ac_try" in
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8770esac
8771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_try") 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (case "(($ac_try" in
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8780esac
8781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_try") 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008786 llvm_cv_link_use_r=yes
8787else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008788 echo "$as_me: failed program was:" >&5
8789sed 's/^/| /' conftest.$ac_ext >&5
8790
8791 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008793
Bill Wendlingebcceee2009-04-18 11:20:33 +00008794rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008795 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008796 CFLAGS="$oldcflags"
8797 ac_ext=c
8798ac_cpp='$CPP $CPPFLAGS'
8799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8801ac_compiler_gnu=$ac_cv_c_compiler_gnu
8802
8803
8804fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008805{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8806echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008807if test "$llvm_cv_link_use_r" = yes ; then
8808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008809cat >>confdefs.h <<\_ACEOF
8810#define HAVE_LINK_R 1
8811_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008812
8813 fi
8814
8815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008816{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8817echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8818if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008820else
8821 ac_ext=c
8822ac_cpp='$CPP $CPPFLAGS'
8823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8825ac_compiler_gnu=$ac_cv_c_compiler_gnu
8826
8827 oldcflags="$CFLAGS"
8828 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008829 cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h. */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008834/* end confdefs.h. */
8835
8836int
8837main ()
8838{
Dan Gohman39ed6782010-04-25 00:12:20 +00008839
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008840 ;
8841 return 0;
8842}
8843_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008844rm -f conftest.$ac_objext conftest$ac_exeext
8845if { (ac_try="$ac_link"
8846case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849esac
8850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_link") 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8859 { (case "(($ac_try" in
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8862esac
8863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_try") 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
8869 { (case "(($ac_try" in
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8872esac
8873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874 (eval "$ac_try") 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008878 llvm_cv_link_use_export_dynamic=yes
8879else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008880 echo "$as_me: failed program was:" >&5
8881sed 's/^/| /' conftest.$ac_ext >&5
8882
8883 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008884fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008885
Bill Wendlingebcceee2009-04-18 11:20:33 +00008886rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008887 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008888 CFLAGS="$oldcflags"
8889 ac_ext=c
8890ac_cpp='$CPP $CPPFLAGS'
8891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8893ac_compiler_gnu=$ac_cv_c_compiler_gnu
8894
8895
8896fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008897{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8898echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008899if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008901cat >>confdefs.h <<\_ACEOF
8902#define HAVE_LINK_EXPORT_DYNAMIC 1
8903_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008904
8905 fi
8906
8907
Dan Gohmanda612d62010-06-01 14:56:56 +00008908{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8909echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8910if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008911 echo $ECHO_N "(cached) $ECHO_C" >&6
8912else
8913 ac_ext=c
8914ac_cpp='$CPP $CPPFLAGS'
8915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917ac_compiler_gnu=$ac_cv_c_compiler_gnu
8918
8919 oldcflags="$CFLAGS"
8920
8921 # The following code is from the autoconf manual,
8922 # "11.13: Limitations of Usual Tools".
8923 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8924 # Use mktemp if possible; otherwise fall back on mkdir,
8925 # with $RANDOM to make collisions less likely.
8926 : ${TMPDIR=/tmp}
8927 {
8928 tmp=`
8929 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8930 ` &&
8931 test -n "$tmp" && test -d "$tmp"
8932 } || {
8933 tmp=$TMPDIR/foo$$-$RANDOM
8934 (umask 077 && mkdir "$tmp")
8935 } || exit $?
8936
Dan Gohmanda612d62010-06-01 14:56:56 +00008937 echo "{" > "$tmp/export.map"
8938 echo " global: main;" >> "$tmp/export.map"
8939 echo " local: *;" >> "$tmp/export.map"
8940 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008941
Dan Gohmanda612d62010-06-01 14:56:56 +00008942 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008943 cat >conftest.$ac_ext <<_ACEOF
8944/* confdefs.h. */
8945_ACEOF
8946cat confdefs.h >>conftest.$ac_ext
8947cat >>conftest.$ac_ext <<_ACEOF
8948/* end confdefs.h. */
8949
8950int
8951main ()
8952{
Dan Gohman39ed6782010-04-25 00:12:20 +00008953
Dan Gohman391569c2010-04-16 22:59:06 +00008954 ;
8955 return 0;
8956}
8957_ACEOF
8958rm -f conftest.$ac_objext conftest$ac_exeext
8959if { (ac_try="$ac_link"
8960case "(($ac_try" in
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8963esac
8964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_link") 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973 { (case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976esac
8977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986esac
8987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008992 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008993else
8994 echo "$as_me: failed program was:" >&5
8995sed 's/^/| /' conftest.$ac_ext >&5
8996
Dan Gohman943005e2010-06-01 16:22:27 +00008997 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008998fi
8999
9000rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009002 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009003 rmdir "$tmp"
9004 CFLAGS="$oldcflags"
9005 ac_ext=c
9006ac_cpp='$CPP $CPPFLAGS'
9007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009ac_compiler_gnu=$ac_cv_c_compiler_gnu
9010
9011
9012fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009013{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9014echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9015if test "$llvm_cv_link_use_version_script" = yes ; then
9016 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009017
9018 fi
9019
9020
Reid Spencera773bd52006-08-04 18:18:08 +00009021
9022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009023{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9024echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9025if test "${ac_cv_c_const+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009027else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009028 cat >conftest.$ac_ext <<_ACEOF
9029/* confdefs.h. */
9030_ACEOF
9031cat confdefs.h >>conftest.$ac_ext
9032cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009033/* end confdefs.h. */
9034
9035int
9036main ()
9037{
9038/* FIXME: Include the comments suggested by Paul. */
9039#ifndef __cplusplus
9040 /* Ultrix mips cc rejects this. */
9041 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009042 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009043 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009044 char const *const *ccp;
9045 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009046 /* NEC SVR4.0.2 mips cc rejects this. */
9047 struct point {int x, y;};
9048 static struct point const zero = {0,0};
9049 /* AIX XL C 1.02.0.0 rejects this.
9050 It does not let you subtract one const X* pointer from another in
9051 an arm of an if-expression whose if-part is not a constant
9052 expression */
9053 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009054 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009055 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009056 ++ccp;
9057 p = (char**) ccp;
9058 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009059 { /* SCO 3.2v4 cc rejects this. */
9060 char *t;
9061 char const *s = 0 ? (char *) 0 : (char const *) 0;
9062
9063 *t++ = 0;
9064 if (s) return 0;
9065 }
9066 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9067 int x[] = {25, 17};
9068 const int *foo = &x[0];
9069 ++foo;
9070 }
9071 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9072 typedef const int *iptr;
9073 iptr p = 0;
9074 ++p;
9075 }
9076 { /* AIX XL C 1.02.0.0 rejects this saying
9077 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9078 struct s { int j; const int *ap[3]; };
9079 struct s *b; b->j = 5;
9080 }
9081 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9082 const int foo = 10;
9083 if (!foo) return 0;
9084 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009085 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009086#endif
9087
9088 ;
9089 return 0;
9090}
9091_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009092rm -f conftest.$ac_objext
9093if { (ac_try="$ac_compile"
9094case "(($ac_try" in
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9097esac
9098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_compile") 2>conftest.er1
9100 ac_status=$?
9101 grep -v '^ *+' conftest.er1 >conftest.err
9102 rm -f conftest.er1
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9107 { (case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110esac
9111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_try") 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; } &&
9116 { ac_try='test -s conftest.$ac_objext'
9117 { (case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120esac
9121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_try") 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009126 ac_cv_c_const=yes
9127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009128 echo "$as_me: failed program was:" >&5
9129sed 's/^/| /' conftest.$ac_ext >&5
9130
9131 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009133
Reid Spencera773bd52006-08-04 18:18:08 +00009134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009136{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9137echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009138if test $ac_cv_c_const = no; then
9139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009140cat >>confdefs.h <<\_ACEOF
9141#define const
9142_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009143
9144fi
9145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009146
9147
9148
9149
9150
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009151ac_header_dirent=no
9152for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009153 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9154{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9155echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009159 cat >conftest.$ac_ext <<_ACEOF
9160/* confdefs.h. */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009164/* end confdefs.h. */
9165#include <sys/types.h>
9166#include <$ac_hdr>
9167
9168int
9169main ()
9170{
9171if ((DIR *) 0)
9172return 0;
9173 ;
9174 return 0;
9175}
9176_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009177rm -f conftest.$ac_objext
9178if { (ac_try="$ac_compile"
9179case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9182esac
9183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9192 { (case "(($ac_try" in
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9195esac
9196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_try") 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest.$ac_objext'
9202 { (case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205esac
9206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_try") 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009211 eval "$as_ac_Header=yes"
9212else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009213 echo "$as_me: failed program was:" >&5
9214sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009218
Reid Spencera773bd52006-08-04 18:18:08 +00009219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009221ac_res=`eval echo '${'$as_ac_Header'}'`
9222 { echo "$as_me:$LINENO: result: $ac_res" >&5
9223echo "${ECHO_T}$ac_res" >&6; }
9224if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009225 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009226#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227_ACEOF
9228
9229ac_header_dirent=$ac_hdr; break
9230fi
9231
9232done
9233# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9234if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009235 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9236echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9237if test "${ac_cv_search_opendir+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009239else
9240 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009241cat >conftest.$ac_ext <<_ACEOF
9242/* confdefs.h. */
9243_ACEOF
9244cat confdefs.h >>conftest.$ac_ext
9245cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009246/* end confdefs.h. */
9247
Reid Spencera773bd52006-08-04 18:18:08 +00009248/* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009251#ifdef __cplusplus
9252extern "C"
9253#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009254char opendir ();
9255int
9256main ()
9257{
Reid Spencera773bd52006-08-04 18:18:08 +00009258return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009259 ;
9260 return 0;
9261}
9262_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009263for ac_lib in '' dir; do
9264 if test -z "$ac_lib"; then
9265 ac_res="none required"
9266 else
9267 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009269 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009270 rm -f conftest.$ac_objext conftest$ac_exeext
9271if { (ac_try="$ac_link"
9272case "(($ac_try" in
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9275esac
9276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_link") 2>conftest.er1
9278 ac_status=$?
9279 grep -v '^ *+' conftest.er1 >conftest.err
9280 rm -f conftest.er1
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9285 { (case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9288esac
9289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_try") 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try='test -s conftest$ac_exeext'
9295 { (case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9298esac
9299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_try") 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009304 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009305else
9306 echo "$as_me: failed program was:" >&5
9307sed 's/^/| /' conftest.$ac_ext >&5
9308
9309
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009310fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009311
Bill Wendlingebcceee2009-04-18 11:20:33 +00009312rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009313 conftest$ac_exeext
9314 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009315 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009316fi
John Criswell7a73b802003-06-30 21:59:07 +00009317done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009318if test "${ac_cv_search_opendir+set}" = set; then
9319 :
Reid Spencera773bd52006-08-04 18:18:08 +00009320else
9321 ac_cv_search_opendir=no
9322fi
9323rm conftest.$ac_ext
9324LIBS=$ac_func_search_save_LIBS
9325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009326{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9327echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009328ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009329if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009331
Reid Spencera773bd52006-08-04 18:18:08 +00009332fi
9333
9334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009335 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9336echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9337if test "${ac_cv_search_opendir+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009339else
9340 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009341cat >conftest.$ac_ext <<_ACEOF
9342/* confdefs.h. */
9343_ACEOF
9344cat confdefs.h >>conftest.$ac_ext
9345cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009346/* end confdefs.h. */
9347
9348/* Override any GCC internal prototype to avoid an error.
9349 Use char because int might match the return type of a GCC
9350 builtin and then its argument prototype would still apply. */
9351#ifdef __cplusplus
9352extern "C"
9353#endif
9354char opendir ();
9355int
9356main ()
9357{
9358return opendir ();
9359 ;
9360 return 0;
9361}
9362_ACEOF
9363for ac_lib in '' x; do
9364 if test -z "$ac_lib"; then
9365 ac_res="none required"
9366 else
9367 ac_res=-l$ac_lib
9368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9369 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009370 rm -f conftest.$ac_objext conftest$ac_exeext
9371if { (ac_try="$ac_link"
9372case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375esac
9376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_link") 2>conftest.er1
9378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9385 { (case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9388esac
9389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_try") 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest$ac_exeext'
9395 { (case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9398esac
9399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_try") 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009404 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009405else
9406 echo "$as_me: failed program was:" >&5
9407sed 's/^/| /' conftest.$ac_ext >&5
9408
9409
Reid Spencera773bd52006-08-04 18:18:08 +00009410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009411
Bill Wendlingebcceee2009-04-18 11:20:33 +00009412rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009413 conftest$ac_exeext
9414 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009415 break
9416fi
9417done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009418if test "${ac_cv_search_opendir+set}" = set; then
9419 :
Reid Spencera773bd52006-08-04 18:18:08 +00009420else
9421 ac_cv_search_opendir=no
9422fi
9423rm conftest.$ac_ext
9424LIBS=$ac_func_search_save_LIBS
9425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009426{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9427echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009428ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009429if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9431
9432fi
9433
9434fi
John Criswell7a73b802003-06-30 21:59:07 +00009435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009436
John Criswell7a73b802003-06-30 21:59:07 +00009437for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009438do
9439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445fi
9446ac_res=`eval echo '${'$as_ac_Header'}'`
9447 { echo "$as_me:$LINENO: result: $ac_res" >&5
9448echo "${ECHO_T}$ac_res" >&6; }
9449else
9450 # Is the header compilable?
9451{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9453cat >conftest.$ac_ext <<_ACEOF
9454/* confdefs.h. */
9455_ACEOF
9456cat confdefs.h >>conftest.$ac_ext
9457cat >>conftest.$ac_ext <<_ACEOF
9458/* end confdefs.h. */
9459$ac_includes_default
9460#include <$ac_header>
9461_ACEOF
9462rm -f conftest.$ac_objext
9463if { (ac_try="$ac_compile"
9464case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9467esac
9468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_compile") 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9477 { (case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9480esac
9481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_try") 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; } &&
9486 { ac_try='test -s conftest.$ac_objext'
9487 { (case "(($ac_try" in
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9490esac
9491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_try") 2>&5
9493 ac_status=$?
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 ac_header_compiler=yes
9497else
9498 echo "$as_me: failed program was:" >&5
9499sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 ac_header_compiler=no
9502fi
9503
9504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9505{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9506echo "${ECHO_T}$ac_header_compiler" >&6; }
9507
9508# Is the header present?
9509{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9511cat >conftest.$ac_ext <<_ACEOF
9512/* confdefs.h. */
9513_ACEOF
9514cat confdefs.h >>conftest.$ac_ext
9515cat >>conftest.$ac_ext <<_ACEOF
9516/* end confdefs.h. */
9517#include <$ac_header>
9518_ACEOF
9519if { (ac_try="$ac_cpp conftest.$ac_ext"
9520case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } >/dev/null; then
9532 if test -s conftest.err; then
9533 ac_cpp_err=$ac_c_preproc_warn_flag
9534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9535 else
9536 ac_cpp_err=
9537 fi
9538else
9539 ac_cpp_err=yes
9540fi
9541if test -z "$ac_cpp_err"; then
9542 ac_header_preproc=yes
9543else
9544 echo "$as_me: failed program was:" >&5
9545sed 's/^/| /' conftest.$ac_ext >&5
9546
9547 ac_header_preproc=no
9548fi
9549
9550rm -f conftest.err conftest.$ac_ext
9551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9552echo "${ECHO_T}$ac_header_preproc" >&6; }
9553
9554# So? What about this header?
9555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9556 yes:no: )
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9561 ac_header_preproc=yes
9562 ;;
9563 no:yes:* )
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9576 ( cat <<\_ASBOX
9577## ----------------------------------- ##
9578## Report this to llvmbugs@cs.uiuc.edu ##
9579## ----------------------------------- ##
9580_ASBOX
9581 ) | sed "s/^/$as_me: WARNING: /" >&2
9582 ;;
9583esac
9584{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588else
9589 eval "$as_ac_Header=\$ac_header_preproc"
9590fi
9591ac_res=`eval echo '${'$as_ac_Header'}'`
9592 { echo "$as_me:$LINENO: result: $ac_res" >&5
9593echo "${ECHO_T}$ac_res" >&6; }
9594
9595fi
9596if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009597 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009599_ACEOF
9600
9601fi
9602
9603done
9604
Reid Spencera773bd52006-08-04 18:18:08 +00009605# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009606if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009607 enableval=$enable_ltdl_install;
9608fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009609
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009611
9612
9613if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009614 INSTALL_LTDL_TRUE=
9615 INSTALL_LTDL_FALSE='#'
9616else
9617 INSTALL_LTDL_TRUE='#'
9618 INSTALL_LTDL_FALSE=
9619fi
9620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009621
9622
9623if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009624 CONVENIENCE_LTDL_TRUE=
9625 CONVENIENCE_LTDL_FALSE='#'
9626else
9627 CONVENIENCE_LTDL_TRUE='#'
9628 CONVENIENCE_LTDL_FALSE=
9629fi
9630
9631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009632{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9633echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009634library_names_spec=
9635libname_spec='lib$name'
9636soname_spec=
9637shrext_cmds=".so"
9638postinstall_cmds=
9639postuninstall_cmds=
9640finish_cmds=
9641finish_eval=
9642shlibpath_var=
9643shlibpath_overrides_runpath=unknown
9644version_type=none
9645dynamic_linker="$host_os ld.so"
9646sys_lib_dlsearch_path_spec="/lib /usr/lib"
9647if test "$GCC" = yes; then
9648 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9649 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9650 # if the path contains ";" then we assume it to be the separator
9651 # otherwise default to the standard path separator (i.e. ":") - it is
9652 # assumed that no part of a normal pathname contains ";" but that should
9653 # okay in the real world where ";" in dirpaths is itself problematic.
9654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9655 else
9656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9657 fi
9658else
9659 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9660fi
9661need_lib_prefix=unknown
9662hardcode_into_libs=no
9663
9664# when you set need_version to no, make sure it does not cause -set_version
9665# flags to be left without arguments
9666need_version=unknown
9667
9668case $host_os in
9669aix3*)
9670 version_type=linux
9671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9672 shlibpath_var=LIBPATH
9673
9674 # AIX 3 has no versioning support, so we append a major version to the name.
9675 soname_spec='${libname}${release}${shared_ext}$major'
9676 ;;
9677
9678aix4* | aix5*)
9679 version_type=linux
9680 need_lib_prefix=no
9681 need_version=no
9682 hardcode_into_libs=yes
9683 if test "$host_cpu" = ia64; then
9684 # AIX 5 supports IA64
9685 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9686 shlibpath_var=LD_LIBRARY_PATH
9687 else
9688 # With GCC up to 2.95.x, collect2 would create an import file
9689 # for dependence libraries. The import file would start with
9690 # the line `#! .'. This would cause the generated library to
9691 # depend on `.', always an invalid library. This was fixed in
9692 # development snapshots of GCC prior to 3.0.
9693 case $host_os in
9694 aix4 | aix4.[01] | aix4.[01].*)
9695 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9696 echo ' yes '
9697 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9698 :
9699 else
9700 can_build_shared=no
9701 fi
9702 ;;
9703 esac
9704 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9705 # soname into executable. Probably we can add versioning support to
9706 # collect2, so additional links can be useful in future.
9707 if test "$aix_use_runtimelinking" = yes; then
9708 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9709 # instead of lib<name>.a to let people know that these are not
9710 # typical AIX shared libraries.
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712 else
9713 # We preserve .a as extension for shared libraries through AIX4.2
9714 # and later when we are not doing run time linking.
9715 library_names_spec='${libname}${release}.a $libname.a'
9716 soname_spec='${libname}${release}${shared_ext}$major'
9717 fi
9718 shlibpath_var=LIBPATH
9719 fi
9720 ;;
9721
9722amigaos*)
9723 library_names_spec='$libname.ixlibrary $libname.a'
9724 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9725 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'
9726 ;;
9727
9728beos*)
9729 library_names_spec='${libname}${shared_ext}'
9730 dynamic_linker="$host_os ld.so"
9731 shlibpath_var=LIBRARY_PATH
9732 ;;
9733
9734bsdi[45]*)
9735 version_type=linux
9736 need_version=no
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 soname_spec='${libname}${release}${shared_ext}$major'
9739 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9740 shlibpath_var=LD_LIBRARY_PATH
9741 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9742 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9743 # the default ld.so.conf also contains /usr/contrib/lib and
9744 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9745 # libtool to hard-code these into programs
9746 ;;
9747
9748cygwin* | mingw* | pw32*)
9749 version_type=windows
9750 shrext_cmds=".dll"
9751 need_version=no
9752 need_lib_prefix=no
9753
9754 case $GCC,$host_os in
9755 yes,cygwin* | yes,mingw* | yes,pw32*)
9756 library_names_spec='$libname.dll.a'
9757 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9758 postinstall_cmds='base_file=`basename \${file}`~
9759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9760 dldir=$destdir/`dirname \$dlpath`~
9761 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009762 $install_prog $dir/$dlname \$dldir/$dlname~
9763 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9765 dlpath=$dir/\$dldll~
9766 $rm \$dlpath'
9767 shlibpath_overrides_runpath=yes
9768
9769 case $host_os in
9770 cygwin*)
9771 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9772 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9773 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9774 ;;
9775 mingw*)
9776 # MinGW DLLs use traditional 'lib' prefix
9777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9778 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9779 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9780 # It is most probably a Windows format PATH printed by
9781 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9782 # path with ; separators, and with drive letters. We can handle the
9783 # drive letters (cygwin fileutils understands them), so leave them,
9784 # especially as we might pass files found there to a mingw objdump,
9785 # which wouldn't understand a cygwinified path. Ahh.
9786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9787 else
9788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9789 fi
9790 ;;
9791 pw32*)
9792 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009793 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 +00009794 ;;
9795 esac
9796 ;;
9797
9798 *)
9799 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9800 ;;
9801 esac
9802 dynamic_linker='Win32 ld.exe'
9803 # FIXME: first we should search . and the directory the executable is in
9804 shlibpath_var=PATH
9805 ;;
9806
9807darwin* | rhapsody*)
9808 dynamic_linker="$host_os dyld"
9809 version_type=darwin
9810 need_lib_prefix=no
9811 need_version=no
9812 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9813 soname_spec='${libname}${release}${major}$shared_ext'
9814 shlibpath_overrides_runpath=yes
9815 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009816 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9818 if test "$GCC" = yes; then
9819 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"`
9820 else
9821 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9822 fi
9823 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9824 ;;
9825
9826dgux*)
9827 version_type=linux
9828 need_lib_prefix=no
9829 need_version=no
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 ;;
9834
9835freebsd1*)
9836 dynamic_linker=no
9837 ;;
9838
9839kfreebsd*-gnu)
9840 version_type=linux
9841 need_lib_prefix=no
9842 need_version=no
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 shlibpath_var=LD_LIBRARY_PATH
9846 shlibpath_overrides_runpath=no
9847 hardcode_into_libs=yes
9848 dynamic_linker='GNU ld.so'
9849 ;;
9850
Reid Spencera773bd52006-08-04 18:18:08 +00009851freebsd* | dragonfly*)
9852 # DragonFly does not have aout. When/if they implement a new
9853 # versioning mechanism, adjust this.
9854 if test -x /usr/bin/objformat; then
9855 objformat=`/usr/bin/objformat`
9856 else
9857 case $host_os in
9858 freebsd[123]*) objformat=aout ;;
9859 *) objformat=elf ;;
9860 esac
9861 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862 version_type=freebsd-$objformat
9863 case $version_type in
9864 freebsd-elf*)
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9866 need_version=no
9867 need_lib_prefix=no
9868 ;;
9869 freebsd-*)
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9871 need_version=yes
9872 ;;
9873 esac
9874 shlibpath_var=LD_LIBRARY_PATH
9875 case $host_os in
9876 freebsd2*)
9877 shlibpath_overrides_runpath=yes
9878 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009879 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009880 shlibpath_overrides_runpath=yes
9881 hardcode_into_libs=yes
9882 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009883 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9884 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885 shlibpath_overrides_runpath=no
9886 hardcode_into_libs=yes
9887 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009888 freebsd*) # from 4.6 on
9889 shlibpath_overrides_runpath=yes
9890 hardcode_into_libs=yes
9891 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009892 esac
9893 ;;
9894
9895gnu*)
9896 version_type=linux
9897 need_lib_prefix=no
9898 need_version=no
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 shlibpath_var=LD_LIBRARY_PATH
9902 hardcode_into_libs=yes
9903 ;;
9904
9905hpux9* | hpux10* | hpux11*)
9906 # Give a soname corresponding to the major version so that dld.sl refuses to
9907 # link against other versions.
9908 version_type=sunos
9909 need_lib_prefix=no
9910 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009911 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009912 ia64*)
9913 shrext_cmds='.so'
9914 hardcode_into_libs=yes
9915 dynamic_linker="$host_os dld.so"
9916 shlibpath_var=LD_LIBRARY_PATH
9917 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9919 soname_spec='${libname}${release}${shared_ext}$major'
9920 if test "X$HPUX_IA64_MODE" = X32; then
9921 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9922 else
9923 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9924 fi
9925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9926 ;;
9927 hppa*64*)
9928 shrext_cmds='.sl'
9929 hardcode_into_libs=yes
9930 dynamic_linker="$host_os dld.sl"
9931 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 soname_spec='${libname}${release}${shared_ext}$major'
9935 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9937 ;;
9938 *)
9939 shrext_cmds='.sl'
9940 dynamic_linker="$host_os dld.sl"
9941 shlibpath_var=SHLIB_PATH
9942 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 ;;
9946 esac
9947 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9948 postinstall_cmds='chmod 555 $lib'
9949 ;;
9950
Reid Spencera773bd52006-08-04 18:18:08 +00009951interix3*)
9952 version_type=linux
9953 need_lib_prefix=no
9954 need_version=no
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9958 shlibpath_var=LD_LIBRARY_PATH
9959 shlibpath_overrides_runpath=no
9960 hardcode_into_libs=yes
9961 ;;
9962
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009963irix5* | irix6* | nonstopux*)
9964 case $host_os in
9965 nonstopux*) version_type=nonstopux ;;
9966 *)
9967 if test "$lt_cv_prog_gnu_ld" = yes; then
9968 version_type=linux
9969 else
9970 version_type=irix
9971 fi ;;
9972 esac
9973 need_lib_prefix=no
9974 need_version=no
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9977 case $host_os in
9978 irix5* | nonstopux*)
9979 libsuff= shlibsuff=
9980 ;;
9981 *)
9982 case $LD in # libtool.m4 will add one of these switches to LD
9983 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9984 libsuff= shlibsuff= libmagic=32-bit;;
9985 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9986 libsuff=32 shlibsuff=N32 libmagic=N32;;
9987 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9988 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9989 *) libsuff= shlibsuff= libmagic=never-match;;
9990 esac
9991 ;;
9992 esac
9993 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9994 shlibpath_overrides_runpath=no
9995 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9996 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9997 hardcode_into_libs=yes
9998 ;;
9999
10000# No shared lib support for Linux oldld, aout, or coff.
10001linux*oldld* | linux*aout* | linux*coff*)
10002 dynamic_linker=no
10003 ;;
10004
10005# This must be Linux ELF.
10006linux*)
10007 version_type=linux
10008 need_lib_prefix=no
10009 need_version=no
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10013 shlibpath_var=LD_LIBRARY_PATH
10014 shlibpath_overrides_runpath=no
10015 # This implies no fast_install, which is unacceptable.
10016 # Some rework will be needed to allow for fast_install
10017 # before this can be enabled.
10018 hardcode_into_libs=yes
10019
10020 # Append ld.so.conf contents to the search path
10021 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010022 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 +000010023 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10024 fi
10025
10026 # We used to test for /lib/ld.so.1 and disable shared libraries on
10027 # powerpc, because MkLinux only supported shared libraries with the
10028 # GNU dynamic linker. Since this was broken with cross compilers,
10029 # most powerpc-linux boxes support dynamic linking these days and
10030 # people can always --disable-shared, the test was removed, and we
10031 # assume the GNU/Linux dynamic linker is in use.
10032 dynamic_linker='GNU/Linux ld.so'
10033 ;;
10034
10035knetbsd*-gnu)
10036 version_type=linux
10037 need_lib_prefix=no
10038 need_version=no
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 shlibpath_overrides_runpath=no
10043 hardcode_into_libs=yes
10044 dynamic_linker='GNU ld.so'
10045 ;;
10046
10047netbsd*)
10048 version_type=sunos
10049 need_lib_prefix=no
10050 need_version=no
10051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10054 dynamic_linker='NetBSD (a.out) ld.so'
10055 else
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 dynamic_linker='NetBSD ld.elf_so'
10059 fi
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=yes
10062 hardcode_into_libs=yes
10063 ;;
10064
10065newsos6)
10066 version_type=linux
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=yes
10070 ;;
10071
10072nto-qnx*)
10073 version_type=linux
10074 need_lib_prefix=no
10075 need_version=no
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 shlibpath_var=LD_LIBRARY_PATH
10079 shlibpath_overrides_runpath=yes
10080 ;;
10081
10082openbsd*)
10083 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010084 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010086 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10087 case $host_os in
10088 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10089 *) need_version=no ;;
10090 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10095 case $host_os in
10096 openbsd2.[89] | openbsd2.[89].*)
10097 shlibpath_overrides_runpath=no
10098 ;;
10099 *)
10100 shlibpath_overrides_runpath=yes
10101 ;;
10102 esac
10103 else
10104 shlibpath_overrides_runpath=yes
10105 fi
10106 ;;
10107
10108os2*)
10109 libname_spec='$name'
10110 shrext_cmds=".dll"
10111 need_lib_prefix=no
10112 library_names_spec='$libname${shared_ext} $libname.a'
10113 dynamic_linker='OS/2 ld.exe'
10114 shlibpath_var=LIBPATH
10115 ;;
10116
10117osf3* | osf4* | osf5*)
10118 version_type=osf
10119 need_lib_prefix=no
10120 need_version=no
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10126 ;;
10127
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010128solaris*)
10129 version_type=linux
10130 need_lib_prefix=no
10131 need_version=no
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 shlibpath_overrides_runpath=yes
10136 hardcode_into_libs=yes
10137 # ldd complains unless libraries are executable
10138 postinstall_cmds='chmod +x $lib'
10139 ;;
10140
10141sunos4*)
10142 version_type=sunos
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10144 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 shlibpath_overrides_runpath=yes
10147 if test "$with_gnu_ld" = yes; then
10148 need_lib_prefix=no
10149 fi
10150 need_version=yes
10151 ;;
10152
Reid Spencera773bd52006-08-04 18:18:08 +000010153sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154 version_type=linux
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 shlibpath_var=LD_LIBRARY_PATH
10158 case $host_vendor in
10159 sni)
10160 shlibpath_overrides_runpath=no
10161 need_lib_prefix=no
10162 export_dynamic_flag_spec='${wl}-Blargedynsym'
10163 runpath_var=LD_RUN_PATH
10164 ;;
10165 siemens)
10166 need_lib_prefix=no
10167 ;;
10168 motorola)
10169 need_lib_prefix=no
10170 need_version=no
10171 shlibpath_overrides_runpath=no
10172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10173 ;;
10174 esac
10175 ;;
10176
10177sysv4*MP*)
10178 if test -d /usr/nec ;then
10179 version_type=linux
10180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10181 soname_spec='$libname${shared_ext}.$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 fi
10184 ;;
10185
Reid Spencera773bd52006-08-04 18:18:08 +000010186sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10187 version_type=freebsd-elf
10188 need_lib_prefix=no
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 hardcode_into_libs=yes
10194 if test "$with_gnu_ld" = yes; then
10195 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10196 shlibpath_overrides_runpath=no
10197 else
10198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10199 shlibpath_overrides_runpath=yes
10200 case $host_os in
10201 sco3.2v5*)
10202 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10203 ;;
10204 esac
10205 fi
10206 sys_lib_dlsearch_path_spec='/usr/lib'
10207 ;;
10208
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010209uts4*)
10210 version_type=linux
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 shlibpath_var=LD_LIBRARY_PATH
10214 ;;
10215
10216*)
10217 dynamic_linker=no
10218 ;;
10219esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010220{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10221echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222test "$dynamic_linker" = no && can_build_shared=no
10223
Reid Spencera773bd52006-08-04 18:18:08 +000010224variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10225if test "$GCC" = yes; then
10226 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10227fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010228
Reid Spencera773bd52006-08-04 18:18:08 +000010229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010230{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10231echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10232if test "${libltdl_cv_shlibext+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010234else
10235
10236module=yes
10237eval libltdl_cv_shlibext=$shrext_cmds
10238
10239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010240{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10241echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010242if test -n "$libltdl_cv_shlibext"; then
10243
10244cat >>confdefs.h <<_ACEOF
10245#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10246_ACEOF
10247
10248fi
10249
10250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010251{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10252echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10253if test "${libltdl_cv_shlibpath_var+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010255else
10256 libltdl_cv_shlibpath_var="$shlibpath_var"
10257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010258{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10259echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260if test -n "$libltdl_cv_shlibpath_var"; then
10261
10262cat >>confdefs.h <<_ACEOF
10263#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10264_ACEOF
10265
10266fi
10267
10268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010269{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10270echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10271if test "${libltdl_cv_sys_search_path+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273else
10274 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010276{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10277echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278if test -n "$libltdl_cv_sys_search_path"; then
10279 sys_search_path=
10280 for dir in $libltdl_cv_sys_search_path; do
10281 if test -z "$sys_search_path"; then
10282 sys_search_path="$dir"
10283 else
10284 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10285 fi
10286 done
10287
10288cat >>confdefs.h <<_ACEOF
10289#define LTDL_SYSSEARCHPATH "$sys_search_path"
10290_ACEOF
10291
10292fi
10293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010294{ echo "$as_me:$LINENO: checking for objdir" >&5
10295echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10296if test "${libltdl_cv_objdir+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298else
10299 libltdl_cv_objdir="$objdir"
10300 if test -n "$objdir"; then
10301 :
10302 else
10303 rm -f .libs 2>/dev/null
10304 mkdir .libs 2>/dev/null
10305 if test -d .libs; then
10306 libltdl_cv_objdir=.libs
10307 else
10308 # MS-DOS does not allow filenames that begin with a dot.
10309 libltdl_cv_objdir=_libs
10310 fi
10311 rmdir .libs 2>/dev/null
10312 fi
10313
10314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010315{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10316echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317
10318cat >>confdefs.h <<_ACEOF
10319#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10320_ACEOF
10321
10322
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323
10324
10325
10326
10327# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010328{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10329echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10330if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332else
10333
10334# These are sane defaults that work on at least a few old systems.
10335# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10336
10337# Character class describing NM global symbol codes.
10338symcode='[BCDEGRST]'
10339
10340# Regexp to match symbols that can be accessed directly from C.
10341sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10342
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010343# Transform an extracted symbol line into a proper C declaration
10344lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10345
10346# Transform an extracted symbol line into symbol name and symbol address
10347lt_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'"
10348
10349# Define system-specific variables.
10350case $host_os in
10351aix*)
10352 symcode='[BCDT]'
10353 ;;
10354cygwin* | mingw* | pw32*)
10355 symcode='[ABCDGISTW]'
10356 ;;
10357hpux*) # Its linker distinguishes data from code symbols
10358 if test "$host_cpu" = ia64; then
10359 symcode='[ABCDEGRST]'
10360 fi
10361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10362 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'"
10363 ;;
10364linux*)
10365 if test "$host_cpu" = ia64; then
10366 symcode='[ABCDGIRSTW]'
10367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10368 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'"
10369 fi
10370 ;;
10371irix* | nonstopux*)
10372 symcode='[BCDEGRST]'
10373 ;;
10374osf*)
10375 symcode='[BCDEGQRST]'
10376 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010377solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010378 symcode='[BDRT]'
10379 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010380sco3.2v5*)
10381 symcode='[DT]'
10382 ;;
10383sysv4.2uw2*)
10384 symcode='[DT]'
10385 ;;
10386sysv5* | sco5v6* | unixware* | OpenUNIX*)
10387 symcode='[ABDT]'
10388 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389sysv4)
10390 symcode='[DFNSTU]'
10391 ;;
10392esac
10393
10394# Handle CRLF in mingw tool chain
10395opt_cr=
10396case $build_os in
10397mingw*)
10398 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10399 ;;
10400esac
10401
10402# If we're using GNU nm, then use its standard symbol codes.
10403case `$NM -V 2>&1` in
10404*GNU* | *'with BFD'*)
10405 symcode='[ABCDGIRSTW]' ;;
10406esac
10407
10408# Try without a prefix undercore, then with it.
10409for ac_symprfx in "" "_"; do
10410
Reid Spencera773bd52006-08-04 18:18:08 +000010411 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10412 symxfrm="\\1 $ac_symprfx\\2 \\2"
10413
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010414 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010415 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 +000010416
10417 # Check to see that the pipe works correctly.
10418 pipe_works=no
10419
10420 rm -f conftest*
10421 cat > conftest.$ac_ext <<EOF
10422#ifdef __cplusplus
10423extern "C" {
10424#endif
10425char nm_test_var;
10426void nm_test_func(){}
10427#ifdef __cplusplus
10428}
10429#endif
10430int main(){nm_test_var='a';nm_test_func();return(0);}
10431EOF
10432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434 (eval $ac_compile) 2>&5
10435 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438 # Now try to grab the symbols.
10439 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010440 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 +000010441 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10442 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445 # Try sorting and uniquifying the output.
10446 if sort "$nlist" | uniq > "$nlist"T; then
10447 mv -f "$nlist"T "$nlist"
10448 else
10449 rm -f "$nlist"T
10450 fi
10451
10452 # Make sure that we snagged all the symbols we need.
10453 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10454 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10455 cat <<EOF > conftest.$ac_ext
10456#ifdef __cplusplus
10457extern "C" {
10458#endif
10459
10460EOF
10461 # Now generate the symbol file.
10462 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10463
10464 cat <<EOF >> conftest.$ac_ext
10465#if defined (__STDC__) && __STDC__
10466# define lt_ptr_t void *
10467#else
10468# define lt_ptr_t char *
10469# define const
10470#endif
10471
10472/* The mapping between symbol names and symbols. */
10473const struct {
10474 const char *name;
10475 lt_ptr_t address;
10476}
10477lt_preloaded_symbols[] =
10478{
10479EOF
10480 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10481 cat <<\EOF >> conftest.$ac_ext
10482 {0, (lt_ptr_t) 0}
10483};
10484
10485#ifdef __cplusplus
10486}
10487#endif
10488EOF
10489 # Now try linking the two files.
10490 mv conftest.$ac_objext conftstm.$ac_objext
10491 lt_save_LIBS="$LIBS"
10492 lt_save_CFLAGS="$CFLAGS"
10493 LIBS="conftstm.$ac_objext"
10494 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496 (eval $ac_link) 2>&5
10497 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500 pipe_works=yes
10501 fi
10502 LIBS="$lt_save_LIBS"
10503 CFLAGS="$lt_save_CFLAGS"
10504 else
10505 echo "cannot find nm_test_func in $nlist" >&5
10506 fi
10507 else
10508 echo "cannot find nm_test_var in $nlist" >&5
10509 fi
10510 else
10511 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10512 fi
10513 else
10514 echo "$progname: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10516 fi
10517 rm -f conftest* conftst*
10518
10519 # Do not use the global_symbol_pipe unless it works.
10520 if test "$pipe_works" = yes; then
10521 break
10522 else
10523 lt_cv_sys_global_symbol_pipe=
10524 fi
10525done
10526
10527fi
10528
10529if test -z "$lt_cv_sys_global_symbol_pipe"; then
10530 lt_cv_sys_global_symbol_to_cdecl=
10531fi
10532if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010533 { echo "$as_me:$LINENO: result: failed" >&5
10534echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010536 { echo "$as_me:$LINENO: result: ok" >&5
10537echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538fi
10539
10540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010541{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10542echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10543if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545else
10546 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10547 libltdl_cv_preloaded_symbols=yes
10548 else
10549 libltdl_cv_preloaded_symbols=no
10550 fi
10551
10552fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010553{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10554echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010555if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010557cat >>confdefs.h <<\_ACEOF
10558#define HAVE_PRELOADED_SYMBOLS 1
10559_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010560
10561fi
10562
10563LIBADD_DL=
10564
10565ac_ext=c
10566ac_cpp='$CPP $CPPFLAGS'
10567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569ac_compiler_gnu=$ac_cv_c_compiler_gnu
10570
10571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010572{ echo "$as_me:$LINENO: checking for shl_load" >&5
10573echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10574if test "${ac_cv_func_shl_load+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576else
10577 cat >conftest.$ac_ext <<_ACEOF
10578/* confdefs.h. */
10579_ACEOF
10580cat confdefs.h >>conftest.$ac_ext
10581cat >>conftest.$ac_ext <<_ACEOF
10582/* end confdefs.h. */
10583/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10585#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010587/* System header to define __stub macros and hopefully few prototypes,
10588 which can conflict with char shl_load (); below.
10589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10590 <limits.h> exists even on freestanding compilers. */
10591
10592#ifdef __STDC__
10593# include <limits.h>
10594#else
10595# include <assert.h>
10596#endif
10597
10598#undef shl_load
10599
10600/* Override any GCC internal prototype to avoid an error.
10601 Use char because int might match the return type of a GCC
10602 builtin and then its argument prototype would still apply. */
10603#ifdef __cplusplus
10604extern "C"
10605#endif
10606char shl_load ();
10607/* The GNU C library defines this for functions which it implements
10608 to always fail with ENOSYS. Some functions are actually named
10609 something starting with __ and the normal name is an alias. */
10610#if defined __stub_shl_load || defined __stub___shl_load
10611choke me
10612#endif
10613
10614int
10615main ()
10616{
10617return shl_load ();
10618 ;
10619 return 0;
10620}
10621_ACEOF
10622rm -f conftest.$ac_objext conftest$ac_exeext
10623if { (ac_try="$ac_link"
10624case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10627esac
10628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10637 { (case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640esac
10641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_try") 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10650esac
10651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_try") 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_cv_func_shl_load=yes
10657else
10658 echo "$as_me: failed program was:" >&5
10659sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ac_cv_func_shl_load=no
10662fi
10663
10664rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666fi
10667{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10668echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10669if test $ac_cv_func_shl_load = yes; then
10670
10671cat >>confdefs.h <<\_ACEOF
10672#define HAVE_SHL_LOAD 1
10673_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674
10675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010676 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10677echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10678if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680else
10681 ac_check_lib_save_LIBS=$LIBS
10682LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010683cat >conftest.$ac_ext <<_ACEOF
10684/* confdefs.h. */
10685_ACEOF
10686cat confdefs.h >>conftest.$ac_ext
10687cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010688/* end confdefs.h. */
10689
Reid Spencera773bd52006-08-04 18:18:08 +000010690/* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010693#ifdef __cplusplus
10694extern "C"
10695#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010696char shl_load ();
10697int
10698main ()
10699{
Reid Spencera773bd52006-08-04 18:18:08 +000010700return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010701 ;
10702 return 0;
10703}
10704_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010705rm -f conftest.$ac_objext conftest$ac_exeext
10706if { (ac_try="$ac_link"
10707case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710esac
10711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_link") 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723esac
10724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; } &&
10729 { ac_try='test -s conftest$ac_exeext'
10730 { (case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733esac
10734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_try") 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010739 ac_cv_lib_dld_shl_load=yes
10740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010741 echo "$as_me: failed program was:" >&5
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
10744 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010746
Bill Wendlingebcceee2009-04-18 11:20:33 +000010747rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010748 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749LIBS=$ac_check_lib_save_LIBS
10750fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010751{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10752echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10753if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010755cat >>confdefs.h <<\_ACEOF
10756#define HAVE_SHL_LOAD 1
10757_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010758
10759 LIBADD_DL="$LIBADD_DL -ldld"
10760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010761 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10762echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10763if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765else
10766 ac_check_lib_save_LIBS=$LIBS
10767LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010768cat >conftest.$ac_ext <<_ACEOF
10769/* confdefs.h. */
10770_ACEOF
10771cat confdefs.h >>conftest.$ac_ext
10772cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010773/* end confdefs.h. */
10774
Reid Spencera773bd52006-08-04 18:18:08 +000010775/* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010778#ifdef __cplusplus
10779extern "C"
10780#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781char dlopen ();
10782int
10783main ()
10784{
Reid Spencera773bd52006-08-04 18:18:08 +000010785return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010786 ;
10787 return 0;
10788}
10789_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010790rm -f conftest.$ac_objext conftest$ac_exeext
10791if { (ac_try="$ac_link"
10792case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10795esac
10796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_link") 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10805 { (case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10808esac
10809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_try") 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; } &&
10814 { ac_try='test -s conftest$ac_exeext'
10815 { (case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10818esac
10819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_try") 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010824 ac_cv_lib_dl_dlopen=yes
10825else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010826 echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828
10829 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010831
Bill Wendlingebcceee2009-04-18 11:20:33 +000010832rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010833 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834LIBS=$ac_check_lib_save_LIBS
10835fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010836{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10837echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10838if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010840cat >>confdefs.h <<\_ACEOF
10841#define HAVE_LIBDL 1
10842_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843
10844 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010846 cat >conftest.$ac_ext <<_ACEOF
10847/* confdefs.h. */
10848_ACEOF
10849cat confdefs.h >>conftest.$ac_ext
10850cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851/* end confdefs.h. */
10852#if HAVE_DLFCN_H
10853# include <dlfcn.h>
10854#endif
10855
10856int
10857main ()
10858{
10859dlopen(0, 0);
10860 ;
10861 return 0;
10862}
10863_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010864rm -f conftest.$ac_objext conftest$ac_exeext
10865if { (ac_try="$ac_link"
10866case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869esac
10870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_link") 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882esac
10883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest$ac_exeext'
10889 { (case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10892esac
10893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_try") 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010899cat >>confdefs.h <<\_ACEOF
10900#define HAVE_LIBDL 1
10901_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902 libltdl_cv_func_dlopen="yes"
10903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010904 echo "$as_me: failed program was:" >&5
10905sed 's/^/| /' conftest.$ac_ext >&5
10906
10907 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10908echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10909if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911else
10912 ac_check_lib_save_LIBS=$LIBS
10913LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010914cat >conftest.$ac_ext <<_ACEOF
10915/* confdefs.h. */
10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919/* end confdefs.h. */
10920
Reid Spencera773bd52006-08-04 18:18:08 +000010921/* Override any GCC internal prototype to avoid an error.
10922 Use char because int might match the return type of a GCC
10923 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010924#ifdef __cplusplus
10925extern "C"
10926#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010927char dlopen ();
10928int
10929main ()
10930{
Reid Spencera773bd52006-08-04 18:18:08 +000010931return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932 ;
10933 return 0;
10934}
10935_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010936rm -f conftest.$ac_objext conftest$ac_exeext
10937if { (ac_try="$ac_link"
10938case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10941esac
10942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_link") 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954esac
10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest$ac_exeext'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970 ac_cv_lib_svld_dlopen=yes
10971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010972 echo "$as_me: failed program was:" >&5
10973sed 's/^/| /' conftest.$ac_ext >&5
10974
10975 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010977
Bill Wendlingebcceee2009-04-18 11:20:33 +000010978rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010979 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980LIBS=$ac_check_lib_save_LIBS
10981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010982{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10983echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10984if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010986cat >>confdefs.h <<\_ACEOF
10987#define HAVE_LIBDL 1
10988_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010989
10990 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010992 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10993echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10994if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010996else
10997 ac_check_lib_save_LIBS=$LIBS
10998LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010999cat >conftest.$ac_ext <<_ACEOF
11000/* confdefs.h. */
11001_ACEOF
11002cat confdefs.h >>conftest.$ac_ext
11003cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011004/* end confdefs.h. */
11005
Reid Spencera773bd52006-08-04 18:18:08 +000011006/* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011009#ifdef __cplusplus
11010extern "C"
11011#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012char dld_link ();
11013int
11014main ()
11015{
Reid Spencera773bd52006-08-04 18:18:08 +000011016return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011017 ;
11018 return 0;
11019}
11020_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011021rm -f conftest.$ac_objext conftest$ac_exeext
11022if { (ac_try="$ac_link"
11023case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11026esac
11027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_link") 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11039esac
11040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest$ac_exeext'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049esac
11050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011055 ac_cv_lib_dld_dld_link=yes
11056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011057 echo "$as_me: failed program was:" >&5
11058sed 's/^/| /' conftest.$ac_ext >&5
11059
11060 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011062
Bill Wendlingebcceee2009-04-18 11:20:33 +000011063rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011064 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011065LIBS=$ac_check_lib_save_LIBS
11066fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011067{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11068echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11069if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011071cat >>confdefs.h <<\_ACEOF
11072#define HAVE_DLD 1
11073_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011074
11075 LIBADD_DL="$LIBADD_DL -ldld"
11076else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011077 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11078echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11079if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11081else
11082 cat >conftest.$ac_ext <<_ACEOF
11083/* confdefs.h. */
11084_ACEOF
11085cat confdefs.h >>conftest.$ac_ext
11086cat >>conftest.$ac_ext <<_ACEOF
11087/* end confdefs.h. */
11088/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11090#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011092/* System header to define __stub macros and hopefully few prototypes,
11093 which can conflict with char _dyld_func_lookup (); below.
11094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11095 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011097#ifdef __STDC__
11098# include <limits.h>
11099#else
11100# include <assert.h>
11101#endif
11102
11103#undef _dyld_func_lookup
11104
11105/* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11108#ifdef __cplusplus
11109extern "C"
11110#endif
11111char _dyld_func_lookup ();
11112/* The GNU C library defines this for functions which it implements
11113 to always fail with ENOSYS. Some functions are actually named
11114 something starting with __ and the normal name is an alias. */
11115#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11116choke me
11117#endif
11118
11119int
11120main ()
11121{
11122return _dyld_func_lookup ();
11123 ;
11124 return 0;
11125}
11126_ACEOF
11127rm -f conftest.$ac_objext conftest$ac_exeext
11128if { (ac_try="$ac_link"
11129case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11132esac
11133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_link") 2>conftest.er1
11135 ac_status=$?
11136 grep -v '^ *+' conftest.er1 >conftest.err
11137 rm -f conftest.er1
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } &&
11141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145esac
11146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; } &&
11151 { ac_try='test -s conftest$ac_exeext'
11152 { (case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11155esac
11156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_try") 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; }; then
11161 ac_cv_func__dyld_func_lookup=yes
11162else
11163 echo "$as_me: failed program was:" >&5
11164sed 's/^/| /' conftest.$ac_ext >&5
11165
11166 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011167fi
Reid Spencera773bd52006-08-04 18:18:08 +000011168
Bill Wendlingebcceee2009-04-18 11:20:33 +000011169rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011170 conftest$ac_exeext conftest.$ac_ext
11171fi
11172{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11173echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11174if test $ac_cv_func__dyld_func_lookup = yes; then
11175
11176cat >>confdefs.h <<\_ACEOF
11177#define HAVE_DYLD 1
11178_ACEOF
11179
11180fi
11181
11182
11183fi
11184
11185
11186fi
11187
11188
11189fi
11190
11191rm -f core conftest.err conftest.$ac_objext \
11192 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011193
11194fi
11195
11196
11197fi
11198
11199
11200fi
11201
11202
11203if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11204then
11205 lt_save_LIBS="$LIBS"
11206 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011207
11208for ac_func in dlerror
11209do
11210as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11211{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11212echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11213if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11215else
11216 cat >conftest.$ac_ext <<_ACEOF
11217/* confdefs.h. */
11218_ACEOF
11219cat confdefs.h >>conftest.$ac_ext
11220cat >>conftest.$ac_ext <<_ACEOF
11221/* end confdefs.h. */
11222/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11224#define $ac_func innocuous_$ac_func
11225
11226/* System header to define __stub macros and hopefully few prototypes,
11227 which can conflict with char $ac_func (); below.
11228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11229 <limits.h> exists even on freestanding compilers. */
11230
11231#ifdef __STDC__
11232# include <limits.h>
11233#else
11234# include <assert.h>
11235#endif
11236
11237#undef $ac_func
11238
11239/* Override any GCC internal prototype to avoid an error.
11240 Use char because int might match the return type of a GCC
11241 builtin and then its argument prototype would still apply. */
11242#ifdef __cplusplus
11243extern "C"
11244#endif
11245char $ac_func ();
11246/* The GNU C library defines this for functions which it implements
11247 to always fail with ENOSYS. Some functions are actually named
11248 something starting with __ and the normal name is an alias. */
11249#if defined __stub_$ac_func || defined __stub___$ac_func
11250choke me
11251#endif
11252
11253int
11254main ()
11255{
11256return $ac_func ();
11257 ;
11258 return 0;
11259}
11260_ACEOF
11261rm -f conftest.$ac_objext conftest$ac_exeext
11262if { (ac_try="$ac_link"
11263case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266esac
11267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_link") 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } &&
11275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279esac
11280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; } &&
11285 { ac_try='test -s conftest$ac_exeext'
11286 { (case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289esac
11290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_try") 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
11295 eval "$as_ac_var=yes"
11296else
11297 echo "$as_me: failed program was:" >&5
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
11300 eval "$as_ac_var=no"
11301fi
11302
11303rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305fi
11306ac_res=`eval echo '${'$as_ac_var'}'`
11307 { echo "$as_me:$LINENO: result: $ac_res" >&5
11308echo "${ECHO_T}$ac_res" >&6; }
11309if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011310 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011311#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011312_ACEOF
11313
11314fi
11315done
11316
11317 LIBS="$lt_save_LIBS"
11318fi
11319ac_ext=c
11320ac_cpp='$CPP $CPPFLAGS'
11321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11323ac_compiler_gnu=$ac_cv_c_compiler_gnu
11324
11325
11326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011327{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11328echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11329if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011331else
11332 ac_cv_sys_symbol_underscore=no
11333 cat > conftest.$ac_ext <<EOF
11334void nm_test_func(){}
11335int main(){nm_test_func;return 0;}
11336EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338 (eval $ac_compile) 2>&5
11339 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011342 # Now try to grab the symbols.
11343 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011344 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 +000011345 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11346 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011349 # See whether the symbols have a leading underscore.
11350 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11351 ac_cv_sys_symbol_underscore=yes
11352 else
11353 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11354 :
11355 else
11356 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11357 fi
11358 fi
11359 else
11360 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11361 fi
11362 else
11363 echo "configure: failed program was:" >&5
11364 cat conftest.c >&5
11365 fi
11366 rm -rf conftest*
11367
11368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011369{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11370echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011371
11372
11373if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11374 if test x"$libltdl_cv_func_dlopen" = xyes ||
11375 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011376 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11377echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11378if test "${libltdl_cv_need_uscore+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380else
11381 libltdl_cv_need_uscore=unknown
11382 save_LIBS="$LIBS"
11383 LIBS="$LIBS $LIBADD_DL"
11384 if test "$cross_compiling" = yes; then :
11385 libltdl_cv_need_uscore=cross
11386else
11387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11388 lt_status=$lt_dlunknown
11389 cat > conftest.$ac_ext <<EOF
Dan Gohmanda612d62010-06-01 14:56:56 +000011390#line 11390 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391#include "confdefs.h"
11392
11393#if HAVE_DLFCN_H
11394#include <dlfcn.h>
11395#endif
11396
11397#include <stdio.h>
11398
11399#ifdef RTLD_GLOBAL
11400# define LT_DLGLOBAL RTLD_GLOBAL
11401#else
11402# ifdef DL_GLOBAL
11403# define LT_DLGLOBAL DL_GLOBAL
11404# else
11405# define LT_DLGLOBAL 0
11406# endif
11407#endif
11408
11409/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11410 find out it does not work in some platform. */
11411#ifndef LT_DLLAZY_OR_NOW
11412# ifdef RTLD_LAZY
11413# define LT_DLLAZY_OR_NOW RTLD_LAZY
11414# else
11415# ifdef DL_LAZY
11416# define LT_DLLAZY_OR_NOW DL_LAZY
11417# else
11418# ifdef RTLD_NOW
11419# define LT_DLLAZY_OR_NOW RTLD_NOW
11420# else
11421# ifdef DL_NOW
11422# define LT_DLLAZY_OR_NOW DL_NOW
11423# else
11424# define LT_DLLAZY_OR_NOW 0
11425# endif
11426# endif
11427# endif
11428# endif
11429#endif
11430
11431#ifdef __cplusplus
11432extern "C" void exit (int);
11433#endif
11434
11435void fnord() { int i=42;}
11436int main ()
11437{
11438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11439 int status = $lt_dlunknown;
11440
11441 if (self)
11442 {
11443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11444 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11445 /* dlclose (self); */
11446 }
Reid Spencera773bd52006-08-04 18:18:08 +000011447 else
11448 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449
11450 exit (status);
11451}
11452EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454 (eval $ac_link) 2>&5
11455 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011458 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011459 lt_status=$?
11460 case x$lt_status in
11461 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11462 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011463 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464 esac
11465 else :
11466 # compilation failed
11467
11468 fi
11469fi
11470rm -fr conftest*
11471
11472 LIBS="$save_LIBS"
11473
11474fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011475{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11476echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011477 fi
11478fi
11479
11480if test x"$libltdl_cv_need_uscore" = xyes; then
11481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011482cat >>confdefs.h <<\_ACEOF
11483#define NEED_USCORE 1
11484_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485
11486fi
11487
11488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011489{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11490echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11491if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493else
11494 # PORTME does your system automatically load deplibs for dlopen?
11495 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11496 # For now, we just catch OSes we know something about -- in the
11497 # future, we'll try test this programmatically.
11498 libltdl_cv_sys_dlopen_deplibs=unknown
11499 case "$host_os" in
11500 aix3*|aix4.1.*|aix4.2.*)
11501 # Unknown whether this is true for these versions of AIX, but
11502 # we want this `case' here to explicitly catch those versions.
11503 libltdl_cv_sys_dlopen_deplibs=unknown
11504 ;;
11505 aix[45]*)
11506 libltdl_cv_sys_dlopen_deplibs=yes
11507 ;;
11508 darwin*)
11509 # Assuming the user has installed a libdl from somewhere, this is true
11510 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11511 libltdl_cv_sys_dlopen_deplibs=yes
11512 ;;
11513 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11514 # GNU and its variants, using gnu ld.so (Glibc)
11515 libltdl_cv_sys_dlopen_deplibs=yes
11516 ;;
11517 hpux10*|hpux11*)
11518 libltdl_cv_sys_dlopen_deplibs=yes
11519 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011520 interix*)
11521 libltdl_cv_sys_dlopen_deplibs=yes
11522 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523 irix[12345]*|irix6.[01]*)
11524 # Catch all versions of IRIX before 6.2, and indicate that we don't
11525 # know how it worked for any of those versions.
11526 libltdl_cv_sys_dlopen_deplibs=unknown
11527 ;;
11528 irix*)
11529 # The case above catches anything before 6.2, and it's known that
11530 # at 6.2 and later dlopen does load deplibs.
11531 libltdl_cv_sys_dlopen_deplibs=yes
11532 ;;
11533 netbsd*)
11534 libltdl_cv_sys_dlopen_deplibs=yes
11535 ;;
11536 openbsd*)
11537 libltdl_cv_sys_dlopen_deplibs=yes
11538 ;;
11539 osf[1234]*)
11540 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11541 # it did *not* use an RPATH in a shared library to find objects the
11542 # library depends on, so we explictly say `no'.
11543 libltdl_cv_sys_dlopen_deplibs=no
11544 ;;
11545 osf5.0|osf5.0a|osf5.1)
11546 # dlopen *does* load deplibs and with the right loader patch applied
11547 # it even uses RPATH in a shared library to search for shared objects
11548 # that the library depends on, but there's no easy way to know if that
11549 # patch is installed. Since this is the case, all we can really
11550 # say is unknown -- it depends on the patch being installed. If
11551 # it is, this changes to `yes'. Without it, it would be `no'.
11552 libltdl_cv_sys_dlopen_deplibs=unknown
11553 ;;
11554 osf*)
11555 # the two cases above should catch all versions of osf <= 5.1. Read
11556 # the comments above for what we know about them.
11557 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11558 # is used to find them so we can finally say `yes'.
11559 libltdl_cv_sys_dlopen_deplibs=yes
11560 ;;
11561 solaris*)
11562 libltdl_cv_sys_dlopen_deplibs=yes
11563 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11565 libltdl_cv_sys_dlopen_deplibs=yes
11566 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011567 esac
11568
11569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011570{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11571echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011574cat >>confdefs.h <<\_ACEOF
11575#define LTDL_DLOPEN_DEPLIBS 1
11576_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011577
11578fi
11579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011580
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011582do
11583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11589fi
11590ac_res=`eval echo '${'$as_ac_Header'}'`
11591 { echo "$as_me:$LINENO: result: $ac_res" >&5
11592echo "${ECHO_T}$ac_res" >&6; }
11593else
11594 # Is the header compilable?
11595{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11597cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603$ac_includes_default
11604#include <$ac_header>
11605_ACEOF
11606rm -f conftest.$ac_objext
11607if { (ac_try="$ac_compile"
11608case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11611esac
11612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_compile") 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11621 { (case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11624esac
11625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_try") 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; } &&
11630 { ac_try='test -s conftest.$ac_objext'
11631 { (case "(($ac_try" in
11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633 *) ac_try_echo=$ac_try;;
11634esac
11635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636 (eval "$ac_try") 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 ac_header_compiler=yes
11641else
11642 echo "$as_me: failed program was:" >&5
11643sed 's/^/| /' conftest.$ac_ext >&5
11644
11645 ac_header_compiler=no
11646fi
11647
11648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11650echo "${ECHO_T}$ac_header_compiler" >&6; }
11651
11652# Is the header present?
11653{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11655cat >conftest.$ac_ext <<_ACEOF
11656/* confdefs.h. */
11657_ACEOF
11658cat confdefs.h >>conftest.$ac_ext
11659cat >>conftest.$ac_ext <<_ACEOF
11660/* end confdefs.h. */
11661#include <$ac_header>
11662_ACEOF
11663if { (ac_try="$ac_cpp conftest.$ac_ext"
11664case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11667esac
11668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } >/dev/null; then
11676 if test -s conftest.err; then
11677 ac_cpp_err=$ac_c_preproc_warn_flag
11678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11679 else
11680 ac_cpp_err=
11681 fi
11682else
11683 ac_cpp_err=yes
11684fi
11685if test -z "$ac_cpp_err"; then
11686 ac_header_preproc=yes
11687else
11688 echo "$as_me: failed program was:" >&5
11689sed 's/^/| /' conftest.$ac_ext >&5
11690
11691 ac_header_preproc=no
11692fi
11693
11694rm -f conftest.err conftest.$ac_ext
11695{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11696echo "${ECHO_T}$ac_header_preproc" >&6; }
11697
11698# So? What about this header?
11699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11700 yes:no: )
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11702echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11704echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11705 ac_header_preproc=yes
11706 ;;
11707 no:yes:* )
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11709echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11711echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11713echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11715echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11717echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11719echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11720 ( cat <<\_ASBOX
11721## ----------------------------------- ##
11722## Report this to llvmbugs@cs.uiuc.edu ##
11723## ----------------------------------- ##
11724_ASBOX
11725 ) | sed "s/^/$as_me: WARNING: /" >&2
11726 ;;
11727esac
11728{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732else
11733 eval "$as_ac_Header=\$ac_header_preproc"
11734fi
11735ac_res=`eval echo '${'$as_ac_Header'}'`
11736 { echo "$as_me:$LINENO: result: $ac_res" >&5
11737echo "${ECHO_T}$ac_res" >&6; }
11738
11739fi
11740if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011741 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743_ACEOF
11744
11745fi
11746
11747done
11748
11749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011750{ echo "$as_me:$LINENO: checking for error_t" >&5
11751echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11752if test "${ac_cv_type_error_t+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754else
11755 cat >conftest.$ac_ext <<_ACEOF
11756/* confdefs.h. */
11757_ACEOF
11758cat confdefs.h >>conftest.$ac_ext
11759cat >>conftest.$ac_ext <<_ACEOF
11760/* end confdefs.h. */
11761#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011762# include <argz.h>
11763#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011764
11765typedef error_t ac__type_new_;
11766int
11767main ()
11768{
11769if ((ac__type_new_ *) 0)
11770 return 0;
11771if (sizeof (ac__type_new_))
11772 return 0;
11773 ;
11774 return 0;
11775}
11776_ACEOF
11777rm -f conftest.$ac_objext
11778if { (ac_try="$ac_compile"
11779case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11782esac
11783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_compile") 2>conftest.er1
11785 ac_status=$?
11786 grep -v '^ *+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11792 { (case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795esac
11796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_try") 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest.$ac_objext'
11802 { (case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11805esac
11806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_try") 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_cv_type_error_t=yes
11812else
11813 echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816 ac_cv_type_error_t=no
11817fi
11818
11819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820fi
11821{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11822echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11823if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824
11825cat >>confdefs.h <<_ACEOF
11826#define HAVE_ERROR_T 1
11827_ACEOF
11828
11829
11830else
11831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011832cat >>confdefs.h <<\_ACEOF
11833#define error_t int
11834_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835
11836fi
11837
11838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011839
11840
11841
11842
11843
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011844for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011845do
11846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11847{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11849if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851else
11852 cat >conftest.$ac_ext <<_ACEOF
11853/* confdefs.h. */
11854_ACEOF
11855cat confdefs.h >>conftest.$ac_ext
11856cat >>conftest.$ac_ext <<_ACEOF
11857/* end confdefs.h. */
11858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11860#define $ac_func innocuous_$ac_func
11861
11862/* System header to define __stub macros and hopefully few prototypes,
11863 which can conflict with char $ac_func (); below.
11864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11865 <limits.h> exists even on freestanding compilers. */
11866
11867#ifdef __STDC__
11868# include <limits.h>
11869#else
11870# include <assert.h>
11871#endif
11872
11873#undef $ac_func
11874
11875/* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11878#ifdef __cplusplus
11879extern "C"
11880#endif
11881char $ac_func ();
11882/* The GNU C library defines this for functions which it implements
11883 to always fail with ENOSYS. Some functions are actually named
11884 something starting with __ and the normal name is an alias. */
11885#if defined __stub_$ac_func || defined __stub___$ac_func
11886choke me
11887#endif
11888
11889int
11890main ()
11891{
11892return $ac_func ();
11893 ;
11894 return 0;
11895}
11896_ACEOF
11897rm -f conftest.$ac_objext conftest$ac_exeext
11898if { (ac_try="$ac_link"
11899case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902esac
11903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_link") 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11912 { (case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915esac
11916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_try") 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; } &&
11921 { ac_try='test -s conftest$ac_exeext'
11922 { (case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11925esac
11926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_try") 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 eval "$as_ac_var=yes"
11932else
11933 echo "$as_me: failed program was:" >&5
11934sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 eval "$as_ac_var=no"
11937fi
11938
11939rm -f core conftest.err conftest.$ac_objext \
11940 conftest$ac_exeext conftest.$ac_ext
11941fi
11942ac_res=`eval echo '${'$as_ac_var'}'`
11943 { echo "$as_me:$LINENO: result: $ac_res" >&5
11944echo "${ECHO_T}$ac_res" >&6; }
11945if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948_ACEOF
11949
11950fi
11951done
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011972
11973
11974
11975
11976
11977
11978
11979
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011980for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11981 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011982do
11983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989fi
11990ac_res=`eval echo '${'$as_ac_Header'}'`
11991 { echo "$as_me:$LINENO: result: $ac_res" >&5
11992echo "${ECHO_T}$ac_res" >&6; }
11993else
11994 # Is the header compilable?
11995{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11997cat >conftest.$ac_ext <<_ACEOF
11998/* confdefs.h. */
11999_ACEOF
12000cat confdefs.h >>conftest.$ac_ext
12001cat >>conftest.$ac_ext <<_ACEOF
12002/* end confdefs.h. */
12003$ac_includes_default
12004#include <$ac_header>
12005_ACEOF
12006rm -f conftest.$ac_objext
12007if { (ac_try="$ac_compile"
12008case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011esac
12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
12014 ac_status=$?
12015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12021 { (case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12024esac
12025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_try") 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest.$ac_objext'
12031 { (case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12034esac
12035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_try") 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 ac_header_compiler=yes
12041else
12042 echo "$as_me: failed program was:" >&5
12043sed 's/^/| /' conftest.$ac_ext >&5
12044
12045 ac_header_compiler=no
12046fi
12047
12048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12050echo "${ECHO_T}$ac_header_compiler" >&6; }
12051
12052# Is the header present?
12053{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12055cat >conftest.$ac_ext <<_ACEOF
12056/* confdefs.h. */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h. */
12061#include <$ac_header>
12062_ACEOF
12063if { (ac_try="$ac_cpp conftest.$ac_ext"
12064case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12067esac
12068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } >/dev/null; then
12076 if test -s conftest.err; then
12077 ac_cpp_err=$ac_c_preproc_warn_flag
12078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12079 else
12080 ac_cpp_err=
12081 fi
12082else
12083 ac_cpp_err=yes
12084fi
12085if test -z "$ac_cpp_err"; then
12086 ac_header_preproc=yes
12087else
12088 echo "$as_me: failed program was:" >&5
12089sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 ac_header_preproc=no
12092fi
12093
12094rm -f conftest.err conftest.$ac_ext
12095{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12096echo "${ECHO_T}$ac_header_preproc" >&6; }
12097
12098# So? What about this header?
12099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12100 yes:no: )
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12105 ac_header_preproc=yes
12106 ;;
12107 no:yes:* )
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12120 ( cat <<\_ASBOX
12121## ----------------------------------- ##
12122## Report this to llvmbugs@cs.uiuc.edu ##
12123## ----------------------------------- ##
12124_ASBOX
12125 ) | sed "s/^/$as_me: WARNING: /" >&2
12126 ;;
12127esac
12128{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12132else
12133 eval "$as_ac_Header=\$ac_header_preproc"
12134fi
12135ac_res=`eval echo '${'$as_ac_Header'}'`
12136 { echo "$as_me:$LINENO: result: $ac_res" >&5
12137echo "${ECHO_T}$ac_res" >&6; }
12138
12139fi
12140if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012141 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012143_ACEOF
12144
12145fi
12146
12147done
12148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012149
12150
12151
12152
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012153for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012154do
12155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161fi
12162ac_res=`eval echo '${'$as_ac_Header'}'`
12163 { echo "$as_me:$LINENO: result: $ac_res" >&5
12164echo "${ECHO_T}$ac_res" >&6; }
12165else
12166 # Is the header compilable?
12167{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12168echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12169cat >conftest.$ac_ext <<_ACEOF
12170/* confdefs.h. */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h. */
12175$ac_includes_default
12176#include <$ac_header>
12177_ACEOF
12178rm -f conftest.$ac_objext
12179if { (ac_try="$ac_compile"
12180case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12183esac
12184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_compile") 2>conftest.er1
12186 ac_status=$?
12187 grep -v '^ *+' conftest.er1 >conftest.err
12188 rm -f conftest.er1
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12193 { (case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12196esac
12197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_try") 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; } &&
12202 { ac_try='test -s conftest.$ac_objext'
12203 { (case "(($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_try") 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_header_compiler=yes
12213else
12214 echo "$as_me: failed program was:" >&5
12215sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 ac_header_compiler=no
12218fi
12219
12220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12222echo "${ECHO_T}$ac_header_compiler" >&6; }
12223
12224# Is the header present?
12225{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12226echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12227cat >conftest.$ac_ext <<_ACEOF
12228/* confdefs.h. */
12229_ACEOF
12230cat confdefs.h >>conftest.$ac_ext
12231cat >>conftest.$ac_ext <<_ACEOF
12232/* end confdefs.h. */
12233#include <$ac_header>
12234_ACEOF
12235if { (ac_try="$ac_cpp conftest.$ac_ext"
12236case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12239esac
12240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12242 ac_status=$?
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } >/dev/null; then
12248 if test -s conftest.err; then
12249 ac_cpp_err=$ac_c_preproc_warn_flag
12250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12251 else
12252 ac_cpp_err=
12253 fi
12254else
12255 ac_cpp_err=yes
12256fi
12257if test -z "$ac_cpp_err"; then
12258 ac_header_preproc=yes
12259else
12260 echo "$as_me: failed program was:" >&5
12261sed 's/^/| /' conftest.$ac_ext >&5
12262
12263 ac_header_preproc=no
12264fi
12265
12266rm -f conftest.err conftest.$ac_ext
12267{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12268echo "${ECHO_T}$ac_header_preproc" >&6; }
12269
12270# So? What about this header?
12271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12272 yes:no: )
12273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12277 ac_header_preproc=yes
12278 ;;
12279 no:yes:* )
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12292 ( cat <<\_ASBOX
12293## ----------------------------------- ##
12294## Report this to llvmbugs@cs.uiuc.edu ##
12295## ----------------------------------- ##
12296_ASBOX
12297 ) | sed "s/^/$as_me: WARNING: /" >&2
12298 ;;
12299esac
12300{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304else
12305 eval "$as_ac_Header=\$ac_header_preproc"
12306fi
12307ac_res=`eval echo '${'$as_ac_Header'}'`
12308 { echo "$as_me:$LINENO: result: $ac_res" >&5
12309echo "${ECHO_T}$ac_res" >&6; }
12310
12311fi
12312if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012313 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315_ACEOF
12316
12317fi
12318
12319done
12320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012321
12322
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012323for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012324do
12325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331fi
12332ac_res=`eval echo '${'$as_ac_Header'}'`
12333 { echo "$as_me:$LINENO: result: $ac_res" >&5
12334echo "${ECHO_T}$ac_res" >&6; }
12335else
12336 # Is the header compilable?
12337{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12339cat >conftest.$ac_ext <<_ACEOF
12340/* confdefs.h. */
12341_ACEOF
12342cat confdefs.h >>conftest.$ac_ext
12343cat >>conftest.$ac_ext <<_ACEOF
12344/* end confdefs.h. */
12345$ac_includes_default
12346#include <$ac_header>
12347_ACEOF
12348rm -f conftest.$ac_objext
12349if { (ac_try="$ac_compile"
12350case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12353esac
12354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_compile") 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12363 { (case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366esac
12367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_try") 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest.$ac_objext'
12373 { (case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12376esac
12377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_try") 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_header_compiler=yes
12383else
12384 echo "$as_me: failed program was:" >&5
12385sed 's/^/| /' conftest.$ac_ext >&5
12386
12387 ac_header_compiler=no
12388fi
12389
12390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12392echo "${ECHO_T}$ac_header_compiler" >&6; }
12393
12394# Is the header present?
12395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12397cat >conftest.$ac_ext <<_ACEOF
12398/* confdefs.h. */
12399_ACEOF
12400cat confdefs.h >>conftest.$ac_ext
12401cat >>conftest.$ac_ext <<_ACEOF
12402/* end confdefs.h. */
12403#include <$ac_header>
12404_ACEOF
12405if { (ac_try="$ac_cpp conftest.$ac_ext"
12406case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } >/dev/null; then
12418 if test -s conftest.err; then
12419 ac_cpp_err=$ac_c_preproc_warn_flag
12420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12421 else
12422 ac_cpp_err=
12423 fi
12424else
12425 ac_cpp_err=yes
12426fi
12427if test -z "$ac_cpp_err"; then
12428 ac_header_preproc=yes
12429else
12430 echo "$as_me: failed program was:" >&5
12431sed 's/^/| /' conftest.$ac_ext >&5
12432
12433 ac_header_preproc=no
12434fi
12435
12436rm -f conftest.err conftest.$ac_ext
12437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12438echo "${ECHO_T}$ac_header_preproc" >&6; }
12439
12440# So? What about this header?
12441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12442 yes:no: )
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12447 ac_header_preproc=yes
12448 ;;
12449 no:yes:* )
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12462 ( cat <<\_ASBOX
12463## ----------------------------------- ##
12464## Report this to llvmbugs@cs.uiuc.edu ##
12465## ----------------------------------- ##
12466_ASBOX
12467 ) | sed "s/^/$as_me: WARNING: /" >&2
12468 ;;
12469esac
12470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12474else
12475 eval "$as_ac_Header=\$ac_header_preproc"
12476fi
12477ac_res=`eval echo '${'$as_ac_Header'}'`
12478 { echo "$as_me:$LINENO: result: $ac_res" >&5
12479echo "${ECHO_T}$ac_res" >&6; }
12480
12481fi
12482if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012483 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485_ACEOF
12486 break
12487fi
12488
12489done
12490
12491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012492
12493
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012494for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012495do
12496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12497{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12499if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501else
12502 cat >conftest.$ac_ext <<_ACEOF
12503/* confdefs.h. */
12504_ACEOF
12505cat confdefs.h >>conftest.$ac_ext
12506cat >>conftest.$ac_ext <<_ACEOF
12507/* end confdefs.h. */
12508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12510#define $ac_func innocuous_$ac_func
12511
12512/* System header to define __stub macros and hopefully few prototypes,
12513 which can conflict with char $ac_func (); below.
12514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12515 <limits.h> exists even on freestanding compilers. */
12516
12517#ifdef __STDC__
12518# include <limits.h>
12519#else
12520# include <assert.h>
12521#endif
12522
12523#undef $ac_func
12524
12525/* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12528#ifdef __cplusplus
12529extern "C"
12530#endif
12531char $ac_func ();
12532/* The GNU C library defines this for functions which it implements
12533 to always fail with ENOSYS. Some functions are actually named
12534 something starting with __ and the normal name is an alias. */
12535#if defined __stub_$ac_func || defined __stub___$ac_func
12536choke me
12537#endif
12538
12539int
12540main ()
12541{
12542return $ac_func ();
12543 ;
12544 return 0;
12545}
12546_ACEOF
12547rm -f conftest.$ac_objext conftest$ac_exeext
12548if { (ac_try="$ac_link"
12549case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12552esac
12553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_link") 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12562 { (case "(($ac_try" in
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12565esac
12566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567 (eval "$ac_try") 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest$ac_exeext'
12572 { (case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575esac
12576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_try") 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 eval "$as_ac_var=yes"
12582else
12583 echo "$as_me: failed program was:" >&5
12584sed 's/^/| /' conftest.$ac_ext >&5
12585
12586 eval "$as_ac_var=no"
12587fi
12588
12589rm -f core conftest.err conftest.$ac_objext \
12590 conftest$ac_exeext conftest.$ac_ext
12591fi
12592ac_res=`eval echo '${'$as_ac_var'}'`
12593 { echo "$as_me:$LINENO: result: $ac_res" >&5
12594echo "${ECHO_T}$ac_res" >&6; }
12595if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012597#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012598_ACEOF
12599 break
12600fi
12601done
12602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012603
12604
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012605for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012606do
12607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12608{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12612else
12613 cat >conftest.$ac_ext <<_ACEOF
12614/* confdefs.h. */
12615_ACEOF
12616cat confdefs.h >>conftest.$ac_ext
12617cat >>conftest.$ac_ext <<_ACEOF
12618/* end confdefs.h. */
12619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12621#define $ac_func innocuous_$ac_func
12622
12623/* System header to define __stub macros and hopefully few prototypes,
12624 which can conflict with char $ac_func (); below.
12625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12626 <limits.h> exists even on freestanding compilers. */
12627
12628#ifdef __STDC__
12629# include <limits.h>
12630#else
12631# include <assert.h>
12632#endif
12633
12634#undef $ac_func
12635
12636/* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12639#ifdef __cplusplus
12640extern "C"
12641#endif
12642char $ac_func ();
12643/* The GNU C library defines this for functions which it implements
12644 to always fail with ENOSYS. Some functions are actually named
12645 something starting with __ and the normal name is an alias. */
12646#if defined __stub_$ac_func || defined __stub___$ac_func
12647choke me
12648#endif
12649
12650int
12651main ()
12652{
12653return $ac_func ();
12654 ;
12655 return 0;
12656}
12657_ACEOF
12658rm -f conftest.$ac_objext conftest$ac_exeext
12659if { (ac_try="$ac_link"
12660case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12663esac
12664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_link") 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12676esac
12677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12686esac
12687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_try") 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 eval "$as_ac_var=yes"
12693else
12694 echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697 eval "$as_ac_var=no"
12698fi
12699
12700rm -f core conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
12702fi
12703ac_res=`eval echo '${'$as_ac_var'}'`
12704 { echo "$as_me:$LINENO: result: $ac_res" >&5
12705echo "${ECHO_T}$ac_res" >&6; }
12706if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012709_ACEOF
12710 break
12711fi
12712done
12713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012714
12715
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012716for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012717do
12718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12719{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12721if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12723else
12724 cat >conftest.$ac_ext <<_ACEOF
12725/* confdefs.h. */
12726_ACEOF
12727cat confdefs.h >>conftest.$ac_ext
12728cat >>conftest.$ac_ext <<_ACEOF
12729/* end confdefs.h. */
12730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12732#define $ac_func innocuous_$ac_func
12733
12734/* System header to define __stub macros and hopefully few prototypes,
12735 which can conflict with char $ac_func (); below.
12736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12737 <limits.h> exists even on freestanding compilers. */
12738
12739#ifdef __STDC__
12740# include <limits.h>
12741#else
12742# include <assert.h>
12743#endif
12744
12745#undef $ac_func
12746
12747/* Override any GCC internal prototype to avoid an error.
12748 Use char because int might match the return type of a GCC
12749 builtin and then its argument prototype would still apply. */
12750#ifdef __cplusplus
12751extern "C"
12752#endif
12753char $ac_func ();
12754/* The GNU C library defines this for functions which it implements
12755 to always fail with ENOSYS. Some functions are actually named
12756 something starting with __ and the normal name is an alias. */
12757#if defined __stub_$ac_func || defined __stub___$ac_func
12758choke me
12759#endif
12760
12761int
12762main ()
12763{
12764return $ac_func ();
12765 ;
12766 return 0;
12767}
12768_ACEOF
12769rm -f conftest.$ac_objext conftest$ac_exeext
12770if { (ac_try="$ac_link"
12771case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_link") 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12784 { (case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787esac
12788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_try") 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; } &&
12793 { ac_try='test -s conftest$ac_exeext'
12794 { (case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797esac
12798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_try") 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12803 eval "$as_ac_var=yes"
12804else
12805 echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
12808 eval "$as_ac_var=no"
12809fi
12810
12811rm -f core conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12813fi
12814ac_res=`eval echo '${'$as_ac_var'}'`
12815 { echo "$as_me:$LINENO: result: $ac_res" >&5
12816echo "${ECHO_T}$ac_res" >&6; }
12817if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012818 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012819#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012820_ACEOF
12821 break
12822fi
12823done
12824
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012825
12826
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012827for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828do
12829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12830{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12832if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834else
12835 cat >conftest.$ac_ext <<_ACEOF
12836/* confdefs.h. */
12837_ACEOF
12838cat confdefs.h >>conftest.$ac_ext
12839cat >>conftest.$ac_ext <<_ACEOF
12840/* end confdefs.h. */
12841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12843#define $ac_func innocuous_$ac_func
12844
12845/* System header to define __stub macros and hopefully few prototypes,
12846 which can conflict with char $ac_func (); below.
12847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12848 <limits.h> exists even on freestanding compilers. */
12849
12850#ifdef __STDC__
12851# include <limits.h>
12852#else
12853# include <assert.h>
12854#endif
12855
12856#undef $ac_func
12857
12858/* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12861#ifdef __cplusplus
12862extern "C"
12863#endif
12864char $ac_func ();
12865/* The GNU C library defines this for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868#if defined __stub_$ac_func || defined __stub___$ac_func
12869choke me
12870#endif
12871
12872int
12873main ()
12874{
12875return $ac_func ();
12876 ;
12877 return 0;
12878}
12879_ACEOF
12880rm -f conftest.$ac_objext conftest$ac_exeext
12881if { (ac_try="$ac_link"
12882case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_link") 2>conftest.er1
12888 ac_status=$?
12889 grep -v '^ *+' conftest.er1 >conftest.err
12890 rm -f conftest.er1
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898esac
12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12908esac
12909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_try") 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 eval "$as_ac_var=yes"
12915else
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 eval "$as_ac_var=no"
12920fi
12921
12922rm -f core conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12924fi
12925ac_res=`eval echo '${'$as_ac_var'}'`
12926 { echo "$as_me:$LINENO: result: $ac_res" >&5
12927echo "${ECHO_T}$ac_res" >&6; }
12928if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012929 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012931_ACEOF
12932
12933fi
12934done
12935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012936
12937
12938
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012939for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012940do
12941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12942{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12944if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12946else
12947 cat >conftest.$ac_ext <<_ACEOF
12948/* confdefs.h. */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h. */
12953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12955#define $ac_func innocuous_$ac_func
12956
12957/* System header to define __stub macros and hopefully few prototypes,
12958 which can conflict with char $ac_func (); below.
12959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12960 <limits.h> exists even on freestanding compilers. */
12961
12962#ifdef __STDC__
12963# include <limits.h>
12964#else
12965# include <assert.h>
12966#endif
12967
12968#undef $ac_func
12969
12970/* Override any GCC internal prototype to avoid an error.
12971 Use char because int might match the return type of a GCC
12972 builtin and then its argument prototype would still apply. */
12973#ifdef __cplusplus
12974extern "C"
12975#endif
12976char $ac_func ();
12977/* The GNU C library defines this for functions which it implements
12978 to always fail with ENOSYS. Some functions are actually named
12979 something starting with __ and the normal name is an alias. */
12980#if defined __stub_$ac_func || defined __stub___$ac_func
12981choke me
12982#endif
12983
12984int
12985main ()
12986{
12987return $ac_func ();
12988 ;
12989 return 0;
12990}
12991_ACEOF
12992rm -f conftest.$ac_objext conftest$ac_exeext
12993if { (ac_try="$ac_link"
12994case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12997esac
12998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_link") 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13007 { (case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13010esac
13011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_try") 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; } &&
13016 { ac_try='test -s conftest$ac_exeext'
13017 { (case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13020esac
13021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_try") 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 eval "$as_ac_var=yes"
13027else
13028 echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
13031 eval "$as_ac_var=no"
13032fi
13033
13034rm -f core conftest.err conftest.$ac_objext \
13035 conftest$ac_exeext conftest.$ac_ext
13036fi
13037ac_res=`eval echo '${'$as_ac_var'}'`
13038 { echo "$as_me:$LINENO: result: $ac_res" >&5
13039echo "${ECHO_T}$ac_res" >&6; }
13040if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013041 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013042#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013043_ACEOF
13044
13045fi
13046done
13047
13048
Douglas Gregor01746742009-05-11 18:05:52 +000013049
Reid Spencer7931a782004-12-27 06:15:02 +000013050if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013051 LLVMGCC="llvm-gcc${EXEEXT}"
13052 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013053 LLVMGCCCOMMAND="$LLVMGCC"
13054 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013055 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13056
13057 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13058
Reid Spencerc84492c2005-06-02 22:34:49 +000013059 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13060set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13063if test "${ac_cv_path_LLVMGCC+set}" = set; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013065else
13066 case $LLVMGCC in
13067 [\\/]* | ?:[\\/]*)
13068 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13069 ;;
13070 *)
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072for as_dir in $PATH
13073do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 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 +000013078 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013080 break 2
13081 fi
13082done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013083done
Reid Spencera773bd52006-08-04 18:18:08 +000013084IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013085
Reid Spencer59473af2004-12-25 07:31:29 +000013086 ;;
13087esac
13088fi
13089LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013090if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013091 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13092echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013094 { echo "$as_me:$LINENO: result: no" >&5
13095echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013096fi
13097
Reid Spencera773bd52006-08-04 18:18:08 +000013098
Reid Spencerc84492c2005-06-02 22:34:49 +000013099 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13100set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13103if test "${ac_cv_path_LLVMGXX+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013105else
13106 case $LLVMGXX in
13107 [\\/]* | ?:[\\/]*)
13108 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13109 ;;
13110 *)
13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112for as_dir in $PATH
13113do
13114 IFS=$as_save_IFS
13115 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013116 for ac_exec_ext in '' $ac_executable_extensions; do
13117 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 +000013118 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013120 break 2
13121 fi
13122done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013123done
Reid Spencera773bd52006-08-04 18:18:08 +000013124IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013125
Reid Spencer59473af2004-12-25 07:31:29 +000013126 ;;
13127esac
13128fi
13129LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013130if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013131 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13132echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013134 { echo "$as_me:$LINENO: result: no" >&5
13135echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013136fi
13137
Reid Spencera773bd52006-08-04 18:18:08 +000013138
Reid Spencer59473af2004-12-25 07:31:29 +000013139else
Devang Patel5d28b882007-12-04 22:54:47 +000013140 if test -z "$LLVMGCC"; then
13141 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013142 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013143 fi
13144 if test -z "$LLVMGXX"; then
13145 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013146 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013147 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013148
Reid Spencer59473af2004-12-25 07:31:29 +000013149 LLVMGCC=$LLVMGCC
13150
13151 LLVMGXX=$LLVMGXX
13152
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013153 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13154
13155 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13156
Reid Spencer59473af2004-12-25 07:31:29 +000013157fi
13158
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013159
Daniel Dunbar98515672010-02-23 10:00:49 +000013160# Check whether --with-llvmcc was given.
13161if test "${with_llvmcc+set}" = set; then
13162 withval=$with_llvmcc;
13163else
13164 with_llvmcc=check
13165fi
13166
13167{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13168echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13169if test "$with_llvmcc" != "check"; then
13170 if (test "$with_llvmcc" != "llvm-gcc" &&
13171 test "$with_llvmcc" != "clang" &&
13172 test "$with_llvmcc" != "none"); then
13173 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13174echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13175 { (exit 1); exit 1; }; }
13176 fi
13177 WITH_LLVMCC="$with_llvmcc"
13178elif test -n "$LLVMGCC"; then
13179 WITH_LLVMCC=llvm-gcc
13180elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13181 WITH_LLVMCC=clang
13182else
13183 WITH_LLVMCC=none
13184fi
13185{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13186echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13187LLVMCC_OPTION=$WITH_LLVMCC
13188
13189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13191echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013192
Reid Spencer86901802004-12-08 23:07:27 +000013193ICC=no
13194IXX=no
13195case $CC in
13196 icc*|icpc*)
13197 ICC=yes
13198 IXX=yes
13199 ;;
13200 *)
13201 ;;
13202esac
13203
Duraid Madina937c60a2006-02-15 07:57:42 +000013204if test "$GCC" != "yes" && test "$ICC" != "yes"
13205then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013206 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13207echo "$as_me: error: gcc|icc required but not found" >&2;}
13208 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013209fi
13210
13211if test "$GXX" != "yes" && test "$IXX" != "yes"
13212then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013213 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13214echo "$as_me: error: g++|icc required but not found" >&2;}
13215 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013216fi
13217
Reid Spencer86901802004-12-08 23:07:27 +000013218if test "$GCC" = "yes"
13219then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013220 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013221#if !defined(__GNUC__) || __GNUC__ < 3
13222#error Unsupported GCC version
13223#endif
13224
13225_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013226rm -f conftest.$ac_objext
13227if { (ac_try="$ac_compile"
13228case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13231esac
13232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_compile") 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244esac
13245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254esac
13255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_try") 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013261else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013262 echo "$as_me: failed program was:" >&5
13263sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13266echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13267 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013269
Chris Lattner399c7c72008-02-05 19:43:53 +000013270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013271fi
13272
13273if test -z "$llvm_cv_gnu_make_command"
13274then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13276echo "$as_me: error: GNU Make required but not found" >&2;}
13277 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013278fi
13279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013280{ echo "$as_me:$LINENO: result: ok" >&5
13281echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013283{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13284echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013285NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13286
13287NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013289{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13290echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013291
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293
13294{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13295echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13296if test "${ac_cv_lib_m_sin+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013298else
13299 ac_check_lib_save_LIBS=$LIBS
13300LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013301cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h. */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013306/* end confdefs.h. */
13307
Reid Spencera773bd52006-08-04 18:18:08 +000013308/* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013311#ifdef __cplusplus
13312extern "C"
13313#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013314char sin ();
13315int
13316main ()
13317{
Reid Spencera773bd52006-08-04 18:18:08 +000013318return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013319 ;
13320 return 0;
13321}
13322_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013323rm -f conftest.$ac_objext conftest$ac_exeext
13324if { (ac_try="$ac_link"
13325case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328esac
13329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_link") 2>conftest.er1
13331 ac_status=$?
13332 grep -v '^ *+' conftest.er1 >conftest.err
13333 rm -f conftest.er1
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341esac
13342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; } &&
13347 { ac_try='test -s conftest$ac_exeext'
13348 { (case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13351esac
13352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_try") 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013357 ac_cv_lib_m_sin=yes
13358else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013359 echo "$as_me: failed program was:" >&5
13360sed 's/^/| /' conftest.$ac_ext >&5
13361
13362 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013364
Bill Wendlingebcceee2009-04-18 11:20:33 +000013365rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013366 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013367LIBS=$ac_check_lib_save_LIBS
13368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013369{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13370echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13371if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013372 cat >>confdefs.h <<_ACEOF
13373#define HAVE_LIBM 1
13374_ACEOF
13375
13376 LIBS="-lm $LIBS"
13377
13378fi
13379
Jeff Cohen28783c32007-01-12 18:22:38 +000013380if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013381
13382{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13383echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13384if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013386else
13387 ac_check_lib_save_LIBS=$LIBS
13388LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013389cat >conftest.$ac_ext <<_ACEOF
13390/* confdefs.h. */
13391_ACEOF
13392cat confdefs.h >>conftest.$ac_ext
13393cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013394/* end confdefs.h. */
13395
Reid Spencer48fdf912006-06-01 19:03:21 +000013396
Reid Spencer484fc8e2006-06-01 16:55:59 +000013397int
13398main ()
13399{
Reid Spencera773bd52006-08-04 18:18:08 +000013400return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013401 ;
13402 return 0;
13403}
13404_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013405rm -f conftest.$ac_objext conftest$ac_exeext
13406if { (ac_try="$ac_link"
13407case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410esac
13411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_link") 2>conftest.er1
13413 ac_status=$?
13414 grep -v '^ *+' conftest.er1 >conftest.err
13415 rm -f conftest.er1
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423esac
13424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13433esac
13434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_try") 2>&5
13436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013439 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013441 echo "$as_me: failed program was:" >&5
13442sed 's/^/| /' conftest.$ac_ext >&5
13443
13444 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013446
Bill Wendlingebcceee2009-04-18 11:20:33 +000013447rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013448 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013449LIBS=$ac_check_lib_save_LIBS
13450fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013451{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13452echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13453if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013454 cat >>confdefs.h <<_ACEOF
13455#define HAVE_LIBIMAGEHLP 1
13456_ACEOF
13457
13458 LIBS="-limagehlp $LIBS"
13459
13460fi
13461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013462
13463{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13464echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13465if test "${ac_cv_lib_psapi_main+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013467else
13468 ac_check_lib_save_LIBS=$LIBS
13469LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013470cat >conftest.$ac_ext <<_ACEOF
13471/* confdefs.h. */
13472_ACEOF
13473cat confdefs.h >>conftest.$ac_ext
13474cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013475/* end confdefs.h. */
13476
Reid Spencer48fdf912006-06-01 19:03:21 +000013477
Reid Spencer484fc8e2006-06-01 16:55:59 +000013478int
13479main ()
13480{
Reid Spencera773bd52006-08-04 18:18:08 +000013481return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013482 ;
13483 return 0;
13484}
13485_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013486rm -f conftest.$ac_objext conftest$ac_exeext
13487if { (ac_try="$ac_link"
13488case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13491esac
13492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_link") 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504esac
13505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest$ac_exeext'
13511 { (case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13514esac
13515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_try") 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013520 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013521else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013522 echo "$as_me: failed program was:" >&5
13523sed 's/^/| /' conftest.$ac_ext >&5
13524
13525 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013526fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013527
Bill Wendlingebcceee2009-04-18 11:20:33 +000013528rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013529 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013530LIBS=$ac_check_lib_save_LIBS
13531fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013532{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13533echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13534if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013535 cat >>confdefs.h <<_ACEOF
13536#define HAVE_LIBPSAPI 1
13537_ACEOF
13538
13539 LIBS="-lpsapi $LIBS"
13540
13541fi
13542
13543fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013545{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13546echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13547if test "${ac_cv_search_dlopen+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013549else
13550 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013551cat >conftest.$ac_ext <<_ACEOF
13552/* confdefs.h. */
13553_ACEOF
13554cat confdefs.h >>conftest.$ac_ext
13555cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013557
Reid Spencera773bd52006-08-04 18:18:08 +000013558/* Override any GCC internal prototype to avoid an error.
13559 Use char because int might match the return type of a GCC
13560 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013561#ifdef __cplusplus
13562extern "C"
13563#endif
John Criswell7a73b802003-06-30 21:59:07 +000013564char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013565int
13566main ()
13567{
Reid Spencera773bd52006-08-04 18:18:08 +000013568return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013569 ;
13570 return 0;
13571}
13572_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013573for ac_lib in '' dl; do
13574 if test -z "$ac_lib"; then
13575 ac_res="none required"
13576 else
13577 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013579 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013580 rm -f conftest.$ac_objext conftest$ac_exeext
13581if { (ac_try="$ac_link"
13582case "(($ac_try" in
13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13585esac
13586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587 (eval "$ac_link") 2>conftest.er1
13588 ac_status=$?
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } &&
13594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13595 { (case "(($ac_try" in
13596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13597 *) ac_try_echo=$ac_try;;
13598esac
13599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13600 (eval "$ac_try") 2>&5
13601 ac_status=$?
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; } &&
13604 { ac_try='test -s conftest$ac_exeext'
13605 { (case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13608esac
13609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610 (eval "$ac_try") 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013614 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013615else
13616 echo "$as_me: failed program was:" >&5
13617sed 's/^/| /' conftest.$ac_ext >&5
13618
13619
John Criswell7a73b802003-06-30 21:59:07 +000013620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013621
Bill Wendlingebcceee2009-04-18 11:20:33 +000013622rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013623 conftest$ac_exeext
13624 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013625 break
John Criswell7a73b802003-06-30 21:59:07 +000013626fi
Reid Spencera773bd52006-08-04 18:18:08 +000013627done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013628if test "${ac_cv_search_dlopen+set}" = set; then
13629 :
Reid Spencera773bd52006-08-04 18:18:08 +000013630else
13631 ac_cv_search_dlopen=no
13632fi
13633rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013634LIBS=$ac_func_search_save_LIBS
13635fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013636{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13637echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013638ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013639if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013642cat >>confdefs.h <<\_ACEOF
13643#define HAVE_DLOPEN 1
13644_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013645
13646else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013647 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13648echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013649fi
13650
13651
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013652if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013653 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13654echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13655if test "${ac_cv_search_ffi_call+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013657else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013658 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013659cat >conftest.$ac_ext <<_ACEOF
13660/* confdefs.h. */
13661_ACEOF
13662cat confdefs.h >>conftest.$ac_ext
13663cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013664/* end confdefs.h. */
13665
13666/* Override any GCC internal prototype to avoid an error.
13667 Use char because int might match the return type of a GCC
13668 builtin and then its argument prototype would still apply. */
13669#ifdef __cplusplus
13670extern "C"
13671#endif
13672char ffi_call ();
13673int
13674main ()
13675{
13676return ffi_call ();
13677 ;
13678 return 0;
13679}
13680_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013681for ac_lib in '' ffi; do
13682 if test -z "$ac_lib"; then
13683 ac_res="none required"
13684 else
13685 ac_res=-l$ac_lib
13686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13687 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013688 rm -f conftest.$ac_objext conftest$ac_exeext
13689if { (ac_try="$ac_link"
13690case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13693esac
13694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_link") 2>conftest.er1
13696 ac_status=$?
13697 grep -v '^ *+' conftest.er1 >conftest.err
13698 rm -f conftest.er1
13699 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } &&
13702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13703 { (case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13706esac
13707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_try") 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; } &&
13712 { ac_try='test -s conftest$ac_exeext'
13713 { (case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716esac
13717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_try") 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013722 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013723else
13724 echo "$as_me: failed program was:" >&5
13725sed 's/^/| /' conftest.$ac_ext >&5
13726
13727
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013729
Bill Wendlingebcceee2009-04-18 11:20:33 +000013730rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013731 conftest$ac_exeext
13732 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013733 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013734fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013735done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013736if test "${ac_cv_search_ffi_call+set}" = set; then
13737 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013738else
13739 ac_cv_search_ffi_call=no
13740fi
13741rm conftest.$ac_ext
13742LIBS=$ac_func_search_save_LIBS
13743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013744{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13745echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013746ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013747if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013748 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013750cat >>confdefs.h <<\_ACEOF
13751#define HAVE_FFI_CALL 1
13752_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013753
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013754else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013755 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13756echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13757 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013758fi
13759
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013760fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013762{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13763echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13764if test "${ac_cv_search_mallinfo+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013766else
13767 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013768cat >conftest.$ac_ext <<_ACEOF
13769/* confdefs.h. */
13770_ACEOF
13771cat confdefs.h >>conftest.$ac_ext
13772cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013774
Reid Spencera773bd52006-08-04 18:18:08 +000013775/* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013778#ifdef __cplusplus
13779extern "C"
13780#endif
John Criswell7a73b802003-06-30 21:59:07 +000013781char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013782int
13783main ()
13784{
Reid Spencera773bd52006-08-04 18:18:08 +000013785return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013786 ;
13787 return 0;
13788}
13789_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013790for ac_lib in '' malloc; do
13791 if test -z "$ac_lib"; then
13792 ac_res="none required"
13793 else
13794 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013796 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013797 rm -f conftest.$ac_objext conftest$ac_exeext
13798if { (ac_try="$ac_link"
13799case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802esac
13803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_link") 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
13811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13812 { (case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13815esac
13816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_try") 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; } &&
13821 { ac_try='test -s conftest$ac_exeext'
13822 { (case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13825esac
13826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_try") 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013831 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013832else
13833 echo "$as_me: failed program was:" >&5
13834sed 's/^/| /' conftest.$ac_ext >&5
13835
13836
John Criswell7a73b802003-06-30 21:59:07 +000013837fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013838
Bill Wendlingebcceee2009-04-18 11:20:33 +000013839rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013840 conftest$ac_exeext
13841 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013842 break
John Criswell7a73b802003-06-30 21:59:07 +000013843fi
Reid Spencera773bd52006-08-04 18:18:08 +000013844done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013845if test "${ac_cv_search_mallinfo+set}" = set; then
13846 :
Reid Spencera773bd52006-08-04 18:18:08 +000013847else
13848 ac_cv_search_mallinfo=no
13849fi
13850rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013851LIBS=$ac_func_search_save_LIBS
13852fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013853{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13854echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013855ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013856if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013859cat >>confdefs.h <<\_ACEOF
13860#define HAVE_MALLINFO 1
13861_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013862
13863fi
13864
13865
Reid Spencer0a262ba2005-08-24 10:07:20 +000013866if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013867
13868{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13869echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13870if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013872else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013873 ac_check_lib_save_LIBS=$LIBS
13874LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013875cat >conftest.$ac_ext <<_ACEOF
13876/* confdefs.h. */
13877_ACEOF
13878cat confdefs.h >>conftest.$ac_ext
13879cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013880/* end confdefs.h. */
13881
Reid Spencera773bd52006-08-04 18:18:08 +000013882/* Override any GCC internal prototype to avoid an error.
13883 Use char because int might match the return type of a GCC
13884 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013885#ifdef __cplusplus
13886extern "C"
13887#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013888char pthread_mutex_init ();
13889int
13890main ()
13891{
Reid Spencera773bd52006-08-04 18:18:08 +000013892return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013893 ;
13894 return 0;
13895}
13896_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897rm -f conftest.$ac_objext conftest$ac_exeext
13898if { (ac_try="$ac_link"
13899case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13902esac
13903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_link") 2>conftest.er1
13905 ac_status=$?
13906 grep -v '^ *+' conftest.er1 >conftest.err
13907 rm -f conftest.er1
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13912 { (case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13915esac
13916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13917 (eval "$ac_try") 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest$ac_exeext'
13922 { (case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13925esac
13926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_try") 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013931 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013933 echo "$as_me: failed program was:" >&5
13934sed 's/^/| /' conftest.$ac_ext >&5
13935
13936 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013938
Bill Wendlingebcceee2009-04-18 11:20:33 +000013939rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013940 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013941LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013942fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013943{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13944echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13945if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013946 cat >>confdefs.h <<_ACEOF
13947#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013948_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013949
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013950 LIBS="-lpthread $LIBS"
13951
Reid Spencer22177fe2005-07-12 15:24:20 +000013952fi
13953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013954 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13955echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13956if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013958else
13959 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013960cat >conftest.$ac_ext <<_ACEOF
13961/* confdefs.h. */
13962_ACEOF
13963cat confdefs.h >>conftest.$ac_ext
13964cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013965/* end confdefs.h. */
13966
Reid Spencera773bd52006-08-04 18:18:08 +000013967/* Override any GCC internal prototype to avoid an error.
13968 Use char because int might match the return type of a GCC
13969 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013970#ifdef __cplusplus
13971extern "C"
13972#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013973char pthread_mutex_lock ();
13974int
13975main ()
13976{
Reid Spencera773bd52006-08-04 18:18:08 +000013977return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013978 ;
13979 return 0;
13980}
13981_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013982for ac_lib in '' pthread; do
13983 if test -z "$ac_lib"; then
13984 ac_res="none required"
13985 else
13986 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013988 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013989 rm -f conftest.$ac_objext conftest$ac_exeext
13990if { (ac_try="$ac_link"
13991case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13994esac
13995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_link") 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007esac
14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest$ac_exeext'
14014 { (case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14017esac
14018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_try") 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014023 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014024else
14025 echo "$as_me: failed program was:" >&5
14026sed 's/^/| /' conftest.$ac_ext >&5
14027
14028
Brian Gaeke5f268f72003-12-05 19:29:01 +000014029fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014030
Bill Wendlingebcceee2009-04-18 11:20:33 +000014031rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014032 conftest$ac_exeext
14033 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014034 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014035fi
Reid Spencera773bd52006-08-04 18:18:08 +000014036done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014037if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14038 :
Reid Spencera773bd52006-08-04 18:18:08 +000014039else
14040 ac_cv_search_pthread_mutex_lock=no
14041fi
14042rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014043LIBS=$ac_func_search_save_LIBS
14044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014045{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14046echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014047ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014048if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014051cat >>confdefs.h <<\_ACEOF
14052#define HAVE_PTHREAD_MUTEX_LOCK 1
14053_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014054
14055fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014057 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14058echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14059if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014061else
14062 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014063cat >conftest.$ac_ext <<_ACEOF
14064/* confdefs.h. */
14065_ACEOF
14066cat confdefs.h >>conftest.$ac_ext
14067cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014068/* end confdefs.h. */
14069
14070/* Override any GCC internal prototype to avoid an error.
14071 Use char because int might match the return type of a GCC
14072 builtin and then its argument prototype would still apply. */
14073#ifdef __cplusplus
14074extern "C"
14075#endif
14076char pthread_rwlock_init ();
14077int
14078main ()
14079{
14080return pthread_rwlock_init ();
14081 ;
14082 return 0;
14083}
14084_ACEOF
14085for ac_lib in '' pthread; do
14086 if test -z "$ac_lib"; then
14087 ac_res="none required"
14088 else
14089 ac_res=-l$ac_lib
14090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14091 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014092 rm -f conftest.$ac_objext conftest$ac_exeext
14093if { (ac_try="$ac_link"
14094case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097esac
14098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_link") 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110esac
14111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest$ac_exeext'
14117 { (case "(($ac_try" in
14118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14120esac
14121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_try") 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014126 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127else
14128 echo "$as_me: failed program was:" >&5
14129sed 's/^/| /' conftest.$ac_ext >&5
14130
14131
Owen Andersonde8aed22009-06-16 18:20:20 +000014132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014133
Owen Andersonde8aed22009-06-16 18:20:20 +000014134rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135 conftest$ac_exeext
14136 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014137 break
14138fi
14139done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014140if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14141 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014142else
14143 ac_cv_search_pthread_rwlock_init=no
14144fi
14145rm conftest.$ac_ext
14146LIBS=$ac_func_search_save_LIBS
14147fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14149echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014150ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014151if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014154cat >>confdefs.h <<\_ACEOF
14155#define HAVE_PTHREAD_RWLOCK_INIT 1
14156_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014157
14158fi
14159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014160 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14161echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14162if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014164else
14165 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014166cat >conftest.$ac_ext <<_ACEOF
14167/* confdefs.h. */
14168_ACEOF
14169cat confdefs.h >>conftest.$ac_ext
14170cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014171/* end confdefs.h. */
14172
14173/* Override any GCC internal prototype to avoid an error.
14174 Use char because int might match the return type of a GCC
14175 builtin and then its argument prototype would still apply. */
14176#ifdef __cplusplus
14177extern "C"
14178#endif
14179char pthread_getspecific ();
14180int
14181main ()
14182{
14183return pthread_getspecific ();
14184 ;
14185 return 0;
14186}
14187_ACEOF
14188for ac_lib in '' pthread; do
14189 if test -z "$ac_lib"; then
14190 ac_res="none required"
14191 else
14192 ac_res=-l$ac_lib
14193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14194 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014195 rm -f conftest.$ac_objext conftest$ac_exeext
14196if { (ac_try="$ac_link"
14197case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200esac
14201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_link") 2>conftest.er1
14203 ac_status=$?
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } &&
14209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14210 { (case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14213esac
14214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_try") 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try='test -s conftest$ac_exeext'
14220 { (case "(($ac_try" in
14221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222 *) ac_try_echo=$ac_try;;
14223esac
14224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225 (eval "$ac_try") 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014229 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014230else
14231 echo "$as_me: failed program was:" >&5
14232sed 's/^/| /' conftest.$ac_ext >&5
14233
14234
Owen Anderson27fcfe12009-06-25 23:10:26 +000014235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014236
Owen Anderson27fcfe12009-06-25 23:10:26 +000014237rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238 conftest$ac_exeext
14239 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014240 break
14241fi
14242done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014243if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14244 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014245else
14246 ac_cv_search_pthread_getspecific=no
14247fi
14248rm conftest.$ac_ext
14249LIBS=$ac_func_search_save_LIBS
14250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014251{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14252echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014253ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014254if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014257cat >>confdefs.h <<\_ACEOF
14258#define HAVE_PTHREAD_GETSPECIFIC 1
14259_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014260
14261fi
14262
Reid Spencer0a262ba2005-08-24 10:07:20 +000014263fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014264
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014265
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014266# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014267if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014268 withval=$with_udis86;
14269 USE_UDIS86=1
14270
14271 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014272 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014273 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14274 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014275
14276{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14277echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14278if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014280else
14281 ac_check_lib_save_LIBS=$LIBS
14282LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014283cat >conftest.$ac_ext <<_ACEOF
14284/* confdefs.h. */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014288/* end confdefs.h. */
14289
14290/* Override any GCC internal prototype to avoid an error.
14291 Use char because int might match the return type of a GCC
14292 builtin and then its argument prototype would still apply. */
14293#ifdef __cplusplus
14294extern "C"
14295#endif
14296char ud_init ();
14297int
14298main ()
14299{
14300return ud_init ();
14301 ;
14302 return 0;
14303}
14304_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014305rm -f conftest.$ac_objext conftest$ac_exeext
14306if { (ac_try="$ac_link"
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_link") 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_exeext'
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 Spencerb6a7aa72007-01-19 17:41:47 +000014339 ac_cv_lib_udis86_ud_init=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_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346
Bill Wendlingebcceee2009-04-18 11:20:33 +000014347rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014348 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014349LIBS=$ac_check_lib_save_LIBS
14350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014351{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14352echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14353if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014354 cat >>confdefs.h <<_ACEOF
14355#define HAVE_LIBUDIS86 1
14356_ACEOF
14357
14358 LIBS="-ludis86 $LIBS"
14359
14360else
14361
14362 echo "Error! You need to have libudis86 around."
14363 exit -1
14364
14365fi
14366
14367
14368else
14369 USE_UDIS86=0
14370
14371fi
14372
14373
14374cat >>confdefs.h <<_ACEOF
14375#define USE_UDIS86 $USE_UDIS86
14376_ACEOF
14377
14378
14379
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014380# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014381if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014382 withval=$with_oprofile;
14383 USE_OPROFILE=1
14384
14385 case "$withval" in
14386 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014387 no) llvm_cv_oppath=
14388 USE_OPROFILE=0
14389 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014390 *) llvm_cv_oppath="${withval}/lib/oprofile"
14391 CPPFLAGS="-I${withval}/include";;
14392 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014393 if test -n "$llvm_cv_oppath" ; then
14394 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014395 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14396echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14397if test "${ac_cv_search_bfd_init+set}" = set; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014399else
14400 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014401cat >conftest.$ac_ext <<_ACEOF
14402/* confdefs.h. */
14403_ACEOF
14404cat confdefs.h >>conftest.$ac_ext
14405cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014406/* end confdefs.h. */
14407
14408/* Override any GCC internal prototype to avoid an error.
14409 Use char because int might match the return type of a GCC
14410 builtin and then its argument prototype would still apply. */
14411#ifdef __cplusplus
14412extern "C"
14413#endif
14414char bfd_init ();
14415int
14416main ()
14417{
14418return bfd_init ();
14419 ;
14420 return 0;
14421}
14422_ACEOF
14423for ac_lib in '' bfd; do
14424 if test -z "$ac_lib"; then
14425 ac_res="none required"
14426 else
14427 ac_res=-l$ac_lib
14428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14429 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014430 rm -f conftest.$ac_objext conftest$ac_exeext
14431if { (ac_try="$ac_link"
14432case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14435esac
14436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_link") 2>conftest.er1
14438 ac_status=$?
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448esac
14449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest$ac_exeext'
14455 { (case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458esac
14459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_try") 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014464 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014465else
14466 echo "$as_me: failed program was:" >&5
14467sed 's/^/| /' conftest.$ac_ext >&5
14468
14469
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014470fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014471
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014472rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014473 conftest$ac_exeext
14474 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014475 break
14476fi
14477done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014478if test "${ac_cv_search_bfd_init+set}" = set; then
14479 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014480else
14481 ac_cv_search_bfd_init=no
14482fi
14483rm conftest.$ac_ext
14484LIBS=$ac_func_search_save_LIBS
14485fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014486{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14487echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014488ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014489if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14491
14492fi
14493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014494 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14495echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14496if test "${ac_cv_search_op_open_agent+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014498else
14499 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014500cat >conftest.$ac_ext <<_ACEOF
14501/* confdefs.h. */
14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014505/* end confdefs.h. */
14506
14507/* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14510#ifdef __cplusplus
14511extern "C"
14512#endif
14513char op_open_agent ();
14514int
14515main ()
14516{
14517return op_open_agent ();
14518 ;
14519 return 0;
14520}
14521_ACEOF
14522for ac_lib in '' opagent; do
14523 if test -z "$ac_lib"; then
14524 ac_res="none required"
14525 else
14526 ac_res=-l$ac_lib
14527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14528 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014529 rm -f conftest.$ac_objext conftest$ac_exeext
14530if { (ac_try="$ac_link"
14531case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534esac
14535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_link") 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14544 { (case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547esac
14548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest$ac_exeext'
14554 { (case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14557esac
14558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_try") 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014563 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014564else
14565 echo "$as_me: failed program was:" >&5
14566sed 's/^/| /' conftest.$ac_ext >&5
14567
14568
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014570
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014571rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014572 conftest$ac_exeext
14573 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014574 break
14575fi
14576done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014577if test "${ac_cv_search_op_open_agent+set}" = set; then
14578 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014579else
14580 ac_cv_search_op_open_agent=no
14581fi
14582rm conftest.$ac_ext
14583LIBS=$ac_func_search_save_LIBS
14584fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014585{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14586echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014587ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014588if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14590
14591else
14592
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014593 echo "Error! You need to have libopagent around."
14594 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014595
14596fi
14597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014598 if test "${ac_cv_header_opagent_h+set}" = set; then
14599 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14600echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14601if test "${ac_cv_header_opagent_h+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14603fi
14604{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14605echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14606else
14607 # Is the header compilable?
14608{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14609echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14610cat >conftest.$ac_ext <<_ACEOF
14611/* confdefs.h. */
14612_ACEOF
14613cat confdefs.h >>conftest.$ac_ext
14614cat >>conftest.$ac_ext <<_ACEOF
14615/* end confdefs.h. */
14616$ac_includes_default
14617#include <opagent.h>
14618_ACEOF
14619rm -f conftest.$ac_objext
14620if { (ac_try="$ac_compile"
14621case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14624esac
14625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_compile") 2>conftest.er1
14627 ac_status=$?
14628 grep -v '^ *+' conftest.er1 >conftest.err
14629 rm -f conftest.er1
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } &&
14633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14634 { (case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14637esac
14638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_try") 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647esac
14648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_try") 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
14653 ac_header_compiler=yes
14654else
14655 echo "$as_me: failed program was:" >&5
14656sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014658 ac_header_compiler=no
14659fi
14660
14661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14663echo "${ECHO_T}$ac_header_compiler" >&6; }
14664
14665# Is the header present?
14666{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14667echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14668cat >conftest.$ac_ext <<_ACEOF
14669/* confdefs.h. */
14670_ACEOF
14671cat confdefs.h >>conftest.$ac_ext
14672cat >>conftest.$ac_ext <<_ACEOF
14673/* end confdefs.h. */
14674#include <opagent.h>
14675_ACEOF
14676if { (ac_try="$ac_cpp conftest.$ac_ext"
14677case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680esac
14681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14683 ac_status=$?
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -f conftest.er1
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } >/dev/null; then
14689 if test -s conftest.err; then
14690 ac_cpp_err=$ac_c_preproc_warn_flag
14691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14692 else
14693 ac_cpp_err=
14694 fi
14695else
14696 ac_cpp_err=yes
14697fi
14698if test -z "$ac_cpp_err"; then
14699 ac_header_preproc=yes
14700else
14701 echo "$as_me: failed program was:" >&5
14702sed 's/^/| /' conftest.$ac_ext >&5
14703
14704 ac_header_preproc=no
14705fi
14706
14707rm -f conftest.err conftest.$ac_ext
14708{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14709echo "${ECHO_T}$ac_header_preproc" >&6; }
14710
14711# So? What about this header?
14712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14713 yes:no: )
14714 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14715echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14717echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14718 ac_header_preproc=yes
14719 ;;
14720 no:yes:* )
14721 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14722echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14724echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14726echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14728echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14730echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14732echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14733 ( cat <<\_ASBOX
14734## ----------------------------------- ##
14735## Report this to llvmbugs@cs.uiuc.edu ##
14736## ----------------------------------- ##
14737_ASBOX
14738 ) | sed "s/^/$as_me: WARNING: /" >&2
14739 ;;
14740esac
14741{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14742echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14743if test "${ac_cv_header_opagent_h+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14745else
14746 ac_cv_header_opagent_h=$ac_header_preproc
14747fi
14748{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14749echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14750
14751fi
14752if test $ac_cv_header_opagent_h = yes; then
14753 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014754else
14755
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014756 echo "Error! You need to have opagent.h around."
14757 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014758
14759fi
14760
14761
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014762 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014763
14764else
14765
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014766 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014767
14768
14769fi
14770
14771
14772cat >>confdefs.h <<_ACEOF
14773#define USE_OPROFILE $USE_OPROFILE
14774_ACEOF
14775
14776
14777
Eric Christopher654dee42010-06-22 21:01:04 +000014778{ echo "$as_me:$LINENO: checking for gCRAnnotations in -lCrashReporterClient" >&5
14779echo $ECHO_N "checking for gCRAnnotations in -lCrashReporterClient... $ECHO_C" >&6; }
14780if test "${ac_cv_lib_CrashReporterClient_gCRAnnotations+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782else
14783 ac_check_lib_save_LIBS=$LIBS
14784LIBS="-lCrashReporterClient $LIBS"
14785cat >conftest.$ac_ext <<_ACEOF
14786/* confdefs.h. */
14787_ACEOF
14788cat confdefs.h >>conftest.$ac_ext
14789cat >>conftest.$ac_ext <<_ACEOF
14790/* end confdefs.h. */
14791
14792/* Override any GCC internal prototype to avoid an error.
14793 Use char because int might match the return type of a GCC
14794 builtin and then its argument prototype would still apply. */
14795#ifdef __cplusplus
14796extern "C"
14797#endif
14798char gCRAnnotations ();
14799int
14800main ()
14801{
14802return gCRAnnotations ();
14803 ;
14804 return 0;
14805}
14806_ACEOF
14807rm -f conftest.$ac_objext conftest$ac_exeext
14808if { (ac_try="$ac_link"
14809case "(($ac_try" in
14810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811 *) ac_try_echo=$ac_try;;
14812esac
14813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14814 (eval "$ac_link") 2>conftest.er1
14815 ac_status=$?
14816 grep -v '^ *+' conftest.er1 >conftest.err
14817 rm -f conftest.er1
14818 cat conftest.err >&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } &&
14821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14822 { (case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14825esac
14826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_try") 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; } &&
14831 { ac_try='test -s conftest$ac_exeext'
14832 { (case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835esac
14836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_try") 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_cv_lib_CrashReporterClient_gCRAnnotations=yes
14842else
14843 echo "$as_me: failed program was:" >&5
14844sed 's/^/| /' conftest.$ac_ext >&5
14845
14846 ac_cv_lib_CrashReporterClient_gCRAnnotations=no
14847fi
14848
14849rm -f core conftest.err conftest.$ac_objext \
14850 conftest$ac_exeext conftest.$ac_ext
14851LIBS=$ac_check_lib_save_LIBS
14852fi
14853{ echo "$as_me:$LINENO: result: $ac_cv_lib_CrashReporterClient_gCRAnnotations" >&5
14854echo "${ECHO_T}$ac_cv_lib_CrashReporterClient_gCRAnnotations" >&6; }
14855if test $ac_cv_lib_CrashReporterClient_gCRAnnotations = yes; then
14856 cat >>confdefs.h <<_ACEOF
14857#define HAVE_LIBCRASHREPORTERCLIENT 1
14858_ACEOF
14859
14860 LIBS="-lCrashReporterClient $LIBS"
14861
14862fi
14863
14864
14865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014866
14867
14868
14869
14870
Reid Spencer59473af2004-12-25 07:31:29 +000014871ac_header_dirent=no
14872for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014873 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14874{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14875echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014879 cat >conftest.$ac_ext <<_ACEOF
14880/* confdefs.h. */
14881_ACEOF
14882cat confdefs.h >>conftest.$ac_ext
14883cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014884/* end confdefs.h. */
14885#include <sys/types.h>
14886#include <$ac_hdr>
14887
14888int
14889main ()
14890{
14891if ((DIR *) 0)
14892return 0;
14893 ;
14894 return 0;
14895}
14896_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014897rm -f conftest.$ac_objext
14898if { (ac_try="$ac_compile"
14899case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14902esac
14903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_compile") 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14912 { (case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915esac
14916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_try") 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14925esac
14926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_try") 2>&5
14928 ac_status=$?
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014931 eval "$as_ac_Header=yes"
14932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014933 echo "$as_me: failed program was:" >&5
14934sed 's/^/| /' conftest.$ac_ext >&5
14935
14936 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014938
Reid Spencera773bd52006-08-04 18:18:08 +000014939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014940fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014941ac_res=`eval echo '${'$as_ac_Header'}'`
14942 { echo "$as_me:$LINENO: result: $ac_res" >&5
14943echo "${ECHO_T}$ac_res" >&6; }
14944if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014945 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014946#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014947_ACEOF
14948
14949ac_header_dirent=$ac_hdr; break
14950fi
14951
14952done
14953# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14954if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014955 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14956echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14957if test "${ac_cv_search_opendir+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014959else
14960 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014961cat >conftest.$ac_ext <<_ACEOF
14962/* confdefs.h. */
14963_ACEOF
14964cat confdefs.h >>conftest.$ac_ext
14965cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014966/* end confdefs.h. */
14967
Reid Spencera773bd52006-08-04 18:18:08 +000014968/* Override any GCC internal prototype to avoid an error.
14969 Use char because int might match the return type of a GCC
14970 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014971#ifdef __cplusplus
14972extern "C"
14973#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014974char opendir ();
14975int
14976main ()
14977{
Reid Spencera773bd52006-08-04 18:18:08 +000014978return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014979 ;
14980 return 0;
14981}
14982_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014983for ac_lib in '' dir; do
14984 if test -z "$ac_lib"; then
14985 ac_res="none required"
14986 else
14987 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014989 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014990 rm -f conftest.$ac_objext conftest$ac_exeext
14991if { (ac_try="$ac_link"
14992case "(($ac_try" in
14993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994 *) ac_try_echo=$ac_try;;
14995esac
14996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997 (eval "$ac_link") 2>conftest.er1
14998 ac_status=$?
14999 grep -v '^ *+' conftest.er1 >conftest.err
15000 rm -f conftest.er1
15001 cat conftest.err >&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
15004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15005 { (case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008esac
15009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_try") 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; } &&
15014 { ac_try='test -s conftest$ac_exeext'
15015 { (case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018esac
15019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_try") 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015024 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015025else
15026 echo "$as_me: failed program was:" >&5
15027sed 's/^/| /' conftest.$ac_ext >&5
15028
15029
Reid Spencer59473af2004-12-25 07:31:29 +000015030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015031
Bill Wendlingebcceee2009-04-18 11:20:33 +000015032rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015033 conftest$ac_exeext
15034 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015035 break
Reid Spencer59473af2004-12-25 07:31:29 +000015036fi
Reid Spencera773bd52006-08-04 18:18:08 +000015037done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015038if test "${ac_cv_search_opendir+set}" = set; then
15039 :
Reid Spencera773bd52006-08-04 18:18:08 +000015040else
15041 ac_cv_search_opendir=no
15042fi
15043rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015044LIBS=$ac_func_search_save_LIBS
15045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015046{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15047echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015048ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015049if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015050 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015051
15052fi
15053
15054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015055 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15056echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15057if test "${ac_cv_search_opendir+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015059else
15060 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015061cat >conftest.$ac_ext <<_ACEOF
15062/* confdefs.h. */
15063_ACEOF
15064cat confdefs.h >>conftest.$ac_ext
15065cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015066/* end confdefs.h. */
15067
Reid Spencera773bd52006-08-04 18:18:08 +000015068/* Override any GCC internal prototype to avoid an error.
15069 Use char because int might match the return type of a GCC
15070 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015071#ifdef __cplusplus
15072extern "C"
15073#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015074char opendir ();
15075int
15076main ()
15077{
Reid Spencera773bd52006-08-04 18:18:08 +000015078return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015079 ;
15080 return 0;
15081}
15082_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015083for ac_lib in '' x; do
15084 if test -z "$ac_lib"; then
15085 ac_res="none required"
15086 else
15087 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015089 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015090 rm -f conftest.$ac_objext conftest$ac_exeext
15091if { (ac_try="$ac_link"
15092case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095esac
15096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_link") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15105 { (case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15108esac
15109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_try") 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } &&
15114 { ac_try='test -s conftest$ac_exeext'
15115 { (case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15118esac
15119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_try") 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015124 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015125else
15126 echo "$as_me: failed program was:" >&5
15127sed 's/^/| /' conftest.$ac_ext >&5
15128
15129
Reid Spencer59473af2004-12-25 07:31:29 +000015130fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015131
Bill Wendlingebcceee2009-04-18 11:20:33 +000015132rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015133 conftest$ac_exeext
15134 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015135 break
Reid Spencer59473af2004-12-25 07:31:29 +000015136fi
Reid Spencera773bd52006-08-04 18:18:08 +000015137done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015138if test "${ac_cv_search_opendir+set}" = set; then
15139 :
Reid Spencera773bd52006-08-04 18:18:08 +000015140else
15141 ac_cv_search_opendir=no
15142fi
15143rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015144LIBS=$ac_func_search_save_LIBS
15145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015146{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15147echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015148ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015149if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015151
15152fi
15153
15154fi
15155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015156{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15157echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15158if test "${ac_cv_header_mmap_anon+set}" = set; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015160else
15161 ac_ext=c
15162ac_cpp='$CPP $CPPFLAGS'
15163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15165ac_compiler_gnu=$ac_cv_c_compiler_gnu
15166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015167 cat >conftest.$ac_ext <<_ACEOF
15168/* confdefs.h. */
15169_ACEOF
15170cat confdefs.h >>conftest.$ac_ext
15171cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015172/* end confdefs.h. */
15173#include <sys/mman.h>
15174#include <unistd.h>
15175#include <fcntl.h>
15176int
15177main ()
15178{
15179mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15180 ;
15181 return 0;
15182}
15183_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015184rm -f conftest.$ac_objext
15185if { (ac_try="$ac_compile"
15186case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15189esac
15190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_compile") 2>conftest.er1
15192 ac_status=$?
15193 grep -v '^ *+' conftest.er1 >conftest.err
15194 rm -f conftest.er1
15195 cat conftest.err >&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } &&
15198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15199 { (case "(($ac_try" in
15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201 *) ac_try_echo=$ac_try;;
15202esac
15203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15204 (eval "$ac_try") 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; } &&
15208 { ac_try='test -s conftest.$ac_objext'
15209 { (case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15212esac
15213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214 (eval "$ac_try") 2>&5
15215 ac_status=$?
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015218 ac_cv_header_mmap_anon=yes
15219else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015220 echo "$as_me: failed program was:" >&5
15221sed 's/^/| /' conftest.$ac_ext >&5
15222
15223 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015225
Reid Spencera773bd52006-08-04 18:18:08 +000015226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015227 ac_ext=c
15228ac_cpp='$CPP $CPPFLAGS'
15229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15231ac_compiler_gnu=$ac_cv_c_compiler_gnu
15232
15233
15234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015235{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15236echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015237if test "$ac_cv_header_mmap_anon" = yes; then
15238
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015239cat >>confdefs.h <<\_ACEOF
15240#define HAVE_MMAP_ANONYMOUS 1
15241_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015242
15243fi
15244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015245{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15246echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15247if test "${ac_cv_header_stat_broken+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015250 cat >conftest.$ac_ext <<_ACEOF
15251/* confdefs.h. */
15252_ACEOF
15253cat confdefs.h >>conftest.$ac_ext
15254cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015255/* end confdefs.h. */
15256#include <sys/types.h>
15257#include <sys/stat.h>
15258
Reid Spencera773bd52006-08-04 18:18:08 +000015259#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015260# if S_ISBLK (S_IFDIR)
15261You lose.
15262# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015263#endif
15264
Reid Spencera773bd52006-08-04 18:18:08 +000015265#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015266# if S_ISBLK (S_IFCHR)
15267You lose.
15268# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015269#endif
15270
Reid Spencera773bd52006-08-04 18:18:08 +000015271#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015272# if S_ISLNK (S_IFREG)
15273You lose.
15274# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015275#endif
15276
Reid Spencera773bd52006-08-04 18:18:08 +000015277#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015278# if S_ISSOCK (S_IFREG)
15279You lose.
15280# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015281#endif
15282
15283_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15285 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015286 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015287else
15288 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015290rm -f conftest*
15291
Reid Spencer59473af2004-12-25 07:31:29 +000015292fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015293{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15294echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015295if test $ac_cv_header_stat_broken = yes; then
15296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015297cat >>confdefs.h <<\_ACEOF
15298#define STAT_MACROS_BROKEN 1
15299_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015300
15301fi
15302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015303{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15304echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15305if test "${ac_cv_header_stdc+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015308 cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015313/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015314#include <stdlib.h>
15315#include <stdarg.h>
15316#include <string.h>
15317#include <float.h>
15318
John Criswell0c38eaf2003-09-10 15:17:25 +000015319int
15320main ()
15321{
15322
15323 ;
15324 return 0;
15325}
John Criswell7a73b802003-06-30 21:59:07 +000015326_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015327rm -f conftest.$ac_objext
15328if { (ac_try="$ac_compile"
15329case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15332esac
15333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_compile") 2>conftest.er1
15335 ac_status=$?
15336 grep -v '^ *+' conftest.er1 >conftest.err
15337 rm -f conftest.er1
15338 cat conftest.err >&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345esac
15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest.$ac_objext'
15352 { (case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355esac
15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_try") 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015361 ac_cv_header_stdc=yes
15362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015363 echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015368
Reid Spencera773bd52006-08-04 18:18:08 +000015369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015370
15371if test $ac_cv_header_stdc = yes; then
15372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015373 cat >conftest.$ac_ext <<_ACEOF
15374/* confdefs.h. */
15375_ACEOF
15376cat confdefs.h >>conftest.$ac_ext
15377cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015379#include <string.h>
15380
15381_ACEOF
15382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015383 $EGREP "memchr" >/dev/null 2>&1; then
15384 :
John Criswell7a73b802003-06-30 21:59:07 +000015385else
15386 ac_cv_header_stdc=no
15387fi
15388rm -f conftest*
15389
15390fi
15391
15392if test $ac_cv_header_stdc = yes; then
15393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015394 cat >conftest.$ac_ext <<_ACEOF
15395/* confdefs.h. */
15396_ACEOF
15397cat confdefs.h >>conftest.$ac_ext
15398cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015400#include <stdlib.h>
15401
15402_ACEOF
15403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015404 $EGREP "free" >/dev/null 2>&1; then
15405 :
John Criswell7a73b802003-06-30 21:59:07 +000015406else
15407 ac_cv_header_stdc=no
15408fi
15409rm -f conftest*
15410
15411fi
15412
15413if test $ac_cv_header_stdc = yes; then
15414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015415 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015416 :
15417else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015418 cat >conftest.$ac_ext <<_ACEOF
15419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015423/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015424#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015425#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015426#if ((' ' & 0x0FF) == 0x020)
15427# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15428# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15429#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015430# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015431 (('a' <= (c) && (c) <= 'i') \
15432 || ('j' <= (c) && (c) <= 'r') \
15433 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015434# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15435#endif
15436
15437#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15438int
15439main ()
15440{
15441 int i;
15442 for (i = 0; i < 256; i++)
15443 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015444 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015445 return 2;
15446 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015447}
15448_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015449rm -f conftest$ac_exeext
15450if { (ac_try="$ac_link"
15451case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454esac
15455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_link") 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15460 { (case "(($ac_try" in
15461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15462 *) ac_try_echo=$ac_try;;
15463esac
15464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15465 (eval "$ac_try") 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15469 :
John Criswell7a73b802003-06-30 21:59:07 +000015470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015471 echo "$as_me: program exited with status $ac_status" >&5
15472echo "$as_me: failed program was:" >&5
15473sed 's/^/| /' conftest.$ac_ext >&5
15474
15475( exit $ac_status )
15476ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015478rm -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 +000015479fi
15480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015481
John Criswell7a73b802003-06-30 21:59:07 +000015482fi
15483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015484{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15485echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015486if test $ac_cv_header_stdc = yes; then
15487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015488cat >>confdefs.h <<\_ACEOF
15489#define STDC_HEADERS 1
15490_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015491
15492fi
15493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015494{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15495echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15496if test "${ac_cv_header_sys_wait_h+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015498else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015499 cat >conftest.$ac_ext <<_ACEOF
15500/* confdefs.h. */
15501_ACEOF
15502cat confdefs.h >>conftest.$ac_ext
15503cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015504/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015505#include <sys/types.h>
15506#include <sys/wait.h>
15507#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015508# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015509#endif
15510#ifndef WIFEXITED
15511# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15512#endif
15513
John Criswell7a73b802003-06-30 21:59:07 +000015514int
15515main ()
15516{
15517 int s;
15518 wait (&s);
15519 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15520 ;
15521 return 0;
15522}
15523_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015524rm -f conftest.$ac_objext
15525if { (ac_try="$ac_compile"
15526case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15529esac
15530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_compile") 2>conftest.er1
15532 ac_status=$?
15533 grep -v '^ *+' conftest.er1 >conftest.err
15534 rm -f conftest.er1
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
15538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15539 { (case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15542esac
15543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_try") 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; } &&
15548 { ac_try='test -s conftest.$ac_objext'
15549 { (case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552esac
15553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_try") 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015558 ac_cv_header_sys_wait_h=yes
15559else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015560 echo "$as_me: failed program was:" >&5
15561sed 's/^/| /' conftest.$ac_ext >&5
15562
15563 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015564fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015565
Reid Spencera773bd52006-08-04 18:18:08 +000015566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015567fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015568{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15569echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015570if test $ac_cv_header_sys_wait_h = yes; then
15571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015572cat >>confdefs.h <<\_ACEOF
15573#define HAVE_SYS_WAIT_H 1
15574_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015575
15576fi
15577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015578{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15579echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15580if test "${ac_cv_header_time+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015583 cat >conftest.$ac_ext <<_ACEOF
15584/* confdefs.h. */
15585_ACEOF
15586cat confdefs.h >>conftest.$ac_ext
15587cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015588/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015589#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015590#include <sys/time.h>
15591#include <time.h>
15592
15593int
15594main ()
15595{
15596if ((struct tm *) 0)
15597return 0;
15598 ;
15599 return 0;
15600}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015601_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015602rm -f conftest.$ac_objext
15603if { (ac_try="$ac_compile"
15604case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15607esac
15608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_compile") 2>conftest.er1
15610 ac_status=$?
15611 grep -v '^ *+' conftest.er1 >conftest.err
15612 rm -f conftest.er1
15613 cat conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15617 { (case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15620esac
15621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622 (eval "$ac_try") 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try='test -s conftest.$ac_objext'
15627 { (case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630esac
15631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_try") 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015636 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015638 echo "$as_me: failed program was:" >&5
15639sed 's/^/| /' conftest.$ac_ext >&5
15640
15641 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015643
Reid Spencera773bd52006-08-04 18:18:08 +000015644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015645fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015646{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15647echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015648if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015650cat >>confdefs.h <<\_ACEOF
15651#define TIME_WITH_SYS_TIME 1
15652_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015653
15654fi
15655
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015657
15658
15659
15660
15661
15662
Reid Spencer59473af2004-12-25 07:31:29 +000015663for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015664do
15665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15671fi
15672ac_res=`eval echo '${'$as_ac_Header'}'`
15673 { echo "$as_me:$LINENO: result: $ac_res" >&5
15674echo "${ECHO_T}$ac_res" >&6; }
15675else
15676 # Is the header compilable?
15677{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15678echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15679cat >conftest.$ac_ext <<_ACEOF
15680/* confdefs.h. */
15681_ACEOF
15682cat confdefs.h >>conftest.$ac_ext
15683cat >>conftest.$ac_ext <<_ACEOF
15684/* end confdefs.h. */
15685$ac_includes_default
15686#include <$ac_header>
15687_ACEOF
15688rm -f conftest.$ac_objext
15689if { (ac_try="$ac_compile"
15690case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15693esac
15694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695 (eval "$ac_compile") 2>conftest.er1
15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706esac
15707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest.$ac_objext'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716esac
15717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_header_compiler=yes
15723else
15724 echo "$as_me: failed program was:" >&5
15725sed 's/^/| /' conftest.$ac_ext >&5
15726
15727 ac_header_compiler=no
15728fi
15729
15730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15731{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15732echo "${ECHO_T}$ac_header_compiler" >&6; }
15733
15734# Is the header present?
15735{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15736echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15737cat >conftest.$ac_ext <<_ACEOF
15738/* confdefs.h. */
15739_ACEOF
15740cat confdefs.h >>conftest.$ac_ext
15741cat >>conftest.$ac_ext <<_ACEOF
15742/* end confdefs.h. */
15743#include <$ac_header>
15744_ACEOF
15745if { (ac_try="$ac_cpp conftest.$ac_ext"
15746case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15749esac
15750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } >/dev/null; then
15758 if test -s conftest.err; then
15759 ac_cpp_err=$ac_c_preproc_warn_flag
15760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15761 else
15762 ac_cpp_err=
15763 fi
15764else
15765 ac_cpp_err=yes
15766fi
15767if test -z "$ac_cpp_err"; then
15768 ac_header_preproc=yes
15769else
15770 echo "$as_me: failed program was:" >&5
15771sed 's/^/| /' conftest.$ac_ext >&5
15772
15773 ac_header_preproc=no
15774fi
15775
15776rm -f conftest.err conftest.$ac_ext
15777{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15778echo "${ECHO_T}$ac_header_preproc" >&6; }
15779
15780# So? What about this header?
15781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15782 yes:no: )
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15784echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15786echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15787 ac_header_preproc=yes
15788 ;;
15789 no:yes:* )
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15791echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15793echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15795echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15797echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15799echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15801echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15802 ( cat <<\_ASBOX
15803## ----------------------------------- ##
15804## Report this to llvmbugs@cs.uiuc.edu ##
15805## ----------------------------------- ##
15806_ASBOX
15807 ) | sed "s/^/$as_me: WARNING: /" >&2
15808 ;;
15809esac
15810{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15814else
15815 eval "$as_ac_Header=\$ac_header_preproc"
15816fi
15817ac_res=`eval echo '${'$as_ac_Header'}'`
15818 { echo "$as_me:$LINENO: result: $ac_res" >&5
15819echo "${ECHO_T}$ac_res" >&6; }
15820
15821fi
15822if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015823 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015824#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015825_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015826
15827fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015828
Reid Spencer59473af2004-12-25 07:31:29 +000015829done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015831
15832
15833
15834
15835
15836
Douglas Gregor071d73d2009-05-18 17:21:34 +000015837for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015838do
15839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15845fi
15846ac_res=`eval echo '${'$as_ac_Header'}'`
15847 { echo "$as_me:$LINENO: result: $ac_res" >&5
15848echo "${ECHO_T}$ac_res" >&6; }
15849else
15850 # Is the header compilable?
15851{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15852echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15853cat >conftest.$ac_ext <<_ACEOF
15854/* confdefs.h. */
15855_ACEOF
15856cat confdefs.h >>conftest.$ac_ext
15857cat >>conftest.$ac_ext <<_ACEOF
15858/* end confdefs.h. */
15859$ac_includes_default
15860#include <$ac_header>
15861_ACEOF
15862rm -f conftest.$ac_objext
15863if { (ac_try="$ac_compile"
15864case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15867esac
15868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_compile") 2>conftest.er1
15870 ac_status=$?
15871 grep -v '^ *+' conftest.er1 >conftest.err
15872 rm -f conftest.er1
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } &&
15876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15877 { (case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15880esac
15881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_try") 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; } &&
15886 { ac_try='test -s conftest.$ac_objext'
15887 { (case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15890esac
15891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_try") 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 ac_header_compiler=yes
15897else
15898 echo "$as_me: failed program was:" >&5
15899sed 's/^/| /' conftest.$ac_ext >&5
15900
15901 ac_header_compiler=no
15902fi
15903
15904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15906echo "${ECHO_T}$ac_header_compiler" >&6; }
15907
15908# Is the header present?
15909{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15910echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15911cat >conftest.$ac_ext <<_ACEOF
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917#include <$ac_header>
15918_ACEOF
15919if { (ac_try="$ac_cpp conftest.$ac_ext"
15920case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15923esac
15924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15926 ac_status=$?
15927 grep -v '^ *+' conftest.er1 >conftest.err
15928 rm -f conftest.er1
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } >/dev/null; then
15932 if test -s conftest.err; then
15933 ac_cpp_err=$ac_c_preproc_warn_flag
15934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15935 else
15936 ac_cpp_err=
15937 fi
15938else
15939 ac_cpp_err=yes
15940fi
15941if test -z "$ac_cpp_err"; then
15942 ac_header_preproc=yes
15943else
15944 echo "$as_me: failed program was:" >&5
15945sed 's/^/| /' conftest.$ac_ext >&5
15946
15947 ac_header_preproc=no
15948fi
15949
15950rm -f conftest.err conftest.$ac_ext
15951{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15952echo "${ECHO_T}$ac_header_preproc" >&6; }
15953
15954# So? What about this header?
15955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15956 yes:no: )
15957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15958echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15960echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15961 ac_header_preproc=yes
15962 ;;
15963 no:yes:* )
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15965echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15967echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15969echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15971echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15973echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15975echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15976 ( cat <<\_ASBOX
15977## ----------------------------------- ##
15978## Report this to llvmbugs@cs.uiuc.edu ##
15979## ----------------------------------- ##
15980_ASBOX
15981 ) | sed "s/^/$as_me: WARNING: /" >&2
15982 ;;
15983esac
15984{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15988else
15989 eval "$as_ac_Header=\$ac_header_preproc"
15990fi
15991ac_res=`eval echo '${'$as_ac_Header'}'`
15992 { echo "$as_me:$LINENO: result: $ac_res" >&5
15993echo "${ECHO_T}$ac_res" >&6; }
15994
15995fi
15996if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015997 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015999_ACEOF
16000
16001fi
16002
16003done
16004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016005
16006
Douglas Gregor071d73d2009-05-18 17:21:34 +000016007for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016008do
16009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16015fi
16016ac_res=`eval echo '${'$as_ac_Header'}'`
16017 { echo "$as_me:$LINENO: result: $ac_res" >&5
16018echo "${ECHO_T}$ac_res" >&6; }
16019else
16020 # Is the header compilable?
16021{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16023cat >conftest.$ac_ext <<_ACEOF
16024/* confdefs.h. */
16025_ACEOF
16026cat confdefs.h >>conftest.$ac_ext
16027cat >>conftest.$ac_ext <<_ACEOF
16028/* end confdefs.h. */
16029$ac_includes_default
16030#include <$ac_header>
16031_ACEOF
16032rm -f conftest.$ac_objext
16033if { (ac_try="$ac_compile"
16034case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16037esac
16038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_compile") 2>conftest.er1
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16047 { (case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16050esac
16051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_try") 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try='test -s conftest.$ac_objext'
16057 { (case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_try") 2>&5
16063 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; }; then
16066 ac_header_compiler=yes
16067else
16068 echo "$as_me: failed program was:" >&5
16069sed 's/^/| /' conftest.$ac_ext >&5
16070
16071 ac_header_compiler=no
16072fi
16073
16074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16076echo "${ECHO_T}$ac_header_compiler" >&6; }
16077
16078# Is the header present?
16079{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16081cat >conftest.$ac_ext <<_ACEOF
16082/* confdefs.h. */
16083_ACEOF
16084cat confdefs.h >>conftest.$ac_ext
16085cat >>conftest.$ac_ext <<_ACEOF
16086/* end confdefs.h. */
16087#include <$ac_header>
16088_ACEOF
16089if { (ac_try="$ac_cpp conftest.$ac_ext"
16090case "(($ac_try" in
16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16093esac
16094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16096 ac_status=$?
16097 grep -v '^ *+' conftest.er1 >conftest.err
16098 rm -f conftest.er1
16099 cat conftest.err >&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } >/dev/null; then
16102 if test -s conftest.err; then
16103 ac_cpp_err=$ac_c_preproc_warn_flag
16104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16105 else
16106 ac_cpp_err=
16107 fi
16108else
16109 ac_cpp_err=yes
16110fi
16111if test -z "$ac_cpp_err"; then
16112 ac_header_preproc=yes
16113else
16114 echo "$as_me: failed program was:" >&5
16115sed 's/^/| /' conftest.$ac_ext >&5
16116
16117 ac_header_preproc=no
16118fi
16119
16120rm -f conftest.err conftest.$ac_ext
16121{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16122echo "${ECHO_T}$ac_header_preproc" >&6; }
16123
16124# So? What about this header?
16125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16126 yes:no: )
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16131 ac_header_preproc=yes
16132 ;;
16133 no:yes:* )
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16141echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16146 ( cat <<\_ASBOX
16147## ----------------------------------- ##
16148## Report this to llvmbugs@cs.uiuc.edu ##
16149## ----------------------------------- ##
16150_ASBOX
16151 ) | sed "s/^/$as_me: WARNING: /" >&2
16152 ;;
16153esac
16154{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16158else
16159 eval "$as_ac_Header=\$ac_header_preproc"
16160fi
16161ac_res=`eval echo '${'$as_ac_Header'}'`
16162 { echo "$as_me:$LINENO: result: $ac_res" >&5
16163echo "${ECHO_T}$ac_res" >&6; }
16164
16165fi
16166if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016167 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016169_ACEOF
16170
16171fi
16172
16173done
Reid Spencer59473af2004-12-25 07:31:29 +000016174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016175
16176
16177
16178
Reid Spencerbe3e4192007-08-17 05:45:26 +000016179for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016180do
16181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187fi
16188ac_res=`eval echo '${'$as_ac_Header'}'`
16189 { echo "$as_me:$LINENO: result: $ac_res" >&5
16190echo "${ECHO_T}$ac_res" >&6; }
16191else
16192 # Is the header compilable?
16193{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16195cat >conftest.$ac_ext <<_ACEOF
16196/* confdefs.h. */
16197_ACEOF
16198cat confdefs.h >>conftest.$ac_ext
16199cat >>conftest.$ac_ext <<_ACEOF
16200/* end confdefs.h. */
16201$ac_includes_default
16202#include <$ac_header>
16203_ACEOF
16204rm -f conftest.$ac_objext
16205if { (ac_try="$ac_compile"
16206case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16209esac
16210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_compile") 2>conftest.er1
16212 ac_status=$?
16213 grep -v '^ *+' conftest.er1 >conftest.err
16214 rm -f conftest.er1
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16219 { (case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16222esac
16223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_try") 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; } &&
16228 { ac_try='test -s conftest.$ac_objext'
16229 { (case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16232esac
16233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_try") 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 ac_header_compiler=yes
16239else
16240 echo "$as_me: failed program was:" >&5
16241sed 's/^/| /' conftest.$ac_ext >&5
16242
16243 ac_header_compiler=no
16244fi
16245
16246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16248echo "${ECHO_T}$ac_header_compiler" >&6; }
16249
16250# Is the header present?
16251{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16253cat >conftest.$ac_ext <<_ACEOF
16254/* confdefs.h. */
16255_ACEOF
16256cat confdefs.h >>conftest.$ac_ext
16257cat >>conftest.$ac_ext <<_ACEOF
16258/* end confdefs.h. */
16259#include <$ac_header>
16260_ACEOF
16261if { (ac_try="$ac_cpp conftest.$ac_ext"
16262case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265esac
16266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } >/dev/null; then
16274 if test -s conftest.err; then
16275 ac_cpp_err=$ac_c_preproc_warn_flag
16276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16277 else
16278 ac_cpp_err=
16279 fi
16280else
16281 ac_cpp_err=yes
16282fi
16283if test -z "$ac_cpp_err"; then
16284 ac_header_preproc=yes
16285else
16286 echo "$as_me: failed program was:" >&5
16287sed 's/^/| /' conftest.$ac_ext >&5
16288
16289 ac_header_preproc=no
16290fi
16291
16292rm -f conftest.err conftest.$ac_ext
16293{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16294echo "${ECHO_T}$ac_header_preproc" >&6; }
16295
16296# So? What about this header?
16297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16298 yes:no: )
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16302echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16303 ac_header_preproc=yes
16304 ;;
16305 no:yes:* )
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16311echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16313echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16315echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16317echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16318 ( cat <<\_ASBOX
16319## ----------------------------------- ##
16320## Report this to llvmbugs@cs.uiuc.edu ##
16321## ----------------------------------- ##
16322_ASBOX
16323 ) | sed "s/^/$as_me: WARNING: /" >&2
16324 ;;
16325esac
16326{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16330else
16331 eval "$as_ac_Header=\$ac_header_preproc"
16332fi
16333ac_res=`eval echo '${'$as_ac_Header'}'`
16334 { echo "$as_me:$LINENO: result: $ac_res" >&5
16335echo "${ECHO_T}$ac_res" >&6; }
16336
16337fi
16338if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016339 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016341_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016342
16343fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016344
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016345done
16346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016347
16348
16349
16350
Douglas Gregor01746742009-05-11 18:05:52 +000016351for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016352do
16353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359fi
16360ac_res=`eval echo '${'$as_ac_Header'}'`
16361 { echo "$as_me:$LINENO: result: $ac_res" >&5
16362echo "${ECHO_T}$ac_res" >&6; }
16363else
16364 # Is the header compilable?
16365{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16367cat >conftest.$ac_ext <<_ACEOF
16368/* confdefs.h. */
16369_ACEOF
16370cat confdefs.h >>conftest.$ac_ext
16371cat >>conftest.$ac_ext <<_ACEOF
16372/* end confdefs.h. */
16373$ac_includes_default
16374#include <$ac_header>
16375_ACEOF
16376rm -f conftest.$ac_objext
16377if { (ac_try="$ac_compile"
16378case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16381esac
16382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_compile") 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391 { (case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16394esac
16395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_try") 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest.$ac_objext'
16401 { (case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404esac
16405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_try") 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_header_compiler=yes
16411else
16412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 ac_header_compiler=no
16416fi
16417
16418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16419{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16420echo "${ECHO_T}$ac_header_compiler" >&6; }
16421
16422# Is the header present?
16423{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16424echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16425cat >conftest.$ac_ext <<_ACEOF
16426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h. */
16431#include <$ac_header>
16432_ACEOF
16433if { (ac_try="$ac_cpp conftest.$ac_ext"
16434case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437esac
16438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } >/dev/null; then
16446 if test -s conftest.err; then
16447 ac_cpp_err=$ac_c_preproc_warn_flag
16448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16449 else
16450 ac_cpp_err=
16451 fi
16452else
16453 ac_cpp_err=yes
16454fi
16455if test -z "$ac_cpp_err"; then
16456 ac_header_preproc=yes
16457else
16458 echo "$as_me: failed program was:" >&5
16459sed 's/^/| /' conftest.$ac_ext >&5
16460
16461 ac_header_preproc=no
16462fi
16463
16464rm -f conftest.err conftest.$ac_ext
16465{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16466echo "${ECHO_T}$ac_header_preproc" >&6; }
16467
16468# So? What about this header?
16469case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16470 yes:no: )
16471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16474echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16475 ac_header_preproc=yes
16476 ;;
16477 no:yes:* )
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16481echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16483echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16485echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16489echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16490 ( cat <<\_ASBOX
16491## ----------------------------------- ##
16492## Report this to llvmbugs@cs.uiuc.edu ##
16493## ----------------------------------- ##
16494_ASBOX
16495 ) | sed "s/^/$as_me: WARNING: /" >&2
16496 ;;
16497esac
16498{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16502else
16503 eval "$as_ac_Header=\$ac_header_preproc"
16504fi
16505ac_res=`eval echo '${'$as_ac_Header'}'`
16506 { echo "$as_me:$LINENO: result: $ac_res" >&5
16507echo "${ECHO_T}$ac_res" >&6; }
16508
16509fi
16510if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016511 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016513_ACEOF
16514
16515fi
16516
16517done
16518
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016519
16520for ac_header in valgrind/valgrind.h
16521do
16522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16528fi
16529ac_res=`eval echo '${'$as_ac_Header'}'`
16530 { echo "$as_me:$LINENO: result: $ac_res" >&5
16531echo "${ECHO_T}$ac_res" >&6; }
16532else
16533 # Is the header compilable?
16534{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16536cat >conftest.$ac_ext <<_ACEOF
16537/* confdefs.h. */
16538_ACEOF
16539cat confdefs.h >>conftest.$ac_ext
16540cat >>conftest.$ac_ext <<_ACEOF
16541/* end confdefs.h. */
16542$ac_includes_default
16543#include <$ac_header>
16544_ACEOF
16545rm -f conftest.$ac_objext
16546if { (ac_try="$ac_compile"
16547case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16550esac
16551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_compile") 2>conftest.er1
16553 ac_status=$?
16554 grep -v '^ *+' conftest.er1 >conftest.err
16555 rm -f conftest.er1
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16560 { (case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16563esac
16564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_try") 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; } &&
16569 { ac_try='test -s conftest.$ac_objext'
16570 { (case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16573esac
16574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_try") 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 ac_header_compiler=yes
16580else
16581 echo "$as_me: failed program was:" >&5
16582sed 's/^/| /' conftest.$ac_ext >&5
16583
16584 ac_header_compiler=no
16585fi
16586
16587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16589echo "${ECHO_T}$ac_header_compiler" >&6; }
16590
16591# Is the header present?
16592{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16594cat >conftest.$ac_ext <<_ACEOF
16595/* confdefs.h. */
16596_ACEOF
16597cat confdefs.h >>conftest.$ac_ext
16598cat >>conftest.$ac_ext <<_ACEOF
16599/* end confdefs.h. */
16600#include <$ac_header>
16601_ACEOF
16602if { (ac_try="$ac_cpp conftest.$ac_ext"
16603case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16606esac
16607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16609 ac_status=$?
16610 grep -v '^ *+' conftest.er1 >conftest.err
16611 rm -f conftest.er1
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } >/dev/null; then
16615 if test -s conftest.err; then
16616 ac_cpp_err=$ac_c_preproc_warn_flag
16617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16618 else
16619 ac_cpp_err=
16620 fi
16621else
16622 ac_cpp_err=yes
16623fi
16624if test -z "$ac_cpp_err"; then
16625 ac_header_preproc=yes
16626else
16627 echo "$as_me: failed program was:" >&5
16628sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ac_header_preproc=no
16631fi
16632
16633rm -f conftest.err conftest.$ac_ext
16634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16635echo "${ECHO_T}$ac_header_preproc" >&6; }
16636
16637# So? What about this header?
16638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16639 yes:no: )
16640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16644 ac_header_preproc=yes
16645 ;;
16646 no:yes:* )
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16659 ( cat <<\_ASBOX
16660## ----------------------------------- ##
16661## Report this to llvmbugs@cs.uiuc.edu ##
16662## ----------------------------------- ##
16663_ASBOX
16664 ) | sed "s/^/$as_me: WARNING: /" >&2
16665 ;;
16666esac
16667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16671else
16672 eval "$as_ac_Header=\$ac_header_preproc"
16673fi
16674ac_res=`eval echo '${'$as_ac_Header'}'`
16675 { echo "$as_me:$LINENO: result: $ac_res" >&5
16676echo "${ECHO_T}$ac_res" >&6; }
16677
16678fi
16679if test `eval echo '${'$as_ac_Header'}'` = yes; then
16680 cat >>confdefs.h <<_ACEOF
16681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16682_ACEOF
16683
16684fi
16685
16686done
16687
Reid Spencer0a262ba2005-08-24 10:07:20 +000016688if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016689
16690for ac_header in pthread.h
16691do
16692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698fi
16699ac_res=`eval echo '${'$as_ac_Header'}'`
16700 { echo "$as_me:$LINENO: result: $ac_res" >&5
16701echo "${ECHO_T}$ac_res" >&6; }
16702else
16703 # Is the header compilable?
16704{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16706cat >conftest.$ac_ext <<_ACEOF
16707/* confdefs.h. */
16708_ACEOF
16709cat confdefs.h >>conftest.$ac_ext
16710cat >>conftest.$ac_ext <<_ACEOF
16711/* end confdefs.h. */
16712$ac_includes_default
16713#include <$ac_header>
16714_ACEOF
16715rm -f conftest.$ac_objext
16716if { (ac_try="$ac_compile"
16717case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_compile") 2>conftest.er1
16723 ac_status=$?
16724 grep -v '^ *+' conftest.er1 >conftest.err
16725 rm -f conftest.er1
16726 cat conftest.err >&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } &&
16729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16730 { (case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733esac
16734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_try") 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try='test -s conftest.$ac_objext'
16740 { (case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16743esac
16744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_try") 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
16749 ac_header_compiler=yes
16750else
16751 echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
16754 ac_header_compiler=no
16755fi
16756
16757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16758{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16759echo "${ECHO_T}$ac_header_compiler" >&6; }
16760
16761# Is the header present?
16762{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16764cat >conftest.$ac_ext <<_ACEOF
16765/* confdefs.h. */
16766_ACEOF
16767cat confdefs.h >>conftest.$ac_ext
16768cat >>conftest.$ac_ext <<_ACEOF
16769/* end confdefs.h. */
16770#include <$ac_header>
16771_ACEOF
16772if { (ac_try="$ac_cpp conftest.$ac_ext"
16773case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16776esac
16777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16779 ac_status=$?
16780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } >/dev/null; then
16785 if test -s conftest.err; then
16786 ac_cpp_err=$ac_c_preproc_warn_flag
16787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16788 else
16789 ac_cpp_err=
16790 fi
16791else
16792 ac_cpp_err=yes
16793fi
16794if test -z "$ac_cpp_err"; then
16795 ac_header_preproc=yes
16796else
16797 echo "$as_me: failed program was:" >&5
16798sed 's/^/| /' conftest.$ac_ext >&5
16799
16800 ac_header_preproc=no
16801fi
16802
16803rm -f conftest.err conftest.$ac_ext
16804{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16805echo "${ECHO_T}$ac_header_preproc" >&6; }
16806
16807# So? What about this header?
16808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16809 yes:no: )
16810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16814 ac_header_preproc=yes
16815 ;;
16816 no:yes:* )
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16820echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16824echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16829 ( cat <<\_ASBOX
16830## ----------------------------------- ##
16831## Report this to llvmbugs@cs.uiuc.edu ##
16832## ----------------------------------- ##
16833_ASBOX
16834 ) | sed "s/^/$as_me: WARNING: /" >&2
16835 ;;
16836esac
16837{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16841else
16842 eval "$as_ac_Header=\$ac_header_preproc"
16843fi
16844ac_res=`eval echo '${'$as_ac_Header'}'`
16845 { echo "$as_me:$LINENO: result: $ac_res" >&5
16846echo "${ECHO_T}$ac_res" >&6; }
16847
16848fi
16849if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016850 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016851#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016852_ACEOF
16853 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016854
16855else
16856 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016857
16858fi
16859
Reid Spencerbe3e4192007-08-17 05:45:26 +000016860done
Reid Spencer1000b732006-12-01 00:37:14 +000016861
16862else
16863 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016864
16865fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016866
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016867if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016868
16869
16870for ac_header in ffi.h ffi/ffi.h
16871do
16872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16878fi
16879ac_res=`eval echo '${'$as_ac_Header'}'`
16880 { echo "$as_me:$LINENO: result: $ac_res" >&5
16881echo "${ECHO_T}$ac_res" >&6; }
16882else
16883 # Is the header compilable?
16884{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16886cat >conftest.$ac_ext <<_ACEOF
16887/* confdefs.h. */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h. */
16892$ac_includes_default
16893#include <$ac_header>
16894_ACEOF
16895rm -f conftest.$ac_objext
16896if { (ac_try="$ac_compile"
16897case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900esac
16901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_compile") 2>conftest.er1
16903 ac_status=$?
16904 grep -v '^ *+' conftest.er1 >conftest.err
16905 rm -f conftest.er1
16906 cat conftest.err >&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } &&
16909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16913esac
16914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; } &&
16919 { ac_try='test -s conftest.$ac_objext'
16920 { (case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16923esac
16924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_try") 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 ac_header_compiler=yes
16930else
16931 echo "$as_me: failed program was:" >&5
16932sed 's/^/| /' conftest.$ac_ext >&5
16933
16934 ac_header_compiler=no
16935fi
16936
16937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16939echo "${ECHO_T}$ac_header_compiler" >&6; }
16940
16941# Is the header present?
16942{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16944cat >conftest.$ac_ext <<_ACEOF
16945/* confdefs.h. */
16946_ACEOF
16947cat confdefs.h >>conftest.$ac_ext
16948cat >>conftest.$ac_ext <<_ACEOF
16949/* end confdefs.h. */
16950#include <$ac_header>
16951_ACEOF
16952if { (ac_try="$ac_cpp conftest.$ac_ext"
16953case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16956esac
16957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16959 ac_status=$?
16960 grep -v '^ *+' conftest.er1 >conftest.err
16961 rm -f conftest.er1
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } >/dev/null; then
16965 if test -s conftest.err; then
16966 ac_cpp_err=$ac_c_preproc_warn_flag
16967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16968 else
16969 ac_cpp_err=
16970 fi
16971else
16972 ac_cpp_err=yes
16973fi
16974if test -z "$ac_cpp_err"; then
16975 ac_header_preproc=yes
16976else
16977 echo "$as_me: failed program was:" >&5
16978sed 's/^/| /' conftest.$ac_ext >&5
16979
16980 ac_header_preproc=no
16981fi
16982
16983rm -f conftest.err conftest.$ac_ext
16984{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16985echo "${ECHO_T}$ac_header_preproc" >&6; }
16986
16987# So? What about this header?
16988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16989 yes:no: )
16990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16991echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16993echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16994 ac_header_preproc=yes
16995 ;;
16996 no:yes:* )
16997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16998echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17000echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17002echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17004echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17006echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17008echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17009 ( cat <<\_ASBOX
17010## ----------------------------------- ##
17011## Report this to llvmbugs@cs.uiuc.edu ##
17012## ----------------------------------- ##
17013_ASBOX
17014 ) | sed "s/^/$as_me: WARNING: /" >&2
17015 ;;
17016esac
17017{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021else
17022 eval "$as_ac_Header=\$ac_header_preproc"
17023fi
17024ac_res=`eval echo '${'$as_ac_Header'}'`
17025 { echo "$as_me:$LINENO: result: $ac_res" >&5
17026echo "${ECHO_T}$ac_res" >&6; }
17027
17028fi
17029if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017030 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017031#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017032_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017033
17034fi
17035
17036done
17037
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017038fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017039
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017040
Eric Christopher654dee42010-06-22 21:01:04 +000017041for ac_header in CrashReporterClient.h
17042do
17043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17049fi
17050ac_res=`eval echo '${'$as_ac_Header'}'`
17051 { echo "$as_me:$LINENO: result: $ac_res" >&5
17052echo "${ECHO_T}$ac_res" >&6; }
17053else
17054 # Is the header compilable?
17055{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17057cat >conftest.$ac_ext <<_ACEOF
17058/* confdefs.h. */
17059_ACEOF
17060cat confdefs.h >>conftest.$ac_ext
17061cat >>conftest.$ac_ext <<_ACEOF
17062/* end confdefs.h. */
17063$ac_includes_default
17064#include <$ac_header>
17065_ACEOF
17066rm -f conftest.$ac_objext
17067if { (ac_try="$ac_compile"
17068case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17071esac
17072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_compile") 2>conftest.er1
17074 ac_status=$?
17075 grep -v '^ *+' conftest.er1 >conftest.err
17076 rm -f conftest.er1
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17081 { (case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084esac
17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_try") 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; } &&
17090 { ac_try='test -s conftest.$ac_objext'
17091 { (case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17094esac
17095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_try") 2>&5
17097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; }; then
17100 ac_header_compiler=yes
17101else
17102 echo "$as_me: failed program was:" >&5
17103sed 's/^/| /' conftest.$ac_ext >&5
17104
17105 ac_header_compiler=no
17106fi
17107
17108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17110echo "${ECHO_T}$ac_header_compiler" >&6; }
17111
17112# Is the header present?
17113{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17115cat >conftest.$ac_ext <<_ACEOF
17116/* confdefs.h. */
17117_ACEOF
17118cat confdefs.h >>conftest.$ac_ext
17119cat >>conftest.$ac_ext <<_ACEOF
17120/* end confdefs.h. */
17121#include <$ac_header>
17122_ACEOF
17123if { (ac_try="$ac_cpp conftest.$ac_ext"
17124case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17127esac
17128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17130 ac_status=$?
17131 grep -v '^ *+' conftest.er1 >conftest.err
17132 rm -f conftest.er1
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } >/dev/null; then
17136 if test -s conftest.err; then
17137 ac_cpp_err=$ac_c_preproc_warn_flag
17138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17139 else
17140 ac_cpp_err=
17141 fi
17142else
17143 ac_cpp_err=yes
17144fi
17145if test -z "$ac_cpp_err"; then
17146 ac_header_preproc=yes
17147else
17148 echo "$as_me: failed program was:" >&5
17149sed 's/^/| /' conftest.$ac_ext >&5
17150
17151 ac_header_preproc=no
17152fi
17153
17154rm -f conftest.err conftest.$ac_ext
17155{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17156echo "${ECHO_T}$ac_header_preproc" >&6; }
17157
17158# So? What about this header?
17159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17160 yes:no: )
17161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17165 ac_header_preproc=yes
17166 ;;
17167 no:yes:* )
17168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17180 ( cat <<\_ASBOX
17181## ----------------------------------- ##
17182## Report this to llvmbugs@cs.uiuc.edu ##
17183## ----------------------------------- ##
17184_ASBOX
17185 ) | sed "s/^/$as_me: WARNING: /" >&2
17186 ;;
17187esac
17188{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17192else
17193 eval "$as_ac_Header=\$ac_header_preproc"
17194fi
17195ac_res=`eval echo '${'$as_ac_Header'}'`
17196 { echo "$as_me:$LINENO: result: $ac_res" >&5
17197echo "${ECHO_T}$ac_res" >&6; }
17198
17199fi
17200if test `eval echo '${'$as_ac_Header'}'` = yes; then
17201 cat >>confdefs.h <<_ACEOF
17202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17203_ACEOF
17204
17205fi
17206
17207done
17208
17209
17210
Reid Spencer8085cff2005-01-16 02:58:39 +000017211
Torok Edwin871384f2010-01-26 08:50:50 +000017212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017213 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17214echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17215if test "${ac_cv_huge_val_sanity+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017217else
17218
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017219 ac_ext=cpp
17220ac_cpp='$CXXCPP $CPPFLAGS'
17221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017224
Eric Christopherc7718502010-03-02 05:06:54 +000017225 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017226 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017227 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017228 ac_cv_huge_val_sanity=yes
17229else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017230 cat >conftest.$ac_ext <<_ACEOF
17231/* confdefs.h. */
17232_ACEOF
17233cat confdefs.h >>conftest.$ac_ext
17234cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017235/* end confdefs.h. */
17236#include <math.h>
17237int
17238main ()
17239{
17240double x = HUGE_VAL; return x != x;
17241 ;
17242 return 0;
17243}
17244_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017245rm -f conftest$ac_exeext
17246if { (ac_try="$ac_link"
17247case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250esac
17251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_link") 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17256 { (case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17259esac
17260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_try") 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017265 ac_cv_huge_val_sanity=yes
17266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017267 echo "$as_me: program exited with status $ac_status" >&5
17268echo "$as_me: failed program was:" >&5
17269sed 's/^/| /' conftest.$ac_ext >&5
17270
17271( exit $ac_status )
17272ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017273fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017274rm -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 +000017275fi
17276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017277
Eric Christopherc7718502010-03-02 05:06:54 +000017278 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017279 ac_ext=c
17280ac_cpp='$CPP $CPPFLAGS'
17281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17283ac_compiler_gnu=$ac_cv_c_compiler_gnu
17284
17285
17286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017287{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17288echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017289 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17290
17291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017292{ echo "$as_me:$LINENO: checking for pid_t" >&5
17293echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17294if test "${ac_cv_type_pid_t+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296else
17297 cat >conftest.$ac_ext <<_ACEOF
17298/* confdefs.h. */
17299_ACEOF
17300cat confdefs.h >>conftest.$ac_ext
17301cat >>conftest.$ac_ext <<_ACEOF
17302/* end confdefs.h. */
17303$ac_includes_default
17304typedef pid_t ac__type_new_;
17305int
17306main ()
17307{
17308if ((ac__type_new_ *) 0)
17309 return 0;
17310if (sizeof (ac__type_new_))
17311 return 0;
17312 ;
17313 return 0;
17314}
17315_ACEOF
17316rm -f conftest.$ac_objext
17317if { (ac_try="$ac_compile"
17318case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321esac
17322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_compile") 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17331 { (case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17334esac
17335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_try") 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; } &&
17340 { ac_try='test -s conftest.$ac_objext'
17341 { (case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17344esac
17345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_try") 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 ac_cv_type_pid_t=yes
17351else
17352 echo "$as_me: failed program was:" >&5
17353sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017355 ac_cv_type_pid_t=no
17356fi
17357
17358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359fi
17360{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17361echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17362if test $ac_cv_type_pid_t = yes; then
17363 :
John Criswell7a73b802003-06-30 21:59:07 +000017364else
17365
17366cat >>confdefs.h <<_ACEOF
17367#define pid_t int
17368_ACEOF
17369
17370fi
17371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017372{ echo "$as_me:$LINENO: checking for size_t" >&5
17373echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17374if test "${ac_cv_type_size_t+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376else
17377 cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383$ac_includes_default
17384typedef size_t ac__type_new_;
17385int
17386main ()
17387{
17388if ((ac__type_new_ *) 0)
17389 return 0;
17390if (sizeof (ac__type_new_))
17391 return 0;
17392 ;
17393 return 0;
17394}
17395_ACEOF
17396rm -f conftest.$ac_objext
17397if { (ac_try="$ac_compile"
17398case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17401esac
17402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_compile") 2>conftest.er1
17404 ac_status=$?
17405 grep -v '^ *+' conftest.er1 >conftest.err
17406 rm -f conftest.er1
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
17410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17411 { (case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17414esac
17415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_try") 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; } &&
17420 { ac_try='test -s conftest.$ac_objext'
17421 { (case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424esac
17425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_try") 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; }; then
17430 ac_cv_type_size_t=yes
17431else
17432 echo "$as_me: failed program was:" >&5
17433sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017435 ac_cv_type_size_t=no
17436fi
17437
17438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17439fi
17440{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17441echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17442if test $ac_cv_type_size_t = yes; then
17443 :
John Criswell7a73b802003-06-30 21:59:07 +000017444else
17445
17446cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017447#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017448_ACEOF
17449
17450fi
17451
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017452
17453cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017454#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017455_ACEOF
17456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017457{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17458echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17459if test "${ac_cv_struct_tm+set}" = set; then
17460 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017461else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017462 cat >conftest.$ac_ext <<_ACEOF
17463/* confdefs.h. */
17464_ACEOF
17465cat confdefs.h >>conftest.$ac_ext
17466cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017467/* end confdefs.h. */
17468#include <sys/types.h>
17469#include <time.h>
17470
17471int
17472main ()
17473{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017474struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017475 ;
17476 return 0;
17477}
17478_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017479rm -f conftest.$ac_objext
17480if { (ac_try="$ac_compile"
17481case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484esac
17485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_compile") 2>conftest.er1
17487 ac_status=$?
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
17493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17494 { (case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17497esac
17498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499 (eval "$ac_try") 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; } &&
17503 { ac_try='test -s conftest.$ac_objext'
17504 { (case "(($ac_try" in
17505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506 *) ac_try_echo=$ac_try;;
17507esac
17508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509 (eval "$ac_try") 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017513 ac_cv_struct_tm=time.h
17514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017515 echo "$as_me: failed program was:" >&5
17516sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017520
Reid Spencera773bd52006-08-04 18:18:08 +000017521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017523{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17524echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017525if test $ac_cv_struct_tm = sys/time.h; then
17526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017527cat >>confdefs.h <<\_ACEOF
17528#define TM_IN_SYS_TIME 1
17529_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017530
17531fi
17532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017533{ echo "$as_me:$LINENO: checking for int64_t" >&5
17534echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17535if test "${ac_cv_type_int64_t+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537else
17538 cat >conftest.$ac_ext <<_ACEOF
17539/* confdefs.h. */
17540_ACEOF
17541cat confdefs.h >>conftest.$ac_ext
17542cat >>conftest.$ac_ext <<_ACEOF
17543/* end confdefs.h. */
17544$ac_includes_default
17545typedef int64_t ac__type_new_;
17546int
17547main ()
17548{
17549if ((ac__type_new_ *) 0)
17550 return 0;
17551if (sizeof (ac__type_new_))
17552 return 0;
17553 ;
17554 return 0;
17555}
17556_ACEOF
17557rm -f conftest.$ac_objext
17558if { (ac_try="$ac_compile"
17559case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562esac
17563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17565 ac_status=$?
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17572 { (case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17575esac
17576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_try") 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
17582 { (case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17585esac
17586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_try") 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591 ac_cv_type_int64_t=yes
17592else
17593 echo "$as_me: failed program was:" >&5
17594sed 's/^/| /' conftest.$ac_ext >&5
17595
17596 ac_cv_type_int64_t=no
17597fi
17598
17599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17600fi
17601{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17602echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17603if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017604
17605cat >>confdefs.h <<_ACEOF
17606#define HAVE_INT64_T 1
17607_ACEOF
17608
17609
17610else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017611 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17612echo "$as_me: error: Type int64_t required but not found" >&2;}
17613 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017614fi
17615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017616{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17617echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17618if test "${ac_cv_type_uint64_t+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17620else
17621 cat >conftest.$ac_ext <<_ACEOF
17622/* confdefs.h. */
17623_ACEOF
17624cat confdefs.h >>conftest.$ac_ext
17625cat >>conftest.$ac_ext <<_ACEOF
17626/* end confdefs.h. */
17627$ac_includes_default
17628typedef uint64_t ac__type_new_;
17629int
17630main ()
17631{
17632if ((ac__type_new_ *) 0)
17633 return 0;
17634if (sizeof (ac__type_new_))
17635 return 0;
17636 ;
17637 return 0;
17638}
17639_ACEOF
17640rm -f conftest.$ac_objext
17641if { (ac_try="$ac_compile"
17642case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17645esac
17646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_compile") 2>conftest.er1
17648 ac_status=$?
17649 grep -v '^ *+' conftest.er1 >conftest.err
17650 rm -f conftest.er1
17651 cat conftest.err >&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17655 { (case "(($ac_try" in
17656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657 *) ac_try_echo=$ac_try;;
17658esac
17659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660 (eval "$ac_try") 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest.$ac_objext'
17665 { (case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17668esac
17669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_try") 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_type_uint64_t=yes
17675else
17676 echo "$as_me: failed program was:" >&5
17677sed 's/^/| /' conftest.$ac_ext >&5
17678
17679 ac_cv_type_uint64_t=no
17680fi
17681
17682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17683fi
17684{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17685echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17686if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017687
17688cat >>confdefs.h <<_ACEOF
17689#define HAVE_UINT64_T 1
17690_ACEOF
17691
17692
17693else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017694 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17695echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17696if test "${ac_cv_type_u_int64_t+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698else
17699 cat >conftest.$ac_ext <<_ACEOF
17700/* confdefs.h. */
17701_ACEOF
17702cat confdefs.h >>conftest.$ac_ext
17703cat >>conftest.$ac_ext <<_ACEOF
17704/* end confdefs.h. */
17705$ac_includes_default
17706typedef u_int64_t ac__type_new_;
17707int
17708main ()
17709{
17710if ((ac__type_new_ *) 0)
17711 return 0;
17712if (sizeof (ac__type_new_))
17713 return 0;
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext
17719if { (ac_try="$ac_compile"
17720case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723esac
17724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_compile") 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736esac
17737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest.$ac_objext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746esac
17747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_type_u_int64_t=yes
17753else
17754 echo "$as_me: failed program was:" >&5
17755sed 's/^/| /' conftest.$ac_ext >&5
17756
17757 ac_cv_type_u_int64_t=no
17758fi
17759
17760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17761fi
17762{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17763echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17764if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017765
17766cat >>confdefs.h <<_ACEOF
17767#define HAVE_U_INT64_T 1
17768_ACEOF
17769
17770
Misha Brukmanceca9042004-09-02 23:02:30 +000017771else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017772 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17773echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17774 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017775fi
17776
John Criswell679ff312004-09-02 18:44:44 +000017777fi
17778
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017779
17780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017781
17782
17783
17784
17785
17786
17787
Reid Spencerdf3be822006-01-23 08:15:53 +000017788for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017789do
17790as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17791{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17792echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17793if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795else
17796 cat >conftest.$ac_ext <<_ACEOF
17797/* confdefs.h. */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
17801/* end confdefs.h. */
17802/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17804#define $ac_func innocuous_$ac_func
17805
17806/* System header to define __stub macros and hopefully few prototypes,
17807 which can conflict with char $ac_func (); below.
17808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17809 <limits.h> exists even on freestanding compilers. */
17810
17811#ifdef __STDC__
17812# include <limits.h>
17813#else
17814# include <assert.h>
17815#endif
17816
17817#undef $ac_func
17818
17819/* Override any GCC internal prototype to avoid an error.
17820 Use char because int might match the return type of a GCC
17821 builtin and then its argument prototype would still apply. */
17822#ifdef __cplusplus
17823extern "C"
17824#endif
17825char $ac_func ();
17826/* The GNU C library defines this for functions which it implements
17827 to always fail with ENOSYS. Some functions are actually named
17828 something starting with __ and the normal name is an alias. */
17829#if defined __stub_$ac_func || defined __stub___$ac_func
17830choke me
17831#endif
17832
17833int
17834main ()
17835{
17836return $ac_func ();
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext conftest$ac_exeext
17842if { (ac_try="$ac_link"
17843case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17846esac
17847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_link") 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest$ac_exeext'
17866 { (case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17869esac
17870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_try") 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 eval "$as_ac_var=yes"
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 eval "$as_ac_var=no"
17881fi
17882
17883rm -f core conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17885fi
17886ac_res=`eval echo '${'$as_ac_var'}'`
17887 { echo "$as_me:$LINENO: result: $ac_res" >&5
17888echo "${ECHO_T}$ac_res" >&6; }
17889if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017890 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017892_ACEOF
17893
17894fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017895done
John Criswell7a73b802003-06-30 21:59:07 +000017896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017897
17898
17899
17900
Reid Spencer96cf5872007-07-13 10:05:30 +000017901for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017902do
17903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17904{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17906if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908else
17909 cat >conftest.$ac_ext <<_ACEOF
17910/* confdefs.h. */
17911_ACEOF
17912cat confdefs.h >>conftest.$ac_ext
17913cat >>conftest.$ac_ext <<_ACEOF
17914/* end confdefs.h. */
17915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17917#define $ac_func innocuous_$ac_func
17918
17919/* System header to define __stub macros and hopefully few prototypes,
17920 which can conflict with char $ac_func (); below.
17921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17922 <limits.h> exists even on freestanding compilers. */
17923
17924#ifdef __STDC__
17925# include <limits.h>
17926#else
17927# include <assert.h>
17928#endif
17929
17930#undef $ac_func
17931
17932/* Override any GCC internal prototype to avoid an error.
17933 Use char because int might match the return type of a GCC
17934 builtin and then its argument prototype would still apply. */
17935#ifdef __cplusplus
17936extern "C"
17937#endif
17938char $ac_func ();
17939/* The GNU C library defines this for functions which it implements
17940 to always fail with ENOSYS. Some functions are actually named
17941 something starting with __ and the normal name is an alias. */
17942#if defined __stub_$ac_func || defined __stub___$ac_func
17943choke me
17944#endif
17945
17946int
17947main ()
17948{
17949return $ac_func ();
17950 ;
17951 return 0;
17952}
17953_ACEOF
17954rm -f conftest.$ac_objext conftest$ac_exeext
17955if { (ac_try="$ac_link"
17956case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17959esac
17960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_link") 2>conftest.er1
17962 ac_status=$?
17963 grep -v '^ *+' conftest.er1 >conftest.err
17964 rm -f conftest.er1
17965 cat conftest.err >&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
17968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17969 { (case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17972esac
17973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_try") 2>&5
17975 ac_status=$?
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; } &&
17978 { ac_try='test -s conftest$ac_exeext'
17979 { (case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17982esac
17983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_try") 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; }; then
17988 eval "$as_ac_var=yes"
17989else
17990 echo "$as_me: failed program was:" >&5
17991sed 's/^/| /' conftest.$ac_ext >&5
17992
17993 eval "$as_ac_var=no"
17994fi
17995
17996rm -f core conftest.err conftest.$ac_objext \
17997 conftest$ac_exeext conftest.$ac_ext
17998fi
17999ac_res=`eval echo '${'$as_ac_var'}'`
18000 { echo "$as_me:$LINENO: result: $ac_res" >&5
18001echo "${ECHO_T}$ac_res" >&6; }
18002if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018003 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018005_ACEOF
18006
18007fi
18008done
18009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018010
18011
18012
18013
18014
Reid Spencerb90645c2007-02-16 19:17:20 +000018015for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018016do
18017as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18018{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18019echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18020if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18022else
18023 cat >conftest.$ac_ext <<_ACEOF
18024/* confdefs.h. */
18025_ACEOF
18026cat confdefs.h >>conftest.$ac_ext
18027cat >>conftest.$ac_ext <<_ACEOF
18028/* end confdefs.h. */
18029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18031#define $ac_func innocuous_$ac_func
18032
18033/* System header to define __stub macros and hopefully few prototypes,
18034 which can conflict with char $ac_func (); below.
18035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18036 <limits.h> exists even on freestanding compilers. */
18037
18038#ifdef __STDC__
18039# include <limits.h>
18040#else
18041# include <assert.h>
18042#endif
18043
18044#undef $ac_func
18045
18046/* Override any GCC internal prototype to avoid an error.
18047 Use char because int might match the return type of a GCC
18048 builtin and then its argument prototype would still apply. */
18049#ifdef __cplusplus
18050extern "C"
18051#endif
18052char $ac_func ();
18053/* The GNU C library defines this for functions which it implements
18054 to always fail with ENOSYS. Some functions are actually named
18055 something starting with __ and the normal name is an alias. */
18056#if defined __stub_$ac_func || defined __stub___$ac_func
18057choke me
18058#endif
18059
18060int
18061main ()
18062{
18063return $ac_func ();
18064 ;
18065 return 0;
18066}
18067_ACEOF
18068rm -f conftest.$ac_objext conftest$ac_exeext
18069if { (ac_try="$ac_link"
18070case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18073esac
18074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_link") 2>conftest.er1
18076 ac_status=$?
18077 grep -v '^ *+' conftest.er1 >conftest.err
18078 rm -f conftest.er1
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } &&
18082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18083 { (case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18086esac
18087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_try") 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest$ac_exeext'
18093 { (case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18096esac
18097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_try") 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 eval "$as_ac_var=yes"
18103else
18104 echo "$as_me: failed program was:" >&5
18105sed 's/^/| /' conftest.$ac_ext >&5
18106
18107 eval "$as_ac_var=no"
18108fi
18109
18110rm -f core conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
18112fi
18113ac_res=`eval echo '${'$as_ac_var'}'`
18114 { echo "$as_me:$LINENO: result: $ac_res" >&5
18115echo "${ECHO_T}$ac_res" >&6; }
18116if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018117 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018118#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018119_ACEOF
18120
18121fi
18122done
18123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018124
18125
18126
Reid Spencerb90645c2007-02-16 19:17:20 +000018127for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018128do
18129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18130{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18132if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
18134else
18135 cat >conftest.$ac_ext <<_ACEOF
18136/* confdefs.h. */
18137_ACEOF
18138cat confdefs.h >>conftest.$ac_ext
18139cat >>conftest.$ac_ext <<_ACEOF
18140/* end confdefs.h. */
18141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18143#define $ac_func innocuous_$ac_func
18144
18145/* System header to define __stub macros and hopefully few prototypes,
18146 which can conflict with char $ac_func (); below.
18147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18148 <limits.h> exists even on freestanding compilers. */
18149
18150#ifdef __STDC__
18151# include <limits.h>
18152#else
18153# include <assert.h>
18154#endif
18155
18156#undef $ac_func
18157
18158/* Override any GCC internal prototype to avoid an error.
18159 Use char because int might match the return type of a GCC
18160 builtin and then its argument prototype would still apply. */
18161#ifdef __cplusplus
18162extern "C"
18163#endif
18164char $ac_func ();
18165/* The GNU C library defines this for functions which it implements
18166 to always fail with ENOSYS. Some functions are actually named
18167 something starting with __ and the normal name is an alias. */
18168#if defined __stub_$ac_func || defined __stub___$ac_func
18169choke me
18170#endif
18171
18172int
18173main ()
18174{
18175return $ac_func ();
18176 ;
18177 return 0;
18178}
18179_ACEOF
18180rm -f conftest.$ac_objext conftest$ac_exeext
18181if { (ac_try="$ac_link"
18182case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18185esac
18186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_link") 2>conftest.er1
18188 ac_status=$?
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18195 { (case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198esac
18199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_try") 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208esac
18209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
18214 eval "$as_ac_var=yes"
18215else
18216 echo "$as_me: failed program was:" >&5
18217sed 's/^/| /' conftest.$ac_ext >&5
18218
18219 eval "$as_ac_var=no"
18220fi
18221
18222rm -f core conftest.err conftest.$ac_objext \
18223 conftest$ac_exeext conftest.$ac_ext
18224fi
18225ac_res=`eval echo '${'$as_ac_var'}'`
18226 { echo "$as_me:$LINENO: result: $ac_res" >&5
18227echo "${ECHO_T}$ac_res" >&6; }
18228if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018229 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018230#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018231_ACEOF
18232
18233fi
18234done
18235
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018236
18237
18238
18239
18240
Eric Christophere4291822010-04-16 05:14:21 +000018241
18242for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018243do
18244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18245{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18247if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18249else
18250 cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18258#define $ac_func innocuous_$ac_func
18259
18260/* System header to define __stub macros and hopefully few prototypes,
18261 which can conflict with char $ac_func (); below.
18262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18263 <limits.h> exists even on freestanding compilers. */
18264
18265#ifdef __STDC__
18266# include <limits.h>
18267#else
18268# include <assert.h>
18269#endif
18270
18271#undef $ac_func
18272
18273/* Override any GCC internal prototype to avoid an error.
18274 Use char because int might match the return type of a GCC
18275 builtin and then its argument prototype would still apply. */
18276#ifdef __cplusplus
18277extern "C"
18278#endif
18279char $ac_func ();
18280/* The GNU C library defines this for functions which it implements
18281 to always fail with ENOSYS. Some functions are actually named
18282 something starting with __ and the normal name is an alias. */
18283#if defined __stub_$ac_func || defined __stub___$ac_func
18284choke me
18285#endif
18286
18287int
18288main ()
18289{
18290return $ac_func ();
18291 ;
18292 return 0;
18293}
18294_ACEOF
18295rm -f conftest.$ac_objext conftest$ac_exeext
18296if { (ac_try="$ac_link"
18297case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300esac
18301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_link") 2>conftest.er1
18303 ac_status=$?
18304 grep -v '^ *+' conftest.er1 >conftest.err
18305 rm -f conftest.er1
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18310 { (case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18313esac
18314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_try") 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest$ac_exeext'
18320 { (case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323esac
18324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_try") 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; }; then
18329 eval "$as_ac_var=yes"
18330else
18331 echo "$as_me: failed program was:" >&5
18332sed 's/^/| /' conftest.$ac_ext >&5
18333
18334 eval "$as_ac_var=no"
18335fi
18336
18337rm -f core conftest.err conftest.$ac_objext \
18338 conftest$ac_exeext conftest.$ac_ext
18339fi
18340ac_res=`eval echo '${'$as_ac_var'}'`
18341 { echo "$as_me:$LINENO: result: $ac_res" >&5
18342echo "${ECHO_T}$ac_res" >&6; }
18343if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018344 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018345#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018346_ACEOF
18347
18348fi
18349done
Reid Spencerdf3be822006-01-23 08:15:53 +000018350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018351
18352
18353
18354
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018355for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018356do
18357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18358{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18360if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18362else
18363 cat >conftest.$ac_ext <<_ACEOF
18364/* confdefs.h. */
18365_ACEOF
18366cat confdefs.h >>conftest.$ac_ext
18367cat >>conftest.$ac_ext <<_ACEOF
18368/* end confdefs.h. */
18369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18371#define $ac_func innocuous_$ac_func
18372
18373/* System header to define __stub macros and hopefully few prototypes,
18374 which can conflict with char $ac_func (); below.
18375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18376 <limits.h> exists even on freestanding compilers. */
18377
18378#ifdef __STDC__
18379# include <limits.h>
18380#else
18381# include <assert.h>
18382#endif
18383
18384#undef $ac_func
18385
18386/* Override any GCC internal prototype to avoid an error.
18387 Use char because int might match the return type of a GCC
18388 builtin and then its argument prototype would still apply. */
18389#ifdef __cplusplus
18390extern "C"
18391#endif
18392char $ac_func ();
18393/* The GNU C library defines this for functions which it implements
18394 to always fail with ENOSYS. Some functions are actually named
18395 something starting with __ and the normal name is an alias. */
18396#if defined __stub_$ac_func || defined __stub___$ac_func
18397choke me
18398#endif
18399
18400int
18401main ()
18402{
18403return $ac_func ();
18404 ;
18405 return 0;
18406}
18407_ACEOF
18408rm -f conftest.$ac_objext conftest$ac_exeext
18409if { (ac_try="$ac_link"
18410case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413esac
18414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_link") 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18426esac
18427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest$ac_exeext'
18433 { (case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436esac
18437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_try") 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 eval "$as_ac_var=yes"
18443else
18444 echo "$as_me: failed program was:" >&5
18445sed 's/^/| /' conftest.$ac_ext >&5
18446
18447 eval "$as_ac_var=no"
18448fi
18449
18450rm -f core conftest.err conftest.$ac_objext \
18451 conftest$ac_exeext conftest.$ac_ext
18452fi
18453ac_res=`eval echo '${'$as_ac_var'}'`
18454 { echo "$as_me:$LINENO: result: $ac_res" >&5
18455echo "${ECHO_T}$ac_res" >&6; }
18456if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018457 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018459_ACEOF
18460
18461fi
18462done
18463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018464
18465
18466
18467
Chris Lattner511f11d2005-11-14 07:25:50 +000018468for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018469do
18470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18471{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18473if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18475else
18476 cat >conftest.$ac_ext <<_ACEOF
18477/* confdefs.h. */
18478_ACEOF
18479cat confdefs.h >>conftest.$ac_ext
18480cat >>conftest.$ac_ext <<_ACEOF
18481/* end confdefs.h. */
18482/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18484#define $ac_func innocuous_$ac_func
18485
18486/* System header to define __stub macros and hopefully few prototypes,
18487 which can conflict with char $ac_func (); below.
18488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18489 <limits.h> exists even on freestanding compilers. */
18490
18491#ifdef __STDC__
18492# include <limits.h>
18493#else
18494# include <assert.h>
18495#endif
18496
18497#undef $ac_func
18498
18499/* Override any GCC internal prototype to avoid an error.
18500 Use char because int might match the return type of a GCC
18501 builtin and then its argument prototype would still apply. */
18502#ifdef __cplusplus
18503extern "C"
18504#endif
18505char $ac_func ();
18506/* The GNU C library defines this for functions which it implements
18507 to always fail with ENOSYS. Some functions are actually named
18508 something starting with __ and the normal name is an alias. */
18509#if defined __stub_$ac_func || defined __stub___$ac_func
18510choke me
18511#endif
18512
18513int
18514main ()
18515{
18516return $ac_func ();
18517 ;
18518 return 0;
18519}
18520_ACEOF
18521rm -f conftest.$ac_objext conftest$ac_exeext
18522if { (ac_try="$ac_link"
18523case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526esac
18527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_link") 2>conftest.er1
18529 ac_status=$?
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18536 { (case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18539esac
18540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_try") 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; } &&
18545 { ac_try='test -s conftest$ac_exeext'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549esac
18550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 eval "$as_ac_var=yes"
18556else
18557 echo "$as_me: failed program was:" >&5
18558sed 's/^/| /' conftest.$ac_ext >&5
18559
18560 eval "$as_ac_var=no"
18561fi
18562
18563rm -f core conftest.err conftest.$ac_objext \
18564 conftest$ac_exeext conftest.$ac_ext
18565fi
18566ac_res=`eval echo '${'$as_ac_var'}'`
18567 { echo "$as_me:$LINENO: result: $ac_res" >&5
18568echo "${ECHO_T}$ac_res" >&6; }
18569if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018570 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018572_ACEOF
18573
18574fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018575done
John Criswell7a73b802003-06-30 21:59:07 +000018576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018577
18578
18579
18580
Reid Spencerafa22e22006-12-10 23:29:19 +000018581for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018582do
18583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18584{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18586if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18588else
18589 cat >conftest.$ac_ext <<_ACEOF
18590/* confdefs.h. */
18591_ACEOF
18592cat confdefs.h >>conftest.$ac_ext
18593cat >>conftest.$ac_ext <<_ACEOF
18594/* end confdefs.h. */
18595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18597#define $ac_func innocuous_$ac_func
18598
18599/* System header to define __stub macros and hopefully few prototypes,
18600 which can conflict with char $ac_func (); below.
18601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18602 <limits.h> exists even on freestanding compilers. */
18603
18604#ifdef __STDC__
18605# include <limits.h>
18606#else
18607# include <assert.h>
18608#endif
18609
18610#undef $ac_func
18611
18612/* Override any GCC internal prototype to avoid an error.
18613 Use char because int might match the return type of a GCC
18614 builtin and then its argument prototype would still apply. */
18615#ifdef __cplusplus
18616extern "C"
18617#endif
18618char $ac_func ();
18619/* The GNU C library defines this for functions which it implements
18620 to always fail with ENOSYS. Some functions are actually named
18621 something starting with __ and the normal name is an alias. */
18622#if defined __stub_$ac_func || defined __stub___$ac_func
18623choke me
18624#endif
18625
18626int
18627main ()
18628{
18629return $ac_func ();
18630 ;
18631 return 0;
18632}
18633_ACEOF
18634rm -f conftest.$ac_objext conftest$ac_exeext
18635if { (ac_try="$ac_link"
18636case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18639esac
18640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_link") 2>conftest.er1
18642 ac_status=$?
18643 grep -v '^ *+' conftest.er1 >conftest.err
18644 rm -f conftest.er1
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18649 { (case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18652esac
18653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_try") 2>&5
18655 ac_status=$?
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; } &&
18658 { ac_try='test -s conftest$ac_exeext'
18659 { (case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18662esac
18663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_try") 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 eval "$as_ac_var=yes"
18669else
18670 echo "$as_me: failed program was:" >&5
18671sed 's/^/| /' conftest.$ac_ext >&5
18672
18673 eval "$as_ac_var=no"
18674fi
18675
18676rm -f core conftest.err conftest.$ac_objext \
18677 conftest$ac_exeext conftest.$ac_ext
18678fi
18679ac_res=`eval echo '${'$as_ac_var'}'`
18680 { echo "$as_me:$LINENO: result: $ac_res" >&5
18681echo "${ECHO_T}$ac_res" >&6; }
18682if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018683 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018684#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018685_ACEOF
18686
18687fi
18688done
18689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018690{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18691echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18692if test "${llvm_cv_c_printf_a+set}" = set; then
18693 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018694else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018695 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018696ac_cpp='$CPP $CPPFLAGS'
18697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18699ac_compiler_gnu=$ac_cv_c_compiler_gnu
18700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018701 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018702 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018703else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018704 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018706 /* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018711
John Criswella0137d32003-10-13 16:22:01 +000018712#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018713#include <stdlib.h>
18714
John Criswella0137d32003-10-13 16:22:01 +000018715int
18716main ()
18717{
18718
Reid Spencer2706f8c2004-09-19 23:53:36 +000018719volatile double A, B;
18720char Buffer[100];
18721A = 1;
18722A /= 10.0;
18723sprintf(Buffer, "%a", A);
18724B = atof(Buffer);
18725if (A != B)
18726 return (1);
18727if (A != 0x1.999999999999ap-4)
18728 return (1);
18729return (0);
John Criswella0137d32003-10-13 16:22:01 +000018730 ;
18731 return 0;
18732}
18733_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018734rm -f conftest$ac_exeext
18735if { (ac_try="$ac_link"
18736case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18739esac
18740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_link") 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18745 { (case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748esac
18749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_try") 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018754 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018756 echo "$as_me: program exited with status $ac_status" >&5
18757echo "$as_me: failed program was:" >&5
18758sed 's/^/| /' conftest.$ac_ext >&5
18759
18760( exit $ac_status )
18761llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018763rm -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 +000018764fi
Reid Spencera773bd52006-08-04 18:18:08 +000018765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018766
Reid Spencer2706f8c2004-09-19 23:53:36 +000018767 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018768ac_cpp='$CPP $CPPFLAGS'
18769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18771ac_compiler_gnu=$ac_cv_c_compiler_gnu
18772
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018773fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018774{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18775echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018776 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018778cat >>confdefs.h <<\_ACEOF
18779#define HAVE_PRINTF_A 1
18780_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018781
Reid Spencer2706f8c2004-09-19 23:53:36 +000018782 fi
John Criswella0137d32003-10-13 16:22:01 +000018783
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018785{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18786echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18787if test "${ac_cv_func_rand48+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018789else
Reid Spencera773bd52006-08-04 18:18:08 +000018790 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018791ac_cpp='$CXXCPP $CPPFLAGS'
18792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018796 cat >conftest.$ac_ext <<_ACEOF
18797/* confdefs.h. */
18798_ACEOF
18799cat confdefs.h >>conftest.$ac_ext
18800cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018801/* end confdefs.h. */
18802#include <stdlib.h>
18803int
18804main ()
18805{
18806srand48(0);lrand48();drand48();
18807 ;
18808 return 0;
18809}
18810_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018811rm -f conftest.$ac_objext
18812if { (ac_try="$ac_compile"
18813case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18816esac
18817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818 (eval "$ac_compile") 2>conftest.er1
18819 ac_status=$?
18820 grep -v '^ *+' conftest.er1 >conftest.err
18821 rm -f conftest.er1
18822 cat conftest.err >&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18826 { (case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18829esac
18830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_try") 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest.$ac_objext'
18836 { (case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839esac
18840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_try") 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018845 ac_cv_func_rand48=yes
18846else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018847 echo "$as_me: failed program was:" >&5
18848sed 's/^/| /' conftest.$ac_ext >&5
18849
18850 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018851fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018852
Reid Spencera773bd52006-08-04 18:18:08 +000018853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018854 ac_ext=c
18855ac_cpp='$CPP $CPPFLAGS'
18856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858ac_compiler_gnu=$ac_cv_c_compiler_gnu
18859
18860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018861{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18862echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018863
18864if test "$ac_cv_func_rand48" = "yes" ; then
18865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018866cat >>confdefs.h <<\_ACEOF
18867#define HAVE_RAND48 1
18868_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018869
18870fi
John Criswell0021c312004-02-13 21:57:29 +000018871
18872
Torok Edwin871384f2010-01-26 08:50:50 +000018873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018874{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18875echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18876if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18877 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018878else
Reid Spencera773bd52006-08-04 18:18:08 +000018879 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018880ac_cpp='$CXXCPP $CPPFLAGS'
18881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018885 cat >conftest.$ac_ext <<_ACEOF
18886/* confdefs.h. */
18887_ACEOF
18888cat confdefs.h >>conftest.$ac_ext
18889cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018890/* end confdefs.h. */
18891#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018892int
18893main ()
18894{
18895float f; isnan(f);
18896 ;
18897 return 0;
18898}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018899_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018900rm -f conftest.$ac_objext
18901if { (ac_try="$ac_compile"
18902case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18905esac
18906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_compile") 2>conftest.er1
18908 ac_status=$?
18909 grep -v '^ *+' conftest.er1 >conftest.err
18910 rm -f conftest.er1
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
18914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18915 { (case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18918esac
18919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_try") 2>&5
18921 ac_status=$?
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest.$ac_objext'
18925 { (case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18928esac
18929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_try") 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018934 ac_cv_func_isnan_in_math_h=yes
18935else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018936 echo "$as_me: failed program was:" >&5
18937sed 's/^/| /' conftest.$ac_ext >&5
18938
18939 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018940fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018941
Reid Spencera773bd52006-08-04 18:18:08 +000018942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018943 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018944ac_cpp='$CPP $CPPFLAGS'
18945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18947ac_compiler_gnu=$ac_cv_c_compiler_gnu
18948
18949fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018950{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18951echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018952
18953
18954if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018956cat >>confdefs.h <<\_ACEOF
18957#define HAVE_ISNAN_IN_MATH_H 1
18958_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018959
Reid Spencerabec8f92004-10-27 23:03:44 +000018960fi
18961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018962{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18963echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18964if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018966else
Reid Spencera773bd52006-08-04 18:18:08 +000018967 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018968ac_cpp='$CXXCPP $CPPFLAGS'
18969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018973 cat >conftest.$ac_ext <<_ACEOF
18974/* confdefs.h. */
18975_ACEOF
18976cat confdefs.h >>conftest.$ac_ext
18977cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018978/* end confdefs.h. */
18979#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018980int
18981main ()
18982{
18983float f; isnan(f);
18984 ;
18985 return 0;
18986}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018987_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018988rm -f conftest.$ac_objext
18989if { (ac_try="$ac_compile"
18990case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18993esac
18994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_compile") 2>conftest.er1
18996 ac_status=$?
18997 grep -v '^ *+' conftest.er1 >conftest.err
18998 rm -f conftest.er1
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } &&
19002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19003 { (case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19006esac
19007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_try") 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; } &&
19012 { ac_try='test -s conftest.$ac_objext'
19013 { (case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19016esac
19017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_try") 2>&5
19019 ac_status=$?
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019022 ac_cv_func_isnan_in_cmath=yes
19023else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019024 echo "$as_me: failed program was:" >&5
19025sed 's/^/| /' conftest.$ac_ext >&5
19026
19027 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019028fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019029
Reid Spencera773bd52006-08-04 18:18:08 +000019030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019031 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019032ac_cpp='$CPP $CPPFLAGS'
19033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19035ac_compiler_gnu=$ac_cv_c_compiler_gnu
19036
19037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019038{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19039echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019040
19041if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019043cat >>confdefs.h <<\_ACEOF
19044#define HAVE_ISNAN_IN_CMATH 1
19045_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019046
Reid Spencerabec8f92004-10-27 23:03:44 +000019047fi
19048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019049{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19050echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19051if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019053else
Reid Spencera773bd52006-08-04 18:18:08 +000019054 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019055ac_cpp='$CXXCPP $CPPFLAGS'
19056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019060 cat >conftest.$ac_ext <<_ACEOF
19061/* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019065/* end confdefs.h. */
19066#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019067int
19068main ()
19069{
19070float f; std::isnan(f);
19071 ;
19072 return 0;
19073}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019074_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019075rm -f conftest.$ac_objext
19076if { (ac_try="$ac_compile"
19077case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19080esac
19081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_compile") 2>conftest.er1
19083 ac_status=$?
19084 grep -v '^ *+' conftest.er1 >conftest.err
19085 rm -f conftest.er1
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } &&
19089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19090 { (case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19093esac
19094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_try") 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; } &&
19099 { ac_try='test -s conftest.$ac_objext'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019109 ac_cv_func_std_isnan_in_cmath=yes
19110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019111 echo "$as_me: failed program was:" >&5
19112sed 's/^/| /' conftest.$ac_ext >&5
19113
19114 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019116
Reid Spencera773bd52006-08-04 18:18:08 +000019117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019118 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019119ac_cpp='$CPP $CPPFLAGS'
19120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19122ac_compiler_gnu=$ac_cv_c_compiler_gnu
19123
19124fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019125{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19126echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019127
19128if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019130cat >>confdefs.h <<\_ACEOF
19131#define HAVE_STD_ISNAN_IN_CMATH 1
19132_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019133
Reid Spencerabec8f92004-10-27 23:03:44 +000019134fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019135
19136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019137{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19138echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19139if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019141else
Reid Spencera773bd52006-08-04 18:18:08 +000019142 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019143ac_cpp='$CXXCPP $CPPFLAGS'
19144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019148 cat >conftest.$ac_ext <<_ACEOF
19149/* confdefs.h. */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019153/* end confdefs.h. */
19154#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019155int
19156main ()
19157{
19158float f; isinf(f);
19159 ;
19160 return 0;
19161}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019162_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019163rm -f conftest.$ac_objext
19164if { (ac_try="$ac_compile"
19165case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168esac
19169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_compile") 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181esac
19182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191esac
19192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_try") 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019197 ac_cv_func_isinf_in_math_h=yes
19198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019199 echo "$as_me: failed program was:" >&5
19200sed 's/^/| /' conftest.$ac_ext >&5
19201
19202 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019203fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019204
Reid Spencera773bd52006-08-04 18:18:08 +000019205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019206 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019207ac_cpp='$CPP $CPPFLAGS'
19208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210ac_compiler_gnu=$ac_cv_c_compiler_gnu
19211
19212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019213{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19214echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019215
19216if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019217
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019218cat >>confdefs.h <<\_ACEOF
19219#define HAVE_ISINF_IN_MATH_H 1
19220_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019221
Reid Spencerabec8f92004-10-27 23:03:44 +000019222fi
19223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019224{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19225echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19226if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019228else
Reid Spencera773bd52006-08-04 18:18:08 +000019229 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019230ac_cpp='$CXXCPP $CPPFLAGS'
19231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019235 cat >conftest.$ac_ext <<_ACEOF
19236/* confdefs.h. */
19237_ACEOF
19238cat confdefs.h >>conftest.$ac_ext
19239cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019240/* end confdefs.h. */
19241#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019242int
19243main ()
19244{
19245float f; isinf(f);
19246 ;
19247 return 0;
19248}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019249_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019250rm -f conftest.$ac_objext
19251if { (ac_try="$ac_compile"
19252case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19255esac
19256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_compile") 2>conftest.er1
19258 ac_status=$?
19259 grep -v '^ *+' conftest.er1 >conftest.err
19260 rm -f conftest.er1
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19265 { (case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19268esac
19269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_try") 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; } &&
19274 { ac_try='test -s conftest.$ac_objext'
19275 { (case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278esac
19279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_try") 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019284 ac_cv_func_isinf_in_cmath=yes
19285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019286 echo "$as_me: failed program was:" >&5
19287sed 's/^/| /' conftest.$ac_ext >&5
19288
19289 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019291
Reid Spencera773bd52006-08-04 18:18:08 +000019292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019293 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019294ac_cpp='$CPP $CPPFLAGS'
19295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19297ac_compiler_gnu=$ac_cv_c_compiler_gnu
19298
19299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019300{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19301echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019302
19303if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019305cat >>confdefs.h <<\_ACEOF
19306#define HAVE_ISINF_IN_CMATH 1
19307_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019308
Reid Spencerabec8f92004-10-27 23:03:44 +000019309fi
19310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019311{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19312echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19313if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019315else
Reid Spencera773bd52006-08-04 18:18:08 +000019316 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019317ac_cpp='$CXXCPP $CPPFLAGS'
19318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019322 cat >conftest.$ac_ext <<_ACEOF
19323/* confdefs.h. */
19324_ACEOF
19325cat confdefs.h >>conftest.$ac_ext
19326cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019327/* end confdefs.h. */
19328#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019329int
19330main ()
19331{
19332float f; std::isinf(f)}
19333 ;
19334 return 0;
19335}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019336_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019337rm -f conftest.$ac_objext
19338if { (ac_try="$ac_compile"
19339case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19342esac
19343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_compile") 2>conftest.er1
19345 ac_status=$?
19346 grep -v '^ *+' conftest.er1 >conftest.err
19347 rm -f conftest.er1
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } &&
19351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19352 { (case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19355esac
19356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_try") 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; } &&
19361 { ac_try='test -s conftest.$ac_objext'
19362 { (case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19365esac
19366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_try") 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019371 ac_cv_func_std_isinf_in_cmath=yes
19372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019373 echo "$as_me: failed program was:" >&5
19374sed 's/^/| /' conftest.$ac_ext >&5
19375
19376 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019377fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019378
Reid Spencera773bd52006-08-04 18:18:08 +000019379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019380 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019381ac_cpp='$CPP $CPPFLAGS'
19382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19384ac_compiler_gnu=$ac_cv_c_compiler_gnu
19385
19386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019387{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19388echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019389
19390if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019392cat >>confdefs.h <<\_ACEOF
19393#define HAVE_STD_ISINF_IN_CMATH 1
19394_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019395
Reid Spencerabec8f92004-10-27 23:03:44 +000019396fi
19397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019398{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19399echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19400if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019402else
Reid Spencera773bd52006-08-04 18:18:08 +000019403 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019404ac_cpp='$CXXCPP $CPPFLAGS'
19405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019409 cat >conftest.$ac_ext <<_ACEOF
19410/* confdefs.h. */
19411_ACEOF
19412cat confdefs.h >>conftest.$ac_ext
19413cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019414/* end confdefs.h. */
19415#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019416int
19417main ()
19418{
19419float f; finite(f);
19420 ;
19421 return 0;
19422}
Brian Gaeked59a6472004-07-21 03:33:58 +000019423_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019424rm -f conftest.$ac_objext
19425if { (ac_try="$ac_compile"
19426case "(($ac_try" in
19427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19429esac
19430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_compile") 2>conftest.er1
19432 ac_status=$?
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19442esac
19443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try='test -s conftest.$ac_objext'
19449 { (case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19452esac
19453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_try") 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019458 ac_cv_func_finite_in_ieeefp_h=yes
19459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019460 echo "$as_me: failed program was:" >&5
19461sed 's/^/| /' conftest.$ac_ext >&5
19462
19463 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019465
Reid Spencera773bd52006-08-04 18:18:08 +000019466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019467 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019468ac_cpp='$CPP $CPPFLAGS'
19469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19471ac_compiler_gnu=$ac_cv_c_compiler_gnu
19472
19473fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019474{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19475echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019476
Brian Gaeke6802b552004-10-28 05:06:45 +000019477if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019479cat >>confdefs.h <<\_ACEOF
19480#define HAVE_FINITE_IN_IEEEFP_H 1
19481_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019482
Reid Spencerabec8f92004-10-27 23:03:44 +000019483fi
19484
19485
19486
Reid Spencer30fe5262007-01-20 07:48:49 +000019487if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019488
19489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019490for ac_header in stdlib.h unistd.h
19491do
19492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498fi
19499ac_res=`eval echo '${'$as_ac_Header'}'`
19500 { echo "$as_me:$LINENO: result: $ac_res" >&5
19501echo "${ECHO_T}$ac_res" >&6; }
19502else
19503 # Is the header compilable?
19504{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19506cat >conftest.$ac_ext <<_ACEOF
19507/* confdefs.h. */
19508_ACEOF
19509cat confdefs.h >>conftest.$ac_ext
19510cat >>conftest.$ac_ext <<_ACEOF
19511/* end confdefs.h. */
19512$ac_includes_default
19513#include <$ac_header>
19514_ACEOF
19515rm -f conftest.$ac_objext
19516if { (ac_try="$ac_compile"
19517case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520esac
19521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_compile") 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19530 { (case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19533esac
19534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_try") 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest.$ac_objext'
19540 { (case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19543esac
19544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_try") 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_header_compiler=yes
19550else
19551 echo "$as_me: failed program was:" >&5
19552sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019554 ac_header_compiler=no
19555fi
19556
19557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19558{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19559echo "${ECHO_T}$ac_header_compiler" >&6; }
19560
19561# Is the header present?
19562{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19564cat >conftest.$ac_ext <<_ACEOF
19565/* confdefs.h. */
19566_ACEOF
19567cat confdefs.h >>conftest.$ac_ext
19568cat >>conftest.$ac_ext <<_ACEOF
19569/* end confdefs.h. */
19570#include <$ac_header>
19571_ACEOF
19572if { (ac_try="$ac_cpp conftest.$ac_ext"
19573case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19576esac
19577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19579 ac_status=$?
19580 grep -v '^ *+' conftest.er1 >conftest.err
19581 rm -f conftest.er1
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } >/dev/null; then
19585 if test -s conftest.err; then
19586 ac_cpp_err=$ac_c_preproc_warn_flag
19587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19588 else
19589 ac_cpp_err=
19590 fi
19591else
19592 ac_cpp_err=yes
19593fi
19594if test -z "$ac_cpp_err"; then
19595 ac_header_preproc=yes
19596else
19597 echo "$as_me: failed program was:" >&5
19598sed 's/^/| /' conftest.$ac_ext >&5
19599
19600 ac_header_preproc=no
19601fi
19602
19603rm -f conftest.err conftest.$ac_ext
19604{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19605echo "${ECHO_T}$ac_header_preproc" >&6; }
19606
19607# So? What about this header?
19608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19609 yes:no: )
19610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19614 ac_header_preproc=yes
19615 ;;
19616 no:yes:* )
19617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19620echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19624echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19629 ( cat <<\_ASBOX
19630## ----------------------------------- ##
19631## Report this to llvmbugs@cs.uiuc.edu ##
19632## ----------------------------------- ##
19633_ASBOX
19634 ) | sed "s/^/$as_me: WARNING: /" >&2
19635 ;;
19636esac
19637{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
19641else
19642 eval "$as_ac_Header=\$ac_header_preproc"
19643fi
19644ac_res=`eval echo '${'$as_ac_Header'}'`
19645 { echo "$as_me:$LINENO: result: $ac_res" >&5
19646echo "${ECHO_T}$ac_res" >&6; }
19647
19648fi
19649if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019650 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019652_ACEOF
19653
19654fi
19655
19656done
19657
19658
19659for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019660do
19661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19662{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19664if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19666else
19667 cat >conftest.$ac_ext <<_ACEOF
19668/* confdefs.h. */
19669_ACEOF
19670cat confdefs.h >>conftest.$ac_ext
19671cat >>conftest.$ac_ext <<_ACEOF
19672/* end confdefs.h. */
19673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19675#define $ac_func innocuous_$ac_func
19676
19677/* System header to define __stub macros and hopefully few prototypes,
19678 which can conflict with char $ac_func (); below.
19679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19680 <limits.h> exists even on freestanding compilers. */
19681
19682#ifdef __STDC__
19683# include <limits.h>
19684#else
19685# include <assert.h>
19686#endif
19687
19688#undef $ac_func
19689
19690/* Override any GCC internal prototype to avoid an error.
19691 Use char because int might match the return type of a GCC
19692 builtin and then its argument prototype would still apply. */
19693#ifdef __cplusplus
19694extern "C"
19695#endif
19696char $ac_func ();
19697/* The GNU C library defines this for functions which it implements
19698 to always fail with ENOSYS. Some functions are actually named
19699 something starting with __ and the normal name is an alias. */
19700#if defined __stub_$ac_func || defined __stub___$ac_func
19701choke me
19702#endif
19703
19704int
19705main ()
19706{
19707return $ac_func ();
19708 ;
19709 return 0;
19710}
19711_ACEOF
19712rm -f conftest.$ac_objext conftest$ac_exeext
19713if { (ac_try="$ac_link"
19714case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717esac
19718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_link") 2>conftest.er1
19720 ac_status=$?
19721 grep -v '^ *+' conftest.er1 >conftest.err
19722 rm -f conftest.er1
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19730esac
19731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest$ac_exeext'
19737 { (case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19740esac
19741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742 (eval "$ac_try") 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 eval "$as_ac_var=yes"
19747else
19748 echo "$as_me: failed program was:" >&5
19749sed 's/^/| /' conftest.$ac_ext >&5
19750
19751 eval "$as_ac_var=no"
19752fi
19753
19754rm -f core conftest.err conftest.$ac_objext \
19755 conftest$ac_exeext conftest.$ac_ext
19756fi
19757ac_res=`eval echo '${'$as_ac_var'}'`
19758 { echo "$as_me:$LINENO: result: $ac_res" >&5
19759echo "${ECHO_T}$ac_res" >&6; }
19760if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019761 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019763_ACEOF
19764
19765fi
19766done
19767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019768{ echo "$as_me:$LINENO: checking for working mmap" >&5
19769echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19770if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019773 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019774 ac_cv_func_mmap_fixed_mapped=no
19775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019776 cat >conftest.$ac_ext <<_ACEOF
19777/* confdefs.h. */
19778_ACEOF
19779cat confdefs.h >>conftest.$ac_ext
19780cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019781/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019782$ac_includes_default
19783/* malloc might have been renamed as rpl_malloc. */
19784#undef malloc
19785
19786/* Thanks to Mike Haertel and Jim Avera for this test.
19787 Here is a matrix of mmap possibilities:
19788 mmap private not fixed
19789 mmap private fixed at somewhere currently unmapped
19790 mmap private fixed at somewhere already mapped
19791 mmap shared not fixed
19792 mmap shared fixed at somewhere currently unmapped
19793 mmap shared fixed at somewhere already mapped
19794 For private mappings, we should verify that changes cannot be read()
19795 back from the file, nor mmap's back from the file at a different
19796 address. (There have been systems where private was not correctly
19797 implemented like the infamous i386 svr4.0, and systems where the
19798 VM page cache was not coherent with the file system buffer cache
19799 like early versions of FreeBSD and possibly contemporary NetBSD.)
19800 For shared mappings, we should conversely verify that changes get
19801 propagated back to all the places they're supposed to be.
19802
19803 Grep wants private fixed already mapped.
19804 The main things grep needs to know about mmap are:
19805 * does it exist and is it safe to write into the mmap'd area
19806 * how to use it (BSD variants) */
19807
19808#include <fcntl.h>
19809#include <sys/mman.h>
19810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019811#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019812char *malloc ();
19813#endif
19814
19815/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019816#if !HAVE_GETPAGESIZE
19817/* Assume that all systems that can run configure have sys/param.h. */
19818# if !HAVE_SYS_PARAM_H
19819# define HAVE_SYS_PARAM_H 1
19820# endif
19821
John Criswell7a73b802003-06-30 21:59:07 +000019822# ifdef _SC_PAGESIZE
19823# define getpagesize() sysconf(_SC_PAGESIZE)
19824# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019825# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019826# include <sys/param.h>
19827# ifdef EXEC_PAGESIZE
19828# define getpagesize() EXEC_PAGESIZE
19829# else /* no EXEC_PAGESIZE */
19830# ifdef NBPG
19831# define getpagesize() NBPG * CLSIZE
19832# ifndef CLSIZE
19833# define CLSIZE 1
19834# endif /* no CLSIZE */
19835# else /* no NBPG */
19836# ifdef NBPC
19837# define getpagesize() NBPC
19838# else /* no NBPC */
19839# ifdef PAGESIZE
19840# define getpagesize() PAGESIZE
19841# endif /* PAGESIZE */
19842# endif /* no NBPC */
19843# endif /* no NBPG */
19844# endif /* no EXEC_PAGESIZE */
19845# else /* no HAVE_SYS_PARAM_H */
19846# define getpagesize() 8192 /* punt totally */
19847# endif /* no HAVE_SYS_PARAM_H */
19848# endif /* no _SC_PAGESIZE */
19849
19850#endif /* no HAVE_GETPAGESIZE */
19851
19852int
19853main ()
19854{
19855 char *data, *data2, *data3;
19856 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019857 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019858
19859 pagesize = getpagesize ();
19860
19861 /* First, make a file with some known garbage in it. */
19862 data = (char *) malloc (pagesize);
19863 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019864 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019865 for (i = 0; i < pagesize; ++i)
19866 *(data + i) = rand ();
19867 umask (0);
19868 fd = creat ("conftest.mmap", 0600);
19869 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019870 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019871 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019872 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019873 close (fd);
19874
19875 /* Next, try to mmap the file at a fixed address which already has
19876 something else allocated at it. If we can, also make sure that
19877 we see the same garbage. */
19878 fd = open ("conftest.mmap", O_RDWR);
19879 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019880 return 1;
19881 data2 = (char *) malloc (2 * pagesize);
19882 if (!data2)
19883 return 1;
19884 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019885 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019886 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019887 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019888 for (i = 0; i < pagesize; ++i)
19889 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019890 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019891
19892 /* Finally, make sure that changes to the mapped area do not
19893 percolate back to the file as seen by read(). (This is a bug on
19894 some variants of i386 svr4.0.) */
19895 for (i = 0; i < pagesize; ++i)
19896 *(data2 + i) = *(data2 + i) + 1;
19897 data3 = (char *) malloc (pagesize);
19898 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019899 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019900 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019901 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019902 for (i = 0; i < pagesize; ++i)
19903 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019904 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019905 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019906 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019907}
19908_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019909rm -f conftest$ac_exeext
19910if { (ac_try="$ac_link"
19911case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19914esac
19915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_link") 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19920 { (case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19923esac
19924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_try") 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019929 ac_cv_func_mmap_fixed_mapped=yes
19930else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019931 echo "$as_me: program exited with status $ac_status" >&5
19932echo "$as_me: failed program was:" >&5
19933sed 's/^/| /' conftest.$ac_ext >&5
19934
19935( exit $ac_status )
19936ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019938rm -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 +000019939fi
Reid Spencera773bd52006-08-04 18:18:08 +000019940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019941
John Criswell7a73b802003-06-30 21:59:07 +000019942fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019943{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19944echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019945if test $ac_cv_func_mmap_fixed_mapped = yes; then
19946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019947cat >>confdefs.h <<\_ACEOF
19948#define HAVE_MMAP 1
19949_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019950
19951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019952rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019954 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19955echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19956if test "${ac_cv_func_mmap_file+set}" = set; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019958else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019959 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019960ac_cpp='$CPP $CPPFLAGS'
19961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19963ac_compiler_gnu=$ac_cv_c_compiler_gnu
19964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019965 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019966 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019968 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019970 /* confdefs.h. */
19971_ACEOF
19972cat confdefs.h >>conftest.$ac_ext
19973cat >>conftest.$ac_ext <<_ACEOF
19974/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019975
John Criswell7a73b802003-06-30 21:59:07 +000019976#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019977#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019978#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019979
19980int
19981main ()
19982{
John Criswell7a73b802003-06-30 21:59:07 +000019983
19984 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019985 fd = creat ("foo",0777);
19986 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19987 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019988 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019989 ;
19990 return 0;
19991}
John Criswell7a73b802003-06-30 21:59:07 +000019992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019993rm -f conftest$ac_exeext
19994if { (ac_try="$ac_link"
19995case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19998esac
19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_link") 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20004 { (case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20007esac
20008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_try") 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020013 ac_cv_func_mmap_file=yes
20014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020015 echo "$as_me: program exited with status $ac_status" >&5
20016echo "$as_me: failed program was:" >&5
20017sed 's/^/| /' conftest.$ac_ext >&5
20018
20019( exit $ac_status )
20020ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020022rm -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 +000020023fi
Reid Spencera773bd52006-08-04 18:18:08 +000020024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020025
John Criswell7a73b802003-06-30 21:59:07 +000020026 ac_ext=c
20027ac_cpp='$CPP $CPPFLAGS'
20028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20030ac_compiler_gnu=$ac_cv_c_compiler_gnu
20031
20032
20033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020034{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20035echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020036if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020038cat >>confdefs.h <<\_ACEOF
20039#define HAVE_MMAP_FILE
20040_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020041
20042 MMAP_FILE=yes
20043
20044fi
20045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020046 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20047echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20048if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020050else
Reid Spencer582a23c2004-12-29 07:07:57 +000020051 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020052 ac_cv_need_dev_zero_for_mmap=yes
20053 else
20054 ac_cv_need_dev_zero_for_mmap=no
20055 fi
20056
20057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020058{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20059echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020060if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020062cat >>confdefs.h <<\_ACEOF
20063#define NEED_DEV_ZERO_FOR_MMAP 1
20064_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020065
20066fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020067
Reid Spencer30fe5262007-01-20 07:48:49 +000020068 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20069 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020070 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20071echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020072 fi
20073 if test "$ac_cv_func_mmap_file" = "no"
20074 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020075 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20076echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020077 fi
John Criswellb13092b2003-07-22 21:00:24 +000020078fi
John Criswell7a73b802003-06-30 21:59:07 +000020079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020080{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20081echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20082cat >conftest.$ac_ext <<_ACEOF
20083/* confdefs.h. */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020087/* end confdefs.h. */
20088int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020089 volatile unsigned long val = 1;
20090 __sync_synchronize();
20091 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020092 __sync_add_and_fetch(&val, 1);
20093 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020094 return 0;
20095 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020096
20097_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020098rm -f conftest.$ac_objext conftest$ac_exeext
20099if { (ac_try="$ac_link"
20100case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20103esac
20104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_link") 2>conftest.er1
20106 ac_status=$?
20107 grep -v '^ *+' conftest.er1 >conftest.err
20108 rm -f conftest.er1
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
20112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20113 { (case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116esac
20117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_try") 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try='test -s conftest$ac_exeext'
20123 { (case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20126esac
20127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_try") 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 { echo "$as_me:$LINENO: result: yes" >&5
20133echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020135cat >>confdefs.h <<\_ACEOF
20136#define LLVM_MULTITHREADED 1
20137_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020138
Owen Andersond4b272b2009-05-18 23:58:51 +000020139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020140 echo "$as_me: failed program was:" >&5
20141sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020143 { echo "$as_me:$LINENO: result: no" >&5
20144echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020146cat >>confdefs.h <<\_ACEOF
20147#define LLVM_MULTITHREADED 0
20148_ACEOF
20149
20150 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20151echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020152fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020153
Owen Andersond4b272b2009-05-18 23:58:51 +000020154rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020155 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020156
20157
John Criswell7a73b802003-06-30 21:59:07 +000020158
Nick Lewycky4372e692009-09-29 06:18:23 +000020159if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020160 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20161echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20162if test "${llvm_cv_linux_mixed+set}" = set; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020164else
20165 ac_ext=c
20166ac_cpp='$CPP $CPPFLAGS'
20167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20169ac_compiler_gnu=$ac_cv_c_compiler_gnu
20170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020171 cat >conftest.$ac_ext <<_ACEOF
20172/* confdefs.h. */
20173_ACEOF
20174cat confdefs.h >>conftest.$ac_ext
20175cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020176/* end confdefs.h. */
20177#ifndef __x86_64__
20178 error: Not x86-64 even if uname says so!
20179 #endif
20180
20181int
20182main ()
20183{
20184
20185 ;
20186 return 0;
20187}
20188_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020189rm -f conftest.$ac_objext
20190if { (ac_try="$ac_compile"
20191case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20194esac
20195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_compile") 2>conftest.er1
20197 ac_status=$?
20198 grep -v '^ *+' conftest.er1 >conftest.err
20199 rm -f conftest.er1
20200 cat conftest.err >&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } &&
20203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20204 { (case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207esac
20208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_try") 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; } &&
20213 { ac_try='test -s conftest.$ac_objext'
20214 { (case "(($ac_try" in
20215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216 *) ac_try_echo=$ac_try;;
20217esac
20218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219 (eval "$ac_try") 2>&5
20220 ac_status=$?
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020223 llvm_cv_linux_mixed=no
20224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020225 echo "$as_me: failed program was:" >&5
20226sed 's/^/| /' conftest.$ac_ext >&5
20227
20228 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020230
Nick Lewycky4372e692009-09-29 06:18:23 +000020231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20232 ac_ext=c
20233ac_cpp='$CPP $CPPFLAGS'
20234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20236ac_compiler_gnu=$ac_cv_c_compiler_gnu
20237
20238
20239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020240{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20241echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020242
20243 if test "$llvm_cv_linux_mixed" = "yes"; then
20244 llvm_cv_target_arch="x86"
20245 ARCH="x86"
20246 fi
20247fi
20248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020249
Reid Spencer9372f152007-07-30 20:13:24 +000020250for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020251do
20252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20253{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20255if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257else
20258 cat >conftest.$ac_ext <<_ACEOF
20259/* confdefs.h. */
20260_ACEOF
20261cat confdefs.h >>conftest.$ac_ext
20262cat >>conftest.$ac_ext <<_ACEOF
20263/* end confdefs.h. */
20264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20266#define $ac_func innocuous_$ac_func
20267
20268/* System header to define __stub macros and hopefully few prototypes,
20269 which can conflict with char $ac_func (); below.
20270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20271 <limits.h> exists even on freestanding compilers. */
20272
20273#ifdef __STDC__
20274# include <limits.h>
20275#else
20276# include <assert.h>
20277#endif
20278
20279#undef $ac_func
20280
20281/* Override any GCC internal prototype to avoid an error.
20282 Use char because int might match the return type of a GCC
20283 builtin and then its argument prototype would still apply. */
20284#ifdef __cplusplus
20285extern "C"
20286#endif
20287char $ac_func ();
20288/* The GNU C library defines this for functions which it implements
20289 to always fail with ENOSYS. Some functions are actually named
20290 something starting with __ and the normal name is an alias. */
20291#if defined __stub_$ac_func || defined __stub___$ac_func
20292choke me
20293#endif
20294
20295int
20296main ()
20297{
20298return $ac_func ();
20299 ;
20300 return 0;
20301}
20302_ACEOF
20303rm -f conftest.$ac_objext conftest$ac_exeext
20304if { (ac_try="$ac_link"
20305case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20308esac
20309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_link") 2>conftest.er1
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20318 { (case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20321esac
20322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_try") 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; } &&
20327 { ac_try='test -s conftest$ac_exeext'
20328 { (case "(($ac_try" in
20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330 *) ac_try_echo=$ac_try;;
20331esac
20332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_try") 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20337 eval "$as_ac_var=yes"
20338else
20339 echo "$as_me: failed program was:" >&5
20340sed 's/^/| /' conftest.$ac_ext >&5
20341
20342 eval "$as_ac_var=no"
20343fi
20344
20345rm -f core conftest.err conftest.$ac_objext \
20346 conftest$ac_exeext conftest.$ac_ext
20347fi
20348ac_res=`eval echo '${'$as_ac_var'}'`
20349 { echo "$as_me:$LINENO: result: $ac_res" >&5
20350echo "${ECHO_T}$ac_res" >&6; }
20351if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020352 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020354_ACEOF
20355
20356fi
20357done
20358
20359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20361echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20362if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020364else
20365 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020366if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020367 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020368 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20369 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020370 if test $? -eq 0 ; then
20371 llvm_cv_llvmgcc_sanity="yes"
20372 fi
20373 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020374fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020376{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20377echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020378
20379if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020380 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20381echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020382 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020383 LLVMCC1=$llvmcc1path
20384
Reid Spencer502935f2004-12-22 05:56:56 +000020385 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020386 LLVMCC1PLUS=$llvmcc1pluspath
20387
Reid Spencer502935f2004-12-22 05:56:56 +000020388 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20389 LLVMGCCDIR=$llvmgccdir
20390
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020391 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020392 LLVMGCC_LANGS=$llvmgcclangs
20393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394 { echo "$as_me:$LINENO: result: ok" >&5
20395echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020396fi
20397
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020398SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020399
20400
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020401SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20402
20403
Reid Spencere9de0912004-08-20 09:03:57 +000020404# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020405# information into substitutions that will end up in Makefile.config.in
20406# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020407if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020408 prefix="/usr/local"
20409fi
Reid Spencere9de0912004-08-20 09:03:57 +000020410eval LLVM_PREFIX="${prefix}";
20411eval LLVM_BINDIR="${prefix}/bin";
20412eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020413eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020414eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020415eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020416eval LLVM_INCLUDEDIR="${prefix}/include";
20417eval LLVM_INFODIR="${prefix}/info";
20418eval LLVM_MANDIR="${prefix}/man";
20419LLVM_CONFIGTIME=`date`
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020431# Place the various directores into the config.h file as #defines so that we
20432# can know about the installation paths within LLVM.
20433
Reid Spencere9de0912004-08-20 09:03:57 +000020434cat >>confdefs.h <<_ACEOF
20435#define LLVM_PREFIX "$LLVM_PREFIX"
20436_ACEOF
20437
20438
20439cat >>confdefs.h <<_ACEOF
20440#define LLVM_BINDIR "$LLVM_BINDIR"
20441_ACEOF
20442
20443
20444cat >>confdefs.h <<_ACEOF
20445#define LLVM_LIBDIR "$LLVM_LIBDIR"
20446_ACEOF
20447
20448
20449cat >>confdefs.h <<_ACEOF
20450#define LLVM_DATADIR "$LLVM_DATADIR"
20451_ACEOF
20452
20453
20454cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020455#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020456_ACEOF
20457
20458
20459cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020460#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020461_ACEOF
20462
20463
20464cat >>confdefs.h <<_ACEOF
20465#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20466_ACEOF
20467
20468
20469cat >>confdefs.h <<_ACEOF
20470#define LLVM_INFODIR "$LLVM_INFODIR"
20471_ACEOF
20472
20473
20474cat >>confdefs.h <<_ACEOF
20475#define LLVM_MANDIR "$LLVM_MANDIR"
20476_ACEOF
20477
20478
20479cat >>confdefs.h <<_ACEOF
20480#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20481_ACEOF
20482
20483
Eric Christopher790e11c2007-12-01 00:34:39 +000020484cat >>confdefs.h <<_ACEOF
20485#define LLVM_HOSTTRIPLE "$host"
20486_ACEOF
20487
20488
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020489# Determine which bindings to build.
20490if test "$BINDINGS_TO_BUILD" = auto ; then
20491 BINDINGS_TO_BUILD=""
20492 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20493 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20494 fi
20495fi
20496BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20497
20498
20499# This isn't really configurey, but it avoids having to repeat the list in
20500# other files.
20501ALL_BINDINGS=ocaml
20502
20503
Gordon Henriksenf0915682007-10-02 16:42:22 +000020504# Do any work necessary to ensure that bindings have what they need.
20505binding_prereqs_failed=0
20506for a_binding in $BINDINGS_TO_BUILD ; do
20507 case "$a_binding" in
20508 ocaml)
20509 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020510 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20511echo "$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 +000020512 binding_prereqs_failed=1
20513 fi
20514 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020515 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20516echo "$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 +000020517 binding_prereqs_failed=1
20518 fi
20519 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020520 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20521echo "$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 +000020522 fi
20523 if test "x$with_ocaml_libdir" != xauto ; then
20524 OCAML_LIBDIR=$with_ocaml_libdir
20525
20526 else
20527 ocaml_stdlib="`"$OCAMLC" -where`"
20528 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20529 then
20530 # ocaml stdlib is beneath our prefix; use stdlib
20531 OCAML_LIBDIR=$ocaml_stdlib
20532
20533 else
20534 # ocaml stdlib is outside our prefix; use libdir/ocaml
20535 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20536
20537 fi
20538 fi
20539 ;;
20540 esac
20541done
20542if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020543 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20544echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20545 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020546fi
20547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020548{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20549echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20550if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020552else
20553 ac_ext=cpp
20554ac_cpp='$CXXCPP $CPPFLAGS'
20555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20558
20559 oldcxxflags="$CXXFLAGS"
20560 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020561 cat >conftest.$ac_ext <<_ACEOF
20562/* confdefs.h. */
20563_ACEOF
20564cat confdefs.h >>conftest.$ac_ext
20565cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020566/* end confdefs.h. */
20567
20568int
20569main ()
20570{
20571
20572 ;
20573 return 0;
20574}
20575_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020576rm -f conftest.$ac_objext
20577if { (ac_try="$ac_compile"
20578case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581esac
20582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_compile") 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
20590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20591 { (case "(($ac_try" in
20592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593 *) ac_try_echo=$ac_try;;
20594esac
20595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596 (eval "$ac_try") 2>&5
20597 ac_status=$?
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; } &&
20600 { ac_try='test -s conftest.$ac_objext'
20601 { (case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20604esac
20605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_try") 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020610 llvm_cv_cxx_visibility_inlines_hidden=yes
20611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020612 echo "$as_me: failed program was:" >&5
20613sed 's/^/| /' conftest.$ac_ext >&5
20614
20615 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020617
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20619 CXXFLAGS="$oldcxxflags"
20620 ac_ext=c
20621ac_cpp='$CPP $CPPFLAGS'
20622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20624ac_compiler_gnu=$ac_cv_c_compiler_gnu
20625
20626
20627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020628{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20629echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020630if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20631 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20632
20633else
20634 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20635
20636fi
20637
Gordon Henriksenf0915682007-10-02 16:42:22 +000020638
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020639if test "$llvm_cv_link_use_r" = "yes" ; then
20640 RPATH="-Wl,-R"
20641else
20642 RPATH="-Wl,-rpath"
20643fi
20644
20645
20646if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20647 RDYNAMIC="-Wl,-export-dynamic"
20648else
20649 RDYNAMIC=""
20650fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020651
20652
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020653
Reid Spencera773bd52006-08-04 18:18:08 +000020654ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020655
Douglas Gregor1555a232009-06-16 20:12:29 +000020656ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20657
20658ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20659
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020660ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20661
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020662ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20663
Chandler Carruth8b67f772009-10-26 01:35:46 +000020664ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020665
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020666
Reid Spencera773bd52006-08-04 18:18:08 +000020667ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020668
20669
Reid Spencerea949cf2006-08-16 00:45:38 +000020670ac_config_files="$ac_config_files llvm.spec"
20671
20672
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020673ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20674
20675
Reid Spencera773bd52006-08-04 18:18:08 +000020676ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020677
20678
Reid Spencera773bd52006-08-04 18:18:08 +000020679ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020680
Reid Spencera773bd52006-08-04 18:18:08 +000020681ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020682
20683
Reid Spencera773bd52006-08-04 18:18:08 +000020684ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020685
20686
Reid Spencera773bd52006-08-04 18:18:08 +000020687ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020688
20689
Reid Spencera773bd52006-08-04 18:18:08 +000020690ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020691
20692
Reid Spencer8b2e1412006-11-17 03:32:33 +000020693ac_config_commands="$ac_config_commands runtime/Makefile"
20694
20695
Reid Spencera773bd52006-08-04 18:18:08 +000020696ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020697
20698
Reid Spencera773bd52006-08-04 18:18:08 +000020699ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020700
20701
Bill Wendlingf24eb392009-01-04 23:12:30 +000020702ac_config_commands="$ac_config_commands unittests/Makefile"
20703
20704
Reid Spencera773bd52006-08-04 18:18:08 +000020705ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020706
20707
Reid Spencera773bd52006-08-04 18:18:08 +000020708ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020709
20710
Reid Spencera773bd52006-08-04 18:18:08 +000020711ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020712
20713
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020714ac_config_commands="$ac_config_commands bindings/Makefile"
20715
20716
20717ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20718
20719
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020720
John Criswell7a73b802003-06-30 21:59:07 +000020721cat >confcache <<\_ACEOF
20722# This file is a shell script that caches the results of configure
20723# tests run on this system so they can be shared between configure
20724# scripts and configure runs, see configure's option --config-cache.
20725# It is not useful on other systems. If it contains results you don't
20726# want to keep, you may remove or edit it.
20727#
20728# config.status only pays attention to the cache file if you give it
20729# the --recheck option to rerun configure.
20730#
John Criswell0c38eaf2003-09-10 15:17:25 +000020731# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020732# loading this file, other *unset* `ac_cv_foo' will be assigned the
20733# following values.
20734
20735_ACEOF
20736
20737# The following way of writing the cache mishandles newlines in values,
20738# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020739# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020740# Ultrix sh set writes to stderr and can't be redirected directly,
20741# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020742(
20743 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20744 eval ac_val=\$$ac_var
20745 case $ac_val in #(
20746 *${as_nl}*)
20747 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020748 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20749echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020750 esac
20751 case $ac_var in #(
20752 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020753 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020754 esac ;;
20755 esac
20756 done
20757
John Criswell7a73b802003-06-30 21:59:07 +000020758 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020759 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20760 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020761 # `set' does not quote correctly, so add quotes (double-quote
20762 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020763 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020764 "s/'/'\\\\''/g;
20765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020766 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020767 *)
20768 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020770 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020771 esac |
20772 sort
20773) |
John Criswell7a73b802003-06-30 21:59:07 +000020774 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020775 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020776 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020777 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20779 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020780 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20781 :end' >>confcache
20782if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20783 if test -w "$cache_file"; then
20784 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020785 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20786echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020787 cat confcache >$cache_file
20788 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020789 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20790echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020791 fi
20792fi
20793rm -f confcache
20794
20795test "x$prefix" = xNONE && prefix=$ac_default_prefix
20796# Let make expand exec_prefix.
20797test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20798
John Criswell7a73b802003-06-30 21:59:07 +000020799DEFS=-DHAVE_CONFIG_H
20800
John Criswell0c38eaf2003-09-10 15:17:25 +000020801ac_libobjs=
20802ac_ltlibobjs=
20803for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20804 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020805 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020806 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20808 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020809 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20810 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020811done
20812LIBOBJS=$ac_libobjs
20813
20814LTLIBOBJS=$ac_ltlibobjs
20815
20816
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020817if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020818 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20819Usually this means the macro was only invoked conditionally." >&5
20820echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20821Usually this means the macro was only invoked conditionally." >&2;}
20822 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020823fi
20824if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020825 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20826Usually this means the macro was only invoked conditionally." >&5
20827echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20828Usually this means the macro was only invoked conditionally." >&2;}
20829 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020830fi
John Criswell7a73b802003-06-30 21:59:07 +000020831
20832: ${CONFIG_STATUS=./config.status}
20833ac_clean_files_save=$ac_clean_files
20834ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020835{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20836echo "$as_me: creating $CONFIG_STATUS" >&6;}
20837cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020838#! $SHELL
20839# Generated by $as_me.
20840# Run this file to recreate the current configuration.
20841# Compiler output produced by configure, useful for debugging
20842# configure, is in config.log if it exists.
20843
20844debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020845ac_cs_recheck=false
20846ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020847SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020848_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020850cat >>$CONFIG_STATUS <<\_ACEOF
20851## --------------------- ##
20852## M4sh Initialization. ##
20853## --------------------- ##
20854
20855# Be Bourne compatible
20856if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020857 emulate sh
20858 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020859 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020860 # is contrary to our usage. Disable this feature.
20861 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020862 setopt NO_GLOB_SUBST
20863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020864 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020866BIN_SH=xpg4; export BIN_SH # for Tru64
20867DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020868
John Criswell7a73b802003-06-30 21:59:07 +000020869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020870# PATH needs CR
20871# Avoid depending upon Character Ranges.
20872as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20873as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20874as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20875as_cr_digits='0123456789'
20876as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020877
20878# The user is always right.
20879if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020880 echo "#! /bin/sh" >conf$$.sh
20881 echo "exit 0" >>conf$$.sh
20882 chmod +x conf$$.sh
20883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20884 PATH_SEPARATOR=';'
20885 else
20886 PATH_SEPARATOR=:
20887 fi
20888 rm -f conf$$.sh
20889fi
20890
20891# Support unset when possible.
20892if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20893 as_unset=unset
20894else
20895 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020896fi
John Criswell7a73b802003-06-30 21:59:07 +000020897
Reid Spencera773bd52006-08-04 18:18:08 +000020898
20899# IFS
20900# We need space, tab and new line, in precisely that order. Quoting is
20901# there to prevent editors from complaining about space-tab.
20902# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20903# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020904as_nl='
20905'
Reid Spencera773bd52006-08-04 18:18:08 +000020906IFS=" "" $as_nl"
20907
20908# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020909case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020910 *[\\/]* ) as_myself=$0 ;;
20911 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020912for as_dir in $PATH
20913do
20914 IFS=$as_save_IFS
20915 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020916 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20917done
Reid Spencera773bd52006-08-04 18:18:08 +000020918IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020919
Reid Spencera773bd52006-08-04 18:18:08 +000020920 ;;
20921esac
20922# We did not find ourselves, most probably we were run as `sh COMMAND'
20923# in which case we are not to be found in the path.
20924if test "x$as_myself" = x; then
20925 as_myself=$0
20926fi
20927if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020928 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20929 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020930fi
20931
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020932# Work around bugs in pre-3.0 UWIN ksh.
20933for as_var in ENV MAIL MAILPATH
20934do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020935done
20936PS1='$ '
20937PS2='> '
20938PS4='+ '
20939
20940# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020941for as_var in \
20942 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20943 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20944 LC_TELEPHONE LC_TIME
20945do
20946 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20947 eval $as_var=C; export $as_var
20948 else
20949 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020950 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020951done
Torok Edwin871384f2010-01-26 08:50:50 +000020952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020953# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020954if expr a : '\(a\)' >/dev/null 2>&1 &&
20955 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20956 as_expr=expr
20957else
20958 as_expr=false
20959fi
20960
20961if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20962 as_basename=basename
20963else
20964 as_basename=false
20965fi
20966
20967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020968# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020969as_me=`$as_basename -- "$0" ||
20970$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20971 X"$0" : 'X\(//\)$' \| \
20972 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020973echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020974 sed '/^.*\/\([^/][^/]*\)\/*$/{
20975 s//\1/
20976 q
20977 }
20978 /^X\/\(\/\/\)$/{
20979 s//\1/
20980 q
20981 }
20982 /^X\/\(\/\).*/{
20983 s//\1/
20984 q
20985 }
20986 s/.*/./; q'`
20987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020988# CDPATH.
20989$as_unset CDPATH
20990
20991
20992
20993 as_lineno_1=$LINENO
20994 as_lineno_2=$LINENO
20995 test "x$as_lineno_1" != "x$as_lineno_2" &&
20996 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20997
20998 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20999 # uniformly replaced by the line number. The first 'sed' inserts a
21000 # line-number line after each line using $LINENO; the second 'sed'
21001 # does the real work. The second script uses 'N' to pair each
21002 # line-number line with the line containing $LINENO, and appends
21003 # trailing '-' during substitution so that $LINENO is not a special
21004 # case at line end.
21005 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21006 # scripts with optimization help from Paolo Bonzini. Blame Lee
21007 # E. McMahon (1931-1989) for sed's syntax. :-)
21008 sed -n '
21009 p
21010 /[$]LINENO/=
21011 ' <$as_myself |
21012 sed '
21013 s/[$]LINENO.*/&-/
21014 t lineno
21015 b
21016 :lineno
21017 N
21018 :loop
21019 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21020 t loop
21021 s/-\n.*//
21022 ' >$as_me.lineno &&
21023 chmod +x "$as_me.lineno" ||
21024 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21025 { (exit 1); exit 1; }; }
21026
21027 # Don't try to exec as it changes $[0], causing all sort of problems
21028 # (the dirname of $[0] is not the place where we might find the
21029 # original and so on. Autoconf is especially sensitive to this).
21030 . "./$as_me.lineno"
21031 # Exit status is that of the last command.
21032 exit
21033}
21034
21035
21036if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21037 as_dirname=dirname
21038else
21039 as_dirname=false
21040fi
Reid Spencera773bd52006-08-04 18:18:08 +000021041
21042ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021043case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021044-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021045 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021046 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021047 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021048 esac;;
21049*)
21050 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021051esac
21052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021053if expr a : '\(a\)' >/dev/null 2>&1 &&
21054 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21055 as_expr=expr
21056else
21057 as_expr=false
21058fi
21059
John Criswell7a73b802003-06-30 21:59:07 +000021060rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021061if test -d conf$$.dir; then
21062 rm -f conf$$.dir/conf$$.file
21063else
21064 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021065 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021066fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021067echo >conf$$.file
21068if ln -s conf$$.file conf$$ 2>/dev/null; then
21069 as_ln_s='ln -s'
21070 # ... but there are two gotchas:
21071 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21072 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21073 # In both cases, we have to default to `cp -p'.
21074 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021075 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021076elif ln conf$$.file conf$$ 2>/dev/null; then
21077 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021078else
21079 as_ln_s='cp -p'
21080fi
Reid Spencera773bd52006-08-04 18:18:08 +000021081rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21082rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021083
John Criswell0c38eaf2003-09-10 15:17:25 +000021084if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021085 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021086else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021087 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021088 as_mkdir_p=false
21089fi
21090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021091# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21092# systems may use methods other than mode bits to determine executability.
21093cat >conf$$.file <<_ASEOF
21094#! /bin/sh
21095exit 0
21096_ASEOF
21097chmod +x conf$$.file
21098if test -x conf$$.file >/dev/null 2>&1; then
21099 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021100else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021101 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021102fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021103rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021104
21105# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021106as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021107
21108# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021109as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021110
21111
John Criswell7a73b802003-06-30 21:59:07 +000021112exec 6>&1
21113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021114# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021115# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021116# values after options handling.
21117ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021118This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021119generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021120
21121 CONFIG_FILES = $CONFIG_FILES
21122 CONFIG_HEADERS = $CONFIG_HEADERS
21123 CONFIG_LINKS = $CONFIG_LINKS
21124 CONFIG_COMMANDS = $CONFIG_COMMANDS
21125 $ $0 $@
21126
Reid Spencera773bd52006-08-04 18:18:08 +000021127on `(hostname || uname -n) 2>/dev/null | sed 1q`
21128"
21129
John Criswell7a73b802003-06-30 21:59:07 +000021130_ACEOF
21131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021132cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021133# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021134config_files="$ac_config_files"
21135config_headers="$ac_config_headers"
21136config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021137
Reid Spencera773bd52006-08-04 18:18:08 +000021138_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021140cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021141ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021142\`$as_me' instantiates files from templates according to the
21143current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021145Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021146
21147 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021148 -V, --version print version number, then exit
21149 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021150 -d, --debug don't remove temporary files
21151 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021152 --file=FILE[:TEMPLATE]
21153 instantiate the configuration file FILE
21154 --header=FILE[:TEMPLATE]
21155 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021156
21157Configuration files:
21158$config_files
21159
21160Configuration headers:
21161$config_headers
21162
John Criswellc764fbc2003-09-06 15:17:13 +000021163Configuration commands:
21164$config_commands
21165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021166Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021167
Reid Spencera773bd52006-08-04 18:18:08 +000021168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021169cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021170ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021171llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021172configured by $0, generated by GNU Autoconf 2.60,
21173 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021175Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021176This config.status script is free software; the Free Software Foundation
21177gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021178
21179ac_pwd='$ac_pwd'
21180srcdir='$srcdir'
21181INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021182_ACEOF
21183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021184cat >>$CONFIG_STATUS <<\_ACEOF
21185# If no file are specified by the user, then we need to provide default
21186# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021187ac_need_defaults=:
21188while test $# != 0
21189do
21190 case $1 in
21191 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021192 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21193 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021194 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021195 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021196 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021197 ac_option=$1
21198 ac_optarg=$2
21199 ac_shift=shift
21200 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021201 esac
21202
John Criswell0c38eaf2003-09-10 15:17:25 +000021203 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021204 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021205 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21206 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021207 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021208 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021209 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021210 debug=: ;;
21211 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021212 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021214 ac_need_defaults=false;;
21215 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021216 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021217 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021218 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021219 --he | --h)
21220 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021221 { echo "$as_me: error: ambiguous option: $1
21222Try \`$0 --help' for more information." >&2
21223 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021224 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021225 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21227 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21228 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021229
21230 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021231 -*) { echo "$as_me: error: unrecognized option: $1
21232Try \`$0 --help' for more information." >&2
21233 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021235 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021236 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021237
21238 esac
21239 shift
21240done
21241
John Criswell0c38eaf2003-09-10 15:17:25 +000021242ac_configure_extra_args=
21243
21244if $ac_cs_silent; then
21245 exec 6>/dev/null
21246 ac_configure_extra_args="$ac_configure_extra_args --silent"
21247fi
21248
21249_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021250cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021251if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021252 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21253 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021254 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021255 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021256fi
21257
John Criswell7a73b802003-06-30 21:59:07 +000021258_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021259cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021260exec 5>>config.log
21261{
21262 echo
21263 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21264## Running $as_me. ##
21265_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021266 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021267} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021268
Reid Spencera773bd52006-08-04 18:18:08 +000021269_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021270cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021271#
Reid Spencera773bd52006-08-04 18:18:08 +000021272# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021273#
Reid Spencerc0682832005-02-24 19:05:19 +000021274llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021275
21276_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021278cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021279
21280# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021281for ac_config_target in $ac_config_targets
21282do
Reid Spencera773bd52006-08-04 18:18:08 +000021283 case $ac_config_target in
21284 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021285 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21286 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021287 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021288 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021289 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021290 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021291 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000021292 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021293 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21294 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21295 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21296 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21297 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21298 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021299 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021300 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21301 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021302 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021303 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21304 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21305 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021306 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21307 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021309 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21310echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21311 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021312 esac
21313done
21314
Reid Spencera773bd52006-08-04 18:18:08 +000021315
John Criswell7a73b802003-06-30 21:59:07 +000021316# If the user did not use the arguments to specify the items to instantiate,
21317# then the envvar interface is used. Set only those that are not.
21318# We use the long form for the default assignment because of an extremely
21319# bizarre bug on SunOS 4.1.3.
21320if $ac_need_defaults; then
21321 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21322 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021323 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021324fi
21325
John Criswell0c38eaf2003-09-10 15:17:25 +000021326# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021327# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021328# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021329# Hook for its removal unless debugging.
21330# Note that there is a small window in which the directory will not be cleaned:
21331# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021332$debug ||
21333{
Reid Spencera773bd52006-08-04 18:18:08 +000021334 tmp=
21335 trap 'exit_status=$?
21336 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21337' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021338 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021339}
John Criswell7a73b802003-06-30 21:59:07 +000021340# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021341
John Criswell7a73b802003-06-30 21:59:07 +000021342{
Reid Spencera773bd52006-08-04 18:18:08 +000021343 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021344 test -n "$tmp" && test -d "$tmp"
21345} ||
21346{
Reid Spencera773bd52006-08-04 18:18:08 +000021347 tmp=./conf$$-$RANDOM
21348 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021349} ||
21350{
21351 echo "$me: cannot create a temporary directory in ." >&2
21352 { (exit 1); exit 1; }
21353}
John Criswell7a73b802003-06-30 21:59:07 +000021354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021355#
21356# Set up the sed scripts for CONFIG_FILES section.
21357#
21358
21359# No need to generate the scripts if there are no CONFIG_FILES.
21360# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021361if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021362
21363_ACEOF
21364
Reid Spencera773bd52006-08-04 18:18:08 +000021365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021366
Reid Spencera773bd52006-08-04 18:18:08 +000021367ac_delim='%!_!# '
21368for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021369 cat >conf$$subs.sed <<_ACEOF
21370SHELL!$SHELL$ac_delim
21371PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21372PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21373PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21374PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21375PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21376PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21377exec_prefix!$exec_prefix$ac_delim
21378prefix!$prefix$ac_delim
21379program_transform_name!$program_transform_name$ac_delim
21380bindir!$bindir$ac_delim
21381sbindir!$sbindir$ac_delim
21382libexecdir!$libexecdir$ac_delim
21383datarootdir!$datarootdir$ac_delim
21384datadir!$datadir$ac_delim
21385sysconfdir!$sysconfdir$ac_delim
21386sharedstatedir!$sharedstatedir$ac_delim
21387localstatedir!$localstatedir$ac_delim
21388includedir!$includedir$ac_delim
21389oldincludedir!$oldincludedir$ac_delim
21390docdir!$docdir$ac_delim
21391infodir!$infodir$ac_delim
21392htmldir!$htmldir$ac_delim
21393dvidir!$dvidir$ac_delim
21394pdfdir!$pdfdir$ac_delim
21395psdir!$psdir$ac_delim
21396libdir!$libdir$ac_delim
21397localedir!$localedir$ac_delim
21398mandir!$mandir$ac_delim
21399DEFS!$DEFS$ac_delim
21400ECHO_C!$ECHO_C$ac_delim
21401ECHO_N!$ECHO_N$ac_delim
21402ECHO_T!$ECHO_T$ac_delim
21403LIBS!$LIBS$ac_delim
21404build_alias!$build_alias$ac_delim
21405host_alias!$host_alias$ac_delim
21406target_alias!$target_alias$ac_delim
21407LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21408subdirs!$subdirs$ac_delim
21409build!$build$ac_delim
21410build_cpu!$build_cpu$ac_delim
21411build_vendor!$build_vendor$ac_delim
21412build_os!$build_os$ac_delim
21413host!$host$ac_delim
21414host_cpu!$host_cpu$ac_delim
21415host_vendor!$host_vendor$ac_delim
21416host_os!$host_os$ac_delim
21417target!$target$ac_delim
21418target_cpu!$target_cpu$ac_delim
21419target_vendor!$target_vendor$ac_delim
21420target_os!$target_os$ac_delim
21421OS!$OS$ac_delim
21422HOST_OS!$HOST_OS$ac_delim
21423TARGET_OS!$TARGET_OS$ac_delim
21424LINKALL!$LINKALL$ac_delim
21425NOLINKALL!$NOLINKALL$ac_delim
21426LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21427LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21428ARCH!$ARCH$ac_delim
21429ENDIAN!$ENDIAN$ac_delim
21430CC!$CC$ac_delim
21431CFLAGS!$CFLAGS$ac_delim
21432LDFLAGS!$LDFLAGS$ac_delim
21433CPPFLAGS!$CPPFLAGS$ac_delim
21434ac_ct_CC!$ac_ct_CC$ac_delim
21435EXEEXT!$EXEEXT$ac_delim
21436OBJEXT!$OBJEXT$ac_delim
21437CPP!$CPP$ac_delim
21438GREP!$GREP$ac_delim
21439EGREP!$EGREP$ac_delim
21440LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21441BUILD_CC!$BUILD_CC$ac_delim
21442BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21443BUILD_CXX!$BUILD_CXX$ac_delim
21444CVSBUILD!$CVSBUILD$ac_delim
21445ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21446ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21447DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21448ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21449EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21450DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21451DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21452JIT!$JIT$ac_delim
21453TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21454ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21455ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21456ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021457ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021458ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021459TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21460LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21461LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21462LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21463LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21464ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021465CLANGPATH!$CLANGPATH$ac_delim
21466CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021467_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021469 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021470 break
21471 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021472 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21473echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21474 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021475 else
21476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021477 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021478done
21479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021480ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21481if test -n "$ac_eof"; then
21482 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21483 ac_eof=`expr $ac_eof + 1`
21484fi
21485
21486cat >>$CONFIG_STATUS <<_ACEOF
21487cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21488/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021489_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021490sed '
21491s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21492s/^/s,@/; s/!/@,|#_!!_#|/
21493:n
21494t n
21495s/'"$ac_delim"'$/,g/; t
21496s/$/\\/; p
21497N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21498' >>$CONFIG_STATUS <conf$$subs.sed
21499rm -f conf$$subs.sed
21500cat >>$CONFIG_STATUS <<_ACEOF
21501CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021502_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503
21504
21505ac_delim='%!_!# '
21506for ac_last_try in false false false false false :; do
21507 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021508ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021509OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021510EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21511BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21512ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021513ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21514CXX!$CXX$ac_delim
21515CXXFLAGS!$CXXFLAGS$ac_delim
21516ac_ct_CXX!$ac_ct_CXX$ac_delim
21517NM!$NM$ac_delim
21518ifGNUmake!$ifGNUmake$ac_delim
21519LN_S!$LN_S$ac_delim
21520CMP!$CMP$ac_delim
21521CP!$CP$ac_delim
21522DATE!$DATE$ac_delim
21523FIND!$FIND$ac_delim
21524MKDIR!$MKDIR$ac_delim
21525MV!$MV$ac_delim
21526RANLIB!$RANLIB$ac_delim
21527AR!$AR$ac_delim
21528RM!$RM$ac_delim
21529SED!$SED$ac_delim
21530TAR!$TAR$ac_delim
21531BINPWD!$BINPWD$ac_delim
21532GRAPHVIZ!$GRAPHVIZ$ac_delim
21533DOT!$DOT$ac_delim
21534FDP!$FDP$ac_delim
21535NEATO!$NEATO$ac_delim
21536TWOPI!$TWOPI$ac_delim
21537CIRCO!$CIRCO$ac_delim
21538GV!$GV$ac_delim
21539DOTTY!$DOTTY$ac_delim
21540PERL!$PERL$ac_delim
21541HAVE_PERL!$HAVE_PERL$ac_delim
21542INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21543INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21544INSTALL_DATA!$INSTALL_DATA$ac_delim
21545BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021546CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547DOXYGEN!$DOXYGEN$ac_delim
21548GROFF!$GROFF$ac_delim
21549GZIP!$GZIP$ac_delim
21550POD2HTML!$POD2HTML$ac_delim
21551POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021552PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021553RUNTEST!$RUNTEST$ac_delim
21554TCLSH!$TCLSH$ac_delim
21555ZIP!$ZIP$ac_delim
21556OCAMLC!$OCAMLC$ac_delim
21557OCAMLOPT!$OCAMLOPT$ac_delim
21558OCAMLDEP!$OCAMLDEP$ac_delim
21559OCAMLDOC!$OCAMLDOC$ac_delim
21560GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021561HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021562INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21563INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21564CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21565CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21566LIBADD_DL!$LIBADD_DL$ac_delim
21567LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21568LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21569LLVMGCC!$LLVMGCC$ac_delim
21570LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021571LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21573NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21574USE_UDIS86!$USE_UDIS86$ac_delim
21575USE_OPROFILE!$USE_OPROFILE$ac_delim
21576HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21577HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21578MMAP_FILE!$MMAP_FILE$ac_delim
21579LLVMCC1!$LLVMCC1$ac_delim
21580LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21581LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021582LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21583SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021584SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021585LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21586LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21587LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21588LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21589LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21590LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21591LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21592LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21593LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21594LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21595BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21596ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21597OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21598ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21599RPATH!$RPATH$ac_delim
21600RDYNAMIC!$RDYNAMIC$ac_delim
21601LIBOBJS!$LIBOBJS$ac_delim
21602LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021603_ACEOF
21604
Daniel Dunbardd464df2010-05-10 20:11:56 +000021605 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021606 break
21607 elif $ac_last_try; then
21608 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21609echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21610 { (exit 1); exit 1; }; }
21611 else
21612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21613 fi
21614done
21615
21616ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21617if test -n "$ac_eof"; then
21618 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21619 ac_eof=`expr $ac_eof + 1`
21620fi
21621
21622cat >>$CONFIG_STATUS <<_ACEOF
21623cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21624/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21625_ACEOF
21626sed '
21627s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21628s/^/s,@/; s/!/@,|#_!!_#|/
21629:n
21630t n
21631s/'"$ac_delim"'$/,g/; t
21632s/$/\\/; p
21633N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21634' >>$CONFIG_STATUS <conf$$subs.sed
21635rm -f conf$$subs.sed
21636cat >>$CONFIG_STATUS <<_ACEOF
21637:end
21638s/|#_!!_#|//g
21639CEOF$ac_eof
21640_ACEOF
21641
21642
Reid Spencera773bd52006-08-04 18:18:08 +000021643# VPATH may cause trouble with some makes, so we remove $(srcdir),
21644# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21645# trailing colons and then remove the whole line if VPATH becomes empty
21646# (actually we leave an empty line to preserve line numbers).
21647if test "x$srcdir" = x.; then
21648 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21649s/:*\$(srcdir):*/:/
21650s/:*\${srcdir}:*/:/
21651s/:*@srcdir@:*/:/
21652s/^\([^=]*=[ ]*\):*/\1/
21653s/:*$//
21654s/^[^=]*=[ ]*$//
21655}'
21656fi
21657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021658cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021659fi # test -n "$CONFIG_FILES"
21660
Reid Spencera773bd52006-08-04 18:18:08 +000021661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021662for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021663do
21664 case $ac_tag in
21665 :[FHLC]) ac_mode=$ac_tag; continue;;
21666 esac
21667 case $ac_mode$ac_tag in
21668 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021669 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21670echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21671 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021672 :[FH]-) ac_tag=-:-;;
21673 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21674 esac
21675 ac_save_IFS=$IFS
21676 IFS=:
21677 set x $ac_tag
21678 IFS=$ac_save_IFS
21679 shift
21680 ac_file=$1
21681 shift
21682
21683 case $ac_mode in
21684 :L) ac_source=$1;;
21685 :[FH])
21686 ac_file_inputs=
21687 for ac_f
21688 do
21689 case $ac_f in
21690 -) ac_f="$tmp/stdin";;
21691 *) # Look for the file first in the build tree, then in the source tree
21692 # (if the path is not absolute). The absolute path cannot be DOS-style,
21693 # because $ac_f cannot contain `:'.
21694 test -f "$ac_f" ||
21695 case $ac_f in
21696 [\\/$]*) false;;
21697 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21698 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021699 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21700echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21701 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021702 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021703 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021704 done
21705
21706 # Let's still pretend it is `configure' which instantiates (i.e., don't
21707 # use $as_me), people would be surprised to read:
21708 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021709 configure_input="Generated from "`IFS=:
21710 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021711 if test x"$ac_file" != x-; then
21712 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021713 { echo "$as_me:$LINENO: creating $ac_file" >&5
21714echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021715 fi
21716
21717 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021718 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021719 esac
21720 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021721 esac
21722
Reid Spencera773bd52006-08-04 18:18:08 +000021723 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021724$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021725 X"$ac_file" : 'X\(//\)[^/]' \| \
21726 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021727 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021728echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21730 s//\1/
21731 q
21732 }
21733 /^X\(\/\/\)[^/].*/{
21734 s//\1/
21735 q
21736 }
21737 /^X\(\/\/\)$/{
21738 s//\1/
21739 q
21740 }
21741 /^X\(\/\).*/{
21742 s//\1/
21743 q
21744 }
21745 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021746 { as_dir="$ac_dir"
21747 case $as_dir in #(
21748 -*) as_dir=./$as_dir;;
21749 esac
21750 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21751 as_dirs=
21752 while :; do
21753 case $as_dir in #(
21754 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21755 *) as_qdir=$as_dir;;
21756 esac
21757 as_dirs="'$as_qdir' $as_dirs"
21758 as_dir=`$as_dirname -- "$as_dir" ||
21759$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21760 X"$as_dir" : 'X\(//\)[^/]' \| \
21761 X"$as_dir" : 'X\(//\)$' \| \
21762 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21763echo X"$as_dir" |
21764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21765 s//\1/
21766 q
21767 }
21768 /^X\(\/\/\)[^/].*/{
21769 s//\1/
21770 q
21771 }
21772 /^X\(\/\/\)$/{
21773 s//\1/
21774 q
21775 }
21776 /^X\(\/\).*/{
21777 s//\1/
21778 q
21779 }
21780 s/.*/./; q'`
21781 test -d "$as_dir" && break
21782 done
21783 test -z "$as_dirs" || eval "mkdir $as_dirs"
21784 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21785echo "$as_me: error: cannot create directory $as_dir" >&2;}
21786 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021787 ac_builddir=.
21788
Reid Spencera773bd52006-08-04 18:18:08 +000021789case "$ac_dir" in
21790.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21791*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021792 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021793 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021794 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021795 case $ac_top_builddir_sub in
21796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21798 esac ;;
21799esac
21800ac_abs_top_builddir=$ac_pwd
21801ac_abs_builddir=$ac_pwd$ac_dir_suffix
21802# for backward compatibility:
21803ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021804
21805case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021806 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021807 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021808 ac_top_srcdir=$ac_top_builddir_sub
21809 ac_abs_top_srcdir=$ac_pwd ;;
21810 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021811 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021812 ac_top_srcdir=$srcdir
21813 ac_abs_top_srcdir=$srcdir ;;
21814 *) # Relative name.
21815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21816 ac_top_srcdir=$ac_top_build_prefix$srcdir
21817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021818esac
Reid Spencera773bd52006-08-04 18:18:08 +000021819ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021820
John Criswell7a73b802003-06-30 21:59:07 +000021821
Reid Spencera773bd52006-08-04 18:18:08 +000021822 case $ac_mode in
21823 :F)
21824 #
21825 # CONFIG_FILE
21826 #
John Criswell7a73b802003-06-30 21:59:07 +000021827
21828 case $INSTALL in
21829 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021830 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021831 esac
John Criswell7a73b802003-06-30 21:59:07 +000021832_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021834cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021835# If the template does not know about datarootdir, expand it.
21836# FIXME: This hack should be removed a few years after 2.60.
21837ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021838
21839case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021840 p
21841 q
21842}
21843/@datadir@/p
21844/@docdir@/p
21845/@infodir@/p
21846/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847/@mandir@/p
21848' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021849*datarootdir*) ac_datarootdir_seen=yes;;
21850*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021851 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21852echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021853_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021854cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021855 ac_datarootdir_hack='
21856 s&@datadir@&$datadir&g
21857 s&@docdir@&$docdir&g
21858 s&@infodir@&$infodir&g
21859 s&@localedir@&$localedir&g
21860 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021861 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021862esac
21863_ACEOF
21864
21865# Neutralize VPATH when `$srcdir' = `.'.
21866# Shell code in configure.ac might set extrasub.
21867# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021868cat >>$CONFIG_STATUS <<_ACEOF
21869 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021870$extrasub
21871_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021873:t
21874/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021876s&@top_builddir@&$ac_top_builddir_sub&;t t
21877s&@srcdir@&$ac_srcdir&;t t
21878s&@abs_srcdir@&$ac_abs_srcdir&;t t
21879s&@top_srcdir@&$ac_top_srcdir&;t t
21880s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21881s&@builddir@&$ac_builddir&;t t
21882s&@abs_builddir@&$ac_abs_builddir&;t t
21883s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21884s&@INSTALL@&$ac_INSTALL&;t t
21885$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021886" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021887
Reid Spencera773bd52006-08-04 18:18:08 +000021888test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21889 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21890 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021891 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021892which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021894which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021895
Reid Spencera773bd52006-08-04 18:18:08 +000021896 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021897 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021898 -) cat "$tmp/out"; rm -f "$tmp/out";;
21899 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21900 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021901 ;;
21902 :H)
21903 #
21904 # CONFIG_HEADER
21905 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906_ACEOF
21907
21908# Transform confdefs.h into a sed script `conftest.defines', that
21909# substitutes the proper values into config.h.in to produce config.h.
21910rm -f conftest.defines conftest.tail
21911# First, append a space to every undef/define line, to ease matching.
21912echo 's/$/ /' >conftest.defines
21913# Then, protect against being on the right side of a sed subst, or in
21914# an unquoted here document, in config.status. If some macros were
21915# called several times there might be several #defines for the same
21916# symbol, which is useless. But do not sort them, since the last
21917# AC_DEFINE must be honored.
21918ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21919# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21920# NAME is the cpp macro being defined, VALUE is the value it is being given.
21921# PARAMS is the parameter list in the macro definition--in most cases, it's
21922# just an empty string.
21923ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21924ac_dB='\\)[ (].*,\\1define\\2'
21925ac_dC=' '
21926ac_dD=' ,'
21927
21928uniq confdefs.h |
21929 sed -n '
21930 t rset
21931 :rset
21932 s/^[ ]*#[ ]*define[ ][ ]*//
21933 t ok
21934 d
21935 :ok
21936 s/[\\&,]/\\&/g
21937 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21938 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21939 ' >>conftest.defines
21940
21941# Remove the space that was appended to ease matching.
21942# Then replace #undef with comments. This is necessary, for
21943# example, in the case of _POSIX_SOURCE, which is predefined and required
21944# on some systems where configure will not decide to define it.
21945# (The regexp can be short, since the line contains either #define or #undef.)
21946echo 's/ $//
21947s,^[ #]*u.*,/* & */,' >>conftest.defines
21948
21949# Break up conftest.defines:
21950ac_max_sed_lines=50
21951
21952# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21953# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21954# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21955# et cetera.
21956ac_in='$ac_file_inputs'
21957ac_out='"$tmp/out1"'
21958ac_nxt='"$tmp/out2"'
21959
21960while :
21961do
21962 # Write a here document:
21963 cat >>$CONFIG_STATUS <<_ACEOF
21964 # First, check the format of the line:
21965 cat >"\$tmp/defines.sed" <<\\CEOF
21966/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21967/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21968b
21969:def
21970_ACEOF
21971 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21972 echo 'CEOF
21973 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21974 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21975 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21976 grep . conftest.tail >/dev/null || break
21977 rm -f conftest.defines
21978 mv conftest.tail conftest.defines
21979done
21980rm -f conftest.defines conftest.tail
21981
21982echo "ac_result=$ac_in" >>$CONFIG_STATUS
21983cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021984 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021985 echo "/* $configure_input */" >"$tmp/config.h"
21986 cat "$ac_result" >>"$tmp/config.h"
21987 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21988 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21989echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021990 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021991 rm -f $ac_file
21992 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021993 fi
21994 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021995 echo "/* $configure_input */"
21996 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021997 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021998 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021999 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022001 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22002echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022003 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022004 esac
John Criswell7a73b802003-06-30 21:59:07 +000022005
Reid Spencera773bd52006-08-04 18:18:08 +000022006
22007 case $ac_file$ac_mode in
22008 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022010 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022012 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022014 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022016 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022018 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022020 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022022 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022024 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022026 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022028 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022030 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022032 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022033 ${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 +000022034
22035 esac
22036done # for ac_tag
22037
John Criswell7a73b802003-06-30 21:59:07 +000022038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022039{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022040_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022041chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022042ac_clean_files=$ac_clean_files_save
22043
22044
22045# configure is writing to config.log, and then calls config.status.
22046# config.status does its own redirection, appending to config.log.
22047# Unfortunately, on DOS this fails, as config.log is still kept open
22048# by configure, so config.status won't be able to write to it; its
22049# output is simply discarded. So we exec the FD to /dev/null,
22050# effectively closing config.log, so it can be properly (re)opened and
22051# appended to by config.status. When coming back to configure, we
22052# need to make the FD available again.
22053if test "$no_create" != yes; then
22054 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022055 ac_config_status_args=
22056 test "$silent" = yes &&
22057 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022058 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022059 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022060 exec 5>>config.log
22061 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22062 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022063 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022064fi
22065
John Criswell12399a12003-09-30 15:55:44 +000022066#
22067# CONFIG_SUBDIRS section.
22068#
22069if test "$no_recursion" != yes; then
22070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022071 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022072 ac_sub_configure_args=
22073 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022074 eval "set x $ac_configure_args"
22075 shift
22076 for ac_arg
22077 do
John Criswell12399a12003-09-30 15:55:44 +000022078 if test -n "$ac_prev"; then
22079 ac_prev=
22080 continue
22081 fi
22082 case $ac_arg in
22083 -cache-file | --cache-file | --cache-fil | --cache-fi \
22084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22085 ac_prev=cache_file ;;
22086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22088 | --c=*)
22089 ;;
22090 --config-cache | -C)
22091 ;;
22092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22093 ac_prev=srcdir ;;
22094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22095 ;;
22096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22097 ac_prev=prefix ;;
22098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22099 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022100 *)
22101 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022102 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022103 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022104 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022105 esac
22106 done
22107
22108 # Always prepend --prefix to ensure using the same prefix
22109 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022110 ac_arg="--prefix=$prefix"
22111 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022112 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022113 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022114 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022115
22116 ac_popdir=`pwd`
22117 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22118
22119 # Do not complain, so a configure script can configure whichever
22120 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022121 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022122
Reid Spencera773bd52006-08-04 18:18:08 +000022123 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022124 echo "$as_me:$LINENO: $ac_msg" >&5
22125 echo "$ac_msg" >&6
22126 { as_dir="$ac_dir"
22127 case $as_dir in #(
22128 -*) as_dir=./$as_dir;;
22129 esac
22130 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22131 as_dirs=
22132 while :; do
22133 case $as_dir in #(
22134 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22135 *) as_qdir=$as_dir;;
22136 esac
22137 as_dirs="'$as_qdir' $as_dirs"
22138 as_dir=`$as_dirname -- "$as_dir" ||
22139$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22140 X"$as_dir" : 'X\(//\)[^/]' \| \
22141 X"$as_dir" : 'X\(//\)$' \| \
22142 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22143echo X"$as_dir" |
22144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22145 s//\1/
22146 q
22147 }
22148 /^X\(\/\/\)[^/].*/{
22149 s//\1/
22150 q
22151 }
22152 /^X\(\/\/\)$/{
22153 s//\1/
22154 q
22155 }
22156 /^X\(\/\).*/{
22157 s//\1/
22158 q
22159 }
22160 s/.*/./; q'`
22161 test -d "$as_dir" && break
22162 done
22163 test -z "$as_dirs" || eval "mkdir $as_dirs"
22164 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22165echo "$as_me: error: cannot create directory $as_dir" >&2;}
22166 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022167 ac_builddir=.
22168
Reid Spencera773bd52006-08-04 18:18:08 +000022169case "$ac_dir" in
22170.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22171*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022172 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022173 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022174 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022175 case $ac_top_builddir_sub in
22176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22178 esac ;;
22179esac
22180ac_abs_top_builddir=$ac_pwd
22181ac_abs_builddir=$ac_pwd$ac_dir_suffix
22182# for backward compatibility:
22183ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022184
22185case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022186 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022187 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022188 ac_top_srcdir=$ac_top_builddir_sub
22189 ac_abs_top_srcdir=$ac_pwd ;;
22190 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022191 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022192 ac_top_srcdir=$srcdir
22193 ac_abs_top_srcdir=$srcdir ;;
22194 *) # Relative name.
22195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22196 ac_top_srcdir=$ac_top_build_prefix$srcdir
22197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022198esac
Reid Spencera773bd52006-08-04 18:18:08 +000022199ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022200
22201
Reid Spencera773bd52006-08-04 18:18:08 +000022202 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022203
22204 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022205 if test -f "$ac_srcdir/configure.gnu"; then
22206 ac_sub_configure=$ac_srcdir/configure.gnu
22207 elif test -f "$ac_srcdir/configure"; then
22208 ac_sub_configure=$ac_srcdir/configure
22209 elif test -f "$ac_srcdir/configure.in"; then
22210 # This should be Cygnus configure.
22211 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022212 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022213 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22214echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022215 ac_sub_configure=
22216 fi
22217
22218 # The recursion is here.
22219 if test -n "$ac_sub_configure"; then
22220 # Make the cache file name correct relative to the subdirectory.
22221 case $cache_file in
22222 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022223 *) # Relative name.
22224 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022225 esac
22226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022227 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22228echo "$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 +000022229 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022230 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22231 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022232 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22233echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22234 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022235 fi
22236
Reid Spencera773bd52006-08-04 18:18:08 +000022237 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022238 done
22239fi
22240