blob: f1488d32ed4730745306b38db03e84dc8d5436f0 [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
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008007case "$INSTALL" in
8008 [\\/$]* | ?:[\\/]* ) ;;
8009 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8010esac
Reid Spencera773bd52006-08-04 18:18:08 +00008011
8012# Extract the first word of "bzip2", so it can be a program name with args.
8013set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8016if test "${ac_cv_path_BZIP2+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008018else
8019 case $BZIP2 in
8020 [\\/]* | ?:[\\/]*)
8021 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8022 ;;
8023 *)
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
8026do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 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 +00008031 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008033 break 2
8034 fi
8035done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008036done
Reid Spencera773bd52006-08-04 18:18:08 +00008037IFS=$as_save_IFS
8038
Reid Spencera773bd52006-08-04 18:18:08 +00008039 ;;
8040esac
8041fi
8042BZIP2=$ac_cv_path_BZIP2
8043if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008044 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8045echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008047 { echo "$as_me:$LINENO: result: no" >&5
8048echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008049fi
8050
8051
mike-m68cb3192010-05-06 23:45:43 +00008052# Extract the first word of "cat", so it can be a program name with args.
8053set dummy cat; ac_word=$2
8054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8056if test "${ac_cv_path_CAT+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8058else
8059 case $CAT in
8060 [\\/]* | ?:[\\/]*)
8061 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8062 ;;
8063 *)
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8071 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075done
8076done
8077IFS=$as_save_IFS
8078
8079 ;;
8080esac
8081fi
8082CAT=$ac_cv_path_CAT
8083if test -n "$CAT"; then
8084 { echo "$as_me:$LINENO: result: $CAT" >&5
8085echo "${ECHO_T}$CAT" >&6; }
8086else
8087 { echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6; }
8089fi
8090
8091
Reid Spencera773bd52006-08-04 18:18:08 +00008092# Extract the first word of "doxygen", so it can be a program name with args.
8093set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8096if test "${ac_cv_path_DOXYGEN+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008098else
8099 case $DOXYGEN in
8100 [\\/]* | ?:[\\/]*)
8101 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8102 ;;
8103 *)
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105for as_dir in $PATH
8106do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 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 +00008111 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008113 break 2
8114 fi
8115done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008116done
Reid Spencera773bd52006-08-04 18:18:08 +00008117IFS=$as_save_IFS
8118
Reid Spencera773bd52006-08-04 18:18:08 +00008119 ;;
8120esac
8121fi
8122DOXYGEN=$ac_cv_path_DOXYGEN
8123if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008124 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8125echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008126else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008127 { echo "$as_me:$LINENO: result: no" >&5
8128echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008129fi
8130
8131
Reid Spencera773bd52006-08-04 18:18:08 +00008132# Extract the first word of "groff", so it can be a program name with args.
8133set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8136if test "${ac_cv_path_GROFF+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008138else
8139 case $GROFF in
8140 [\\/]* | ?:[\\/]*)
8141 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8142 ;;
8143 *)
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145for as_dir in $PATH
8146do
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 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 +00008151 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008153 break 2
8154 fi
8155done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008156done
Reid Spencera773bd52006-08-04 18:18:08 +00008157IFS=$as_save_IFS
8158
Reid Spencera773bd52006-08-04 18:18:08 +00008159 ;;
8160esac
8161fi
8162GROFF=$ac_cv_path_GROFF
8163if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008164 { echo "$as_me:$LINENO: result: $GROFF" >&5
8165echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008166else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167 { echo "$as_me:$LINENO: result: no" >&5
8168echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008169fi
8170
8171
8172# Extract the first word of "gzip", so it can be a program name with args.
8173set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8176if test "${ac_cv_path_GZIP+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008178else
8179 case $GZIP in
8180 [\\/]* | ?:[\\/]*)
8181 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8182 ;;
8183 *)
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185for as_dir in $PATH
8186do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 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 +00008191 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008193 break 2
8194 fi
8195done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196done
Reid Spencera773bd52006-08-04 18:18:08 +00008197IFS=$as_save_IFS
8198
Reid Spencera773bd52006-08-04 18:18:08 +00008199 ;;
8200esac
8201fi
8202GZIP=$ac_cv_path_GZIP
8203if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008204 { echo "$as_me:$LINENO: result: $GZIP" >&5
8205echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207 { echo "$as_me:$LINENO: result: no" >&5
8208echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008209fi
8210
8211
8212# Extract the first word of "pod2html", so it can be a program name with args.
8213set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008214{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8216if test "${ac_cv_path_POD2HTML+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008218else
8219 case $POD2HTML in
8220 [\\/]* | ?:[\\/]*)
8221 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8222 ;;
8223 *)
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225for as_dir in $PATH
8226do
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 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 +00008231 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008233 break 2
8234 fi
8235done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236done
Reid Spencera773bd52006-08-04 18:18:08 +00008237IFS=$as_save_IFS
8238
Reid Spencera773bd52006-08-04 18:18:08 +00008239 ;;
8240esac
8241fi
8242POD2HTML=$ac_cv_path_POD2HTML
8243if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008244 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8245echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008247 { echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008249fi
8250
8251
8252# Extract the first word of "pod2man", so it can be a program name with args.
8253set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8256if test "${ac_cv_path_POD2MAN+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008258else
8259 case $POD2MAN in
8260 [\\/]* | ?:[\\/]*)
8261 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8262 ;;
8263 *)
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265for as_dir in $PATH
8266do
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 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 +00008271 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008273 break 2
8274 fi
8275done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008276done
Reid Spencera773bd52006-08-04 18:18:08 +00008277IFS=$as_save_IFS
8278
Reid Spencera773bd52006-08-04 18:18:08 +00008279 ;;
8280esac
8281fi
8282POD2MAN=$ac_cv_path_POD2MAN
8283if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008284 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8285echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008287 { echo "$as_me:$LINENO: result: no" >&5
8288echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008289fi
8290
8291
mike-m68cb3192010-05-06 23:45:43 +00008292# Extract the first word of "pdfroff", so it can be a program name with args.
8293set dummy pdfroff; ac_word=$2
8294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296if test "${ac_cv_path_PDFROFF+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298else
8299 case $PDFROFF in
8300 [\\/]* | ?:[\\/]*)
8301 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8302 ;;
8303 *)
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8314 fi
8315done
8316done
8317IFS=$as_save_IFS
8318
8319 ;;
8320esac
8321fi
8322PDFROFF=$ac_cv_path_PDFROFF
8323if test -n "$PDFROFF"; then
8324 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8325echo "${ECHO_T}$PDFROFF" >&6; }
8326else
8327 { echo "$as_me:$LINENO: result: no" >&5
8328echo "${ECHO_T}no" >&6; }
8329fi
8330
8331
Reid Spencera773bd52006-08-04 18:18:08 +00008332# Extract the first word of "runtest", so it can be a program name with args.
8333set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8336if test "${ac_cv_path_RUNTEST+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008338else
8339 case $RUNTEST in
8340 [\\/]* | ?:[\\/]*)
8341 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8342 ;;
8343 *)
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345for as_dir in $PATH
8346do
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 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 +00008351 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008353 break 2
8354 fi
8355done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008356done
Reid Spencera773bd52006-08-04 18:18:08 +00008357IFS=$as_save_IFS
8358
Reid Spencera773bd52006-08-04 18:18:08 +00008359 ;;
8360esac
8361fi
8362RUNTEST=$ac_cv_path_RUNTEST
8363if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008364 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8365echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008366else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008367 { echo "$as_me:$LINENO: result: no" >&5
8368echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008369fi
8370
8371
8372
8373no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008374{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8375echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008376
8377# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008378if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008379 withval=$with_tclinclude; with_tclinclude=${withval}
8380else
8381 with_tclinclude=''
8382fi
8383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008384if test "${ac_cv_path_tclsh+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008386else
8387
8388if test x"${with_tclinclude}" != x ; then
8389 if test -f ${with_tclinclude}/tclsh ; then
8390 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8391 elif test -f ${with_tclinclude}/src/tclsh ; then
8392 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8393 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008394 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8395echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8396 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008397 fi
8398fi
Torok Edwin871384f2010-01-26 08:50:50 +00008399fi
8400
Reid Spencera773bd52006-08-04 18:18:08 +00008401
8402if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008403 { echo "$as_me:$LINENO: result: none" >&5
8404echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008405 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
8406do
8407 # Extract the first word of "$ac_prog", so it can be a program name with args.
8408set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411if test "${ac_cv_path_TCLSH+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008413else
8414 case $TCLSH in
8415 [\\/]* | ?:[\\/]*)
8416 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8417 ;;
8418 *)
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 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 +00008426 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008428 break 2
8429 fi
8430done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008431done
Reid Spencera773bd52006-08-04 18:18:08 +00008432IFS=$as_save_IFS
8433
8434 ;;
8435esac
8436fi
8437TCLSH=$ac_cv_path_TCLSH
8438if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008439 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8440echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008442 { echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008444fi
8445
8446
8447 test -n "$TCLSH" && break
8448done
8449
8450 if test x"${TCLSH}" = x ; then
8451 ac_cv_path_tclsh='';
8452 else
8453 ac_cv_path_tclsh="${TCLSH}";
8454 fi
8455else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008456 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8457echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008458 TCLSH="${ac_cv_path_tclsh}"
8459
8460fi
8461
Reid Spencera773bd52006-08-04 18:18:08 +00008462# Extract the first word of "zip", so it can be a program name with args.
8463set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8466if test "${ac_cv_path_ZIP+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008468else
8469 case $ZIP in
8470 [\\/]* | ?:[\\/]*)
8471 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8472 ;;
8473 *)
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475for as_dir in $PATH
8476do
8477 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 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 +00008481 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008483 break 2
8484 fi
8485done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008486done
Reid Spencera773bd52006-08-04 18:18:08 +00008487IFS=$as_save_IFS
8488
Reid Spencera773bd52006-08-04 18:18:08 +00008489 ;;
8490esac
8491fi
8492ZIP=$ac_cv_path_ZIP
8493if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008494 { echo "$as_me:$LINENO: result: $ZIP" >&5
8495echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008497 { echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008499fi
8500
8501
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008502for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008503do
8504 # Extract the first word of "$ac_prog", so it can be a program name with args.
8505set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8508if test "${ac_cv_path_OCAMLC+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008510else
8511 case $OCAMLC in
8512 [\\/]* | ?:[\\/]*)
8513 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8514 ;;
8515 *)
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517for as_dir in $PATH
8518do
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 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 +00008523 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008525 break 2
8526 fi
8527done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008529IFS=$as_save_IFS
8530
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008531 ;;
8532esac
8533fi
8534OCAMLC=$ac_cv_path_OCAMLC
8535if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8537echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008539 { echo "$as_me:$LINENO: result: no" >&5
8540echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008541fi
8542
8543
Gordon Henriksene7072162008-03-07 18:20:01 +00008544 test -n "$OCAMLC" && break
8545done
8546
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008547for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008548do
8549 # Extract the first word of "$ac_prog", so it can be a program name with args.
8550set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008551{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8553if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008555else
8556 case $OCAMLOPT in
8557 [\\/]* | ?:[\\/]*)
8558 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8559 ;;
8560 *)
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562for as_dir in $PATH
8563do
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 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 +00008568 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008570 break 2
8571 fi
8572done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008573done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008574IFS=$as_save_IFS
8575
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008576 ;;
8577esac
8578fi
8579OCAMLOPT=$ac_cv_path_OCAMLOPT
8580if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008581 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8582echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008584 { echo "$as_me:$LINENO: result: no" >&5
8585echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008586fi
8587
8588
Gordon Henriksene7072162008-03-07 18:20:01 +00008589 test -n "$OCAMLOPT" && break
8590done
8591
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008592for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008593do
8594 # Extract the first word of "$ac_prog", so it can be a program name with args.
8595set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8598if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008600else
8601 case $OCAMLDEP in
8602 [\\/]* | ?:[\\/]*)
8603 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8604 ;;
8605 *)
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 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 +00008613 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008615 break 2
8616 fi
8617done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008618done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008619IFS=$as_save_IFS
8620
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008621 ;;
8622esac
8623fi
8624OCAMLDEP=$ac_cv_path_OCAMLDEP
8625if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008626 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8627echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008628else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008629 { echo "$as_me:$LINENO: result: no" >&5
8630echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008631fi
8632
8633
Gordon Henriksene7072162008-03-07 18:20:01 +00008634 test -n "$OCAMLDEP" && break
8635done
8636
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008637for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008638do
8639 # Extract the first word of "$ac_prog", so it can be a program name with args.
8640set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8643if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008645else
8646 case $OCAMLDOC in
8647 [\\/]* | ?:[\\/]*)
8648 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8649 ;;
8650 *)
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $PATH
8653do
8654 IFS=$as_save_IFS
8655 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 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 +00008658 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008660 break 2
8661 fi
8662done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008663done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008664IFS=$as_save_IFS
8665
8666 ;;
8667esac
8668fi
8669OCAMLDOC=$ac_cv_path_OCAMLDOC
8670if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008671 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8672echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008674 { echo "$as_me:$LINENO: result: no" >&5
8675echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008676fi
8677
8678
8679 test -n "$OCAMLDOC" && break
8680done
8681
Torok Edwincc499a42008-10-22 09:56:27 +00008682for ac_prog in gas as
8683do
8684 # Extract the first word of "$ac_prog", so it can be a program name with args.
8685set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8688if test "${ac_cv_path_GAS+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008690else
8691 case $GAS in
8692 [\\/]* | ?:[\\/]*)
8693 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8694 ;;
8695 *)
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697for as_dir in $PATH
8698do
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 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 +00008703 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008705 break 2
8706 fi
8707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008708done
Torok Edwincc499a42008-10-22 09:56:27 +00008709IFS=$as_save_IFS
8710
8711 ;;
8712esac
8713fi
8714GAS=$ac_cv_path_GAS
8715if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008716 { echo "$as_me:$LINENO: result: $GAS" >&5
8717echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008718else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008719 { echo "$as_me:$LINENO: result: no" >&5
8720echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008721fi
8722
8723
8724 test -n "$GAS" && break
8725done
8726
Reid Spencera773bd52006-08-04 18:18:08 +00008727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008728{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8729echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8730if test "${llvm_cv_link_use_r+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008732else
8733 ac_ext=c
8734ac_cpp='$CPP $CPPFLAGS'
8735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8737ac_compiler_gnu=$ac_cv_c_compiler_gnu
8738
8739 oldcflags="$CFLAGS"
8740 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008741 cat >conftest.$ac_ext <<_ACEOF
8742/* confdefs.h. */
8743_ACEOF
8744cat confdefs.h >>conftest.$ac_ext
8745cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008746/* end confdefs.h. */
8747
8748int
8749main ()
8750{
Dan Gohman39ed6782010-04-25 00:12:20 +00008751
Reid Spencera773bd52006-08-04 18:18:08 +00008752 ;
8753 return 0;
8754}
8755_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008756rm -f conftest.$ac_objext conftest$ac_exeext
8757if { (ac_try="$ac_link"
8758case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761esac
8762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_link") 2>conftest.er1
8764 ac_status=$?
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } &&
8770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8771 { (case "(($ac_try" in
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8774esac
8775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_try") 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; } &&
8780 { ac_try='test -s conftest$ac_exeext'
8781 { (case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8784esac
8785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_try") 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008790 llvm_cv_link_use_r=yes
8791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008792 echo "$as_me: failed program was:" >&5
8793sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008797
Bill Wendlingebcceee2009-04-18 11:20:33 +00008798rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008799 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008800 CFLAGS="$oldcflags"
8801 ac_ext=c
8802ac_cpp='$CPP $CPPFLAGS'
8803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8805ac_compiler_gnu=$ac_cv_c_compiler_gnu
8806
8807
8808fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008809{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8810echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008811if test "$llvm_cv_link_use_r" = yes ; then
8812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008813cat >>confdefs.h <<\_ACEOF
8814#define HAVE_LINK_R 1
8815_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008816
8817 fi
8818
8819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008820{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8821echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8822if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008824else
8825 ac_ext=c
8826ac_cpp='$CPP $CPPFLAGS'
8827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8829ac_compiler_gnu=$ac_cv_c_compiler_gnu
8830
8831 oldcflags="$CFLAGS"
8832 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008833 cat >conftest.$ac_ext <<_ACEOF
8834/* confdefs.h. */
8835_ACEOF
8836cat confdefs.h >>conftest.$ac_ext
8837cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008838/* end confdefs.h. */
8839
8840int
8841main ()
8842{
Dan Gohman39ed6782010-04-25 00:12:20 +00008843
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008844 ;
8845 return 0;
8846}
8847_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008848rm -f conftest.$ac_objext conftest$ac_exeext
8849if { (ac_try="$ac_link"
8850case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8853esac
8854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_link") 2>conftest.er1
8856 ac_status=$?
8857 grep -v '^ *+' conftest.er1 >conftest.err
8858 rm -f conftest.er1
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } &&
8862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8863 { (case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866esac
8867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_try") 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest$ac_exeext'
8873 { (case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876esac
8877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_try") 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008882 llvm_cv_link_use_export_dynamic=yes
8883else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008884 echo "$as_me: failed program was:" >&5
8885sed 's/^/| /' conftest.$ac_ext >&5
8886
8887 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008888fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008889
Bill Wendlingebcceee2009-04-18 11:20:33 +00008890rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008891 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008892 CFLAGS="$oldcflags"
8893 ac_ext=c
8894ac_cpp='$CPP $CPPFLAGS'
8895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8897ac_compiler_gnu=$ac_cv_c_compiler_gnu
8898
8899
8900fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008901{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8902echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008903if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008905cat >>confdefs.h <<\_ACEOF
8906#define HAVE_LINK_EXPORT_DYNAMIC 1
8907_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008908
8909 fi
8910
8911
Dan Gohmanda612d62010-06-01 14:56:56 +00008912{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8913echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8914if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916else
8917 ac_ext=c
8918ac_cpp='$CPP $CPPFLAGS'
8919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8921ac_compiler_gnu=$ac_cv_c_compiler_gnu
8922
8923 oldcflags="$CFLAGS"
8924
8925 # The following code is from the autoconf manual,
8926 # "11.13: Limitations of Usual Tools".
8927 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8928 # Use mktemp if possible; otherwise fall back on mkdir,
8929 # with $RANDOM to make collisions less likely.
8930 : ${TMPDIR=/tmp}
8931 {
8932 tmp=`
8933 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8934 ` &&
8935 test -n "$tmp" && test -d "$tmp"
8936 } || {
8937 tmp=$TMPDIR/foo$$-$RANDOM
8938 (umask 077 && mkdir "$tmp")
8939 } || exit $?
8940
Dan Gohmanda612d62010-06-01 14:56:56 +00008941 echo "{" > "$tmp/export.map"
8942 echo " global: main;" >> "$tmp/export.map"
8943 echo " local: *;" >> "$tmp/export.map"
8944 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008945
Dan Gohmanda612d62010-06-01 14:56:56 +00008946 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008947 cat >conftest.$ac_ext <<_ACEOF
8948/* confdefs.h. */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
8952/* end confdefs.h. */
8953
8954int
8955main ()
8956{
Dan Gohman39ed6782010-04-25 00:12:20 +00008957
Dan Gohman391569c2010-04-16 22:59:06 +00008958 ;
8959 return 0;
8960}
8961_ACEOF
8962rm -f conftest.$ac_objext conftest$ac_exeext
8963if { (ac_try="$ac_link"
8964case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967esac
8968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_link") 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8977 { (case "(($ac_try" in
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8980esac
8981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982 (eval "$ac_try") 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; } &&
8986 { ac_try='test -s conftest$ac_exeext'
8987 { (case "(($ac_try" in
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8990esac
8991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_try") 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008996 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008997else
8998 echo "$as_me: failed program was:" >&5
8999sed 's/^/| /' conftest.$ac_ext >&5
9000
Dan Gohman943005e2010-06-01 16:22:27 +00009001 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009002fi
9003
9004rm -f core conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009006 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009007 rmdir "$tmp"
9008 CFLAGS="$oldcflags"
9009 ac_ext=c
9010ac_cpp='$CPP $CPPFLAGS'
9011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013ac_compiler_gnu=$ac_cv_c_compiler_gnu
9014
9015
9016fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009017{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9018echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9019if test "$llvm_cv_link_use_version_script" = yes ; then
9020 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009021
9022 fi
9023
9024
Reid Spencera773bd52006-08-04 18:18:08 +00009025
9026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009027{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9028echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9029if test "${ac_cv_c_const+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009031else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009032 cat >conftest.$ac_ext <<_ACEOF
9033/* confdefs.h. */
9034_ACEOF
9035cat confdefs.h >>conftest.$ac_ext
9036cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009037/* end confdefs.h. */
9038
9039int
9040main ()
9041{
9042/* FIXME: Include the comments suggested by Paul. */
9043#ifndef __cplusplus
9044 /* Ultrix mips cc rejects this. */
9045 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009046 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009047 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009048 char const *const *ccp;
9049 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009050 /* NEC SVR4.0.2 mips cc rejects this. */
9051 struct point {int x, y;};
9052 static struct point const zero = {0,0};
9053 /* AIX XL C 1.02.0.0 rejects this.
9054 It does not let you subtract one const X* pointer from another in
9055 an arm of an if-expression whose if-part is not a constant
9056 expression */
9057 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009058 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009059 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009060 ++ccp;
9061 p = (char**) ccp;
9062 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009063 { /* SCO 3.2v4 cc rejects this. */
9064 char *t;
9065 char const *s = 0 ? (char *) 0 : (char const *) 0;
9066
9067 *t++ = 0;
9068 if (s) return 0;
9069 }
9070 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9071 int x[] = {25, 17};
9072 const int *foo = &x[0];
9073 ++foo;
9074 }
9075 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9076 typedef const int *iptr;
9077 iptr p = 0;
9078 ++p;
9079 }
9080 { /* AIX XL C 1.02.0.0 rejects this saying
9081 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9082 struct s { int j; const int *ap[3]; };
9083 struct s *b; b->j = 5;
9084 }
9085 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9086 const int foo = 10;
9087 if (!foo) return 0;
9088 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009089 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009090#endif
9091
9092 ;
9093 return 0;
9094}
9095_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009096rm -f conftest.$ac_objext
9097if { (ac_try="$ac_compile"
9098case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9101esac
9102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103 (eval "$ac_compile") 2>conftest.er1
9104 ac_status=$?
9105 grep -v '^ *+' conftest.er1 >conftest.err
9106 rm -f conftest.er1
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9111 { (case "(($ac_try" in
9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9114esac
9115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116 (eval "$ac_try") 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest.$ac_objext'
9121 { (case "(($ac_try" in
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9124esac
9125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126 (eval "$ac_try") 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009130 ac_cv_c_const=yes
9131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009132 echo "$as_me: failed program was:" >&5
9133sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009137
Reid Spencera773bd52006-08-04 18:18:08 +00009138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9139fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009140{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9141echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009142if test $ac_cv_c_const = no; then
9143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009144cat >>confdefs.h <<\_ACEOF
9145#define const
9146_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009147
9148fi
9149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009150
9151
9152
9153
9154
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009155ac_header_dirent=no
9156for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009157 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9158{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9159echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009163 cat >conftest.$ac_ext <<_ACEOF
9164/* confdefs.h. */
9165_ACEOF
9166cat confdefs.h >>conftest.$ac_ext
9167cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009168/* end confdefs.h. */
9169#include <sys/types.h>
9170#include <$ac_hdr>
9171
9172int
9173main ()
9174{
9175if ((DIR *) 0)
9176return 0;
9177 ;
9178 return 0;
9179}
9180_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009181rm -f conftest.$ac_objext
9182if { (ac_try="$ac_compile"
9183case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186esac
9187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_compile") 2>conftest.er1
9189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } &&
9195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9196 { (case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9199esac
9200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_try") 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try='test -s conftest.$ac_objext'
9206 { (case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9209esac
9210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_try") 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009215 eval "$as_ac_Header=yes"
9216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009217 echo "$as_me: failed program was:" >&5
9218sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009222
Reid Spencera773bd52006-08-04 18:18:08 +00009223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009225ac_res=`eval echo '${'$as_ac_Header'}'`
9226 { echo "$as_me:$LINENO: result: $ac_res" >&5
9227echo "${ECHO_T}$ac_res" >&6; }
9228if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009229 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009230#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009231_ACEOF
9232
9233ac_header_dirent=$ac_hdr; break
9234fi
9235
9236done
9237# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9238if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009239 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9240echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9241if test "${ac_cv_search_opendir+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009243else
9244 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009245cat >conftest.$ac_ext <<_ACEOF
9246/* confdefs.h. */
9247_ACEOF
9248cat confdefs.h >>conftest.$ac_ext
9249cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009250/* end confdefs.h. */
9251
Reid Spencera773bd52006-08-04 18:18:08 +00009252/* Override any GCC internal prototype to avoid an error.
9253 Use char because int might match the return type of a GCC
9254 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009255#ifdef __cplusplus
9256extern "C"
9257#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009258char opendir ();
9259int
9260main ()
9261{
Reid Spencera773bd52006-08-04 18:18:08 +00009262return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009263 ;
9264 return 0;
9265}
9266_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009267for ac_lib in '' dir; do
9268 if test -z "$ac_lib"; then
9269 ac_res="none required"
9270 else
9271 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009273 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009274 rm -f conftest.$ac_objext conftest$ac_exeext
9275if { (ac_try="$ac_link"
9276case "(($ac_try" in
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9279esac
9280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_link") 2>conftest.er1
9282 ac_status=$?
9283 grep -v '^ *+' conftest.er1 >conftest.err
9284 rm -f conftest.er1
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9289 { (case "(($ac_try" in
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9292esac
9293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294 (eval "$ac_try") 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; } &&
9298 { ac_try='test -s conftest$ac_exeext'
9299 { (case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302esac
9303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_try") 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009308 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009309else
9310 echo "$as_me: failed program was:" >&5
9311sed 's/^/| /' conftest.$ac_ext >&5
9312
9313
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009315
Bill Wendlingebcceee2009-04-18 11:20:33 +00009316rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009317 conftest$ac_exeext
9318 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009319 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009320fi
John Criswell7a73b802003-06-30 21:59:07 +00009321done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009322if test "${ac_cv_search_opendir+set}" = set; then
9323 :
Reid Spencera773bd52006-08-04 18:18:08 +00009324else
9325 ac_cv_search_opendir=no
9326fi
9327rm conftest.$ac_ext
9328LIBS=$ac_func_search_save_LIBS
9329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009330{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9331echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009332ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009333if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009335
Reid Spencera773bd52006-08-04 18:18:08 +00009336fi
9337
9338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009339 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9340echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9341if test "${ac_cv_search_opendir+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009343else
9344 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009345cat >conftest.$ac_ext <<_ACEOF
9346/* confdefs.h. */
9347_ACEOF
9348cat confdefs.h >>conftest.$ac_ext
9349cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009350/* end confdefs.h. */
9351
9352/* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9355#ifdef __cplusplus
9356extern "C"
9357#endif
9358char opendir ();
9359int
9360main ()
9361{
9362return opendir ();
9363 ;
9364 return 0;
9365}
9366_ACEOF
9367for ac_lib in '' x; do
9368 if test -z "$ac_lib"; then
9369 ac_res="none required"
9370 else
9371 ac_res=-l$ac_lib
9372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9373 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009374 rm -f conftest.$ac_objext conftest$ac_exeext
9375if { (ac_try="$ac_link"
9376case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379esac
9380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_link") 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9389 { (case "(($ac_try" in
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9392esac
9393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9394 (eval "$ac_try") 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; } &&
9398 { ac_try='test -s conftest$ac_exeext'
9399 { (case "(($ac_try" in
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9402esac
9403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_try") 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009408 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009409else
9410 echo "$as_me: failed program was:" >&5
9411sed 's/^/| /' conftest.$ac_ext >&5
9412
9413
Reid Spencera773bd52006-08-04 18:18:08 +00009414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009415
Bill Wendlingebcceee2009-04-18 11:20:33 +00009416rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009417 conftest$ac_exeext
9418 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009419 break
9420fi
9421done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009422if test "${ac_cv_search_opendir+set}" = set; then
9423 :
Reid Spencera773bd52006-08-04 18:18:08 +00009424else
9425 ac_cv_search_opendir=no
9426fi
9427rm conftest.$ac_ext
9428LIBS=$ac_func_search_save_LIBS
9429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009430{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9431echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009432ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009433if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9435
9436fi
9437
9438fi
John Criswell7a73b802003-06-30 21:59:07 +00009439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009440
John Criswell7a73b802003-06-30 21:59:07 +00009441for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009442do
9443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449fi
9450ac_res=`eval echo '${'$as_ac_Header'}'`
9451 { echo "$as_me:$LINENO: result: $ac_res" >&5
9452echo "${ECHO_T}$ac_res" >&6; }
9453else
9454 # Is the header compilable?
9455{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9457cat >conftest.$ac_ext <<_ACEOF
9458/* confdefs.h. */
9459_ACEOF
9460cat confdefs.h >>conftest.$ac_ext
9461cat >>conftest.$ac_ext <<_ACEOF
9462/* end confdefs.h. */
9463$ac_includes_default
9464#include <$ac_header>
9465_ACEOF
9466rm -f conftest.$ac_objext
9467if { (ac_try="$ac_compile"
9468case "(($ac_try" in
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9471esac
9472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_compile") 2>conftest.er1
9474 ac_status=$?
9475 grep -v '^ *+' conftest.er1 >conftest.err
9476 rm -f conftest.er1
9477 cat conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } &&
9480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9481 { (case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9484esac
9485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_try") 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try='test -s conftest.$ac_objext'
9491 { (case "(($ac_try" in
9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9494esac
9495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496 (eval "$ac_try") 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 ac_header_compiler=yes
9501else
9502 echo "$as_me: failed program was:" >&5
9503sed 's/^/| /' conftest.$ac_ext >&5
9504
9505 ac_header_compiler=no
9506fi
9507
9508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9510echo "${ECHO_T}$ac_header_compiler" >&6; }
9511
9512# Is the header present?
9513{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9515cat >conftest.$ac_ext <<_ACEOF
9516/* confdefs.h. */
9517_ACEOF
9518cat confdefs.h >>conftest.$ac_ext
9519cat >>conftest.$ac_ext <<_ACEOF
9520/* end confdefs.h. */
9521#include <$ac_header>
9522_ACEOF
9523if { (ac_try="$ac_cpp conftest.$ac_ext"
9524case "(($ac_try" in
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9527esac
9528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9530 ac_status=$?
9531 grep -v '^ *+' conftest.er1 >conftest.err
9532 rm -f conftest.er1
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } >/dev/null; then
9536 if test -s conftest.err; then
9537 ac_cpp_err=$ac_c_preproc_warn_flag
9538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9539 else
9540 ac_cpp_err=
9541 fi
9542else
9543 ac_cpp_err=yes
9544fi
9545if test -z "$ac_cpp_err"; then
9546 ac_header_preproc=yes
9547else
9548 echo "$as_me: failed program was:" >&5
9549sed 's/^/| /' conftest.$ac_ext >&5
9550
9551 ac_header_preproc=no
9552fi
9553
9554rm -f conftest.err conftest.$ac_ext
9555{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9556echo "${ECHO_T}$ac_header_preproc" >&6; }
9557
9558# So? What about this header?
9559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9560 yes:no: )
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9565 ac_header_preproc=yes
9566 ;;
9567 no:yes:* )
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9575echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9580 ( cat <<\_ASBOX
9581## ----------------------------------- ##
9582## Report this to llvmbugs@cs.uiuc.edu ##
9583## ----------------------------------- ##
9584_ASBOX
9585 ) | sed "s/^/$as_me: WARNING: /" >&2
9586 ;;
9587esac
9588{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592else
9593 eval "$as_ac_Header=\$ac_header_preproc"
9594fi
9595ac_res=`eval echo '${'$as_ac_Header'}'`
9596 { echo "$as_me:$LINENO: result: $ac_res" >&5
9597echo "${ECHO_T}$ac_res" >&6; }
9598
9599fi
9600if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009601 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009602#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009603_ACEOF
9604
9605fi
9606
9607done
9608
Reid Spencera773bd52006-08-04 18:18:08 +00009609# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009610if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009611 enableval=$enable_ltdl_install;
9612fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009613
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009615
9616
9617if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009618 INSTALL_LTDL_TRUE=
9619 INSTALL_LTDL_FALSE='#'
9620else
9621 INSTALL_LTDL_TRUE='#'
9622 INSTALL_LTDL_FALSE=
9623fi
9624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009625
9626
9627if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009628 CONVENIENCE_LTDL_TRUE=
9629 CONVENIENCE_LTDL_FALSE='#'
9630else
9631 CONVENIENCE_LTDL_TRUE='#'
9632 CONVENIENCE_LTDL_FALSE=
9633fi
9634
9635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009636{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9637echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638library_names_spec=
9639libname_spec='lib$name'
9640soname_spec=
9641shrext_cmds=".so"
9642postinstall_cmds=
9643postuninstall_cmds=
9644finish_cmds=
9645finish_eval=
9646shlibpath_var=
9647shlibpath_overrides_runpath=unknown
9648version_type=none
9649dynamic_linker="$host_os ld.so"
9650sys_lib_dlsearch_path_spec="/lib /usr/lib"
9651if test "$GCC" = yes; then
9652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9653 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9654 # if the path contains ";" then we assume it to be the separator
9655 # otherwise default to the standard path separator (i.e. ":") - it is
9656 # assumed that no part of a normal pathname contains ";" but that should
9657 # okay in the real world where ";" in dirpaths is itself problematic.
9658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9659 else
9660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9661 fi
9662else
9663 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9664fi
9665need_lib_prefix=unknown
9666hardcode_into_libs=no
9667
9668# when you set need_version to no, make sure it does not cause -set_version
9669# flags to be left without arguments
9670need_version=unknown
9671
9672case $host_os in
9673aix3*)
9674 version_type=linux
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9676 shlibpath_var=LIBPATH
9677
9678 # AIX 3 has no versioning support, so we append a major version to the name.
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 ;;
9681
9682aix4* | aix5*)
9683 version_type=linux
9684 need_lib_prefix=no
9685 need_version=no
9686 hardcode_into_libs=yes
9687 if test "$host_cpu" = ia64; then
9688 # AIX 5 supports IA64
9689 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 else
9692 # With GCC up to 2.95.x, collect2 would create an import file
9693 # for dependence libraries. The import file would start with
9694 # the line `#! .'. This would cause the generated library to
9695 # depend on `.', always an invalid library. This was fixed in
9696 # development snapshots of GCC prior to 3.0.
9697 case $host_os in
9698 aix4 | aix4.[01] | aix4.[01].*)
9699 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9700 echo ' yes '
9701 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9702 :
9703 else
9704 can_build_shared=no
9705 fi
9706 ;;
9707 esac
9708 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9709 # soname into executable. Probably we can add versioning support to
9710 # collect2, so additional links can be useful in future.
9711 if test "$aix_use_runtimelinking" = yes; then
9712 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9713 # instead of lib<name>.a to let people know that these are not
9714 # typical AIX shared libraries.
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716 else
9717 # We preserve .a as extension for shared libraries through AIX4.2
9718 # and later when we are not doing run time linking.
9719 library_names_spec='${libname}${release}.a $libname.a'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 fi
9722 shlibpath_var=LIBPATH
9723 fi
9724 ;;
9725
9726amigaos*)
9727 library_names_spec='$libname.ixlibrary $libname.a'
9728 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9729 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'
9730 ;;
9731
9732beos*)
9733 library_names_spec='${libname}${shared_ext}'
9734 dynamic_linker="$host_os ld.so"
9735 shlibpath_var=LIBRARY_PATH
9736 ;;
9737
9738bsdi[45]*)
9739 version_type=linux
9740 need_version=no
9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742 soname_spec='${libname}${release}${shared_ext}$major'
9743 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9744 shlibpath_var=LD_LIBRARY_PATH
9745 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9746 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9747 # the default ld.so.conf also contains /usr/contrib/lib and
9748 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9749 # libtool to hard-code these into programs
9750 ;;
9751
9752cygwin* | mingw* | pw32*)
9753 version_type=windows
9754 shrext_cmds=".dll"
9755 need_version=no
9756 need_lib_prefix=no
9757
9758 case $GCC,$host_os in
9759 yes,cygwin* | yes,mingw* | yes,pw32*)
9760 library_names_spec='$libname.dll.a'
9761 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9762 postinstall_cmds='base_file=`basename \${file}`~
9763 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9764 dldir=$destdir/`dirname \$dlpath`~
9765 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009766 $install_prog $dir/$dlname \$dldir/$dlname~
9767 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9769 dlpath=$dir/\$dldll~
9770 $rm \$dlpath'
9771 shlibpath_overrides_runpath=yes
9772
9773 case $host_os in
9774 cygwin*)
9775 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9776 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9777 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9778 ;;
9779 mingw*)
9780 # MinGW DLLs use traditional 'lib' prefix
9781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9782 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9783 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9784 # It is most probably a Windows format PATH printed by
9785 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9786 # path with ; separators, and with drive letters. We can handle the
9787 # drive letters (cygwin fileutils understands them), so leave them,
9788 # especially as we might pass files found there to a mingw objdump,
9789 # which wouldn't understand a cygwinified path. Ahh.
9790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9791 else
9792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9793 fi
9794 ;;
9795 pw32*)
9796 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009797 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 +00009798 ;;
9799 esac
9800 ;;
9801
9802 *)
9803 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9804 ;;
9805 esac
9806 dynamic_linker='Win32 ld.exe'
9807 # FIXME: first we should search . and the directory the executable is in
9808 shlibpath_var=PATH
9809 ;;
9810
9811darwin* | rhapsody*)
9812 dynamic_linker="$host_os dyld"
9813 version_type=darwin
9814 need_lib_prefix=no
9815 need_version=no
9816 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9817 soname_spec='${libname}${release}${major}$shared_ext'
9818 shlibpath_overrides_runpath=yes
9819 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009820 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009821 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9822 if test "$GCC" = yes; then
9823 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"`
9824 else
9825 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9826 fi
9827 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9828 ;;
9829
9830dgux*)
9831 version_type=linux
9832 need_lib_prefix=no
9833 need_version=no
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 ;;
9838
9839freebsd1*)
9840 dynamic_linker=no
9841 ;;
9842
9843kfreebsd*-gnu)
9844 version_type=linux
9845 need_lib_prefix=no
9846 need_version=no
9847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9848 soname_spec='${libname}${release}${shared_ext}$major'
9849 shlibpath_var=LD_LIBRARY_PATH
9850 shlibpath_overrides_runpath=no
9851 hardcode_into_libs=yes
9852 dynamic_linker='GNU ld.so'
9853 ;;
9854
Reid Spencera773bd52006-08-04 18:18:08 +00009855freebsd* | dragonfly*)
9856 # DragonFly does not have aout. When/if they implement a new
9857 # versioning mechanism, adjust this.
9858 if test -x /usr/bin/objformat; then
9859 objformat=`/usr/bin/objformat`
9860 else
9861 case $host_os in
9862 freebsd[123]*) objformat=aout ;;
9863 *) objformat=elf ;;
9864 esac
9865 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866 version_type=freebsd-$objformat
9867 case $version_type in
9868 freebsd-elf*)
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9870 need_version=no
9871 need_lib_prefix=no
9872 ;;
9873 freebsd-*)
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9875 need_version=yes
9876 ;;
9877 esac
9878 shlibpath_var=LD_LIBRARY_PATH
9879 case $host_os in
9880 freebsd2*)
9881 shlibpath_overrides_runpath=yes
9882 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009883 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884 shlibpath_overrides_runpath=yes
9885 hardcode_into_libs=yes
9886 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009887 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9888 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889 shlibpath_overrides_runpath=no
9890 hardcode_into_libs=yes
9891 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009892 freebsd*) # from 4.6 on
9893 shlibpath_overrides_runpath=yes
9894 hardcode_into_libs=yes
9895 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896 esac
9897 ;;
9898
9899gnu*)
9900 version_type=linux
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 hardcode_into_libs=yes
9907 ;;
9908
9909hpux9* | hpux10* | hpux11*)
9910 # Give a soname corresponding to the major version so that dld.sl refuses to
9911 # link against other versions.
9912 version_type=sunos
9913 need_lib_prefix=no
9914 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009915 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009916 ia64*)
9917 shrext_cmds='.so'
9918 hardcode_into_libs=yes
9919 dynamic_linker="$host_os dld.so"
9920 shlibpath_var=LD_LIBRARY_PATH
9921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9923 soname_spec='${libname}${release}${shared_ext}$major'
9924 if test "X$HPUX_IA64_MODE" = X32; then
9925 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9926 else
9927 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9928 fi
9929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9930 ;;
9931 hppa*64*)
9932 shrext_cmds='.sl'
9933 hardcode_into_libs=yes
9934 dynamic_linker="$host_os dld.sl"
9935 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 soname_spec='${libname}${release}${shared_ext}$major'
9939 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9941 ;;
9942 *)
9943 shrext_cmds='.sl'
9944 dynamic_linker="$host_os dld.sl"
9945 shlibpath_var=SHLIB_PATH
9946 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 ;;
9950 esac
9951 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9952 postinstall_cmds='chmod 555 $lib'
9953 ;;
9954
Reid Spencera773bd52006-08-04 18:18:08 +00009955interix3*)
9956 version_type=linux
9957 need_lib_prefix=no
9958 need_version=no
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=no
9964 hardcode_into_libs=yes
9965 ;;
9966
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009967irix5* | irix6* | nonstopux*)
9968 case $host_os in
9969 nonstopux*) version_type=nonstopux ;;
9970 *)
9971 if test "$lt_cv_prog_gnu_ld" = yes; then
9972 version_type=linux
9973 else
9974 version_type=irix
9975 fi ;;
9976 esac
9977 need_lib_prefix=no
9978 need_version=no
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9981 case $host_os in
9982 irix5* | nonstopux*)
9983 libsuff= shlibsuff=
9984 ;;
9985 *)
9986 case $LD in # libtool.m4 will add one of these switches to LD
9987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9988 libsuff= shlibsuff= libmagic=32-bit;;
9989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9990 libsuff=32 shlibsuff=N32 libmagic=N32;;
9991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9992 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9993 *) libsuff= shlibsuff= libmagic=never-match;;
9994 esac
9995 ;;
9996 esac
9997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9998 shlibpath_overrides_runpath=no
9999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10001 hardcode_into_libs=yes
10002 ;;
10003
10004# No shared lib support for Linux oldld, aout, or coff.
10005linux*oldld* | linux*aout* | linux*coff*)
10006 dynamic_linker=no
10007 ;;
10008
10009# This must be Linux ELF.
10010linux*)
10011 version_type=linux
10012 need_lib_prefix=no
10013 need_version=no
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10017 shlibpath_var=LD_LIBRARY_PATH
10018 shlibpath_overrides_runpath=no
10019 # This implies no fast_install, which is unacceptable.
10020 # Some rework will be needed to allow for fast_install
10021 # before this can be enabled.
10022 hardcode_into_libs=yes
10023
10024 # Append ld.so.conf contents to the search path
10025 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010026 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 +000010027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10028 fi
10029
10030 # We used to test for /lib/ld.so.1 and disable shared libraries on
10031 # powerpc, because MkLinux only supported shared libraries with the
10032 # GNU dynamic linker. Since this was broken with cross compilers,
10033 # most powerpc-linux boxes support dynamic linking these days and
10034 # people can always --disable-shared, the test was removed, and we
10035 # assume the GNU/Linux dynamic linker is in use.
10036 dynamic_linker='GNU/Linux ld.so'
10037 ;;
10038
10039knetbsd*-gnu)
10040 version_type=linux
10041 need_lib_prefix=no
10042 need_version=no
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 shlibpath_overrides_runpath=no
10047 hardcode_into_libs=yes
10048 dynamic_linker='GNU ld.so'
10049 ;;
10050
10051netbsd*)
10052 version_type=sunos
10053 need_lib_prefix=no
10054 need_version=no
10055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10058 dynamic_linker='NetBSD (a.out) ld.so'
10059 else
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 dynamic_linker='NetBSD ld.elf_so'
10063 fi
10064 shlibpath_var=LD_LIBRARY_PATH
10065 shlibpath_overrides_runpath=yes
10066 hardcode_into_libs=yes
10067 ;;
10068
10069newsos6)
10070 version_type=linux
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=yes
10074 ;;
10075
10076nto-qnx*)
10077 version_type=linux
10078 need_lib_prefix=no
10079 need_version=no
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=yes
10084 ;;
10085
10086openbsd*)
10087 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010088 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010090 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10091 case $host_os in
10092 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10093 *) need_version=no ;;
10094 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10097 shlibpath_var=LD_LIBRARY_PATH
10098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10099 case $host_os in
10100 openbsd2.[89] | openbsd2.[89].*)
10101 shlibpath_overrides_runpath=no
10102 ;;
10103 *)
10104 shlibpath_overrides_runpath=yes
10105 ;;
10106 esac
10107 else
10108 shlibpath_overrides_runpath=yes
10109 fi
10110 ;;
10111
10112os2*)
10113 libname_spec='$name'
10114 shrext_cmds=".dll"
10115 need_lib_prefix=no
10116 library_names_spec='$libname${shared_ext} $libname.a'
10117 dynamic_linker='OS/2 ld.exe'
10118 shlibpath_var=LIBPATH
10119 ;;
10120
10121osf3* | osf4* | osf5*)
10122 version_type=osf
10123 need_lib_prefix=no
10124 need_version=no
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10129 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10130 ;;
10131
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132solaris*)
10133 version_type=linux
10134 need_lib_prefix=no
10135 need_version=no
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10141 # ldd complains unless libraries are executable
10142 postinstall_cmds='chmod +x $lib'
10143 ;;
10144
10145sunos4*)
10146 version_type=sunos
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath=yes
10151 if test "$with_gnu_ld" = yes; then
10152 need_lib_prefix=no
10153 fi
10154 need_version=yes
10155 ;;
10156
Reid Spencera773bd52006-08-04 18:18:08 +000010157sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010158 version_type=linux
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 shlibpath_var=LD_LIBRARY_PATH
10162 case $host_vendor in
10163 sni)
10164 shlibpath_overrides_runpath=no
10165 need_lib_prefix=no
10166 export_dynamic_flag_spec='${wl}-Blargedynsym'
10167 runpath_var=LD_RUN_PATH
10168 ;;
10169 siemens)
10170 need_lib_prefix=no
10171 ;;
10172 motorola)
10173 need_lib_prefix=no
10174 need_version=no
10175 shlibpath_overrides_runpath=no
10176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10177 ;;
10178 esac
10179 ;;
10180
10181sysv4*MP*)
10182 if test -d /usr/nec ;then
10183 version_type=linux
10184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10185 soname_spec='$libname${shared_ext}.$major'
10186 shlibpath_var=LD_LIBRARY_PATH
10187 fi
10188 ;;
10189
Reid Spencera773bd52006-08-04 18:18:08 +000010190sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10191 version_type=freebsd-elf
10192 need_lib_prefix=no
10193 need_version=no
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 hardcode_into_libs=yes
10198 if test "$with_gnu_ld" = yes; then
10199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10200 shlibpath_overrides_runpath=no
10201 else
10202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10203 shlibpath_overrides_runpath=yes
10204 case $host_os in
10205 sco3.2v5*)
10206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10207 ;;
10208 esac
10209 fi
10210 sys_lib_dlsearch_path_spec='/usr/lib'
10211 ;;
10212
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213uts4*)
10214 version_type=linux
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 ;;
10219
10220*)
10221 dynamic_linker=no
10222 ;;
10223esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010224{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10225echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226test "$dynamic_linker" = no && can_build_shared=no
10227
Reid Spencera773bd52006-08-04 18:18:08 +000010228variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10229if test "$GCC" = yes; then
10230 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10231fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010232
Reid Spencera773bd52006-08-04 18:18:08 +000010233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010234{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10235echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10236if test "${libltdl_cv_shlibext+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010238else
10239
10240module=yes
10241eval libltdl_cv_shlibext=$shrext_cmds
10242
10243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010244{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10245echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010246if test -n "$libltdl_cv_shlibext"; then
10247
10248cat >>confdefs.h <<_ACEOF
10249#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10250_ACEOF
10251
10252fi
10253
10254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010255{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10256echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10257if test "${libltdl_cv_shlibpath_var+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259else
10260 libltdl_cv_shlibpath_var="$shlibpath_var"
10261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010262{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10263echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010264if test -n "$libltdl_cv_shlibpath_var"; then
10265
10266cat >>confdefs.h <<_ACEOF
10267#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10268_ACEOF
10269
10270fi
10271
10272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010273{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10274echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10275if test "${libltdl_cv_sys_search_path+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277else
10278 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10279fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010280{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10281echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010282if test -n "$libltdl_cv_sys_search_path"; then
10283 sys_search_path=
10284 for dir in $libltdl_cv_sys_search_path; do
10285 if test -z "$sys_search_path"; then
10286 sys_search_path="$dir"
10287 else
10288 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10289 fi
10290 done
10291
10292cat >>confdefs.h <<_ACEOF
10293#define LTDL_SYSSEARCHPATH "$sys_search_path"
10294_ACEOF
10295
10296fi
10297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010298{ echo "$as_me:$LINENO: checking for objdir" >&5
10299echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10300if test "${libltdl_cv_objdir+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010302else
10303 libltdl_cv_objdir="$objdir"
10304 if test -n "$objdir"; then
10305 :
10306 else
10307 rm -f .libs 2>/dev/null
10308 mkdir .libs 2>/dev/null
10309 if test -d .libs; then
10310 libltdl_cv_objdir=.libs
10311 else
10312 # MS-DOS does not allow filenames that begin with a dot.
10313 libltdl_cv_objdir=_libs
10314 fi
10315 rmdir .libs 2>/dev/null
10316 fi
10317
10318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010319{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10320echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321
10322cat >>confdefs.h <<_ACEOF
10323#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10324_ACEOF
10325
10326
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010327
10328
10329
10330
10331# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010332{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10333echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10334if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010336else
10337
10338# These are sane defaults that work on at least a few old systems.
10339# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10340
10341# Character class describing NM global symbol codes.
10342symcode='[BCDEGRST]'
10343
10344# Regexp to match symbols that can be accessed directly from C.
10345sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10346
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010347# Transform an extracted symbol line into a proper C declaration
10348lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10349
10350# Transform an extracted symbol line into symbol name and symbol address
10351lt_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'"
10352
10353# Define system-specific variables.
10354case $host_os in
10355aix*)
10356 symcode='[BCDT]'
10357 ;;
10358cygwin* | mingw* | pw32*)
10359 symcode='[ABCDGISTW]'
10360 ;;
10361hpux*) # Its linker distinguishes data from code symbols
10362 if test "$host_cpu" = ia64; then
10363 symcode='[ABCDEGRST]'
10364 fi
10365 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10366 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'"
10367 ;;
10368linux*)
10369 if test "$host_cpu" = ia64; then
10370 symcode='[ABCDGIRSTW]'
10371 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10372 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'"
10373 fi
10374 ;;
10375irix* | nonstopux*)
10376 symcode='[BCDEGRST]'
10377 ;;
10378osf*)
10379 symcode='[BCDEGQRST]'
10380 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010381solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010382 symcode='[BDRT]'
10383 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010384sco3.2v5*)
10385 symcode='[DT]'
10386 ;;
10387sysv4.2uw2*)
10388 symcode='[DT]'
10389 ;;
10390sysv5* | sco5v6* | unixware* | OpenUNIX*)
10391 symcode='[ABDT]'
10392 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010393sysv4)
10394 symcode='[DFNSTU]'
10395 ;;
10396esac
10397
10398# Handle CRLF in mingw tool chain
10399opt_cr=
10400case $build_os in
10401mingw*)
10402 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10403 ;;
10404esac
10405
10406# If we're using GNU nm, then use its standard symbol codes.
10407case `$NM -V 2>&1` in
10408*GNU* | *'with BFD'*)
10409 symcode='[ABCDGIRSTW]' ;;
10410esac
10411
10412# Try without a prefix undercore, then with it.
10413for ac_symprfx in "" "_"; do
10414
Reid Spencera773bd52006-08-04 18:18:08 +000010415 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10416 symxfrm="\\1 $ac_symprfx\\2 \\2"
10417
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010419 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 +000010420
10421 # Check to see that the pipe works correctly.
10422 pipe_works=no
10423
10424 rm -f conftest*
10425 cat > conftest.$ac_ext <<EOF
10426#ifdef __cplusplus
10427extern "C" {
10428#endif
10429char nm_test_var;
10430void nm_test_func(){}
10431#ifdef __cplusplus
10432}
10433#endif
10434int main(){nm_test_var='a';nm_test_func();return(0);}
10435EOF
10436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438 (eval $ac_compile) 2>&5
10439 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442 # Now try to grab the symbols.
10443 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010444 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 +000010445 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10446 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449 # Try sorting and uniquifying the output.
10450 if sort "$nlist" | uniq > "$nlist"T; then
10451 mv -f "$nlist"T "$nlist"
10452 else
10453 rm -f "$nlist"T
10454 fi
10455
10456 # Make sure that we snagged all the symbols we need.
10457 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10458 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10459 cat <<EOF > conftest.$ac_ext
10460#ifdef __cplusplus
10461extern "C" {
10462#endif
10463
10464EOF
10465 # Now generate the symbol file.
10466 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10467
10468 cat <<EOF >> conftest.$ac_ext
10469#if defined (__STDC__) && __STDC__
10470# define lt_ptr_t void *
10471#else
10472# define lt_ptr_t char *
10473# define const
10474#endif
10475
10476/* The mapping between symbol names and symbols. */
10477const struct {
10478 const char *name;
10479 lt_ptr_t address;
10480}
10481lt_preloaded_symbols[] =
10482{
10483EOF
10484 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10485 cat <<\EOF >> conftest.$ac_ext
10486 {0, (lt_ptr_t) 0}
10487};
10488
10489#ifdef __cplusplus
10490}
10491#endif
10492EOF
10493 # Now try linking the two files.
10494 mv conftest.$ac_objext conftstm.$ac_objext
10495 lt_save_LIBS="$LIBS"
10496 lt_save_CFLAGS="$CFLAGS"
10497 LIBS="conftstm.$ac_objext"
10498 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500 (eval $ac_link) 2>&5
10501 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504 pipe_works=yes
10505 fi
10506 LIBS="$lt_save_LIBS"
10507 CFLAGS="$lt_save_CFLAGS"
10508 else
10509 echo "cannot find nm_test_func in $nlist" >&5
10510 fi
10511 else
10512 echo "cannot find nm_test_var in $nlist" >&5
10513 fi
10514 else
10515 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10516 fi
10517 else
10518 echo "$progname: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10520 fi
10521 rm -f conftest* conftst*
10522
10523 # Do not use the global_symbol_pipe unless it works.
10524 if test "$pipe_works" = yes; then
10525 break
10526 else
10527 lt_cv_sys_global_symbol_pipe=
10528 fi
10529done
10530
10531fi
10532
10533if test -z "$lt_cv_sys_global_symbol_pipe"; then
10534 lt_cv_sys_global_symbol_to_cdecl=
10535fi
10536if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010537 { echo "$as_me:$LINENO: result: failed" >&5
10538echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010540 { echo "$as_me:$LINENO: result: ok" >&5
10541echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010542fi
10543
10544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010545{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10546echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10547if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549else
10550 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10551 libltdl_cv_preloaded_symbols=yes
10552 else
10553 libltdl_cv_preloaded_symbols=no
10554 fi
10555
10556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010557{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10558echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010561cat >>confdefs.h <<\_ACEOF
10562#define HAVE_PRELOADED_SYMBOLS 1
10563_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564
10565fi
10566
10567LIBADD_DL=
10568
10569ac_ext=c
10570ac_cpp='$CPP $CPPFLAGS'
10571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10573ac_compiler_gnu=$ac_cv_c_compiler_gnu
10574
10575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010576{ echo "$as_me:$LINENO: checking for shl_load" >&5
10577echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10578if test "${ac_cv_func_shl_load+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580else
10581 cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h. */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h. */
10587/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10589#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010591/* System header to define __stub macros and hopefully few prototypes,
10592 which can conflict with char shl_load (); below.
10593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10594 <limits.h> exists even on freestanding compilers. */
10595
10596#ifdef __STDC__
10597# include <limits.h>
10598#else
10599# include <assert.h>
10600#endif
10601
10602#undef shl_load
10603
10604/* Override any GCC internal prototype to avoid an error.
10605 Use char because int might match the return type of a GCC
10606 builtin and then its argument prototype would still apply. */
10607#ifdef __cplusplus
10608extern "C"
10609#endif
10610char shl_load ();
10611/* The GNU C library defines this for functions which it implements
10612 to always fail with ENOSYS. Some functions are actually named
10613 something starting with __ and the normal name is an alias. */
10614#if defined __stub_shl_load || defined __stub___shl_load
10615choke me
10616#endif
10617
10618int
10619main ()
10620{
10621return shl_load ();
10622 ;
10623 return 0;
10624}
10625_ACEOF
10626rm -f conftest.$ac_objext conftest$ac_exeext
10627if { (ac_try="$ac_link"
10628case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631esac
10632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_link") 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10641 { (case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10644esac
10645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_try") 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try='test -s conftest$ac_exeext'
10651 { (case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654esac
10655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_try") 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_cv_func_shl_load=yes
10661else
10662 echo "$as_me: failed program was:" >&5
10663sed 's/^/| /' conftest.$ac_ext >&5
10664
10665 ac_cv_func_shl_load=no
10666fi
10667
10668rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670fi
10671{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10672echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10673if test $ac_cv_func_shl_load = yes; then
10674
10675cat >>confdefs.h <<\_ACEOF
10676#define HAVE_SHL_LOAD 1
10677_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678
10679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010680 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10681echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10682if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684else
10685 ac_check_lib_save_LIBS=$LIBS
10686LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010687cat >conftest.$ac_ext <<_ACEOF
10688/* confdefs.h. */
10689_ACEOF
10690cat confdefs.h >>conftest.$ac_ext
10691cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010692/* end confdefs.h. */
10693
Reid Spencera773bd52006-08-04 18:18:08 +000010694/* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010697#ifdef __cplusplus
10698extern "C"
10699#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010700char shl_load ();
10701int
10702main ()
10703{
Reid Spencera773bd52006-08-04 18:18:08 +000010704return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705 ;
10706 return 0;
10707}
10708_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010709rm -f conftest.$ac_objext conftest$ac_exeext
10710if { (ac_try="$ac_link"
10711case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714esac
10715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_link") 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10724 { (case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10727esac
10728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_try") 2>&5
10730 ac_status=$?
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; } &&
10733 { ac_try='test -s conftest$ac_exeext'
10734 { (case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10737esac
10738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_try") 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010743 ac_cv_lib_dld_shl_load=yes
10744else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010745 echo "$as_me: failed program was:" >&5
10746sed 's/^/| /' conftest.$ac_ext >&5
10747
10748 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010750
Bill Wendlingebcceee2009-04-18 11:20:33 +000010751rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010752 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010753LIBS=$ac_check_lib_save_LIBS
10754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010755{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10756echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10757if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010759cat >>confdefs.h <<\_ACEOF
10760#define HAVE_SHL_LOAD 1
10761_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762
10763 LIBADD_DL="$LIBADD_DL -ldld"
10764else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010765 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10766echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10767if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769else
10770 ac_check_lib_save_LIBS=$LIBS
10771LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010772cat >conftest.$ac_ext <<_ACEOF
10773/* confdefs.h. */
10774_ACEOF
10775cat confdefs.h >>conftest.$ac_ext
10776cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010777/* end confdefs.h. */
10778
Reid Spencera773bd52006-08-04 18:18:08 +000010779/* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010782#ifdef __cplusplus
10783extern "C"
10784#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785char dlopen ();
10786int
10787main ()
10788{
Reid Spencera773bd52006-08-04 18:18:08 +000010789return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790 ;
10791 return 0;
10792}
10793_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010794rm -f conftest.$ac_objext conftest$ac_exeext
10795if { (ac_try="$ac_link"
10796case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799esac
10800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_link") 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10809 { (case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812esac
10813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_try") 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; } &&
10818 { ac_try='test -s conftest$ac_exeext'
10819 { (case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10822esac
10823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824 (eval "$ac_try") 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828 ac_cv_lib_dl_dlopen=yes
10829else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010830 echo "$as_me: failed program was:" >&5
10831sed 's/^/| /' conftest.$ac_ext >&5
10832
10833 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010835
Bill Wendlingebcceee2009-04-18 11:20:33 +000010836rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010837 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010838LIBS=$ac_check_lib_save_LIBS
10839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010840{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10841echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10842if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010844cat >>confdefs.h <<\_ACEOF
10845#define HAVE_LIBDL 1
10846_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010847
10848 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010850 cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010855/* end confdefs.h. */
10856#if HAVE_DLFCN_H
10857# include <dlfcn.h>
10858#endif
10859
10860int
10861main ()
10862{
10863dlopen(0, 0);
10864 ;
10865 return 0;
10866}
10867_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010868rm -f conftest.$ac_objext conftest$ac_exeext
10869if { (ac_try="$ac_link"
10870case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873esac
10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_link") 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883 { (case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886esac
10887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_try") 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest$ac_exeext'
10893 { (case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896esac
10897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_try") 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010903cat >>confdefs.h <<\_ACEOF
10904#define HAVE_LIBDL 1
10905_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010906 libltdl_cv_func_dlopen="yes"
10907else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010908 echo "$as_me: failed program was:" >&5
10909sed 's/^/| /' conftest.$ac_ext >&5
10910
10911 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10912echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10913if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010915else
10916 ac_check_lib_save_LIBS=$LIBS
10917LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010918cat >conftest.$ac_ext <<_ACEOF
10919/* confdefs.h. */
10920_ACEOF
10921cat confdefs.h >>conftest.$ac_ext
10922cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923/* end confdefs.h. */
10924
Reid Spencera773bd52006-08-04 18:18:08 +000010925/* Override any GCC internal prototype to avoid an error.
10926 Use char because int might match the return type of a GCC
10927 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928#ifdef __cplusplus
10929extern "C"
10930#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010931char dlopen ();
10932int
10933main ()
10934{
Reid Spencera773bd52006-08-04 18:18:08 +000010935return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010936 ;
10937 return 0;
10938}
10939_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010940rm -f conftest.$ac_objext conftest$ac_exeext
10941if { (ac_try="$ac_link"
10942case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945esac
10946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_link") 2>conftest.er1
10948 ac_status=$?
10949 grep -v '^ *+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10955 { (case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958esac
10959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_try") 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; } &&
10964 { ac_try='test -s conftest$ac_exeext'
10965 { (case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968esac
10969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_try") 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974 ac_cv_lib_svld_dlopen=yes
10975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010976 echo "$as_me: failed program was:" >&5
10977sed 's/^/| /' conftest.$ac_ext >&5
10978
10979 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010981
Bill Wendlingebcceee2009-04-18 11:20:33 +000010982rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010983 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010984LIBS=$ac_check_lib_save_LIBS
10985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010986{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10987echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10988if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010990cat >>confdefs.h <<\_ACEOF
10991#define HAVE_LIBDL 1
10992_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010993
10994 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010996 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10997echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10998if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011000else
11001 ac_check_lib_save_LIBS=$LIBS
11002LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011003cat >conftest.$ac_ext <<_ACEOF
11004/* confdefs.h. */
11005_ACEOF
11006cat confdefs.h >>conftest.$ac_ext
11007cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008/* end confdefs.h. */
11009
Reid Spencera773bd52006-08-04 18:18:08 +000011010/* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011013#ifdef __cplusplus
11014extern "C"
11015#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011016char dld_link ();
11017int
11018main ()
11019{
Reid Spencera773bd52006-08-04 18:18:08 +000011020return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011021 ;
11022 return 0;
11023}
11024_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011025rm -f conftest.$ac_objext conftest$ac_exeext
11026if { (ac_try="$ac_link"
11027case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043esac
11044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest$ac_exeext'
11050 { (case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053esac
11054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_try") 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011059 ac_cv_lib_dld_dld_link=yes
11060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011061 echo "$as_me: failed program was:" >&5
11062sed 's/^/| /' conftest.$ac_ext >&5
11063
11064 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011065fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011066
Bill Wendlingebcceee2009-04-18 11:20:33 +000011067rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011068 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069LIBS=$ac_check_lib_save_LIBS
11070fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011071{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11072echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11073if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011075cat >>confdefs.h <<\_ACEOF
11076#define HAVE_DLD 1
11077_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078
11079 LIBADD_DL="$LIBADD_DL -ldld"
11080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011081 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11082echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11083if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085else
11086 cat >conftest.$ac_ext <<_ACEOF
11087/* confdefs.h. */
11088_ACEOF
11089cat confdefs.h >>conftest.$ac_ext
11090cat >>conftest.$ac_ext <<_ACEOF
11091/* end confdefs.h. */
11092/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11094#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011096/* System header to define __stub macros and hopefully few prototypes,
11097 which can conflict with char _dyld_func_lookup (); below.
11098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11099 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011101#ifdef __STDC__
11102# include <limits.h>
11103#else
11104# include <assert.h>
11105#endif
11106
11107#undef _dyld_func_lookup
11108
11109/* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11112#ifdef __cplusplus
11113extern "C"
11114#endif
11115char _dyld_func_lookup ();
11116/* The GNU C library defines this for functions which it implements
11117 to always fail with ENOSYS. Some functions are actually named
11118 something starting with __ and the normal name is an alias. */
11119#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11120choke me
11121#endif
11122
11123int
11124main ()
11125{
11126return _dyld_func_lookup ();
11127 ;
11128 return 0;
11129}
11130_ACEOF
11131rm -f conftest.$ac_objext conftest$ac_exeext
11132if { (ac_try="$ac_link"
11133case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_link") 2>conftest.er1
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11149esac
11150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; } &&
11155 { ac_try='test -s conftest$ac_exeext'
11156 { (case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159esac
11160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_try") 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_cv_func__dyld_func_lookup=yes
11166else
11167 echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171fi
Reid Spencera773bd52006-08-04 18:18:08 +000011172
Bill Wendlingebcceee2009-04-18 11:20:33 +000011173rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011174 conftest$ac_exeext conftest.$ac_ext
11175fi
11176{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11177echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11178if test $ac_cv_func__dyld_func_lookup = yes; then
11179
11180cat >>confdefs.h <<\_ACEOF
11181#define HAVE_DYLD 1
11182_ACEOF
11183
11184fi
11185
11186
11187fi
11188
11189
11190fi
11191
11192
11193fi
11194
11195rm -f core conftest.err conftest.$ac_objext \
11196 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197
11198fi
11199
11200
11201fi
11202
11203
11204fi
11205
11206
11207if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11208then
11209 lt_save_LIBS="$LIBS"
11210 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011211
11212for ac_func in dlerror
11213do
11214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else
11220 cat >conftest.$ac_ext <<_ACEOF
11221/* confdefs.h. */
11222_ACEOF
11223cat confdefs.h >>conftest.$ac_ext
11224cat >>conftest.$ac_ext <<_ACEOF
11225/* end confdefs.h. */
11226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11228#define $ac_func innocuous_$ac_func
11229
11230/* System header to define __stub macros and hopefully few prototypes,
11231 which can conflict with char $ac_func (); below.
11232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11233 <limits.h> exists even on freestanding compilers. */
11234
11235#ifdef __STDC__
11236# include <limits.h>
11237#else
11238# include <assert.h>
11239#endif
11240
11241#undef $ac_func
11242
11243/* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11246#ifdef __cplusplus
11247extern "C"
11248#endif
11249char $ac_func ();
11250/* The GNU C library defines this for functions which it implements
11251 to always fail with ENOSYS. Some functions are actually named
11252 something starting with __ and the normal name is an alias. */
11253#if defined __stub_$ac_func || defined __stub___$ac_func
11254choke me
11255#endif
11256
11257int
11258main ()
11259{
11260return $ac_func ();
11261 ;
11262 return 0;
11263}
11264_ACEOF
11265rm -f conftest.$ac_objext conftest$ac_exeext
11266if { (ac_try="$ac_link"
11267case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_link") 2>conftest.er1
11273 ac_status=$?
11274 grep -v '^ *+' conftest.er1 >conftest.err
11275 rm -f conftest.er1
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283esac
11284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; } &&
11289 { ac_try='test -s conftest$ac_exeext'
11290 { (case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11293esac
11294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_try") 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 eval "$as_ac_var=yes"
11300else
11301 echo "$as_me: failed program was:" >&5
11302sed 's/^/| /' conftest.$ac_ext >&5
11303
11304 eval "$as_ac_var=no"
11305fi
11306
11307rm -f core conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11309fi
11310ac_res=`eval echo '${'$as_ac_var'}'`
11311 { echo "$as_me:$LINENO: result: $ac_res" >&5
11312echo "${ECHO_T}$ac_res" >&6; }
11313if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011314 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011316_ACEOF
11317
11318fi
11319done
11320
11321 LIBS="$lt_save_LIBS"
11322fi
11323ac_ext=c
11324ac_cpp='$CPP $CPPFLAGS'
11325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11327ac_compiler_gnu=$ac_cv_c_compiler_gnu
11328
11329
11330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011331{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11332echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11333if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335else
11336 ac_cv_sys_symbol_underscore=no
11337 cat > conftest.$ac_ext <<EOF
11338void nm_test_func(){}
11339int main(){nm_test_func;return 0;}
11340EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011342 (eval $ac_compile) 2>&5
11343 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011346 # Now try to grab the symbols.
11347 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011348 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 +000011349 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11350 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011353 # See whether the symbols have a leading underscore.
11354 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11355 ac_cv_sys_symbol_underscore=yes
11356 else
11357 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11358 :
11359 else
11360 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11361 fi
11362 fi
11363 else
11364 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11365 fi
11366 else
11367 echo "configure: failed program was:" >&5
11368 cat conftest.c >&5
11369 fi
11370 rm -rf conftest*
11371
11372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011373{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11374echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375
11376
11377if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11378 if test x"$libltdl_cv_func_dlopen" = xyes ||
11379 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011380 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11381echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11382if test "${libltdl_cv_need_uscore+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011384else
11385 libltdl_cv_need_uscore=unknown
11386 save_LIBS="$LIBS"
11387 LIBS="$LIBS $LIBADD_DL"
11388 if test "$cross_compiling" = yes; then :
11389 libltdl_cv_need_uscore=cross
11390else
11391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11392 lt_status=$lt_dlunknown
11393 cat > conftest.$ac_ext <<EOF
Eric Christopher2a1a44f2010-07-22 21:13:48 +000011394#line 11394 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011395#include "confdefs.h"
11396
11397#if HAVE_DLFCN_H
11398#include <dlfcn.h>
11399#endif
11400
11401#include <stdio.h>
11402
11403#ifdef RTLD_GLOBAL
11404# define LT_DLGLOBAL RTLD_GLOBAL
11405#else
11406# ifdef DL_GLOBAL
11407# define LT_DLGLOBAL DL_GLOBAL
11408# else
11409# define LT_DLGLOBAL 0
11410# endif
11411#endif
11412
11413/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11414 find out it does not work in some platform. */
11415#ifndef LT_DLLAZY_OR_NOW
11416# ifdef RTLD_LAZY
11417# define LT_DLLAZY_OR_NOW RTLD_LAZY
11418# else
11419# ifdef DL_LAZY
11420# define LT_DLLAZY_OR_NOW DL_LAZY
11421# else
11422# ifdef RTLD_NOW
11423# define LT_DLLAZY_OR_NOW RTLD_NOW
11424# else
11425# ifdef DL_NOW
11426# define LT_DLLAZY_OR_NOW DL_NOW
11427# else
11428# define LT_DLLAZY_OR_NOW 0
11429# endif
11430# endif
11431# endif
11432# endif
11433#endif
11434
11435#ifdef __cplusplus
11436extern "C" void exit (int);
11437#endif
11438
11439void fnord() { int i=42;}
11440int main ()
11441{
11442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11443 int status = $lt_dlunknown;
11444
11445 if (self)
11446 {
11447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11448 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11449 /* dlclose (self); */
11450 }
Reid Spencera773bd52006-08-04 18:18:08 +000011451 else
11452 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011453
11454 exit (status);
11455}
11456EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011458 (eval $ac_link) 2>&5
11459 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011462 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011463 lt_status=$?
11464 case x$lt_status in
11465 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11466 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011467 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011468 esac
11469 else :
11470 # compilation failed
11471
11472 fi
11473fi
11474rm -fr conftest*
11475
11476 LIBS="$save_LIBS"
11477
11478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011479{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11480echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011481 fi
11482fi
11483
11484if test x"$libltdl_cv_need_uscore" = xyes; then
11485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011486cat >>confdefs.h <<\_ACEOF
11487#define NEED_USCORE 1
11488_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011489
11490fi
11491
11492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011493{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11494echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11495if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011497else
11498 # PORTME does your system automatically load deplibs for dlopen?
11499 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11500 # For now, we just catch OSes we know something about -- in the
11501 # future, we'll try test this programmatically.
11502 libltdl_cv_sys_dlopen_deplibs=unknown
11503 case "$host_os" in
11504 aix3*|aix4.1.*|aix4.2.*)
11505 # Unknown whether this is true for these versions of AIX, but
11506 # we want this `case' here to explicitly catch those versions.
11507 libltdl_cv_sys_dlopen_deplibs=unknown
11508 ;;
11509 aix[45]*)
11510 libltdl_cv_sys_dlopen_deplibs=yes
11511 ;;
11512 darwin*)
11513 # Assuming the user has installed a libdl from somewhere, this is true
11514 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11515 libltdl_cv_sys_dlopen_deplibs=yes
11516 ;;
11517 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11518 # GNU and its variants, using gnu ld.so (Glibc)
11519 libltdl_cv_sys_dlopen_deplibs=yes
11520 ;;
11521 hpux10*|hpux11*)
11522 libltdl_cv_sys_dlopen_deplibs=yes
11523 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011524 interix*)
11525 libltdl_cv_sys_dlopen_deplibs=yes
11526 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011527 irix[12345]*|irix6.[01]*)
11528 # Catch all versions of IRIX before 6.2, and indicate that we don't
11529 # know how it worked for any of those versions.
11530 libltdl_cv_sys_dlopen_deplibs=unknown
11531 ;;
11532 irix*)
11533 # The case above catches anything before 6.2, and it's known that
11534 # at 6.2 and later dlopen does load deplibs.
11535 libltdl_cv_sys_dlopen_deplibs=yes
11536 ;;
11537 netbsd*)
11538 libltdl_cv_sys_dlopen_deplibs=yes
11539 ;;
11540 openbsd*)
11541 libltdl_cv_sys_dlopen_deplibs=yes
11542 ;;
11543 osf[1234]*)
11544 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11545 # it did *not* use an RPATH in a shared library to find objects the
11546 # library depends on, so we explictly say `no'.
11547 libltdl_cv_sys_dlopen_deplibs=no
11548 ;;
11549 osf5.0|osf5.0a|osf5.1)
11550 # dlopen *does* load deplibs and with the right loader patch applied
11551 # it even uses RPATH in a shared library to search for shared objects
11552 # that the library depends on, but there's no easy way to know if that
11553 # patch is installed. Since this is the case, all we can really
11554 # say is unknown -- it depends on the patch being installed. If
11555 # it is, this changes to `yes'. Without it, it would be `no'.
11556 libltdl_cv_sys_dlopen_deplibs=unknown
11557 ;;
11558 osf*)
11559 # the two cases above should catch all versions of osf <= 5.1. Read
11560 # the comments above for what we know about them.
11561 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11562 # is used to find them so we can finally say `yes'.
11563 libltdl_cv_sys_dlopen_deplibs=yes
11564 ;;
11565 solaris*)
11566 libltdl_cv_sys_dlopen_deplibs=yes
11567 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11569 libltdl_cv_sys_dlopen_deplibs=yes
11570 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571 esac
11572
11573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011574{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11575echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011576if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011578cat >>confdefs.h <<\_ACEOF
11579#define LTDL_DLOPEN_DEPLIBS 1
11580_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581
11582fi
11583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011584
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011585for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011586do
11587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11593fi
11594ac_res=`eval echo '${'$as_ac_Header'}'`
11595 { echo "$as_me:$LINENO: result: $ac_res" >&5
11596echo "${ECHO_T}$ac_res" >&6; }
11597else
11598 # Is the header compilable?
11599{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11600echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11601cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
11607$ac_includes_default
11608#include <$ac_header>
11609_ACEOF
11610rm -f conftest.$ac_objext
11611if { (ac_try="$ac_compile"
11612case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_compile") 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11625 { (case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628esac
11629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_try") 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest.$ac_objext'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638esac
11639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_header_compiler=yes
11645else
11646 echo "$as_me: failed program was:" >&5
11647sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 ac_header_compiler=no
11650fi
11651
11652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11654echo "${ECHO_T}$ac_header_compiler" >&6; }
11655
11656# Is the header present?
11657{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11658echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11659cat >conftest.$ac_ext <<_ACEOF
11660/* confdefs.h. */
11661_ACEOF
11662cat confdefs.h >>conftest.$ac_ext
11663cat >>conftest.$ac_ext <<_ACEOF
11664/* end confdefs.h. */
11665#include <$ac_header>
11666_ACEOF
11667if { (ac_try="$ac_cpp conftest.$ac_ext"
11668case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671esac
11672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } >/dev/null; then
11680 if test -s conftest.err; then
11681 ac_cpp_err=$ac_c_preproc_warn_flag
11682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11683 else
11684 ac_cpp_err=
11685 fi
11686else
11687 ac_cpp_err=yes
11688fi
11689if test -z "$ac_cpp_err"; then
11690 ac_header_preproc=yes
11691else
11692 echo "$as_me: failed program was:" >&5
11693sed 's/^/| /' conftest.$ac_ext >&5
11694
11695 ac_header_preproc=no
11696fi
11697
11698rm -f conftest.err conftest.$ac_ext
11699{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11700echo "${ECHO_T}$ac_header_preproc" >&6; }
11701
11702# So? What about this header?
11703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11704 yes:no: )
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11709 ac_header_preproc=yes
11710 ;;
11711 no:yes:* )
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11719echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11724 ( cat <<\_ASBOX
11725## ----------------------------------- ##
11726## Report this to llvmbugs@cs.uiuc.edu ##
11727## ----------------------------------- ##
11728_ASBOX
11729 ) | sed "s/^/$as_me: WARNING: /" >&2
11730 ;;
11731esac
11732{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736else
11737 eval "$as_ac_Header=\$ac_header_preproc"
11738fi
11739ac_res=`eval echo '${'$as_ac_Header'}'`
11740 { echo "$as_me:$LINENO: result: $ac_res" >&5
11741echo "${ECHO_T}$ac_res" >&6; }
11742
11743fi
11744if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011747_ACEOF
11748
11749fi
11750
11751done
11752
11753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011754{ echo "$as_me:$LINENO: checking for error_t" >&5
11755echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11756if test "${ac_cv_type_error_t+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758else
11759 cat >conftest.$ac_ext <<_ACEOF
11760/* confdefs.h. */
11761_ACEOF
11762cat confdefs.h >>conftest.$ac_ext
11763cat >>conftest.$ac_ext <<_ACEOF
11764/* end confdefs.h. */
11765#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011766# include <argz.h>
11767#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011768
11769typedef error_t ac__type_new_;
11770int
11771main ()
11772{
11773if ((ac__type_new_ *) 0)
11774 return 0;
11775if (sizeof (ac__type_new_))
11776 return 0;
11777 ;
11778 return 0;
11779}
11780_ACEOF
11781rm -f conftest.$ac_objext
11782if { (ac_try="$ac_compile"
11783case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786esac
11787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_compile") 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11796 { (case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11799esac
11800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_try") 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11809esac
11810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 ac_cv_type_error_t=yes
11816else
11817 echo "$as_me: failed program was:" >&5
11818sed 's/^/| /' conftest.$ac_ext >&5
11819
11820 ac_cv_type_error_t=no
11821fi
11822
11823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11824fi
11825{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11826echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11827if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011828
11829cat >>confdefs.h <<_ACEOF
11830#define HAVE_ERROR_T 1
11831_ACEOF
11832
11833
11834else
11835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011836cat >>confdefs.h <<\_ACEOF
11837#define error_t int
11838_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011839
11840fi
11841
11842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011843
11844
11845
11846
11847
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011848for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011849do
11850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11851{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11853if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855else
11856 cat >conftest.$ac_ext <<_ACEOF
11857/* confdefs.h. */
11858_ACEOF
11859cat confdefs.h >>conftest.$ac_ext
11860cat >>conftest.$ac_ext <<_ACEOF
11861/* end confdefs.h. */
11862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11864#define $ac_func innocuous_$ac_func
11865
11866/* System header to define __stub macros and hopefully few prototypes,
11867 which can conflict with char $ac_func (); below.
11868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869 <limits.h> exists even on freestanding compilers. */
11870
11871#ifdef __STDC__
11872# include <limits.h>
11873#else
11874# include <assert.h>
11875#endif
11876
11877#undef $ac_func
11878
11879/* Override any GCC internal prototype to avoid an error.
11880 Use char because int might match the return type of a GCC
11881 builtin and then its argument prototype would still apply. */
11882#ifdef __cplusplus
11883extern "C"
11884#endif
11885char $ac_func ();
11886/* The GNU C library defines this for functions which it implements
11887 to always fail with ENOSYS. Some functions are actually named
11888 something starting with __ and the normal name is an alias. */
11889#if defined __stub_$ac_func || defined __stub___$ac_func
11890choke me
11891#endif
11892
11893int
11894main ()
11895{
11896return $ac_func ();
11897 ;
11898 return 0;
11899}
11900_ACEOF
11901rm -f conftest.$ac_objext conftest$ac_exeext
11902if { (ac_try="$ac_link"
11903case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906esac
11907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_link") 2>conftest.er1
11909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11916 { (case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919esac
11920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_try") 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11929esac
11930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_try") 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 eval "$as_ac_var=yes"
11936else
11937 echo "$as_me: failed program was:" >&5
11938sed 's/^/| /' conftest.$ac_ext >&5
11939
11940 eval "$as_ac_var=no"
11941fi
11942
11943rm -f core conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11945fi
11946ac_res=`eval echo '${'$as_ac_var'}'`
11947 { echo "$as_me:$LINENO: result: $ac_res" >&5
11948echo "${ECHO_T}$ac_res" >&6; }
11949if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011951#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011952_ACEOF
11953
11954fi
11955done
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011976
11977
11978
11979
11980
11981
11982
11983
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011984for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11985 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011986do
11987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993fi
11994ac_res=`eval echo '${'$as_ac_Header'}'`
11995 { echo "$as_me:$LINENO: result: $ac_res" >&5
11996echo "${ECHO_T}$ac_res" >&6; }
11997else
11998 # Is the header compilable?
11999{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12001cat >conftest.$ac_ext <<_ACEOF
12002/* confdefs.h. */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h. */
12007$ac_includes_default
12008#include <$ac_header>
12009_ACEOF
12010rm -f conftest.$ac_objext
12011if { (ac_try="$ac_compile"
12012case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_compile") 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028esac
12029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest.$ac_objext'
12035 { (case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12038esac
12039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_try") 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 ac_header_compiler=yes
12045else
12046 echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5
12048
12049 ac_header_compiler=no
12050fi
12051
12052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12053{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12054echo "${ECHO_T}$ac_header_compiler" >&6; }
12055
12056# Is the header present?
12057{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12059cat >conftest.$ac_ext <<_ACEOF
12060/* confdefs.h. */
12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h. */
12065#include <$ac_header>
12066_ACEOF
12067if { (ac_try="$ac_cpp conftest.$ac_ext"
12068case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071esac
12072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12074 ac_status=$?
12075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } >/dev/null; then
12080 if test -s conftest.err; then
12081 ac_cpp_err=$ac_c_preproc_warn_flag
12082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12083 else
12084 ac_cpp_err=
12085 fi
12086else
12087 ac_cpp_err=yes
12088fi
12089if test -z "$ac_cpp_err"; then
12090 ac_header_preproc=yes
12091else
12092 echo "$as_me: failed program was:" >&5
12093sed 's/^/| /' conftest.$ac_ext >&5
12094
12095 ac_header_preproc=no
12096fi
12097
12098rm -f conftest.err conftest.$ac_ext
12099{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12100echo "${ECHO_T}$ac_header_preproc" >&6; }
12101
12102# So? What about this header?
12103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12104 yes:no: )
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12109 ac_header_preproc=yes
12110 ;;
12111 no:yes:* )
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12115echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12119echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12124 ( cat <<\_ASBOX
12125## ----------------------------------- ##
12126## Report this to llvmbugs@cs.uiuc.edu ##
12127## ----------------------------------- ##
12128_ASBOX
12129 ) | sed "s/^/$as_me: WARNING: /" >&2
12130 ;;
12131esac
12132{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136else
12137 eval "$as_ac_Header=\$ac_header_preproc"
12138fi
12139ac_res=`eval echo '${'$as_ac_Header'}'`
12140 { echo "$as_me:$LINENO: result: $ac_res" >&5
12141echo "${ECHO_T}$ac_res" >&6; }
12142
12143fi
12144if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012145 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012147_ACEOF
12148
12149fi
12150
12151done
12152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012153
12154
12155
12156
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012157for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012158do
12159as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165fi
12166ac_res=`eval echo '${'$as_ac_Header'}'`
12167 { echo "$as_me:$LINENO: result: $ac_res" >&5
12168echo "${ECHO_T}$ac_res" >&6; }
12169else
12170 # Is the header compilable?
12171{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12172echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12173cat >conftest.$ac_ext <<_ACEOF
12174/* confdefs.h. */
12175_ACEOF
12176cat confdefs.h >>conftest.$ac_ext
12177cat >>conftest.$ac_ext <<_ACEOF
12178/* end confdefs.h. */
12179$ac_includes_default
12180#include <$ac_header>
12181_ACEOF
12182rm -f conftest.$ac_objext
12183if { (ac_try="$ac_compile"
12184case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187esac
12188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_compile") 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200esac
12201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210esac
12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_header_compiler=yes
12217else
12218 echo "$as_me: failed program was:" >&5
12219sed 's/^/| /' conftest.$ac_ext >&5
12220
12221 ac_header_compiler=no
12222fi
12223
12224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12225{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12226echo "${ECHO_T}$ac_header_compiler" >&6; }
12227
12228# Is the header present?
12229{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12230echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12231cat >conftest.$ac_ext <<_ACEOF
12232/* confdefs.h. */
12233_ACEOF
12234cat confdefs.h >>conftest.$ac_ext
12235cat >>conftest.$ac_ext <<_ACEOF
12236/* end confdefs.h. */
12237#include <$ac_header>
12238_ACEOF
12239if { (ac_try="$ac_cpp conftest.$ac_ext"
12240case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12243esac
12244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } >/dev/null; then
12252 if test -s conftest.err; then
12253 ac_cpp_err=$ac_c_preproc_warn_flag
12254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12255 else
12256 ac_cpp_err=
12257 fi
12258else
12259 ac_cpp_err=yes
12260fi
12261if test -z "$ac_cpp_err"; then
12262 ac_header_preproc=yes
12263else
12264 echo "$as_me: failed program was:" >&5
12265sed 's/^/| /' conftest.$ac_ext >&5
12266
12267 ac_header_preproc=no
12268fi
12269
12270rm -f conftest.err conftest.$ac_ext
12271{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12272echo "${ECHO_T}$ac_header_preproc" >&6; }
12273
12274# So? What about this header?
12275case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12276 yes:no: )
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12278echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12280echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12281 ac_header_preproc=yes
12282 ;;
12283 no:yes:* )
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12285echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12287echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12289echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12291echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12293echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12295echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12296 ( cat <<\_ASBOX
12297## ----------------------------------- ##
12298## Report this to llvmbugs@cs.uiuc.edu ##
12299## ----------------------------------- ##
12300_ASBOX
12301 ) | sed "s/^/$as_me: WARNING: /" >&2
12302 ;;
12303esac
12304{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 eval "$as_ac_Header=\$ac_header_preproc"
12310fi
12311ac_res=`eval echo '${'$as_ac_Header'}'`
12312 { echo "$as_me:$LINENO: result: $ac_res" >&5
12313echo "${ECHO_T}$ac_res" >&6; }
12314
12315fi
12316if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012317 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012319_ACEOF
12320
12321fi
12322
12323done
12324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012325
12326
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012327for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012328do
12329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335fi
12336ac_res=`eval echo '${'$as_ac_Header'}'`
12337 { echo "$as_me:$LINENO: result: $ac_res" >&5
12338echo "${ECHO_T}$ac_res" >&6; }
12339else
12340 # Is the header compilable?
12341{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12343cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349$ac_includes_default
12350#include <$ac_header>
12351_ACEOF
12352rm -f conftest.$ac_objext
12353if { (ac_try="$ac_compile"
12354case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357esac
12358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370esac
12371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380esac
12381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_header_compiler=yes
12387else
12388 echo "$as_me: failed program was:" >&5
12389sed 's/^/| /' conftest.$ac_ext >&5
12390
12391 ac_header_compiler=no
12392fi
12393
12394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12396echo "${ECHO_T}$ac_header_compiler" >&6; }
12397
12398# Is the header present?
12399{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12401cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
12407#include <$ac_header>
12408_ACEOF
12409if { (ac_try="$ac_cpp conftest.$ac_ext"
12410case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413esac
12414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } >/dev/null; then
12422 if test -s conftest.err; then
12423 ac_cpp_err=$ac_c_preproc_warn_flag
12424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12425 else
12426 ac_cpp_err=
12427 fi
12428else
12429 ac_cpp_err=yes
12430fi
12431if test -z "$ac_cpp_err"; then
12432 ac_header_preproc=yes
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ac_header_preproc=no
12438fi
12439
12440rm -f conftest.err conftest.$ac_ext
12441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442echo "${ECHO_T}$ac_header_preproc" >&6; }
12443
12444# So? What about this header?
12445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 yes:no: )
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc=yes
12452 ;;
12453 no:yes:* )
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12466 ( cat <<\_ASBOX
12467## ----------------------------------- ##
12468## Report this to llvmbugs@cs.uiuc.edu ##
12469## ----------------------------------- ##
12470_ASBOX
12471 ) | sed "s/^/$as_me: WARNING: /" >&2
12472 ;;
12473esac
12474{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478else
12479 eval "$as_ac_Header=\$ac_header_preproc"
12480fi
12481ac_res=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result: $ac_res" >&5
12483echo "${ECHO_T}$ac_res" >&6; }
12484
12485fi
12486if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012487 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012489_ACEOF
12490 break
12491fi
12492
12493done
12494
12495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012496
12497
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012498for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012499do
12500as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12501{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12502echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12503if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505else
12506 cat >conftest.$ac_ext <<_ACEOF
12507/* confdefs.h. */
12508_ACEOF
12509cat confdefs.h >>conftest.$ac_ext
12510cat >>conftest.$ac_ext <<_ACEOF
12511/* end confdefs.h. */
12512/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12514#define $ac_func innocuous_$ac_func
12515
12516/* System header to define __stub macros and hopefully few prototypes,
12517 which can conflict with char $ac_func (); below.
12518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12519 <limits.h> exists even on freestanding compilers. */
12520
12521#ifdef __STDC__
12522# include <limits.h>
12523#else
12524# include <assert.h>
12525#endif
12526
12527#undef $ac_func
12528
12529/* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532#ifdef __cplusplus
12533extern "C"
12534#endif
12535char $ac_func ();
12536/* The GNU C library defines this for functions which it implements
12537 to always fail with ENOSYS. Some functions are actually named
12538 something starting with __ and the normal name is an alias. */
12539#if defined __stub_$ac_func || defined __stub___$ac_func
12540choke me
12541#endif
12542
12543int
12544main ()
12545{
12546return $ac_func ();
12547 ;
12548 return 0;
12549}
12550_ACEOF
12551rm -f conftest.$ac_objext conftest$ac_exeext
12552if { (ac_try="$ac_link"
12553case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556esac
12557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_link") 2>conftest.er1
12559 ac_status=$?
12560 grep -v '^ *+' conftest.er1 >conftest.err
12561 rm -f conftest.er1
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12566 { (case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12569esac
12570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_try") 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest$ac_exeext'
12576 { (case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12579esac
12580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_try") 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 eval "$as_ac_var=yes"
12586else
12587 echo "$as_me: failed program was:" >&5
12588sed 's/^/| /' conftest.$ac_ext >&5
12589
12590 eval "$as_ac_var=no"
12591fi
12592
12593rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595fi
12596ac_res=`eval echo '${'$as_ac_var'}'`
12597 { echo "$as_me:$LINENO: result: $ac_res" >&5
12598echo "${ECHO_T}$ac_res" >&6; }
12599if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012600 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012602_ACEOF
12603 break
12604fi
12605done
12606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012607
12608
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012609for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012610do
12611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616else
12617 cat >conftest.$ac_ext <<_ACEOF
12618/* confdefs.h. */
12619_ACEOF
12620cat confdefs.h >>conftest.$ac_ext
12621cat >>conftest.$ac_ext <<_ACEOF
12622/* end confdefs.h. */
12623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12625#define $ac_func innocuous_$ac_func
12626
12627/* System header to define __stub macros and hopefully few prototypes,
12628 which can conflict with char $ac_func (); below.
12629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12630 <limits.h> exists even on freestanding compilers. */
12631
12632#ifdef __STDC__
12633# include <limits.h>
12634#else
12635# include <assert.h>
12636#endif
12637
12638#undef $ac_func
12639
12640/* Override any GCC internal prototype to avoid an error.
12641 Use char because int might match the return type of a GCC
12642 builtin and then its argument prototype would still apply. */
12643#ifdef __cplusplus
12644extern "C"
12645#endif
12646char $ac_func ();
12647/* The GNU C library defines this for functions which it implements
12648 to always fail with ENOSYS. Some functions are actually named
12649 something starting with __ and the normal name is an alias. */
12650#if defined __stub_$ac_func || defined __stub___$ac_func
12651choke me
12652#endif
12653
12654int
12655main ()
12656{
12657return $ac_func ();
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext conftest$ac_exeext
12663if { (ac_try="$ac_link"
12664case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667esac
12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_link") 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12677 { (case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12680esac
12681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_try") 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest$ac_exeext'
12687 { (case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12690esac
12691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_try") 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 eval "$as_ac_var=yes"
12697else
12698 echo "$as_me: failed program was:" >&5
12699sed 's/^/| /' conftest.$ac_ext >&5
12700
12701 eval "$as_ac_var=no"
12702fi
12703
12704rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706fi
12707ac_res=`eval echo '${'$as_ac_var'}'`
12708 { echo "$as_me:$LINENO: result: $ac_res" >&5
12709echo "${ECHO_T}$ac_res" >&6; }
12710if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012711 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012713_ACEOF
12714 break
12715fi
12716done
12717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012718
12719
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012720for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012721do
12722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12723{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12725if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727else
12728 cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
12734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12736#define $ac_func innocuous_$ac_func
12737
12738/* System header to define __stub macros and hopefully few prototypes,
12739 which can conflict with char $ac_func (); below.
12740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12741 <limits.h> exists even on freestanding compilers. */
12742
12743#ifdef __STDC__
12744# include <limits.h>
12745#else
12746# include <assert.h>
12747#endif
12748
12749#undef $ac_func
12750
12751/* Override any GCC internal prototype to avoid an error.
12752 Use char because int might match the return type of a GCC
12753 builtin and then its argument prototype would still apply. */
12754#ifdef __cplusplus
12755extern "C"
12756#endif
12757char $ac_func ();
12758/* The GNU C library defines this for functions which it implements
12759 to always fail with ENOSYS. Some functions are actually named
12760 something starting with __ and the normal name is an alias. */
12761#if defined __stub_$ac_func || defined __stub___$ac_func
12762choke me
12763#endif
12764
12765int
12766main ()
12767{
12768return $ac_func ();
12769 ;
12770 return 0;
12771}
12772_ACEOF
12773rm -f conftest.$ac_objext conftest$ac_exeext
12774if { (ac_try="$ac_link"
12775case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778esac
12779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_link") 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12788 { (case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12791esac
12792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_try") 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest$ac_exeext'
12798 { (case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12801esac
12802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_try") 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 eval "$as_ac_var=yes"
12808else
12809 echo "$as_me: failed program was:" >&5
12810sed 's/^/| /' conftest.$ac_ext >&5
12811
12812 eval "$as_ac_var=no"
12813fi
12814
12815rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817fi
12818ac_res=`eval echo '${'$as_ac_var'}'`
12819 { echo "$as_me:$LINENO: result: $ac_res" >&5
12820echo "${ECHO_T}$ac_res" >&6; }
12821if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012822 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012824_ACEOF
12825 break
12826fi
12827done
12828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012829
12830
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012831for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012832do
12833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12838else
12839 cat >conftest.$ac_ext <<_ACEOF
12840/* confdefs.h. */
12841_ACEOF
12842cat confdefs.h >>conftest.$ac_ext
12843cat >>conftest.$ac_ext <<_ACEOF
12844/* end confdefs.h. */
12845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12847#define $ac_func innocuous_$ac_func
12848
12849/* System header to define __stub macros and hopefully few prototypes,
12850 which can conflict with char $ac_func (); below.
12851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12852 <limits.h> exists even on freestanding compilers. */
12853
12854#ifdef __STDC__
12855# include <limits.h>
12856#else
12857# include <assert.h>
12858#endif
12859
12860#undef $ac_func
12861
12862/* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12865#ifdef __cplusplus
12866extern "C"
12867#endif
12868char $ac_func ();
12869/* The GNU C library defines this for functions which it implements
12870 to always fail with ENOSYS. Some functions are actually named
12871 something starting with __ and the normal name is an alias. */
12872#if defined __stub_$ac_func || defined __stub___$ac_func
12873choke me
12874#endif
12875
12876int
12877main ()
12878{
12879return $ac_func ();
12880 ;
12881 return 0;
12882}
12883_ACEOF
12884rm -f conftest.$ac_objext conftest$ac_exeext
12885if { (ac_try="$ac_link"
12886case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889esac
12890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_link") 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12899 { (case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902esac
12903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_try") 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest$ac_exeext'
12909 { (case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912esac
12913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_try") 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 eval "$as_ac_var=yes"
12919else
12920 echo "$as_me: failed program was:" >&5
12921sed 's/^/| /' conftest.$ac_ext >&5
12922
12923 eval "$as_ac_var=no"
12924fi
12925
12926rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928fi
12929ac_res=`eval echo '${'$as_ac_var'}'`
12930 { echo "$as_me:$LINENO: result: $ac_res" >&5
12931echo "${ECHO_T}$ac_res" >&6; }
12932if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012933 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012935_ACEOF
12936
12937fi
12938done
12939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012940
12941
12942
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012943for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012944do
12945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12946{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12948if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950else
12951 cat >conftest.$ac_ext <<_ACEOF
12952/* confdefs.h. */
12953_ACEOF
12954cat confdefs.h >>conftest.$ac_ext
12955cat >>conftest.$ac_ext <<_ACEOF
12956/* end confdefs.h. */
12957/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12959#define $ac_func innocuous_$ac_func
12960
12961/* System header to define __stub macros and hopefully few prototypes,
12962 which can conflict with char $ac_func (); below.
12963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12964 <limits.h> exists even on freestanding compilers. */
12965
12966#ifdef __STDC__
12967# include <limits.h>
12968#else
12969# include <assert.h>
12970#endif
12971
12972#undef $ac_func
12973
12974/* Override any GCC internal prototype to avoid an error.
12975 Use char because int might match the return type of a GCC
12976 builtin and then its argument prototype would still apply. */
12977#ifdef __cplusplus
12978extern "C"
12979#endif
12980char $ac_func ();
12981/* The GNU C library defines this for functions which it implements
12982 to always fail with ENOSYS. Some functions are actually named
12983 something starting with __ and the normal name is an alias. */
12984#if defined __stub_$ac_func || defined __stub___$ac_func
12985choke me
12986#endif
12987
12988int
12989main ()
12990{
12991return $ac_func ();
12992 ;
12993 return 0;
12994}
12995_ACEOF
12996rm -f conftest.$ac_objext conftest$ac_exeext
12997if { (ac_try="$ac_link"
12998case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_link") 2>conftest.er1
13004 ac_status=$?
13005 grep -v '^ *+' conftest.er1 >conftest.err
13006 rm -f conftest.er1
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
13010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13011 { (case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13014esac
13015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_try") 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest$ac_exeext'
13021 { (case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13024esac
13025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_try") 2>&5
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
13030 eval "$as_ac_var=yes"
13031else
13032 echo "$as_me: failed program was:" >&5
13033sed 's/^/| /' conftest.$ac_ext >&5
13034
13035 eval "$as_ac_var=no"
13036fi
13037
13038rm -f core conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040fi
13041ac_res=`eval echo '${'$as_ac_var'}'`
13042 { echo "$as_me:$LINENO: result: $ac_res" >&5
13043echo "${ECHO_T}$ac_res" >&6; }
13044if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013045 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013047_ACEOF
13048
13049fi
13050done
13051
13052
Douglas Gregor01746742009-05-11 18:05:52 +000013053
Reid Spencer7931a782004-12-27 06:15:02 +000013054if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013055 LLVMGCC="llvm-gcc${EXEEXT}"
13056 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013057 LLVMGCCCOMMAND="$LLVMGCC"
13058 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013059 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13060
13061 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13062
Reid Spencerc84492c2005-06-02 22:34:49 +000013063 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13064set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13067if test "${ac_cv_path_LLVMGCC+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013069else
13070 case $LLVMGCC in
13071 [\\/]* | ?:[\\/]*)
13072 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13073 ;;
13074 *)
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076for as_dir in $PATH
13077do
13078 IFS=$as_save_IFS
13079 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 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 +000013082 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013084 break 2
13085 fi
13086done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013087done
Reid Spencera773bd52006-08-04 18:18:08 +000013088IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013089
Reid Spencer59473af2004-12-25 07:31:29 +000013090 ;;
13091esac
13092fi
13093LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013094if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013095 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13096echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013097else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013098 { echo "$as_me:$LINENO: result: no" >&5
13099echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013100fi
13101
Reid Spencera773bd52006-08-04 18:18:08 +000013102
Reid Spencerc84492c2005-06-02 22:34:49 +000013103 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13104set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13107if test "${ac_cv_path_LLVMGXX+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013109else
13110 case $LLVMGXX in
13111 [\\/]* | ?:[\\/]*)
13112 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13113 ;;
13114 *)
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116for as_dir in $PATH
13117do
13118 IFS=$as_save_IFS
13119 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 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 +000013122 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013124 break 2
13125 fi
13126done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013127done
Reid Spencera773bd52006-08-04 18:18:08 +000013128IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013129
Reid Spencer59473af2004-12-25 07:31:29 +000013130 ;;
13131esac
13132fi
13133LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013134if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013135 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13136echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013137else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013138 { echo "$as_me:$LINENO: result: no" >&5
13139echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013140fi
13141
Reid Spencera773bd52006-08-04 18:18:08 +000013142
Reid Spencer59473af2004-12-25 07:31:29 +000013143else
Devang Patel5d28b882007-12-04 22:54:47 +000013144 if test -z "$LLVMGCC"; then
13145 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013146 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013147 fi
13148 if test -z "$LLVMGXX"; then
13149 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013150 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013151 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013152
Reid Spencer59473af2004-12-25 07:31:29 +000013153 LLVMGCC=$LLVMGCC
13154
13155 LLVMGXX=$LLVMGXX
13156
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013157 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13158
13159 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13160
Reid Spencer59473af2004-12-25 07:31:29 +000013161fi
13162
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013163
Daniel Dunbar98515672010-02-23 10:00:49 +000013164# Check whether --with-llvmcc was given.
13165if test "${with_llvmcc+set}" = set; then
13166 withval=$with_llvmcc;
13167else
13168 with_llvmcc=check
13169fi
13170
13171{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13172echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13173if test "$with_llvmcc" != "check"; then
13174 if (test "$with_llvmcc" != "llvm-gcc" &&
13175 test "$with_llvmcc" != "clang" &&
13176 test "$with_llvmcc" != "none"); then
13177 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13178echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13179 { (exit 1); exit 1; }; }
13180 fi
13181 WITH_LLVMCC="$with_llvmcc"
13182elif test -n "$LLVMGCC"; then
13183 WITH_LLVMCC=llvm-gcc
13184elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13185 WITH_LLVMCC=clang
13186else
13187 WITH_LLVMCC=none
13188fi
13189{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13190echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13191LLVMCC_OPTION=$WITH_LLVMCC
13192
13193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013194{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13195echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013196
Reid Spencer86901802004-12-08 23:07:27 +000013197ICC=no
13198IXX=no
13199case $CC in
13200 icc*|icpc*)
13201 ICC=yes
13202 IXX=yes
13203 ;;
13204 *)
13205 ;;
13206esac
13207
Duraid Madina937c60a2006-02-15 07:57:42 +000013208if test "$GCC" != "yes" && test "$ICC" != "yes"
13209then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013210 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13211echo "$as_me: error: gcc|icc required but not found" >&2;}
13212 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013213fi
13214
13215if test "$GXX" != "yes" && test "$IXX" != "yes"
13216then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013217 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13218echo "$as_me: error: g++|icc required but not found" >&2;}
13219 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013220fi
13221
Reid Spencer86901802004-12-08 23:07:27 +000013222if test "$GCC" = "yes"
13223then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013224 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013225#if !defined(__GNUC__) || __GNUC__ < 3
13226#error Unsupported GCC version
13227#endif
13228
13229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013230rm -f conftest.$ac_objext
13231if { (ac_try="$ac_compile"
13232case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235esac
13236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_compile") 2>conftest.er1
13238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } &&
13244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13248esac
13249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest.$ac_objext'
13255 { (case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258esac
13259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_try") 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13264 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013266 echo "$as_me: failed program was:" >&5
13267sed 's/^/| /' conftest.$ac_ext >&5
13268
13269 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13270echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13271 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013273
Chris Lattner399c7c72008-02-05 19:43:53 +000013274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013275fi
13276
13277if test -z "$llvm_cv_gnu_make_command"
13278then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013279 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13280echo "$as_me: error: GNU Make required but not found" >&2;}
13281 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013282fi
13283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013284{ echo "$as_me:$LINENO: result: ok" >&5
13285echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013287{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13288echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013289NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13290
13291NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13294echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013295
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013297
13298{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13299echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13300if test "${ac_cv_lib_m_sin+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013302else
13303 ac_check_lib_save_LIBS=$LIBS
13304LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013305cat >conftest.$ac_ext <<_ACEOF
13306/* confdefs.h. */
13307_ACEOF
13308cat confdefs.h >>conftest.$ac_ext
13309cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013310/* end confdefs.h. */
13311
Reid Spencera773bd52006-08-04 18:18:08 +000013312/* Override any GCC internal prototype to avoid an error.
13313 Use char because int might match the return type of a GCC
13314 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013315#ifdef __cplusplus
13316extern "C"
13317#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013318char sin ();
13319int
13320main ()
13321{
Reid Spencera773bd52006-08-04 18:18:08 +000013322return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013323 ;
13324 return 0;
13325}
13326_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013327rm -f conftest.$ac_objext conftest$ac_exeext
13328if { (ac_try="$ac_link"
13329case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332esac
13333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_link") 2>conftest.er1
13335 ac_status=$?
13336 grep -v '^ *+' conftest.er1 >conftest.err
13337 rm -f conftest.er1
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } &&
13341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345esac
13346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest$ac_exeext'
13352 { (case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13355esac
13356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357 (eval "$ac_try") 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013361 ac_cv_lib_m_sin=yes
13362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013363 echo "$as_me: failed program was:" >&5
13364sed 's/^/| /' conftest.$ac_ext >&5
13365
13366 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013368
Bill Wendlingebcceee2009-04-18 11:20:33 +000013369rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013370 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013371LIBS=$ac_check_lib_save_LIBS
13372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013373{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13374echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13375if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013376 cat >>confdefs.h <<_ACEOF
13377#define HAVE_LIBM 1
13378_ACEOF
13379
13380 LIBS="-lm $LIBS"
13381
13382fi
13383
Jeff Cohen28783c32007-01-12 18:22:38 +000013384if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013385
13386{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13387echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13388if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013390else
13391 ac_check_lib_save_LIBS=$LIBS
13392LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013393cat >conftest.$ac_ext <<_ACEOF
13394/* confdefs.h. */
13395_ACEOF
13396cat confdefs.h >>conftest.$ac_ext
13397cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013398/* end confdefs.h. */
13399
Reid Spencer48fdf912006-06-01 19:03:21 +000013400
Reid Spencer484fc8e2006-06-01 16:55:59 +000013401int
13402main ()
13403{
Reid Spencera773bd52006-08-04 18:18:08 +000013404return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013405 ;
13406 return 0;
13407}
13408_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013409rm -f conftest.$ac_objext conftest$ac_exeext
13410if { (ac_try="$ac_link"
13411case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414esac
13415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_link") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13424 { (case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427esac
13428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_try") 2>&5
13430 ac_status=$?
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; } &&
13433 { ac_try='test -s conftest$ac_exeext'
13434 { (case "(($ac_try" in
13435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436 *) ac_try_echo=$ac_try;;
13437esac
13438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13439 (eval "$ac_try") 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013443 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013444else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013445 echo "$as_me: failed program was:" >&5
13446sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013450
Bill Wendlingebcceee2009-04-18 11:20:33 +000013451rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013452 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013453LIBS=$ac_check_lib_save_LIBS
13454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013455{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13456echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13457if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013458 cat >>confdefs.h <<_ACEOF
13459#define HAVE_LIBIMAGEHLP 1
13460_ACEOF
13461
13462 LIBS="-limagehlp $LIBS"
13463
13464fi
13465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013466
13467{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13468echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13469if test "${ac_cv_lib_psapi_main+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013471else
13472 ac_check_lib_save_LIBS=$LIBS
13473LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013474cat >conftest.$ac_ext <<_ACEOF
13475/* confdefs.h. */
13476_ACEOF
13477cat confdefs.h >>conftest.$ac_ext
13478cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013479/* end confdefs.h. */
13480
Reid Spencer48fdf912006-06-01 19:03:21 +000013481
Reid Spencer484fc8e2006-06-01 16:55:59 +000013482int
13483main ()
13484{
Reid Spencera773bd52006-08-04 18:18:08 +000013485return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013486 ;
13487 return 0;
13488}
13489_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013490rm -f conftest.$ac_objext conftest$ac_exeext
13491if { (ac_try="$ac_link"
13492case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495esac
13496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_link") 2>conftest.er1
13498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13505 { (case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508esac
13509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510 (eval "$ac_try") 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; } &&
13514 { ac_try='test -s conftest$ac_exeext'
13515 { (case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518esac
13519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_try") 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013524 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013525else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013531
Bill Wendlingebcceee2009-04-18 11:20:33 +000013532rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013533 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013534LIBS=$ac_check_lib_save_LIBS
13535fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013536{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13537echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13538if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013539 cat >>confdefs.h <<_ACEOF
13540#define HAVE_LIBPSAPI 1
13541_ACEOF
13542
13543 LIBS="-lpsapi $LIBS"
13544
13545fi
13546
13547fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013549{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13550echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13551if test "${ac_cv_search_dlopen+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013553else
13554 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013555cat >conftest.$ac_ext <<_ACEOF
13556/* confdefs.h. */
13557_ACEOF
13558cat confdefs.h >>conftest.$ac_ext
13559cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013560/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013561
Reid Spencera773bd52006-08-04 18:18:08 +000013562/* Override any GCC internal prototype to avoid an error.
13563 Use char because int might match the return type of a GCC
13564 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013565#ifdef __cplusplus
13566extern "C"
13567#endif
John Criswell7a73b802003-06-30 21:59:07 +000013568char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013569int
13570main ()
13571{
Reid Spencera773bd52006-08-04 18:18:08 +000013572return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013573 ;
13574 return 0;
13575}
13576_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013577for ac_lib in '' dl; do
13578 if test -z "$ac_lib"; then
13579 ac_res="none required"
13580 else
13581 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013583 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013584 rm -f conftest.$ac_objext conftest$ac_exeext
13585if { (ac_try="$ac_link"
13586case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589esac
13590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_link") 2>conftest.er1
13592 ac_status=$?
13593 grep -v '^ *+' conftest.er1 >conftest.err
13594 rm -f conftest.er1
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13599 { (case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602esac
13603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_try") 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest$ac_exeext'
13609 { (case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612esac
13613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_try") 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013618 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013619else
13620 echo "$as_me: failed program was:" >&5
13621sed 's/^/| /' conftest.$ac_ext >&5
13622
13623
John Criswell7a73b802003-06-30 21:59:07 +000013624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013625
Bill Wendlingebcceee2009-04-18 11:20:33 +000013626rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013627 conftest$ac_exeext
13628 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013629 break
John Criswell7a73b802003-06-30 21:59:07 +000013630fi
Reid Spencera773bd52006-08-04 18:18:08 +000013631done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013632if test "${ac_cv_search_dlopen+set}" = set; then
13633 :
Reid Spencera773bd52006-08-04 18:18:08 +000013634else
13635 ac_cv_search_dlopen=no
13636fi
13637rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013638LIBS=$ac_func_search_save_LIBS
13639fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013640{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13641echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013642ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013643if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013646cat >>confdefs.h <<\_ACEOF
13647#define HAVE_DLOPEN 1
13648_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013649
13650else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013651 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13652echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013653fi
13654
13655
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013656if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013657 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13658echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13659if test "${ac_cv_search_ffi_call+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013661else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013662 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013663cat >conftest.$ac_ext <<_ACEOF
13664/* confdefs.h. */
13665_ACEOF
13666cat confdefs.h >>conftest.$ac_ext
13667cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013668/* end confdefs.h. */
13669
13670/* Override any GCC internal prototype to avoid an error.
13671 Use char because int might match the return type of a GCC
13672 builtin and then its argument prototype would still apply. */
13673#ifdef __cplusplus
13674extern "C"
13675#endif
13676char ffi_call ();
13677int
13678main ()
13679{
13680return ffi_call ();
13681 ;
13682 return 0;
13683}
13684_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013685for ac_lib in '' ffi; do
13686 if test -z "$ac_lib"; then
13687 ac_res="none required"
13688 else
13689 ac_res=-l$ac_lib
13690 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13691 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013692 rm -f conftest.$ac_objext conftest$ac_exeext
13693if { (ac_try="$ac_link"
13694case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13697esac
13698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_link") 2>conftest.er1
13700 ac_status=$?
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707 { (case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13710esac
13711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_try") 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest$ac_exeext'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720esac
13721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013726 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013727else
13728 echo "$as_me: failed program was:" >&5
13729sed 's/^/| /' conftest.$ac_ext >&5
13730
13731
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013732fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013733
Bill Wendlingebcceee2009-04-18 11:20:33 +000013734rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013735 conftest$ac_exeext
13736 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013737 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013738fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013739done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013740if test "${ac_cv_search_ffi_call+set}" = set; then
13741 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013742else
13743 ac_cv_search_ffi_call=no
13744fi
13745rm conftest.$ac_ext
13746LIBS=$ac_func_search_save_LIBS
13747fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013748{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13749echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013750ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013751if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013754cat >>confdefs.h <<\_ACEOF
13755#define HAVE_FFI_CALL 1
13756_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013757
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013758else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013759 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13760echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13761 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013762fi
13763
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013764fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013766{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13767echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13768if test "${ac_cv_search_mallinfo+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013770else
13771 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013772cat >conftest.$ac_ext <<_ACEOF
13773/* confdefs.h. */
13774_ACEOF
13775cat confdefs.h >>conftest.$ac_ext
13776cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013777/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013778
Reid Spencera773bd52006-08-04 18:18:08 +000013779/* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013782#ifdef __cplusplus
13783extern "C"
13784#endif
John Criswell7a73b802003-06-30 21:59:07 +000013785char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013786int
13787main ()
13788{
Reid Spencera773bd52006-08-04 18:18:08 +000013789return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013790 ;
13791 return 0;
13792}
13793_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013794for ac_lib in '' malloc; do
13795 if test -z "$ac_lib"; then
13796 ac_res="none required"
13797 else
13798 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013800 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013801 rm -f conftest.$ac_objext conftest$ac_exeext
13802if { (ac_try="$ac_link"
13803case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806esac
13807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_link") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13816 { (case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13819esac
13820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_try") 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest$ac_exeext'
13826 { (case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13829esac
13830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_try") 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013835 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013836else
13837 echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
13839
13840
John Criswell7a73b802003-06-30 21:59:07 +000013841fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013842
Bill Wendlingebcceee2009-04-18 11:20:33 +000013843rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013844 conftest$ac_exeext
13845 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013846 break
John Criswell7a73b802003-06-30 21:59:07 +000013847fi
Reid Spencera773bd52006-08-04 18:18:08 +000013848done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013849if test "${ac_cv_search_mallinfo+set}" = set; then
13850 :
Reid Spencera773bd52006-08-04 18:18:08 +000013851else
13852 ac_cv_search_mallinfo=no
13853fi
13854rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013855LIBS=$ac_func_search_save_LIBS
13856fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013857{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13858echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013859ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013860if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013863cat >>confdefs.h <<\_ACEOF
13864#define HAVE_MALLINFO 1
13865_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013866
13867fi
13868
13869
Reid Spencer0a262ba2005-08-24 10:07:20 +000013870if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013871
13872{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13873echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13874if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013876else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013877 ac_check_lib_save_LIBS=$LIBS
13878LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013879cat >conftest.$ac_ext <<_ACEOF
13880/* confdefs.h. */
13881_ACEOF
13882cat confdefs.h >>conftest.$ac_ext
13883cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013884/* end confdefs.h. */
13885
Reid Spencera773bd52006-08-04 18:18:08 +000013886/* Override any GCC internal prototype to avoid an error.
13887 Use char because int might match the return type of a GCC
13888 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013889#ifdef __cplusplus
13890extern "C"
13891#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013892char pthread_mutex_init ();
13893int
13894main ()
13895{
Reid Spencera773bd52006-08-04 18:18:08 +000013896return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013897 ;
13898 return 0;
13899}
13900_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013901rm -f conftest.$ac_objext conftest$ac_exeext
13902if { (ac_try="$ac_link"
13903case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13906esac
13907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_link") 2>conftest.er1
13909 ac_status=$?
13910 grep -v '^ *+' conftest.er1 >conftest.err
13911 rm -f conftest.er1
13912 cat conftest.err >&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
13915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13916 { (case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919esac
13920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_try") 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; } &&
13925 { ac_try='test -s conftest$ac_exeext'
13926 { (case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929esac
13930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_try") 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013935 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013937 echo "$as_me: failed program was:" >&5
13938sed 's/^/| /' conftest.$ac_ext >&5
13939
13940 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013941fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013942
Bill Wendlingebcceee2009-04-18 11:20:33 +000013943rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013944 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013945LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013947{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13948echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13949if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013950 cat >>confdefs.h <<_ACEOF
13951#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013952_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013953
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013954 LIBS="-lpthread $LIBS"
13955
Reid Spencer22177fe2005-07-12 15:24:20 +000013956fi
13957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013958 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13959echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13960if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013962else
13963 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013964cat >conftest.$ac_ext <<_ACEOF
13965/* confdefs.h. */
13966_ACEOF
13967cat confdefs.h >>conftest.$ac_ext
13968cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013969/* end confdefs.h. */
13970
Reid Spencera773bd52006-08-04 18:18:08 +000013971/* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013974#ifdef __cplusplus
13975extern "C"
13976#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013977char pthread_mutex_lock ();
13978int
13979main ()
13980{
Reid Spencera773bd52006-08-04 18:18:08 +000013981return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013982 ;
13983 return 0;
13984}
13985_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013986for ac_lib in '' pthread; do
13987 if test -z "$ac_lib"; then
13988 ac_res="none required"
13989 else
13990 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013992 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013993 rm -f conftest.$ac_objext conftest$ac_exeext
13994if { (ac_try="$ac_link"
13995case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13998esac
13999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_link") 2>conftest.er1
14001 ac_status=$?
14002 grep -v '^ *+' conftest.er1 >conftest.err
14003 rm -f conftest.er1
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14008 { (case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14011esac
14012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_try") 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest$ac_exeext'
14018 { (case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14021esac
14022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_try") 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014027 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028else
14029 echo "$as_me: failed program was:" >&5
14030sed 's/^/| /' conftest.$ac_ext >&5
14031
14032
Brian Gaeke5f268f72003-12-05 19:29:01 +000014033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014034
Bill Wendlingebcceee2009-04-18 11:20:33 +000014035rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014036 conftest$ac_exeext
14037 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014038 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014039fi
Reid Spencera773bd52006-08-04 18:18:08 +000014040done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14042 :
Reid Spencera773bd52006-08-04 18:18:08 +000014043else
14044 ac_cv_search_pthread_mutex_lock=no
14045fi
14046rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014047LIBS=$ac_func_search_save_LIBS
14048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014049{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14050echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014051ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014052if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014055cat >>confdefs.h <<\_ACEOF
14056#define HAVE_PTHREAD_MUTEX_LOCK 1
14057_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014058
14059fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014061 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14062echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14063if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014065else
14066 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014067cat >conftest.$ac_ext <<_ACEOF
14068/* confdefs.h. */
14069_ACEOF
14070cat confdefs.h >>conftest.$ac_ext
14071cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014072/* end confdefs.h. */
14073
14074/* Override any GCC internal prototype to avoid an error.
14075 Use char because int might match the return type of a GCC
14076 builtin and then its argument prototype would still apply. */
14077#ifdef __cplusplus
14078extern "C"
14079#endif
14080char pthread_rwlock_init ();
14081int
14082main ()
14083{
14084return pthread_rwlock_init ();
14085 ;
14086 return 0;
14087}
14088_ACEOF
14089for ac_lib in '' pthread; do
14090 if test -z "$ac_lib"; then
14091 ac_res="none required"
14092 else
14093 ac_res=-l$ac_lib
14094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14095 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014096 rm -f conftest.$ac_objext conftest$ac_exeext
14097if { (ac_try="$ac_link"
14098case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_link") 2>conftest.er1
14104 ac_status=$?
14105 grep -v '^ *+' conftest.er1 >conftest.err
14106 rm -f conftest.er1
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14111 { (case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14114esac
14115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116 (eval "$ac_try") 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; } &&
14120 { ac_try='test -s conftest$ac_exeext'
14121 { (case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124esac
14125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_try") 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014130 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014131else
14132 echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
14135
Owen Andersonde8aed22009-06-16 18:20:20 +000014136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014137
Owen Andersonde8aed22009-06-16 18:20:20 +000014138rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014139 conftest$ac_exeext
14140 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014141 break
14142fi
14143done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014144if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14145 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014146else
14147 ac_cv_search_pthread_rwlock_init=no
14148fi
14149rm conftest.$ac_ext
14150LIBS=$ac_func_search_save_LIBS
14151fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014152{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14153echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014154ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014155if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014158cat >>confdefs.h <<\_ACEOF
14159#define HAVE_PTHREAD_RWLOCK_INIT 1
14160_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014161
14162fi
14163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014164 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14165echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14166if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014168else
14169 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014170cat >conftest.$ac_ext <<_ACEOF
14171/* confdefs.h. */
14172_ACEOF
14173cat confdefs.h >>conftest.$ac_ext
14174cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014175/* end confdefs.h. */
14176
14177/* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180#ifdef __cplusplus
14181extern "C"
14182#endif
14183char pthread_getspecific ();
14184int
14185main ()
14186{
14187return pthread_getspecific ();
14188 ;
14189 return 0;
14190}
14191_ACEOF
14192for ac_lib in '' pthread; do
14193 if test -z "$ac_lib"; then
14194 ac_res="none required"
14195 else
14196 ac_res=-l$ac_lib
14197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14198 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014199 rm -f conftest.$ac_objext conftest$ac_exeext
14200if { (ac_try="$ac_link"
14201case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204esac
14205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_link") 2>conftest.er1
14207 ac_status=$?
14208 grep -v '^ *+' conftest.er1 >conftest.err
14209 rm -f conftest.er1
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } &&
14213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217esac
14218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest$ac_exeext'
14224 { (case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14227esac
14228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_try") 2>&5
14230 ac_status=$?
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014233 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234else
14235 echo "$as_me: failed program was:" >&5
14236sed 's/^/| /' conftest.$ac_ext >&5
14237
14238
Owen Anderson27fcfe12009-06-25 23:10:26 +000014239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014240
Owen Anderson27fcfe12009-06-25 23:10:26 +000014241rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014242 conftest$ac_exeext
14243 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014244 break
14245fi
14246done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014247if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14248 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014249else
14250 ac_cv_search_pthread_getspecific=no
14251fi
14252rm conftest.$ac_ext
14253LIBS=$ac_func_search_save_LIBS
14254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014255{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14256echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014257ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014261cat >>confdefs.h <<\_ACEOF
14262#define HAVE_PTHREAD_GETSPECIFIC 1
14263_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014264
14265fi
14266
Reid Spencer0a262ba2005-08-24 10:07:20 +000014267fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014268
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014269
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014270# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014271if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014272 withval=$with_udis86;
14273 USE_UDIS86=1
14274
14275 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014276 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014277 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14278 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014279
14280{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14281echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14282if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014284else
14285 ac_check_lib_save_LIBS=$LIBS
14286LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014287cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014292/* end confdefs.h. */
14293
14294/* Override any GCC internal prototype to avoid an error.
14295 Use char because int might match the return type of a GCC
14296 builtin and then its argument prototype would still apply. */
14297#ifdef __cplusplus
14298extern "C"
14299#endif
14300char ud_init ();
14301int
14302main ()
14303{
14304return ud_init ();
14305 ;
14306 return 0;
14307}
14308_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014309rm -f conftest.$ac_objext conftest$ac_exeext
14310if { (ac_try="$ac_link"
14311case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14314esac
14315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_link") 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14324 { (case "(($ac_try" in
14325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14327esac
14328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329 (eval "$ac_try") 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest$ac_exeext'
14334 { (case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337esac
14338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014343 ac_cv_lib_udis86_ud_init=yes
14344else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014345 echo "$as_me: failed program was:" >&5
14346sed 's/^/| /' conftest.$ac_ext >&5
14347
14348 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014350
Bill Wendlingebcceee2009-04-18 11:20:33 +000014351rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014352 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014353LIBS=$ac_check_lib_save_LIBS
14354fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14356echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14357if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014358 cat >>confdefs.h <<_ACEOF
14359#define HAVE_LIBUDIS86 1
14360_ACEOF
14361
14362 LIBS="-ludis86 $LIBS"
14363
14364else
14365
14366 echo "Error! You need to have libudis86 around."
14367 exit -1
14368
14369fi
14370
14371
14372else
14373 USE_UDIS86=0
14374
14375fi
14376
14377
14378cat >>confdefs.h <<_ACEOF
14379#define USE_UDIS86 $USE_UDIS86
14380_ACEOF
14381
14382
14383
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014384# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014385if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014386 withval=$with_oprofile;
14387 USE_OPROFILE=1
14388
14389 case "$withval" in
14390 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014391 no) llvm_cv_oppath=
14392 USE_OPROFILE=0
14393 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014394 *) llvm_cv_oppath="${withval}/lib/oprofile"
14395 CPPFLAGS="-I${withval}/include";;
14396 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014397 if test -n "$llvm_cv_oppath" ; then
14398 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014399 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14400echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14401if test "${ac_cv_search_bfd_init+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014403else
14404 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014405cat >conftest.$ac_ext <<_ACEOF
14406/* confdefs.h. */
14407_ACEOF
14408cat confdefs.h >>conftest.$ac_ext
14409cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014410/* end confdefs.h. */
14411
14412/* Override any GCC internal prototype to avoid an error.
14413 Use char because int might match the return type of a GCC
14414 builtin and then its argument prototype would still apply. */
14415#ifdef __cplusplus
14416extern "C"
14417#endif
14418char bfd_init ();
14419int
14420main ()
14421{
14422return bfd_init ();
14423 ;
14424 return 0;
14425}
14426_ACEOF
14427for ac_lib in '' bfd; do
14428 if test -z "$ac_lib"; then
14429 ac_res="none required"
14430 else
14431 ac_res=-l$ac_lib
14432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14433 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014434 rm -f conftest.$ac_objext conftest$ac_exeext
14435if { (ac_try="$ac_link"
14436case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14439esac
14440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_link") 2>conftest.er1
14442 ac_status=$?
14443 grep -v '^ *+' conftest.er1 >conftest.err
14444 rm -f conftest.er1
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14449 { (case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452esac
14453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_try") 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try='test -s conftest$ac_exeext'
14459 { (case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462esac
14463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_try") 2>&5
14465 ac_status=$?
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014468 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014469else
14470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
14473
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014474fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014475
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014476rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014477 conftest$ac_exeext
14478 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014479 break
14480fi
14481done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014482if test "${ac_cv_search_bfd_init+set}" = set; then
14483 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014484else
14485 ac_cv_search_bfd_init=no
14486fi
14487rm conftest.$ac_ext
14488LIBS=$ac_func_search_save_LIBS
14489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014490{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14491echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014492ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014493if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14495
14496fi
14497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014498 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14499echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14500if test "${ac_cv_search_op_open_agent+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014502else
14503 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014504cat >conftest.$ac_ext <<_ACEOF
14505/* confdefs.h. */
14506_ACEOF
14507cat confdefs.h >>conftest.$ac_ext
14508cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014509/* end confdefs.h. */
14510
14511/* Override any GCC internal prototype to avoid an error.
14512 Use char because int might match the return type of a GCC
14513 builtin and then its argument prototype would still apply. */
14514#ifdef __cplusplus
14515extern "C"
14516#endif
14517char op_open_agent ();
14518int
14519main ()
14520{
14521return op_open_agent ();
14522 ;
14523 return 0;
14524}
14525_ACEOF
14526for ac_lib in '' opagent; do
14527 if test -z "$ac_lib"; then
14528 ac_res="none required"
14529 else
14530 ac_res=-l$ac_lib
14531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14532 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014533 rm -f conftest.$ac_objext conftest$ac_exeext
14534if { (ac_try="$ac_link"
14535case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538esac
14539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_link") 2>conftest.er1
14541 ac_status=$?
14542 grep -v '^ *+' conftest.er1 >conftest.err
14543 rm -f conftest.er1
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } &&
14547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14548 { (case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14551esac
14552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_try") 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
14558 { (case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14561esac
14562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_try") 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014567 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014568else
14569 echo "$as_me: failed program was:" >&5
14570sed 's/^/| /' conftest.$ac_ext >&5
14571
14572
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014574
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014575rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014576 conftest$ac_exeext
14577 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014578 break
14579fi
14580done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014581if test "${ac_cv_search_op_open_agent+set}" = set; then
14582 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014583else
14584 ac_cv_search_op_open_agent=no
14585fi
14586rm conftest.$ac_ext
14587LIBS=$ac_func_search_save_LIBS
14588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014589{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14590echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014591ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014592if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14594
14595else
14596
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014597 echo "Error! You need to have libopagent around."
14598 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014599
14600fi
14601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014602 if test "${ac_cv_header_opagent_h+set}" = set; then
14603 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14604echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14605if test "${ac_cv_header_opagent_h+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607fi
14608{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14609echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14610else
14611 # Is the header compilable?
14612{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14613echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14614cat >conftest.$ac_ext <<_ACEOF
14615/* confdefs.h. */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
14619/* end confdefs.h. */
14620$ac_includes_default
14621#include <opagent.h>
14622_ACEOF
14623rm -f conftest.$ac_objext
14624if { (ac_try="$ac_compile"
14625case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14628esac
14629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14631 ac_status=$?
14632 grep -v '^ *+' conftest.er1 >conftest.err
14633 rm -f conftest.er1
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641esac
14642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } &&
14647 { ac_try='test -s conftest.$ac_objext'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14651esac
14652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_header_compiler=yes
14658else
14659 echo "$as_me: failed program was:" >&5
14660sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014662 ac_header_compiler=no
14663fi
14664
14665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14667echo "${ECHO_T}$ac_header_compiler" >&6; }
14668
14669# Is the header present?
14670{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14671echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14672cat >conftest.$ac_ext <<_ACEOF
14673/* confdefs.h. */
14674_ACEOF
14675cat confdefs.h >>conftest.$ac_ext
14676cat >>conftest.$ac_ext <<_ACEOF
14677/* end confdefs.h. */
14678#include <opagent.h>
14679_ACEOF
14680if { (ac_try="$ac_cpp conftest.$ac_ext"
14681case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14684esac
14685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } >/dev/null; then
14693 if test -s conftest.err; then
14694 ac_cpp_err=$ac_c_preproc_warn_flag
14695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14696 else
14697 ac_cpp_err=
14698 fi
14699else
14700 ac_cpp_err=yes
14701fi
14702if test -z "$ac_cpp_err"; then
14703 ac_header_preproc=yes
14704else
14705 echo "$as_me: failed program was:" >&5
14706sed 's/^/| /' conftest.$ac_ext >&5
14707
14708 ac_header_preproc=no
14709fi
14710
14711rm -f conftest.err conftest.$ac_ext
14712{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14713echo "${ECHO_T}$ac_header_preproc" >&6; }
14714
14715# So? What about this header?
14716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14717 yes:no: )
14718 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14719echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14721echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14722 ac_header_preproc=yes
14723 ;;
14724 no:yes:* )
14725 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14726echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14728echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14730echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14732echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14734echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14736echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14737 ( cat <<\_ASBOX
14738## ----------------------------------- ##
14739## Report this to llvmbugs@cs.uiuc.edu ##
14740## ----------------------------------- ##
14741_ASBOX
14742 ) | sed "s/^/$as_me: WARNING: /" >&2
14743 ;;
14744esac
14745{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14746echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14747if test "${ac_cv_header_opagent_h+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14749else
14750 ac_cv_header_opagent_h=$ac_header_preproc
14751fi
14752{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14753echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14754
14755fi
14756if test $ac_cv_header_opagent_h = yes; then
14757 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014758else
14759
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014760 echo "Error! You need to have opagent.h around."
14761 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014762
14763fi
14764
14765
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014766 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014767
14768else
14769
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014770 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014771
14772
14773fi
14774
14775
14776cat >>confdefs.h <<_ACEOF
14777#define USE_OPROFILE $USE_OPROFILE
14778_ACEOF
14779
14780
14781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014782
14783
14784
14785
14786
Reid Spencer59473af2004-12-25 07:31:29 +000014787ac_header_dirent=no
14788for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014789 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14790{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14791echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014795 cat >conftest.$ac_ext <<_ACEOF
14796/* confdefs.h. */
14797_ACEOF
14798cat confdefs.h >>conftest.$ac_ext
14799cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014800/* end confdefs.h. */
14801#include <sys/types.h>
14802#include <$ac_hdr>
14803
14804int
14805main ()
14806{
14807if ((DIR *) 0)
14808return 0;
14809 ;
14810 return 0;
14811}
14812_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014813rm -f conftest.$ac_objext
14814if { (ac_try="$ac_compile"
14815case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818esac
14819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_compile") 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14828 { (case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831esac
14832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_try") 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; } &&
14837 { ac_try='test -s conftest.$ac_objext'
14838 { (case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14841esac
14842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_try") 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014847 eval "$as_ac_Header=yes"
14848else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014849 echo "$as_me: failed program was:" >&5
14850sed 's/^/| /' conftest.$ac_ext >&5
14851
14852 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014853fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014854
Reid Spencera773bd52006-08-04 18:18:08 +000014855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014856fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014857ac_res=`eval echo '${'$as_ac_Header'}'`
14858 { echo "$as_me:$LINENO: result: $ac_res" >&5
14859echo "${ECHO_T}$ac_res" >&6; }
14860if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014861 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014862#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014863_ACEOF
14864
14865ac_header_dirent=$ac_hdr; break
14866fi
14867
14868done
14869# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14870if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014871 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14872echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14873if test "${ac_cv_search_opendir+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014875else
14876 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014877cat >conftest.$ac_ext <<_ACEOF
14878/* confdefs.h. */
14879_ACEOF
14880cat confdefs.h >>conftest.$ac_ext
14881cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014882/* end confdefs.h. */
14883
Reid Spencera773bd52006-08-04 18:18:08 +000014884/* Override any GCC internal prototype to avoid an error.
14885 Use char because int might match the return type of a GCC
14886 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014887#ifdef __cplusplus
14888extern "C"
14889#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014890char opendir ();
14891int
14892main ()
14893{
Reid Spencera773bd52006-08-04 18:18:08 +000014894return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014895 ;
14896 return 0;
14897}
14898_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014899for ac_lib in '' dir; do
14900 if test -z "$ac_lib"; then
14901 ac_res="none required"
14902 else
14903 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014905 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014906 rm -f conftest.$ac_objext conftest$ac_exeext
14907if { (ac_try="$ac_link"
14908case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14911esac
14912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_link") 2>conftest.er1
14914 ac_status=$?
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14921 { (case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924esac
14925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_try") 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; } &&
14930 { ac_try='test -s conftest$ac_exeext'
14931 { (case "(($ac_try" in
14932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933 *) ac_try_echo=$ac_try;;
14934esac
14935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936 (eval "$ac_try") 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014940 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014941else
14942 echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945
Reid Spencer59473af2004-12-25 07:31:29 +000014946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014947
Bill Wendlingebcceee2009-04-18 11:20:33 +000014948rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014949 conftest$ac_exeext
14950 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014951 break
Reid Spencer59473af2004-12-25 07:31:29 +000014952fi
Reid Spencera773bd52006-08-04 18:18:08 +000014953done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014954if test "${ac_cv_search_opendir+set}" = set; then
14955 :
Reid Spencera773bd52006-08-04 18:18:08 +000014956else
14957 ac_cv_search_opendir=no
14958fi
14959rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014960LIBS=$ac_func_search_save_LIBS
14961fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014962{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14963echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014964ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014965if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014967
14968fi
14969
14970else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014971 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14972echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14973if test "${ac_cv_search_opendir+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014975else
14976 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014977cat >conftest.$ac_ext <<_ACEOF
14978/* confdefs.h. */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014982/* end confdefs.h. */
14983
Reid Spencera773bd52006-08-04 18:18:08 +000014984/* Override any GCC internal prototype to avoid an error.
14985 Use char because int might match the return type of a GCC
14986 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014987#ifdef __cplusplus
14988extern "C"
14989#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014990char opendir ();
14991int
14992main ()
14993{
Reid Spencera773bd52006-08-04 18:18:08 +000014994return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014995 ;
14996 return 0;
14997}
14998_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014999for ac_lib in '' x; do
15000 if test -z "$ac_lib"; then
15001 ac_res="none required"
15002 else
15003 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015005 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015006 rm -f conftest.$ac_objext conftest$ac_exeext
15007if { (ac_try="$ac_link"
15008case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011esac
15012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_link") 2>conftest.er1
15014 ac_status=$?
15015 grep -v '^ *+' conftest.er1 >conftest.err
15016 rm -f conftest.er1
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15021 { (case "(($ac_try" in
15022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023 *) ac_try_echo=$ac_try;;
15024esac
15025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026 (eval "$ac_try") 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; } &&
15030 { ac_try='test -s conftest$ac_exeext'
15031 { (case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15034esac
15035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_try") 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015040 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015041else
15042 echo "$as_me: failed program was:" >&5
15043sed 's/^/| /' conftest.$ac_ext >&5
15044
15045
Reid Spencer59473af2004-12-25 07:31:29 +000015046fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015047
Bill Wendlingebcceee2009-04-18 11:20:33 +000015048rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015049 conftest$ac_exeext
15050 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015051 break
Reid Spencer59473af2004-12-25 07:31:29 +000015052fi
Reid Spencera773bd52006-08-04 18:18:08 +000015053done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015054if test "${ac_cv_search_opendir+set}" = set; then
15055 :
Reid Spencera773bd52006-08-04 18:18:08 +000015056else
15057 ac_cv_search_opendir=no
15058fi
15059rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015060LIBS=$ac_func_search_save_LIBS
15061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015062{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15063echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015064ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015065if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015067
15068fi
15069
15070fi
15071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015072{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15073echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15074if test "${ac_cv_header_mmap_anon+set}" = set; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015076else
15077 ac_ext=c
15078ac_cpp='$CPP $CPPFLAGS'
15079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15081ac_compiler_gnu=$ac_cv_c_compiler_gnu
15082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015083 cat >conftest.$ac_ext <<_ACEOF
15084/* confdefs.h. */
15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015088/* end confdefs.h. */
15089#include <sys/mman.h>
15090#include <unistd.h>
15091#include <fcntl.h>
15092int
15093main ()
15094{
15095mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15096 ;
15097 return 0;
15098}
15099_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015100rm -f conftest.$ac_objext
15101if { (ac_try="$ac_compile"
15102case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105esac
15106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_compile") 2>conftest.er1
15108 ac_status=$?
15109 grep -v '^ *+' conftest.er1 >conftest.err
15110 rm -f conftest.er1
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } &&
15114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
15125 { (case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15128esac
15129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130 (eval "$ac_try") 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015134 ac_cv_header_mmap_anon=yes
15135else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015136 echo "$as_me: failed program was:" >&5
15137sed 's/^/| /' conftest.$ac_ext >&5
15138
15139 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015141
Reid Spencera773bd52006-08-04 18:18:08 +000015142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015143 ac_ext=c
15144ac_cpp='$CPP $CPPFLAGS'
15145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15147ac_compiler_gnu=$ac_cv_c_compiler_gnu
15148
15149
15150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015151{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15152echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015153if test "$ac_cv_header_mmap_anon" = yes; then
15154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015155cat >>confdefs.h <<\_ACEOF
15156#define HAVE_MMAP_ANONYMOUS 1
15157_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015158
15159fi
15160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015161{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15162echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15163if test "${ac_cv_header_stat_broken+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015166 cat >conftest.$ac_ext <<_ACEOF
15167/* confdefs.h. */
15168_ACEOF
15169cat confdefs.h >>conftest.$ac_ext
15170cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015171/* end confdefs.h. */
15172#include <sys/types.h>
15173#include <sys/stat.h>
15174
Reid Spencera773bd52006-08-04 18:18:08 +000015175#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176# if S_ISBLK (S_IFDIR)
15177You lose.
15178# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015179#endif
15180
Reid Spencera773bd52006-08-04 18:18:08 +000015181#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015182# if S_ISBLK (S_IFCHR)
15183You lose.
15184# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015185#endif
15186
Reid Spencera773bd52006-08-04 18:18:08 +000015187#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015188# if S_ISLNK (S_IFREG)
15189You lose.
15190# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015191#endif
15192
Reid Spencera773bd52006-08-04 18:18:08 +000015193#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015194# if S_ISSOCK (S_IFREG)
15195You lose.
15196# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015197#endif
15198
15199_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15201 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015202 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015203else
15204 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015206rm -f conftest*
15207
Reid Spencer59473af2004-12-25 07:31:29 +000015208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015209{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15210echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015211if test $ac_cv_header_stat_broken = yes; then
15212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015213cat >>confdefs.h <<\_ACEOF
15214#define STAT_MACROS_BROKEN 1
15215_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015216
15217fi
15218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015219{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15220echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15221if test "${ac_cv_header_stdc+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015223else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015224 cat >conftest.$ac_ext <<_ACEOF
15225/* confdefs.h. */
15226_ACEOF
15227cat confdefs.h >>conftest.$ac_ext
15228cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015229/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015230#include <stdlib.h>
15231#include <stdarg.h>
15232#include <string.h>
15233#include <float.h>
15234
John Criswell0c38eaf2003-09-10 15:17:25 +000015235int
15236main ()
15237{
15238
15239 ;
15240 return 0;
15241}
John Criswell7a73b802003-06-30 21:59:07 +000015242_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015243rm -f conftest.$ac_objext
15244if { (ac_try="$ac_compile"
15245case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15248esac
15249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_compile") 2>conftest.er1
15251 ac_status=$?
15252 grep -v '^ *+' conftest.er1 >conftest.err
15253 rm -f conftest.er1
15254 cat conftest.err >&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
15257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15258 { (case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261esac
15262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_try") 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; } &&
15267 { ac_try='test -s conftest.$ac_objext'
15268 { (case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15271esac
15272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_try") 2>&5
15274 ac_status=$?
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015277 ac_cv_header_stdc=yes
15278else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015279 echo "$as_me: failed program was:" >&5
15280sed 's/^/| /' conftest.$ac_ext >&5
15281
15282 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015284
Reid Spencera773bd52006-08-04 18:18:08 +000015285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015286
15287if test $ac_cv_header_stdc = yes; then
15288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015289 cat >conftest.$ac_ext <<_ACEOF
15290/* confdefs.h. */
15291_ACEOF
15292cat confdefs.h >>conftest.$ac_ext
15293cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015295#include <string.h>
15296
15297_ACEOF
15298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015299 $EGREP "memchr" >/dev/null 2>&1; then
15300 :
John Criswell7a73b802003-06-30 21:59:07 +000015301else
15302 ac_cv_header_stdc=no
15303fi
15304rm -f conftest*
15305
15306fi
15307
15308if test $ac_cv_header_stdc = yes; then
15309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015310 cat >conftest.$ac_ext <<_ACEOF
15311/* confdefs.h. */
15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015315/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015316#include <stdlib.h>
15317
15318_ACEOF
15319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015320 $EGREP "free" >/dev/null 2>&1; then
15321 :
John Criswell7a73b802003-06-30 21:59:07 +000015322else
15323 ac_cv_header_stdc=no
15324fi
15325rm -f conftest*
15326
15327fi
15328
15329if test $ac_cv_header_stdc = yes; then
15330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015331 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015332 :
15333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015334 cat >conftest.$ac_ext <<_ACEOF
15335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015339/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015340#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015341#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015342#if ((' ' & 0x0FF) == 0x020)
15343# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15344# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15345#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015346# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015347 (('a' <= (c) && (c) <= 'i') \
15348 || ('j' <= (c) && (c) <= 'r') \
15349 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015350# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15351#endif
15352
15353#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15354int
15355main ()
15356{
15357 int i;
15358 for (i = 0; i < 256; i++)
15359 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015360 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015361 return 2;
15362 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015363}
15364_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015365rm -f conftest$ac_exeext
15366if { (ac_try="$ac_link"
15367case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15370esac
15371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372 (eval "$ac_link") 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15376 { (case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15379esac
15380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_try") 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 :
John Criswell7a73b802003-06-30 21:59:07 +000015386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015387 echo "$as_me: program exited with status $ac_status" >&5
15388echo "$as_me: failed program was:" >&5
15389sed 's/^/| /' conftest.$ac_ext >&5
15390
15391( exit $ac_status )
15392ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015394rm -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 +000015395fi
15396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015397
John Criswell7a73b802003-06-30 21:59:07 +000015398fi
15399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015400{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15401echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015402if test $ac_cv_header_stdc = yes; then
15403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015404cat >>confdefs.h <<\_ACEOF
15405#define STDC_HEADERS 1
15406_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015407
15408fi
15409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015410{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15411echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15412if test "${ac_cv_header_sys_wait_h+set}" = set; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015415 cat >conftest.$ac_ext <<_ACEOF
15416/* confdefs.h. */
15417_ACEOF
15418cat confdefs.h >>conftest.$ac_ext
15419cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015420/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015421#include <sys/types.h>
15422#include <sys/wait.h>
15423#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015424# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015425#endif
15426#ifndef WIFEXITED
15427# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15428#endif
15429
John Criswell7a73b802003-06-30 21:59:07 +000015430int
15431main ()
15432{
15433 int s;
15434 wait (&s);
15435 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15436 ;
15437 return 0;
15438}
15439_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015440rm -f conftest.$ac_objext
15441if { (ac_try="$ac_compile"
15442case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445esac
15446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_compile") 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15455 { (case "(($ac_try" in
15456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15457 *) ac_try_echo=$ac_try;;
15458esac
15459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15460 (eval "$ac_try") 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } &&
15464 { ac_try='test -s conftest.$ac_objext'
15465 { (case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15468esac
15469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_try") 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015474 ac_cv_header_sys_wait_h=yes
15475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015476 echo "$as_me: failed program was:" >&5
15477sed 's/^/| /' conftest.$ac_ext >&5
15478
15479 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015481
Reid Spencera773bd52006-08-04 18:18:08 +000015482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015484{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15485echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015486if test $ac_cv_header_sys_wait_h = yes; then
15487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015488cat >>confdefs.h <<\_ACEOF
15489#define HAVE_SYS_WAIT_H 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 whether time.h and sys/time.h may both be included" >&5
15495echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15496if test "${ac_cv_header_time+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +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
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015504/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015505#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015506#include <sys/time.h>
15507#include <time.h>
15508
15509int
15510main ()
15511{
15512if ((struct tm *) 0)
15513return 0;
15514 ;
15515 return 0;
15516}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015517_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015518rm -f conftest.$ac_objext
15519if { (ac_try="$ac_compile"
15520case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15523esac
15524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_compile") 2>conftest.er1
15526 ac_status=$?
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15533 { (case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15536esac
15537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_try") 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
15543 { (case "(($ac_try" in
15544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545 *) ac_try_echo=$ac_try;;
15546esac
15547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548 (eval "$ac_try") 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015552 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015554 echo "$as_me: failed program was:" >&5
15555sed 's/^/| /' conftest.$ac_ext >&5
15556
15557 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015559
Reid Spencera773bd52006-08-04 18:18:08 +000015560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015561fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015562{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15563echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015564if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015566cat >>confdefs.h <<\_ACEOF
15567#define TIME_WITH_SYS_TIME 1
15568_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015569
15570fi
15571
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015573
15574
15575
15576
15577
15578
Reid Spencer59473af2004-12-25 07:31:29 +000015579for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015580do
15581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15587fi
15588ac_res=`eval echo '${'$as_ac_Header'}'`
15589 { echo "$as_me:$LINENO: result: $ac_res" >&5
15590echo "${ECHO_T}$ac_res" >&6; }
15591else
15592 # Is the header compilable?
15593{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15595cat >conftest.$ac_ext <<_ACEOF
15596/* confdefs.h. */
15597_ACEOF
15598cat confdefs.h >>conftest.$ac_ext
15599cat >>conftest.$ac_ext <<_ACEOF
15600/* end confdefs.h. */
15601$ac_includes_default
15602#include <$ac_header>
15603_ACEOF
15604rm -f conftest.$ac_objext
15605if { (ac_try="$ac_compile"
15606case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15609esac
15610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_compile") 2>conftest.er1
15612 ac_status=$?
15613 grep -v '^ *+' conftest.er1 >conftest.err
15614 rm -f conftest.er1
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } &&
15618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15619 { (case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15622esac
15623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_try") 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest.$ac_objext'
15629 { (case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15632esac
15633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_try") 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 ac_header_compiler=yes
15639else
15640 echo "$as_me: failed program was:" >&5
15641sed 's/^/| /' conftest.$ac_ext >&5
15642
15643 ac_header_compiler=no
15644fi
15645
15646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15648echo "${ECHO_T}$ac_header_compiler" >&6; }
15649
15650# Is the header present?
15651{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15652echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15653cat >conftest.$ac_ext <<_ACEOF
15654/* confdefs.h. */
15655_ACEOF
15656cat confdefs.h >>conftest.$ac_ext
15657cat >>conftest.$ac_ext <<_ACEOF
15658/* end confdefs.h. */
15659#include <$ac_header>
15660_ACEOF
15661if { (ac_try="$ac_cpp conftest.$ac_ext"
15662case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15665esac
15666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15668 ac_status=$?
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } >/dev/null; then
15674 if test -s conftest.err; then
15675 ac_cpp_err=$ac_c_preproc_warn_flag
15676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15677 else
15678 ac_cpp_err=
15679 fi
15680else
15681 ac_cpp_err=yes
15682fi
15683if test -z "$ac_cpp_err"; then
15684 ac_header_preproc=yes
15685else
15686 echo "$as_me: failed program was:" >&5
15687sed 's/^/| /' conftest.$ac_ext >&5
15688
15689 ac_header_preproc=no
15690fi
15691
15692rm -f conftest.err conftest.$ac_ext
15693{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15694echo "${ECHO_T}$ac_header_preproc" >&6; }
15695
15696# So? What about this header?
15697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15698 yes:no: )
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15700echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15702echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15703 ac_header_preproc=yes
15704 ;;
15705 no:yes:* )
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15707echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15709echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15711echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15713echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15715echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15717echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15718 ( cat <<\_ASBOX
15719## ----------------------------------- ##
15720## Report this to llvmbugs@cs.uiuc.edu ##
15721## ----------------------------------- ##
15722_ASBOX
15723 ) | sed "s/^/$as_me: WARNING: /" >&2
15724 ;;
15725esac
15726{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15730else
15731 eval "$as_ac_Header=\$ac_header_preproc"
15732fi
15733ac_res=`eval echo '${'$as_ac_Header'}'`
15734 { echo "$as_me:$LINENO: result: $ac_res" >&5
15735echo "${ECHO_T}$ac_res" >&6; }
15736
15737fi
15738if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015739 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015741_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015742
15743fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015744
Reid Spencer59473af2004-12-25 07:31:29 +000015745done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015747
15748
15749
15750
15751
15752
Douglas Gregor071d73d2009-05-18 17:21:34 +000015753for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015754do
15755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15761fi
15762ac_res=`eval echo '${'$as_ac_Header'}'`
15763 { echo "$as_me:$LINENO: result: $ac_res" >&5
15764echo "${ECHO_T}$ac_res" >&6; }
15765else
15766 # Is the header compilable?
15767{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15769cat >conftest.$ac_ext <<_ACEOF
15770/* confdefs.h. */
15771_ACEOF
15772cat confdefs.h >>conftest.$ac_ext
15773cat >>conftest.$ac_ext <<_ACEOF
15774/* end confdefs.h. */
15775$ac_includes_default
15776#include <$ac_header>
15777_ACEOF
15778rm -f conftest.$ac_objext
15779if { (ac_try="$ac_compile"
15780case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783esac
15784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_compile") 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15793 { (case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15796esac
15797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_try") 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest.$ac_objext'
15803 { (case "(($ac_try" in
15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805 *) ac_try_echo=$ac_try;;
15806esac
15807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808 (eval "$ac_try") 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; }; then
15812 ac_header_compiler=yes
15813else
15814 echo "$as_me: failed program was:" >&5
15815sed 's/^/| /' conftest.$ac_ext >&5
15816
15817 ac_header_compiler=no
15818fi
15819
15820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15822echo "${ECHO_T}$ac_header_compiler" >&6; }
15823
15824# Is the header present?
15825{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15827cat >conftest.$ac_ext <<_ACEOF
15828/* confdefs.h. */
15829_ACEOF
15830cat confdefs.h >>conftest.$ac_ext
15831cat >>conftest.$ac_ext <<_ACEOF
15832/* end confdefs.h. */
15833#include <$ac_header>
15834_ACEOF
15835if { (ac_try="$ac_cpp conftest.$ac_ext"
15836case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15839esac
15840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15842 ac_status=$?
15843 grep -v '^ *+' conftest.er1 >conftest.err
15844 rm -f conftest.er1
15845 cat conftest.err >&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } >/dev/null; then
15848 if test -s conftest.err; then
15849 ac_cpp_err=$ac_c_preproc_warn_flag
15850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15851 else
15852 ac_cpp_err=
15853 fi
15854else
15855 ac_cpp_err=yes
15856fi
15857if test -z "$ac_cpp_err"; then
15858 ac_header_preproc=yes
15859else
15860 echo "$as_me: failed program was:" >&5
15861sed 's/^/| /' conftest.$ac_ext >&5
15862
15863 ac_header_preproc=no
15864fi
15865
15866rm -f conftest.err conftest.$ac_ext
15867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15868echo "${ECHO_T}$ac_header_preproc" >&6; }
15869
15870# So? What about this header?
15871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15872 yes:no: )
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15877 ac_header_preproc=yes
15878 ;;
15879 no:yes:* )
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15892 ( cat <<\_ASBOX
15893## ----------------------------------- ##
15894## Report this to llvmbugs@cs.uiuc.edu ##
15895## ----------------------------------- ##
15896_ASBOX
15897 ) | sed "s/^/$as_me: WARNING: /" >&2
15898 ;;
15899esac
15900{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15904else
15905 eval "$as_ac_Header=\$ac_header_preproc"
15906fi
15907ac_res=`eval echo '${'$as_ac_Header'}'`
15908 { echo "$as_me:$LINENO: result: $ac_res" >&5
15909echo "${ECHO_T}$ac_res" >&6; }
15910
15911fi
15912if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015913 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015915_ACEOF
15916
15917fi
15918
15919done
15920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015921
15922
Douglas Gregor071d73d2009-05-18 17:21:34 +000015923for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015924do
15925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15931fi
15932ac_res=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934echo "${ECHO_T}$ac_res" >&6; }
15935else
15936 # Is the header compilable?
15937{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15939cat >conftest.$ac_ext <<_ACEOF
15940/* confdefs.h. */
15941_ACEOF
15942cat confdefs.h >>conftest.$ac_ext
15943cat >>conftest.$ac_ext <<_ACEOF
15944/* end confdefs.h. */
15945$ac_includes_default
15946#include <$ac_header>
15947_ACEOF
15948rm -f conftest.$ac_objext
15949if { (ac_try="$ac_compile"
15950case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_compile") 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15963 { (case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966esac
15967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_try") 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976esac
15977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_try") 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_header_compiler=yes
15983else
15984 echo "$as_me: failed program was:" >&5
15985sed 's/^/| /' conftest.$ac_ext >&5
15986
15987 ac_header_compiler=no
15988fi
15989
15990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15992echo "${ECHO_T}$ac_header_compiler" >&6; }
15993
15994# Is the header present?
15995{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15997cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003#include <$ac_header>
16004_ACEOF
16005if { (ac_try="$ac_cpp conftest.$ac_ext"
16006case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009esac
16010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } >/dev/null; then
16018 if test -s conftest.err; then
16019 ac_cpp_err=$ac_c_preproc_warn_flag
16020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16021 else
16022 ac_cpp_err=
16023 fi
16024else
16025 ac_cpp_err=yes
16026fi
16027if test -z "$ac_cpp_err"; then
16028 ac_header_preproc=yes
16029else
16030 echo "$as_me: failed program was:" >&5
16031sed 's/^/| /' conftest.$ac_ext >&5
16032
16033 ac_header_preproc=no
16034fi
16035
16036rm -f conftest.err conftest.$ac_ext
16037{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16038echo "${ECHO_T}$ac_header_preproc" >&6; }
16039
16040# So? What about this header?
16041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16042 yes:no: )
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16047 ac_header_preproc=yes
16048 ;;
16049 no:yes:* )
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16062 ( cat <<\_ASBOX
16063## ----------------------------------- ##
16064## Report this to llvmbugs@cs.uiuc.edu ##
16065## ----------------------------------- ##
16066_ASBOX
16067 ) | sed "s/^/$as_me: WARNING: /" >&2
16068 ;;
16069esac
16070{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074else
16075 eval "$as_ac_Header=\$ac_header_preproc"
16076fi
16077ac_res=`eval echo '${'$as_ac_Header'}'`
16078 { echo "$as_me:$LINENO: result: $ac_res" >&5
16079echo "${ECHO_T}$ac_res" >&6; }
16080
16081fi
16082if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016083 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016085_ACEOF
16086
16087fi
16088
16089done
Reid Spencer59473af2004-12-25 07:31:29 +000016090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016091
16092
16093
16094
Reid Spencerbe3e4192007-08-17 05:45:26 +000016095for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016096do
16097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103fi
16104ac_res=`eval echo '${'$as_ac_Header'}'`
16105 { echo "$as_me:$LINENO: result: $ac_res" >&5
16106echo "${ECHO_T}$ac_res" >&6; }
16107else
16108 # Is the header compilable?
16109{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16111cat >conftest.$ac_ext <<_ACEOF
16112/* confdefs.h. */
16113_ACEOF
16114cat confdefs.h >>conftest.$ac_ext
16115cat >>conftest.$ac_ext <<_ACEOF
16116/* end confdefs.h. */
16117$ac_includes_default
16118#include <$ac_header>
16119_ACEOF
16120rm -f conftest.$ac_objext
16121if { (ac_try="$ac_compile"
16122case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125esac
16126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_compile") 2>conftest.er1
16128 ac_status=$?
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
16134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16135 { (case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16138esac
16139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_try") 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
16145 { (case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16148esac
16149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_try") 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_header_compiler=yes
16155else
16156 echo "$as_me: failed program was:" >&5
16157sed 's/^/| /' conftest.$ac_ext >&5
16158
16159 ac_header_compiler=no
16160fi
16161
16162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16164echo "${ECHO_T}$ac_header_compiler" >&6; }
16165
16166# Is the header present?
16167{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16168echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16169cat >conftest.$ac_ext <<_ACEOF
16170/* confdefs.h. */
16171_ACEOF
16172cat confdefs.h >>conftest.$ac_ext
16173cat >>conftest.$ac_ext <<_ACEOF
16174/* end confdefs.h. */
16175#include <$ac_header>
16176_ACEOF
16177if { (ac_try="$ac_cpp conftest.$ac_ext"
16178case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181esac
16182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16184 ac_status=$?
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } >/dev/null; then
16190 if test -s conftest.err; then
16191 ac_cpp_err=$ac_c_preproc_warn_flag
16192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16193 else
16194 ac_cpp_err=
16195 fi
16196else
16197 ac_cpp_err=yes
16198fi
16199if test -z "$ac_cpp_err"; then
16200 ac_header_preproc=yes
16201else
16202 echo "$as_me: failed program was:" >&5
16203sed 's/^/| /' conftest.$ac_ext >&5
16204
16205 ac_header_preproc=no
16206fi
16207
16208rm -f conftest.err conftest.$ac_ext
16209{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16210echo "${ECHO_T}$ac_header_preproc" >&6; }
16211
16212# So? What about this header?
16213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16214 yes:no: )
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16219 ac_header_preproc=yes
16220 ;;
16221 no:yes:* )
16222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16225echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16229echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16234 ( cat <<\_ASBOX
16235## ----------------------------------- ##
16236## Report this to llvmbugs@cs.uiuc.edu ##
16237## ----------------------------------- ##
16238_ASBOX
16239 ) | sed "s/^/$as_me: WARNING: /" >&2
16240 ;;
16241esac
16242{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246else
16247 eval "$as_ac_Header=\$ac_header_preproc"
16248fi
16249ac_res=`eval echo '${'$as_ac_Header'}'`
16250 { echo "$as_me:$LINENO: result: $ac_res" >&5
16251echo "${ECHO_T}$ac_res" >&6; }
16252
16253fi
16254if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016255 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016257_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016258
16259fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016260
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016261done
16262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016263
16264
16265
16266
Douglas Gregor01746742009-05-11 18:05:52 +000016267for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016268do
16269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275fi
16276ac_res=`eval echo '${'$as_ac_Header'}'`
16277 { echo "$as_me:$LINENO: result: $ac_res" >&5
16278echo "${ECHO_T}$ac_res" >&6; }
16279else
16280 # Is the header compilable?
16281{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16283cat >conftest.$ac_ext <<_ACEOF
16284/* confdefs.h. */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h. */
16289$ac_includes_default
16290#include <$ac_header>
16291_ACEOF
16292rm -f conftest.$ac_objext
16293if { (ac_try="$ac_compile"
16294case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297esac
16298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_compile") 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16307 { (case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16310esac
16311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_try") 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest.$ac_objext'
16317 { (case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16320esac
16321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_try") 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_header_compiler=yes
16327else
16328 echo "$as_me: failed program was:" >&5
16329sed 's/^/| /' conftest.$ac_ext >&5
16330
16331 ac_header_compiler=no
16332fi
16333
16334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16336echo "${ECHO_T}$ac_header_compiler" >&6; }
16337
16338# Is the header present?
16339{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16341cat >conftest.$ac_ext <<_ACEOF
16342/* confdefs.h. */
16343_ACEOF
16344cat confdefs.h >>conftest.$ac_ext
16345cat >>conftest.$ac_ext <<_ACEOF
16346/* end confdefs.h. */
16347#include <$ac_header>
16348_ACEOF
16349if { (ac_try="$ac_cpp conftest.$ac_ext"
16350case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16353esac
16354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16356 ac_status=$?
16357 grep -v '^ *+' conftest.er1 >conftest.err
16358 rm -f conftest.er1
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } >/dev/null; then
16362 if test -s conftest.err; then
16363 ac_cpp_err=$ac_c_preproc_warn_flag
16364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16365 else
16366 ac_cpp_err=
16367 fi
16368else
16369 ac_cpp_err=yes
16370fi
16371if test -z "$ac_cpp_err"; then
16372 ac_header_preproc=yes
16373else
16374 echo "$as_me: failed program was:" >&5
16375sed 's/^/| /' conftest.$ac_ext >&5
16376
16377 ac_header_preproc=no
16378fi
16379
16380rm -f conftest.err conftest.$ac_ext
16381{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16382echo "${ECHO_T}$ac_header_preproc" >&6; }
16383
16384# So? What about this header?
16385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16386 yes:no: )
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16391 ac_header_preproc=yes
16392 ;;
16393 no:yes:* )
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16401echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16406 ( cat <<\_ASBOX
16407## ----------------------------------- ##
16408## Report this to llvmbugs@cs.uiuc.edu ##
16409## ----------------------------------- ##
16410_ASBOX
16411 ) | sed "s/^/$as_me: WARNING: /" >&2
16412 ;;
16413esac
16414{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16418else
16419 eval "$as_ac_Header=\$ac_header_preproc"
16420fi
16421ac_res=`eval echo '${'$as_ac_Header'}'`
16422 { echo "$as_me:$LINENO: result: $ac_res" >&5
16423echo "${ECHO_T}$ac_res" >&6; }
16424
16425fi
16426if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016427 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016429_ACEOF
16430
16431fi
16432
16433done
16434
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016435
16436for ac_header in valgrind/valgrind.h
16437do
16438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16444fi
16445ac_res=`eval echo '${'$as_ac_Header'}'`
16446 { echo "$as_me:$LINENO: result: $ac_res" >&5
16447echo "${ECHO_T}$ac_res" >&6; }
16448else
16449 # Is the header compilable?
16450{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16452cat >conftest.$ac_ext <<_ACEOF
16453/* confdefs.h. */
16454_ACEOF
16455cat confdefs.h >>conftest.$ac_ext
16456cat >>conftest.$ac_ext <<_ACEOF
16457/* end confdefs.h. */
16458$ac_includes_default
16459#include <$ac_header>
16460_ACEOF
16461rm -f conftest.$ac_objext
16462if { (ac_try="$ac_compile"
16463case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16466esac
16467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468 (eval "$ac_compile") 2>conftest.er1
16469 ac_status=$?
16470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16476 { (case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16479esac
16480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_try") 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; } &&
16485 { ac_try='test -s conftest.$ac_objext'
16486 { (case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16489esac
16490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_try") 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; }; then
16495 ac_header_compiler=yes
16496else
16497 echo "$as_me: failed program was:" >&5
16498sed 's/^/| /' conftest.$ac_ext >&5
16499
16500 ac_header_compiler=no
16501fi
16502
16503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16504{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16505echo "${ECHO_T}$ac_header_compiler" >&6; }
16506
16507# Is the header present?
16508{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16510cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516#include <$ac_header>
16517_ACEOF
16518if { (ac_try="$ac_cpp conftest.$ac_ext"
16519case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16522esac
16523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16525 ac_status=$?
16526 grep -v '^ *+' conftest.er1 >conftest.err
16527 rm -f conftest.er1
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } >/dev/null; then
16531 if test -s conftest.err; then
16532 ac_cpp_err=$ac_c_preproc_warn_flag
16533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16534 else
16535 ac_cpp_err=
16536 fi
16537else
16538 ac_cpp_err=yes
16539fi
16540if test -z "$ac_cpp_err"; then
16541 ac_header_preproc=yes
16542else
16543 echo "$as_me: failed program was:" >&5
16544sed 's/^/| /' conftest.$ac_ext >&5
16545
16546 ac_header_preproc=no
16547fi
16548
16549rm -f conftest.err conftest.$ac_ext
16550{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16551echo "${ECHO_T}$ac_header_preproc" >&6; }
16552
16553# So? What about this header?
16554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16555 yes:no: )
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16560 ac_header_preproc=yes
16561 ;;
16562 no:yes:* )
16563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16570echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16575 ( cat <<\_ASBOX
16576## ----------------------------------- ##
16577## Report this to llvmbugs@cs.uiuc.edu ##
16578## ----------------------------------- ##
16579_ASBOX
16580 ) | sed "s/^/$as_me: WARNING: /" >&2
16581 ;;
16582esac
16583{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16587else
16588 eval "$as_ac_Header=\$ac_header_preproc"
16589fi
16590ac_res=`eval echo '${'$as_ac_Header'}'`
16591 { echo "$as_me:$LINENO: result: $ac_res" >&5
16592echo "${ECHO_T}$ac_res" >&6; }
16593
16594fi
16595if test `eval echo '${'$as_ac_Header'}'` = yes; then
16596 cat >>confdefs.h <<_ACEOF
16597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16598_ACEOF
16599
16600fi
16601
16602done
16603
Reid Spencer0a262ba2005-08-24 10:07:20 +000016604if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016605
16606for ac_header in pthread.h
16607do
16608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16614fi
16615ac_res=`eval echo '${'$as_ac_Header'}'`
16616 { echo "$as_me:$LINENO: result: $ac_res" >&5
16617echo "${ECHO_T}$ac_res" >&6; }
16618else
16619 # Is the header compilable?
16620{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16622cat >conftest.$ac_ext <<_ACEOF
16623/* confdefs.h. */
16624_ACEOF
16625cat confdefs.h >>conftest.$ac_ext
16626cat >>conftest.$ac_ext <<_ACEOF
16627/* end confdefs.h. */
16628$ac_includes_default
16629#include <$ac_header>
16630_ACEOF
16631rm -f conftest.$ac_objext
16632if { (ac_try="$ac_compile"
16633case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636esac
16637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_compile") 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649esac
16650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16659esac
16660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_header_compiler=yes
16666else
16667 echo "$as_me: failed program was:" >&5
16668sed 's/^/| /' conftest.$ac_ext >&5
16669
16670 ac_header_compiler=no
16671fi
16672
16673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16675echo "${ECHO_T}$ac_header_compiler" >&6; }
16676
16677# Is the header present?
16678{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16680cat >conftest.$ac_ext <<_ACEOF
16681/* confdefs.h. */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h. */
16686#include <$ac_header>
16687_ACEOF
16688if { (ac_try="$ac_cpp conftest.$ac_ext"
16689case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16692esac
16693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16695 ac_status=$?
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } >/dev/null; then
16701 if test -s conftest.err; then
16702 ac_cpp_err=$ac_c_preproc_warn_flag
16703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16704 else
16705 ac_cpp_err=
16706 fi
16707else
16708 ac_cpp_err=yes
16709fi
16710if test -z "$ac_cpp_err"; then
16711 ac_header_preproc=yes
16712else
16713 echo "$as_me: failed program was:" >&5
16714sed 's/^/| /' conftest.$ac_ext >&5
16715
16716 ac_header_preproc=no
16717fi
16718
16719rm -f conftest.err conftest.$ac_ext
16720{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16721echo "${ECHO_T}$ac_header_preproc" >&6; }
16722
16723# So? What about this header?
16724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16725 yes:no: )
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16730 ac_header_preproc=yes
16731 ;;
16732 no:yes:* )
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16740echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16745 ( cat <<\_ASBOX
16746## ----------------------------------- ##
16747## Report this to llvmbugs@cs.uiuc.edu ##
16748## ----------------------------------- ##
16749_ASBOX
16750 ) | sed "s/^/$as_me: WARNING: /" >&2
16751 ;;
16752esac
16753{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757else
16758 eval "$as_ac_Header=\$ac_header_preproc"
16759fi
16760ac_res=`eval echo '${'$as_ac_Header'}'`
16761 { echo "$as_me:$LINENO: result: $ac_res" >&5
16762echo "${ECHO_T}$ac_res" >&6; }
16763
16764fi
16765if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016766 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016768_ACEOF
16769 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016770
16771else
16772 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016773
16774fi
16775
Reid Spencerbe3e4192007-08-17 05:45:26 +000016776done
Reid Spencer1000b732006-12-01 00:37:14 +000016777
16778else
16779 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016780
16781fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016782
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016783if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016784
16785
16786for ac_header in ffi.h ffi/ffi.h
16787do
16788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16794fi
16795ac_res=`eval echo '${'$as_ac_Header'}'`
16796 { echo "$as_me:$LINENO: result: $ac_res" >&5
16797echo "${ECHO_T}$ac_res" >&6; }
16798else
16799 # Is the header compilable?
16800{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16802cat >conftest.$ac_ext <<_ACEOF
16803/* confdefs.h. */
16804_ACEOF
16805cat confdefs.h >>conftest.$ac_ext
16806cat >>conftest.$ac_ext <<_ACEOF
16807/* end confdefs.h. */
16808$ac_includes_default
16809#include <$ac_header>
16810_ACEOF
16811rm -f conftest.$ac_objext
16812if { (ac_try="$ac_compile"
16813case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816esac
16817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_compile") 2>conftest.er1
16819 ac_status=$?
16820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829esac
16830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest.$ac_objext'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839esac
16840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_header_compiler=yes
16846else
16847 echo "$as_me: failed program was:" >&5
16848sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 ac_header_compiler=no
16851fi
16852
16853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16855echo "${ECHO_T}$ac_header_compiler" >&6; }
16856
16857# Is the header present?
16858{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16860cat >conftest.$ac_ext <<_ACEOF
16861/* confdefs.h. */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
16865/* end confdefs.h. */
16866#include <$ac_header>
16867_ACEOF
16868if { (ac_try="$ac_cpp conftest.$ac_ext"
16869case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16872esac
16873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16875 ac_status=$?
16876 grep -v '^ *+' conftest.er1 >conftest.err
16877 rm -f conftest.er1
16878 cat conftest.err >&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } >/dev/null; then
16881 if test -s conftest.err; then
16882 ac_cpp_err=$ac_c_preproc_warn_flag
16883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16884 else
16885 ac_cpp_err=
16886 fi
16887else
16888 ac_cpp_err=yes
16889fi
16890if test -z "$ac_cpp_err"; then
16891 ac_header_preproc=yes
16892else
16893 echo "$as_me: failed program was:" >&5
16894sed 's/^/| /' conftest.$ac_ext >&5
16895
16896 ac_header_preproc=no
16897fi
16898
16899rm -f conftest.err conftest.$ac_ext
16900{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16901echo "${ECHO_T}$ac_header_preproc" >&6; }
16902
16903# So? What about this header?
16904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16905 yes:no: )
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16910 ac_header_preproc=yes
16911 ;;
16912 no:yes:* )
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16920echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16925 ( cat <<\_ASBOX
16926## ----------------------------------- ##
16927## Report this to llvmbugs@cs.uiuc.edu ##
16928## ----------------------------------- ##
16929_ASBOX
16930 ) | sed "s/^/$as_me: WARNING: /" >&2
16931 ;;
16932esac
16933{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937else
16938 eval "$as_ac_Header=\$ac_header_preproc"
16939fi
16940ac_res=`eval echo '${'$as_ac_Header'}'`
16941 { echo "$as_me:$LINENO: result: $ac_res" >&5
16942echo "${ECHO_T}$ac_res" >&6; }
16943
16944fi
16945if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016946 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016948_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016949
16950fi
16951
16952done
16953
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016954fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016955
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016956
Eric Christopher654dee42010-06-22 21:01:04 +000016957for ac_header in CrashReporterClient.h
16958do
16959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16965fi
16966ac_res=`eval echo '${'$as_ac_Header'}'`
16967 { echo "$as_me:$LINENO: result: $ac_res" >&5
16968echo "${ECHO_T}$ac_res" >&6; }
16969else
16970 # Is the header compilable?
16971{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16973cat >conftest.$ac_ext <<_ACEOF
16974/* confdefs.h. */
16975_ACEOF
16976cat confdefs.h >>conftest.$ac_ext
16977cat >>conftest.$ac_ext <<_ACEOF
16978/* end confdefs.h. */
16979$ac_includes_default
16980#include <$ac_header>
16981_ACEOF
16982rm -f conftest.$ac_objext
16983if { (ac_try="$ac_compile"
16984case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987esac
16988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_compile") 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
16996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16997 { (case "(($ac_try" in
16998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999 *) ac_try_echo=$ac_try;;
17000esac
17001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17002 (eval "$ac_try") 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest.$ac_objext'
17007 { (case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17010esac
17011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_try") 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 ac_header_compiler=yes
17017else
17018 echo "$as_me: failed program was:" >&5
17019sed 's/^/| /' conftest.$ac_ext >&5
17020
17021 ac_header_compiler=no
17022fi
17023
17024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17025{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17026echo "${ECHO_T}$ac_header_compiler" >&6; }
17027
17028# Is the header present?
17029{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17031cat >conftest.$ac_ext <<_ACEOF
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
17037#include <$ac_header>
17038_ACEOF
17039if { (ac_try="$ac_cpp conftest.$ac_ext"
17040case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043esac
17044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17046 ac_status=$?
17047 grep -v '^ *+' conftest.er1 >conftest.err
17048 rm -f conftest.er1
17049 cat conftest.err >&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } >/dev/null; then
17052 if test -s conftest.err; then
17053 ac_cpp_err=$ac_c_preproc_warn_flag
17054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17055 else
17056 ac_cpp_err=
17057 fi
17058else
17059 ac_cpp_err=yes
17060fi
17061if test -z "$ac_cpp_err"; then
17062 ac_header_preproc=yes
17063else
17064 echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067 ac_header_preproc=no
17068fi
17069
17070rm -f conftest.err conftest.$ac_ext
17071{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17072echo "${ECHO_T}$ac_header_preproc" >&6; }
17073
17074# So? What about this header?
17075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17076 yes:no: )
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17081 ac_header_preproc=yes
17082 ;;
17083 no:yes:* )
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17087echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17091echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17096 ( cat <<\_ASBOX
17097## ----------------------------------- ##
17098## Report this to llvmbugs@cs.uiuc.edu ##
17099## ----------------------------------- ##
17100_ASBOX
17101 ) | sed "s/^/$as_me: WARNING: /" >&2
17102 ;;
17103esac
17104{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108else
17109 eval "$as_ac_Header=\$ac_header_preproc"
17110fi
17111ac_res=`eval echo '${'$as_ac_Header'}'`
17112 { echo "$as_me:$LINENO: result: $ac_res" >&5
17113echo "${ECHO_T}$ac_res" >&6; }
17114
17115fi
17116if test `eval echo '${'$as_ac_Header'}'` = yes; then
17117 cat >>confdefs.h <<_ACEOF
17118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17119_ACEOF
17120
17121fi
17122
17123done
17124
17125
17126
Owen Anderson009f20a2010-07-19 19:24:55 +000017127for ac_header in mach-o/getsect.h
17128do
17129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135fi
17136ac_res=`eval echo '${'$as_ac_Header'}'`
17137 { echo "$as_me:$LINENO: result: $ac_res" >&5
17138echo "${ECHO_T}$ac_res" >&6; }
17139else
17140 # Is the header compilable?
17141{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17143cat >conftest.$ac_ext <<_ACEOF
17144/* confdefs.h. */
17145_ACEOF
17146cat confdefs.h >>conftest.$ac_ext
17147cat >>conftest.$ac_ext <<_ACEOF
17148/* end confdefs.h. */
17149$ac_includes_default
17150#include <$ac_header>
17151_ACEOF
17152rm -f conftest.$ac_objext
17153if { (ac_try="$ac_compile"
17154case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_compile") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170esac
17171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest.$ac_objext'
17177 { (case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180esac
17181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_try") 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_header_compiler=yes
17187else
17188 echo "$as_me: failed program was:" >&5
17189sed 's/^/| /' conftest.$ac_ext >&5
17190
17191 ac_header_compiler=no
17192fi
17193
17194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17195{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17196echo "${ECHO_T}$ac_header_compiler" >&6; }
17197
17198# Is the header present?
17199{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17200echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17201cat >conftest.$ac_ext <<_ACEOF
17202/* confdefs.h. */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h. */
17207#include <$ac_header>
17208_ACEOF
17209if { (ac_try="$ac_cpp conftest.$ac_ext"
17210case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } >/dev/null; then
17222 if test -s conftest.err; then
17223 ac_cpp_err=$ac_c_preproc_warn_flag
17224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17225 else
17226 ac_cpp_err=
17227 fi
17228else
17229 ac_cpp_err=yes
17230fi
17231if test -z "$ac_cpp_err"; then
17232 ac_header_preproc=yes
17233else
17234 echo "$as_me: failed program was:" >&5
17235sed 's/^/| /' conftest.$ac_ext >&5
17236
17237 ac_header_preproc=no
17238fi
17239
17240rm -f conftest.err conftest.$ac_ext
17241{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17242echo "${ECHO_T}$ac_header_preproc" >&6; }
17243
17244# So? What about this header?
17245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17246 yes:no: )
17247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17248echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17250echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17251 ac_header_preproc=yes
17252 ;;
17253 no:yes:* )
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17255echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17257echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17259echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17261echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17263echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17265echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17266 ( cat <<\_ASBOX
17267## ----------------------------------- ##
17268## Report this to llvmbugs@cs.uiuc.edu ##
17269## ----------------------------------- ##
17270_ASBOX
17271 ) | sed "s/^/$as_me: WARNING: /" >&2
17272 ;;
17273esac
17274{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17278else
17279 eval "$as_ac_Header=\$ac_header_preproc"
17280fi
17281ac_res=`eval echo '${'$as_ac_Header'}'`
17282 { echo "$as_me:$LINENO: result: $ac_res" >&5
17283echo "${ECHO_T}$ac_res" >&6; }
17284
17285fi
17286if test `eval echo '${'$as_ac_Header'}'` = yes; then
17287 cat >>confdefs.h <<_ACEOF
17288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17289_ACEOF
17290
17291fi
17292
17293done
17294
17295
17296
Reid Spencer8085cff2005-01-16 02:58:39 +000017297
Torok Edwin871384f2010-01-26 08:50:50 +000017298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017299 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17300echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17301if test "${ac_cv_huge_val_sanity+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017303else
17304
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017305 ac_ext=cpp
17306ac_cpp='$CXXCPP $CPPFLAGS'
17307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017310
Eric Christopherc7718502010-03-02 05:06:54 +000017311 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017312 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017313 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017314 ac_cv_huge_val_sanity=yes
17315else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017316 cat >conftest.$ac_ext <<_ACEOF
17317/* confdefs.h. */
17318_ACEOF
17319cat confdefs.h >>conftest.$ac_ext
17320cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017321/* end confdefs.h. */
17322#include <math.h>
17323int
17324main ()
17325{
17326double x = HUGE_VAL; return x != x;
17327 ;
17328 return 0;
17329}
17330_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017331rm -f conftest$ac_exeext
17332if { (ac_try="$ac_link"
17333case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17336esac
17337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17338 (eval "$ac_link") 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17342 { (case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17345esac
17346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_try") 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017351 ac_cv_huge_val_sanity=yes
17352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017353 echo "$as_me: program exited with status $ac_status" >&5
17354echo "$as_me: failed program was:" >&5
17355sed 's/^/| /' conftest.$ac_ext >&5
17356
17357( exit $ac_status )
17358ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017360rm -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 +000017361fi
17362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017363
Eric Christopherc7718502010-03-02 05:06:54 +000017364 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017365 ac_ext=c
17366ac_cpp='$CPP $CPPFLAGS'
17367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17369ac_compiler_gnu=$ac_cv_c_compiler_gnu
17370
17371
17372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017373{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17374echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017375 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17376
17377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017378{ echo "$as_me:$LINENO: checking for pid_t" >&5
17379echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17380if test "${ac_cv_type_pid_t+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382else
17383 cat >conftest.$ac_ext <<_ACEOF
17384/* confdefs.h. */
17385_ACEOF
17386cat confdefs.h >>conftest.$ac_ext
17387cat >>conftest.$ac_ext <<_ACEOF
17388/* end confdefs.h. */
17389$ac_includes_default
17390typedef pid_t ac__type_new_;
17391int
17392main ()
17393{
17394if ((ac__type_new_ *) 0)
17395 return 0;
17396if (sizeof (ac__type_new_))
17397 return 0;
17398 ;
17399 return 0;
17400}
17401_ACEOF
17402rm -f conftest.$ac_objext
17403if { (ac_try="$ac_compile"
17404case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407esac
17408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_compile") 2>conftest.er1
17410 ac_status=$?
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17417 { (case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420esac
17421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_try") 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest.$ac_objext'
17427 { (case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17430esac
17431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_try") 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_type_pid_t=yes
17437else
17438 echo "$as_me: failed program was:" >&5
17439sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017441 ac_cv_type_pid_t=no
17442fi
17443
17444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17445fi
17446{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17447echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17448if test $ac_cv_type_pid_t = yes; then
17449 :
John Criswell7a73b802003-06-30 21:59:07 +000017450else
17451
17452cat >>confdefs.h <<_ACEOF
17453#define pid_t int
17454_ACEOF
17455
17456fi
17457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017458{ echo "$as_me:$LINENO: checking for size_t" >&5
17459echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17460if test "${ac_cv_type_size_t+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462else
17463 cat >conftest.$ac_ext <<_ACEOF
17464/* confdefs.h. */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h. */
17469$ac_includes_default
17470typedef size_t ac__type_new_;
17471int
17472main ()
17473{
17474if ((ac__type_new_ *) 0)
17475 return 0;
17476if (sizeof (ac__type_new_))
17477 return 0;
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext
17483if { (ac_try="$ac_compile"
17484case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487esac
17488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_compile") 2>conftest.er1
17490 ac_status=$?
17491 grep -v '^ *+' conftest.er1 >conftest.err
17492 rm -f conftest.er1
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17500esac
17501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try='test -s conftest.$ac_objext'
17507 { (case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510esac
17511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_try") 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 ac_cv_type_size_t=yes
17517else
17518 echo "$as_me: failed program was:" >&5
17519sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017521 ac_cv_type_size_t=no
17522fi
17523
17524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525fi
17526{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17527echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17528if test $ac_cv_type_size_t = yes; then
17529 :
John Criswell7a73b802003-06-30 21:59:07 +000017530else
17531
17532cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017533#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017534_ACEOF
17535
17536fi
17537
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017538
17539cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017540#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017541_ACEOF
17542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017543{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17544echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17545if test "${ac_cv_struct_tm+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017548 cat >conftest.$ac_ext <<_ACEOF
17549/* confdefs.h. */
17550_ACEOF
17551cat confdefs.h >>conftest.$ac_ext
17552cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017553/* end confdefs.h. */
17554#include <sys/types.h>
17555#include <time.h>
17556
17557int
17558main ()
17559{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017560struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017561 ;
17562 return 0;
17563}
17564_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017565rm -f conftest.$ac_objext
17566if { (ac_try="$ac_compile"
17567case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17570esac
17571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_compile") 2>conftest.er1
17573 ac_status=$?
17574 grep -v '^ *+' conftest.er1 >conftest.err
17575 rm -f conftest.er1
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } &&
17579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17580 { (case "(($ac_try" in
17581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582 *) ac_try_echo=$ac_try;;
17583esac
17584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585 (eval "$ac_try") 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } &&
17589 { ac_try='test -s conftest.$ac_objext'
17590 { (case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17593esac
17594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_try") 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017599 ac_cv_struct_tm=time.h
17600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017601 echo "$as_me: failed program was:" >&5
17602sed 's/^/| /' conftest.$ac_ext >&5
17603
17604 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017606
Reid Spencera773bd52006-08-04 18:18:08 +000017607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017609{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17610echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017611if test $ac_cv_struct_tm = sys/time.h; then
17612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017613cat >>confdefs.h <<\_ACEOF
17614#define TM_IN_SYS_TIME 1
17615_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017616
17617fi
17618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017619{ echo "$as_me:$LINENO: checking for int64_t" >&5
17620echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17621if test "${ac_cv_type_int64_t+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17623else
17624 cat >conftest.$ac_ext <<_ACEOF
17625/* confdefs.h. */
17626_ACEOF
17627cat confdefs.h >>conftest.$ac_ext
17628cat >>conftest.$ac_ext <<_ACEOF
17629/* end confdefs.h. */
17630$ac_includes_default
17631typedef int64_t ac__type_new_;
17632int
17633main ()
17634{
17635if ((ac__type_new_ *) 0)
17636 return 0;
17637if (sizeof (ac__type_new_))
17638 return 0;
17639 ;
17640 return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext
17644if { (ac_try="$ac_compile"
17645case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648esac
17649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_compile") 2>conftest.er1
17651 ac_status=$?
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658 { (case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661esac
17662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_try") 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest.$ac_objext'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671esac
17672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_cv_type_int64_t=yes
17678else
17679 echo "$as_me: failed program was:" >&5
17680sed 's/^/| /' conftest.$ac_ext >&5
17681
17682 ac_cv_type_int64_t=no
17683fi
17684
17685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17686fi
17687{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17688echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17689if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017690
17691cat >>confdefs.h <<_ACEOF
17692#define HAVE_INT64_T 1
17693_ACEOF
17694
17695
17696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017697 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17698echo "$as_me: error: Type int64_t required but not found" >&2;}
17699 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017700fi
17701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017702{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17703echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17704if test "${ac_cv_type_uint64_t+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17706else
17707 cat >conftest.$ac_ext <<_ACEOF
17708/* confdefs.h. */
17709_ACEOF
17710cat confdefs.h >>conftest.$ac_ext
17711cat >>conftest.$ac_ext <<_ACEOF
17712/* end confdefs.h. */
17713$ac_includes_default
17714typedef uint64_t ac__type_new_;
17715int
17716main ()
17717{
17718if ((ac__type_new_ *) 0)
17719 return 0;
17720if (sizeof (ac__type_new_))
17721 return 0;
17722 ;
17723 return 0;
17724}
17725_ACEOF
17726rm -f conftest.$ac_objext
17727if { (ac_try="$ac_compile"
17728case "(($ac_try" in
17729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730 *) ac_try_echo=$ac_try;;
17731esac
17732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17733 (eval "$ac_compile") 2>conftest.er1
17734 ac_status=$?
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
17740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17741 { (case "(($ac_try" in
17742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17744esac
17745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746 (eval "$ac_try") 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; } &&
17750 { ac_try='test -s conftest.$ac_objext'
17751 { (case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17754esac
17755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_try") 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; }; then
17760 ac_cv_type_uint64_t=yes
17761else
17762 echo "$as_me: failed program was:" >&5
17763sed 's/^/| /' conftest.$ac_ext >&5
17764
17765 ac_cv_type_uint64_t=no
17766fi
17767
17768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769fi
17770{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17771echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17772if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017773
17774cat >>confdefs.h <<_ACEOF
17775#define HAVE_UINT64_T 1
17776_ACEOF
17777
17778
17779else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017780 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17781echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17782if test "${ac_cv_type_u_int64_t+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17784else
17785 cat >conftest.$ac_ext <<_ACEOF
17786/* confdefs.h. */
17787_ACEOF
17788cat confdefs.h >>conftest.$ac_ext
17789cat >>conftest.$ac_ext <<_ACEOF
17790/* end confdefs.h. */
17791$ac_includes_default
17792typedef u_int64_t ac__type_new_;
17793int
17794main ()
17795{
17796if ((ac__type_new_ *) 0)
17797 return 0;
17798if (sizeof (ac__type_new_))
17799 return 0;
17800 ;
17801 return 0;
17802}
17803_ACEOF
17804rm -f conftest.$ac_objext
17805if { (ac_try="$ac_compile"
17806case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809esac
17810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_compile") 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17819 { (case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17822esac
17823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_try") 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest.$ac_objext'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832esac
17833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_cv_type_u_int64_t=yes
17839else
17840 echo "$as_me: failed program was:" >&5
17841sed 's/^/| /' conftest.$ac_ext >&5
17842
17843 ac_cv_type_u_int64_t=no
17844fi
17845
17846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17847fi
17848{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17849echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17850if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017851
17852cat >>confdefs.h <<_ACEOF
17853#define HAVE_U_INT64_T 1
17854_ACEOF
17855
17856
Misha Brukmanceca9042004-09-02 23:02:30 +000017857else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017858 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17859echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17860 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017861fi
17862
John Criswell679ff312004-09-02 18:44:44 +000017863fi
17864
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017865
17866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017867
17868
17869
17870
17871
17872
17873
Reid Spencerdf3be822006-01-23 08:15:53 +000017874for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017875do
17876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17877{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17879if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17881else
17882 cat >conftest.$ac_ext <<_ACEOF
17883/* confdefs.h. */
17884_ACEOF
17885cat confdefs.h >>conftest.$ac_ext
17886cat >>conftest.$ac_ext <<_ACEOF
17887/* end confdefs.h. */
17888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17890#define $ac_func innocuous_$ac_func
17891
17892/* System header to define __stub macros and hopefully few prototypes,
17893 which can conflict with char $ac_func (); below.
17894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17895 <limits.h> exists even on freestanding compilers. */
17896
17897#ifdef __STDC__
17898# include <limits.h>
17899#else
17900# include <assert.h>
17901#endif
17902
17903#undef $ac_func
17904
17905/* Override any GCC internal prototype to avoid an error.
17906 Use char because int might match the return type of a GCC
17907 builtin and then its argument prototype would still apply. */
17908#ifdef __cplusplus
17909extern "C"
17910#endif
17911char $ac_func ();
17912/* The GNU C library defines this for functions which it implements
17913 to always fail with ENOSYS. Some functions are actually named
17914 something starting with __ and the normal name is an alias. */
17915#if defined __stub_$ac_func || defined __stub___$ac_func
17916choke me
17917#endif
17918
17919int
17920main ()
17921{
17922return $ac_func ();
17923 ;
17924 return 0;
17925}
17926_ACEOF
17927rm -f conftest.$ac_objext conftest$ac_exeext
17928if { (ac_try="$ac_link"
17929case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17932esac
17933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_link") 2>conftest.er1
17935 ac_status=$?
17936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17942 { (case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17945esac
17946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_try") 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest$ac_exeext'
17952 { (case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955esac
17956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_try") 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 eval "$as_ac_var=yes"
17962else
17963 echo "$as_me: failed program was:" >&5
17964sed 's/^/| /' conftest.$ac_ext >&5
17965
17966 eval "$as_ac_var=no"
17967fi
17968
17969rm -f core conftest.err conftest.$ac_objext \
17970 conftest$ac_exeext conftest.$ac_ext
17971fi
17972ac_res=`eval echo '${'$as_ac_var'}'`
17973 { echo "$as_me:$LINENO: result: $ac_res" >&5
17974echo "${ECHO_T}$ac_res" >&6; }
17975if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017976 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017978_ACEOF
17979
17980fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017981done
John Criswell7a73b802003-06-30 21:59:07 +000017982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017983
17984
17985
17986
Reid Spencer96cf5872007-07-13 10:05:30 +000017987for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017988do
17989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17990{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17992if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994else
17995 cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h. */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h. */
18001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18003#define $ac_func innocuous_$ac_func
18004
18005/* System header to define __stub macros and hopefully few prototypes,
18006 which can conflict with char $ac_func (); below.
18007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18008 <limits.h> exists even on freestanding compilers. */
18009
18010#ifdef __STDC__
18011# include <limits.h>
18012#else
18013# include <assert.h>
18014#endif
18015
18016#undef $ac_func
18017
18018/* Override any GCC internal prototype to avoid an error.
18019 Use char because int might match the return type of a GCC
18020 builtin and then its argument prototype would still apply. */
18021#ifdef __cplusplus
18022extern "C"
18023#endif
18024char $ac_func ();
18025/* The GNU C library defines this for functions which it implements
18026 to always fail with ENOSYS. Some functions are actually named
18027 something starting with __ and the normal name is an alias. */
18028#if defined __stub_$ac_func || defined __stub___$ac_func
18029choke me
18030#endif
18031
18032int
18033main ()
18034{
18035return $ac_func ();
18036 ;
18037 return 0;
18038}
18039_ACEOF
18040rm -f conftest.$ac_objext conftest$ac_exeext
18041if { (ac_try="$ac_link"
18042case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18045esac
18046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_link") 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } &&
18054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18055 { (case "(($ac_try" in
18056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18057 *) ac_try_echo=$ac_try;;
18058esac
18059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18060 (eval "$ac_try") 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try='test -s conftest$ac_exeext'
18065 { (case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18068esac
18069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_try") 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18074 eval "$as_ac_var=yes"
18075else
18076 echo "$as_me: failed program was:" >&5
18077sed 's/^/| /' conftest.$ac_ext >&5
18078
18079 eval "$as_ac_var=no"
18080fi
18081
18082rm -f core conftest.err conftest.$ac_objext \
18083 conftest$ac_exeext conftest.$ac_ext
18084fi
18085ac_res=`eval echo '${'$as_ac_var'}'`
18086 { echo "$as_me:$LINENO: result: $ac_res" >&5
18087echo "${ECHO_T}$ac_res" >&6; }
18088if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018089 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018090#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018091_ACEOF
18092
18093fi
18094done
18095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018096
18097
18098
18099
18100
Reid Spencerb90645c2007-02-16 19:17:20 +000018101for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018102do
18103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18104{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18106if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108else
18109 cat >conftest.$ac_ext <<_ACEOF
18110/* confdefs.h. */
18111_ACEOF
18112cat confdefs.h >>conftest.$ac_ext
18113cat >>conftest.$ac_ext <<_ACEOF
18114/* end confdefs.h. */
18115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18117#define $ac_func innocuous_$ac_func
18118
18119/* System header to define __stub macros and hopefully few prototypes,
18120 which can conflict with char $ac_func (); below.
18121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18122 <limits.h> exists even on freestanding compilers. */
18123
18124#ifdef __STDC__
18125# include <limits.h>
18126#else
18127# include <assert.h>
18128#endif
18129
18130#undef $ac_func
18131
18132/* Override any GCC internal prototype to avoid an error.
18133 Use char because int might match the return type of a GCC
18134 builtin and then its argument prototype would still apply. */
18135#ifdef __cplusplus
18136extern "C"
18137#endif
18138char $ac_func ();
18139/* The GNU C library defines this for functions which it implements
18140 to always fail with ENOSYS. Some functions are actually named
18141 something starting with __ and the normal name is an alias. */
18142#if defined __stub_$ac_func || defined __stub___$ac_func
18143choke me
18144#endif
18145
18146int
18147main ()
18148{
18149return $ac_func ();
18150 ;
18151 return 0;
18152}
18153_ACEOF
18154rm -f conftest.$ac_objext conftest$ac_exeext
18155if { (ac_try="$ac_link"
18156case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18159esac
18160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_link") 2>conftest.er1
18162 ac_status=$?
18163 grep -v '^ *+' conftest.er1 >conftest.err
18164 rm -f conftest.er1
18165 cat conftest.err >&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } &&
18168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18169 { (case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172esac
18173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_try") 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
18178 { ac_try='test -s conftest$ac_exeext'
18179 { (case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18182esac
18183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_try") 2>&5
18185 ac_status=$?
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; }; then
18188 eval "$as_ac_var=yes"
18189else
18190 echo "$as_me: failed program was:" >&5
18191sed 's/^/| /' conftest.$ac_ext >&5
18192
18193 eval "$as_ac_var=no"
18194fi
18195
18196rm -f core conftest.err conftest.$ac_objext \
18197 conftest$ac_exeext conftest.$ac_ext
18198fi
18199ac_res=`eval echo '${'$as_ac_var'}'`
18200 { echo "$as_me:$LINENO: result: $ac_res" >&5
18201echo "${ECHO_T}$ac_res" >&6; }
18202if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018203 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018205_ACEOF
18206
18207fi
18208done
18209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018210
18211
18212
Reid Spencerb90645c2007-02-16 19:17:20 +000018213for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018214do
18215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18216{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18218if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18219 echo $ECHO_N "(cached) $ECHO_C" >&6
18220else
18221 cat >conftest.$ac_ext <<_ACEOF
18222/* confdefs.h. */
18223_ACEOF
18224cat confdefs.h >>conftest.$ac_ext
18225cat >>conftest.$ac_ext <<_ACEOF
18226/* end confdefs.h. */
18227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18229#define $ac_func innocuous_$ac_func
18230
18231/* System header to define __stub macros and hopefully few prototypes,
18232 which can conflict with char $ac_func (); below.
18233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18234 <limits.h> exists even on freestanding compilers. */
18235
18236#ifdef __STDC__
18237# include <limits.h>
18238#else
18239# include <assert.h>
18240#endif
18241
18242#undef $ac_func
18243
18244/* Override any GCC internal prototype to avoid an error.
18245 Use char because int might match the return type of a GCC
18246 builtin and then its argument prototype would still apply. */
18247#ifdef __cplusplus
18248extern "C"
18249#endif
18250char $ac_func ();
18251/* The GNU C library defines this for functions which it implements
18252 to always fail with ENOSYS. Some functions are actually named
18253 something starting with __ and the normal name is an alias. */
18254#if defined __stub_$ac_func || defined __stub___$ac_func
18255choke me
18256#endif
18257
18258int
18259main ()
18260{
18261return $ac_func ();
18262 ;
18263 return 0;
18264}
18265_ACEOF
18266rm -f conftest.$ac_objext conftest$ac_exeext
18267if { (ac_try="$ac_link"
18268case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18271esac
18272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_link") 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18281 { (case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18284esac
18285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_try") 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; } &&
18290 { ac_try='test -s conftest$ac_exeext'
18291 { (case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18294esac
18295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_try") 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 eval "$as_ac_var=yes"
18301else
18302 echo "$as_me: failed program was:" >&5
18303sed 's/^/| /' conftest.$ac_ext >&5
18304
18305 eval "$as_ac_var=no"
18306fi
18307
18308rm -f core conftest.err conftest.$ac_objext \
18309 conftest$ac_exeext conftest.$ac_ext
18310fi
18311ac_res=`eval echo '${'$as_ac_var'}'`
18312 { echo "$as_me:$LINENO: result: $ac_res" >&5
18313echo "${ECHO_T}$ac_res" >&6; }
18314if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018315 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018317_ACEOF
18318
18319fi
18320done
18321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018322
18323
18324
18325
18326
Eric Christophere4291822010-04-16 05:14:21 +000018327
18328for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018329do
18330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18331{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18333if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335else
18336 cat >conftest.$ac_ext <<_ACEOF
18337/* confdefs.h. */
18338_ACEOF
18339cat confdefs.h >>conftest.$ac_ext
18340cat >>conftest.$ac_ext <<_ACEOF
18341/* end confdefs.h. */
18342/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18344#define $ac_func innocuous_$ac_func
18345
18346/* System header to define __stub macros and hopefully few prototypes,
18347 which can conflict with char $ac_func (); below.
18348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18349 <limits.h> exists even on freestanding compilers. */
18350
18351#ifdef __STDC__
18352# include <limits.h>
18353#else
18354# include <assert.h>
18355#endif
18356
18357#undef $ac_func
18358
18359/* Override any GCC internal prototype to avoid an error.
18360 Use char because int might match the return type of a GCC
18361 builtin and then its argument prototype would still apply. */
18362#ifdef __cplusplus
18363extern "C"
18364#endif
18365char $ac_func ();
18366/* The GNU C library defines this for functions which it implements
18367 to always fail with ENOSYS. Some functions are actually named
18368 something starting with __ and the normal name is an alias. */
18369#if defined __stub_$ac_func || defined __stub___$ac_func
18370choke me
18371#endif
18372
18373int
18374main ()
18375{
18376return $ac_func ();
18377 ;
18378 return 0;
18379}
18380_ACEOF
18381rm -f conftest.$ac_objext conftest$ac_exeext
18382if { (ac_try="$ac_link"
18383case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18386esac
18387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388 (eval "$ac_link") 2>conftest.er1
18389 ac_status=$?
18390 grep -v '^ *+' conftest.er1 >conftest.err
18391 rm -f conftest.er1
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18396 { (case "(($ac_try" in
18397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18398 *) ac_try_echo=$ac_try;;
18399esac
18400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18401 (eval "$ac_try") 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; } &&
18405 { ac_try='test -s conftest$ac_exeext'
18406 { (case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18409esac
18410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_try") 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; }; then
18415 eval "$as_ac_var=yes"
18416else
18417 echo "$as_me: failed program was:" >&5
18418sed 's/^/| /' conftest.$ac_ext >&5
18419
18420 eval "$as_ac_var=no"
18421fi
18422
18423rm -f core conftest.err conftest.$ac_objext \
18424 conftest$ac_exeext conftest.$ac_ext
18425fi
18426ac_res=`eval echo '${'$as_ac_var'}'`
18427 { echo "$as_me:$LINENO: result: $ac_res" >&5
18428echo "${ECHO_T}$ac_res" >&6; }
18429if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018430 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018432_ACEOF
18433
18434fi
18435done
Reid Spencerdf3be822006-01-23 08:15:53 +000018436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018437
18438
18439
18440
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018441for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018442do
18443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18444{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18446if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18448else
18449 cat >conftest.$ac_ext <<_ACEOF
18450/* confdefs.h. */
18451_ACEOF
18452cat confdefs.h >>conftest.$ac_ext
18453cat >>conftest.$ac_ext <<_ACEOF
18454/* end confdefs.h. */
18455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18457#define $ac_func innocuous_$ac_func
18458
18459/* System header to define __stub macros and hopefully few prototypes,
18460 which can conflict with char $ac_func (); below.
18461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18462 <limits.h> exists even on freestanding compilers. */
18463
18464#ifdef __STDC__
18465# include <limits.h>
18466#else
18467# include <assert.h>
18468#endif
18469
18470#undef $ac_func
18471
18472/* Override any GCC internal prototype to avoid an error.
18473 Use char because int might match the return type of a GCC
18474 builtin and then its argument prototype would still apply. */
18475#ifdef __cplusplus
18476extern "C"
18477#endif
18478char $ac_func ();
18479/* The GNU C library defines this for functions which it implements
18480 to always fail with ENOSYS. Some functions are actually named
18481 something starting with __ and the normal name is an alias. */
18482#if defined __stub_$ac_func || defined __stub___$ac_func
18483choke me
18484#endif
18485
18486int
18487main ()
18488{
18489return $ac_func ();
18490 ;
18491 return 0;
18492}
18493_ACEOF
18494rm -f conftest.$ac_objext conftest$ac_exeext
18495if { (ac_try="$ac_link"
18496case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499esac
18500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_link") 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512esac
18513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522esac
18523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 eval "$as_ac_var=yes"
18529else
18530 echo "$as_me: failed program was:" >&5
18531sed 's/^/| /' conftest.$ac_ext >&5
18532
18533 eval "$as_ac_var=no"
18534fi
18535
18536rm -f core conftest.err conftest.$ac_objext \
18537 conftest$ac_exeext conftest.$ac_ext
18538fi
18539ac_res=`eval echo '${'$as_ac_var'}'`
18540 { echo "$as_me:$LINENO: result: $ac_res" >&5
18541echo "${ECHO_T}$ac_res" >&6; }
18542if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018543 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018545_ACEOF
18546
18547fi
18548done
18549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018550
18551
18552
18553
Chris Lattner511f11d2005-11-14 07:25:50 +000018554for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018555do
18556as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18557{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18558echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18559if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561else
18562 cat >conftest.$ac_ext <<_ACEOF
18563/* confdefs.h. */
18564_ACEOF
18565cat confdefs.h >>conftest.$ac_ext
18566cat >>conftest.$ac_ext <<_ACEOF
18567/* end confdefs.h. */
18568/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18570#define $ac_func innocuous_$ac_func
18571
18572/* System header to define __stub macros and hopefully few prototypes,
18573 which can conflict with char $ac_func (); below.
18574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18575 <limits.h> exists even on freestanding compilers. */
18576
18577#ifdef __STDC__
18578# include <limits.h>
18579#else
18580# include <assert.h>
18581#endif
18582
18583#undef $ac_func
18584
18585/* Override any GCC internal prototype to avoid an error.
18586 Use char because int might match the return type of a GCC
18587 builtin and then its argument prototype would still apply. */
18588#ifdef __cplusplus
18589extern "C"
18590#endif
18591char $ac_func ();
18592/* The GNU C library defines this for functions which it implements
18593 to always fail with ENOSYS. Some functions are actually named
18594 something starting with __ and the normal name is an alias. */
18595#if defined __stub_$ac_func || defined __stub___$ac_func
18596choke me
18597#endif
18598
18599int
18600main ()
18601{
18602return $ac_func ();
18603 ;
18604 return 0;
18605}
18606_ACEOF
18607rm -f conftest.$ac_objext conftest$ac_exeext
18608if { (ac_try="$ac_link"
18609case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612esac
18613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_link") 2>conftest.er1
18615 ac_status=$?
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625esac
18626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try='test -s conftest$ac_exeext'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18635esac
18636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 eval "$as_ac_var=yes"
18642else
18643 echo "$as_me: failed program was:" >&5
18644sed 's/^/| /' conftest.$ac_ext >&5
18645
18646 eval "$as_ac_var=no"
18647fi
18648
18649rm -f core conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18651fi
18652ac_res=`eval echo '${'$as_ac_var'}'`
18653 { echo "$as_me:$LINENO: result: $ac_res" >&5
18654echo "${ECHO_T}$ac_res" >&6; }
18655if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018656 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018657#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018658_ACEOF
18659
18660fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018661done
John Criswell7a73b802003-06-30 21:59:07 +000018662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018663
18664
18665
18666
Reid Spencerafa22e22006-12-10 23:29:19 +000018667for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018668do
18669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18670{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18672if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18674else
18675 cat >conftest.$ac_ext <<_ACEOF
18676/* confdefs.h. */
18677_ACEOF
18678cat confdefs.h >>conftest.$ac_ext
18679cat >>conftest.$ac_ext <<_ACEOF
18680/* end confdefs.h. */
18681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18683#define $ac_func innocuous_$ac_func
18684
18685/* System header to define __stub macros and hopefully few prototypes,
18686 which can conflict with char $ac_func (); below.
18687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18688 <limits.h> exists even on freestanding compilers. */
18689
18690#ifdef __STDC__
18691# include <limits.h>
18692#else
18693# include <assert.h>
18694#endif
18695
18696#undef $ac_func
18697
18698/* Override any GCC internal prototype to avoid an error.
18699 Use char because int might match the return type of a GCC
18700 builtin and then its argument prototype would still apply. */
18701#ifdef __cplusplus
18702extern "C"
18703#endif
18704char $ac_func ();
18705/* The GNU C library defines this for functions which it implements
18706 to always fail with ENOSYS. Some functions are actually named
18707 something starting with __ and the normal name is an alias. */
18708#if defined __stub_$ac_func || defined __stub___$ac_func
18709choke me
18710#endif
18711
18712int
18713main ()
18714{
18715return $ac_func ();
18716 ;
18717 return 0;
18718}
18719_ACEOF
18720rm -f conftest.$ac_objext conftest$ac_exeext
18721if { (ac_try="$ac_link"
18722case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18725esac
18726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727 (eval "$ac_link") 2>conftest.er1
18728 ac_status=$?
18729 grep -v '^ *+' conftest.er1 >conftest.err
18730 rm -f conftest.er1
18731 cat conftest.err >&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
18734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18735 { (case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18738esac
18739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_try") 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; } &&
18744 { ac_try='test -s 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
18754 eval "$as_ac_var=yes"
18755else
18756 echo "$as_me: failed program was:" >&5
18757sed 's/^/| /' conftest.$ac_ext >&5
18758
18759 eval "$as_ac_var=no"
18760fi
18761
18762rm -f core conftest.err conftest.$ac_objext \
18763 conftest$ac_exeext conftest.$ac_ext
18764fi
18765ac_res=`eval echo '${'$as_ac_var'}'`
18766 { echo "$as_me:$LINENO: result: $ac_res" >&5
18767echo "${ECHO_T}$ac_res" >&6; }
18768if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018769 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018771_ACEOF
18772
18773fi
18774done
18775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018776{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18777echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18778if test "${llvm_cv_c_printf_a+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018780else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018781 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018782ac_cpp='$CPP $CPPFLAGS'
18783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18785ac_compiler_gnu=$ac_cv_c_compiler_gnu
18786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018787 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018788 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018790 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018792 /* confdefs.h. */
18793_ACEOF
18794cat confdefs.h >>conftest.$ac_ext
18795cat >>conftest.$ac_ext <<_ACEOF
18796/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018797
John Criswella0137d32003-10-13 16:22:01 +000018798#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018799#include <stdlib.h>
18800
John Criswella0137d32003-10-13 16:22:01 +000018801int
18802main ()
18803{
18804
Reid Spencer2706f8c2004-09-19 23:53:36 +000018805volatile double A, B;
18806char Buffer[100];
18807A = 1;
18808A /= 10.0;
18809sprintf(Buffer, "%a", A);
18810B = atof(Buffer);
18811if (A != B)
18812 return (1);
18813if (A != 0x1.999999999999ap-4)
18814 return (1);
18815return (0);
John Criswella0137d32003-10-13 16:22:01 +000018816 ;
18817 return 0;
18818}
18819_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018820rm -f conftest$ac_exeext
18821if { (ac_try="$ac_link"
18822case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18825esac
18826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827 (eval "$ac_link") 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18831 { (case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18834esac
18835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_try") 2>&5
18837 ac_status=$?
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018840 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018842 echo "$as_me: program exited with status $ac_status" >&5
18843echo "$as_me: failed program was:" >&5
18844sed 's/^/| /' conftest.$ac_ext >&5
18845
18846( exit $ac_status )
18847llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018848fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018849rm -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 +000018850fi
Reid Spencera773bd52006-08-04 18:18:08 +000018851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018852
Reid Spencer2706f8c2004-09-19 23:53:36 +000018853 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018854ac_cpp='$CPP $CPPFLAGS'
18855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857ac_compiler_gnu=$ac_cv_c_compiler_gnu
18858
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018860{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18861echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018862 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018864cat >>confdefs.h <<\_ACEOF
18865#define HAVE_PRINTF_A 1
18866_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018867
Reid Spencer2706f8c2004-09-19 23:53:36 +000018868 fi
John Criswella0137d32003-10-13 16:22:01 +000018869
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018871{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18872echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18873if test "${ac_cv_func_rand48+set}" = set; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018875else
Reid Spencera773bd52006-08-04 18:18:08 +000018876 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018877ac_cpp='$CXXCPP $CPPFLAGS'
18878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018882 cat >conftest.$ac_ext <<_ACEOF
18883/* confdefs.h. */
18884_ACEOF
18885cat confdefs.h >>conftest.$ac_ext
18886cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018887/* end confdefs.h. */
18888#include <stdlib.h>
18889int
18890main ()
18891{
18892srand48(0);lrand48();drand48();
18893 ;
18894 return 0;
18895}
18896_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018897rm -f conftest.$ac_objext
18898if { (ac_try="$ac_compile"
18899case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18902esac
18903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904 (eval "$ac_compile") 2>conftest.er1
18905 ac_status=$?
18906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18912 { (case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18915esac
18916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_try") 2>&5
18918 ac_status=$?
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest.$ac_objext'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925esac
18926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018931 ac_cv_func_rand48=yes
18932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018933 echo "$as_me: failed program was:" >&5
18934sed 's/^/| /' conftest.$ac_ext >&5
18935
18936 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018938
Reid Spencera773bd52006-08-04 18:18:08 +000018939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018940 ac_ext=c
18941ac_cpp='$CPP $CPPFLAGS'
18942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18944ac_compiler_gnu=$ac_cv_c_compiler_gnu
18945
18946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018947{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18948echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018949
18950if test "$ac_cv_func_rand48" = "yes" ; then
18951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018952cat >>confdefs.h <<\_ACEOF
18953#define HAVE_RAND48 1
18954_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018955
18956fi
John Criswell0021c312004-02-13 21:57:29 +000018957
18958
Torok Edwin871384f2010-01-26 08:50:50 +000018959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018960{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18961echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18962if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018964else
Reid Spencera773bd52006-08-04 18:18:08 +000018965 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018966ac_cpp='$CXXCPP $CPPFLAGS'
18967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18970
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018971 cat >conftest.$ac_ext <<_ACEOF
18972/* confdefs.h. */
18973_ACEOF
18974cat confdefs.h >>conftest.$ac_ext
18975cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018976/* end confdefs.h. */
18977#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018978int
18979main ()
18980{
18981float f; isnan(f);
18982 ;
18983 return 0;
18984}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018985_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018986rm -f conftest.$ac_objext
18987if { (ac_try="$ac_compile"
18988case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991esac
18992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_compile") 2>conftest.er1
18994 ac_status=$?
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } &&
19000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19001 { (case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19004esac
19005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_try") 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try='test -s conftest.$ac_objext'
19011 { (case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19014esac
19015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_try") 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019020 ac_cv_func_isnan_in_math_h=yes
19021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019022 echo "$as_me: failed program was:" >&5
19023sed 's/^/| /' conftest.$ac_ext >&5
19024
19025 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019027
Reid Spencera773bd52006-08-04 18:18:08 +000019028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019029 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019030ac_cpp='$CPP $CPPFLAGS'
19031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033ac_compiler_gnu=$ac_cv_c_compiler_gnu
19034
19035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019036{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19037echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019038
19039
19040if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019042cat >>confdefs.h <<\_ACEOF
19043#define HAVE_ISNAN_IN_MATH_H 1
19044_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019045
Reid Spencerabec8f92004-10-27 23:03:44 +000019046fi
19047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019048{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19049echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19050if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019052else
Reid Spencera773bd52006-08-04 18:18:08 +000019053 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019054ac_cpp='$CXXCPP $CPPFLAGS'
19055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019059 cat >conftest.$ac_ext <<_ACEOF
19060/* confdefs.h. */
19061_ACEOF
19062cat confdefs.h >>conftest.$ac_ext
19063cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019064/* end confdefs.h. */
19065#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019066int
19067main ()
19068{
19069float f; isnan(f);
19070 ;
19071 return 0;
19072}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019073_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019074rm -f conftest.$ac_objext
19075if { (ac_try="$ac_compile"
19076case "(($ac_try" in
19077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19079esac
19080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_compile") 2>conftest.er1
19082 ac_status=$?
19083 grep -v '^ *+' conftest.er1 >conftest.err
19084 rm -f conftest.er1
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19089 { (case "(($ac_try" in
19090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19091 *) ac_try_echo=$ac_try;;
19092esac
19093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19094 (eval "$ac_try") 2>&5
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; } &&
19098 { ac_try='test -s conftest.$ac_objext'
19099 { (case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19102esac
19103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_try") 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019108 ac_cv_func_isnan_in_cmath=yes
19109else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019110 echo "$as_me: failed program was:" >&5
19111sed 's/^/| /' conftest.$ac_ext >&5
19112
19113 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019114fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019115
Reid Spencera773bd52006-08-04 18:18:08 +000019116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019117 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019118ac_cpp='$CPP $CPPFLAGS'
19119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19121ac_compiler_gnu=$ac_cv_c_compiler_gnu
19122
19123fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019124{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19125echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019126
19127if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019129cat >>confdefs.h <<\_ACEOF
19130#define HAVE_ISNAN_IN_CMATH 1
19131_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019132
Reid Spencerabec8f92004-10-27 23:03:44 +000019133fi
19134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019135{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19136echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19137if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019139else
Reid Spencera773bd52006-08-04 18:18:08 +000019140 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019141ac_cpp='$CXXCPP $CPPFLAGS'
19142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019146 cat >conftest.$ac_ext <<_ACEOF
19147/* confdefs.h. */
19148_ACEOF
19149cat confdefs.h >>conftest.$ac_ext
19150cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019151/* end confdefs.h. */
19152#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019153int
19154main ()
19155{
19156float f; std::isnan(f);
19157 ;
19158 return 0;
19159}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019160_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019161rm -f conftest.$ac_objext
19162if { (ac_try="$ac_compile"
19163case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166esac
19167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_compile") 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19176 { (case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179esac
19180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_try") 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; } &&
19185 { ac_try='test -s conftest.$ac_objext'
19186 { (case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189esac
19190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_try") 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019195 ac_cv_func_std_isnan_in_cmath=yes
19196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019197 echo "$as_me: failed program was:" >&5
19198sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019202
Reid Spencera773bd52006-08-04 18:18:08 +000019203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019204 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019205ac_cpp='$CPP $CPPFLAGS'
19206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19208ac_compiler_gnu=$ac_cv_c_compiler_gnu
19209
19210fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019211{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19212echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019213
19214if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019216cat >>confdefs.h <<\_ACEOF
19217#define HAVE_STD_ISNAN_IN_CMATH 1
19218_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019219
Reid Spencerabec8f92004-10-27 23:03:44 +000019220fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019221
19222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019223{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19224echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19225if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019227else
Reid Spencera773bd52006-08-04 18:18:08 +000019228 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019229ac_cpp='$CXXCPP $CPPFLAGS'
19230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019234 cat >conftest.$ac_ext <<_ACEOF
19235/* confdefs.h. */
19236_ACEOF
19237cat confdefs.h >>conftest.$ac_ext
19238cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019239/* end confdefs.h. */
19240#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019241int
19242main ()
19243{
19244float f; isinf(f);
19245 ;
19246 return 0;
19247}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019248_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019249rm -f conftest.$ac_objext
19250if { (ac_try="$ac_compile"
19251case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254esac
19255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_compile") 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
19263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19264 { (case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19267esac
19268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_try") 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19277esac
19278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_try") 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019283 ac_cv_func_isinf_in_math_h=yes
19284else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019285 echo "$as_me: failed program was:" >&5
19286sed 's/^/| /' conftest.$ac_ext >&5
19287
19288 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019290
Reid Spencera773bd52006-08-04 18:18:08 +000019291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019292 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019293ac_cpp='$CPP $CPPFLAGS'
19294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19296ac_compiler_gnu=$ac_cv_c_compiler_gnu
19297
19298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019299{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19300echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019301
19302if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019304cat >>confdefs.h <<\_ACEOF
19305#define HAVE_ISINF_IN_MATH_H 1
19306_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019307
Reid Spencerabec8f92004-10-27 23:03:44 +000019308fi
19309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019310{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19311echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19312if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019314else
Reid Spencera773bd52006-08-04 18:18:08 +000019315 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019316ac_cpp='$CXXCPP $CPPFLAGS'
19317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019321 cat >conftest.$ac_ext <<_ACEOF
19322/* confdefs.h. */
19323_ACEOF
19324cat confdefs.h >>conftest.$ac_ext
19325cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019326/* end confdefs.h. */
19327#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019328int
19329main ()
19330{
19331float f; isinf(f);
19332 ;
19333 return 0;
19334}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019335_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019336rm -f conftest.$ac_objext
19337if { (ac_try="$ac_compile"
19338case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19341esac
19342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_compile") 2>conftest.er1
19344 ac_status=$?
19345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } &&
19350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19351 { (case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19354esac
19355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_try") 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; } &&
19360 { ac_try='test -s conftest.$ac_objext'
19361 { (case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364esac
19365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_try") 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019370 ac_cv_func_isinf_in_cmath=yes
19371else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019372 echo "$as_me: failed program was:" >&5
19373sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019377
Reid Spencera773bd52006-08-04 18:18:08 +000019378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019379 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019380ac_cpp='$CPP $CPPFLAGS'
19381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19383ac_compiler_gnu=$ac_cv_c_compiler_gnu
19384
19385fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019386{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19387echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019388
19389if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019391cat >>confdefs.h <<\_ACEOF
19392#define HAVE_ISINF_IN_CMATH 1
19393_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019394
Reid Spencerabec8f92004-10-27 23:03:44 +000019395fi
19396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019397{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19398echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19399if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019401else
Reid Spencera773bd52006-08-04 18:18:08 +000019402 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019403ac_cpp='$CXXCPP $CPPFLAGS'
19404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019408 cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h. */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019413/* end confdefs.h. */
19414#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019415int
19416main ()
19417{
19418float f; std::isinf(f)}
19419 ;
19420 return 0;
19421}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019422_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019423rm -f conftest.$ac_objext
19424if { (ac_try="$ac_compile"
19425case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428esac
19429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_compile") 2>conftest.er1
19431 ac_status=$?
19432 grep -v '^ *+' conftest.er1 >conftest.err
19433 rm -f conftest.er1
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
19437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19438 { (case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19441esac
19442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_try") 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; } &&
19447 { ac_try='test -s conftest.$ac_objext'
19448 { (case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19451esac
19452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_try") 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019457 ac_cv_func_std_isinf_in_cmath=yes
19458else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019459 echo "$as_me: failed program was:" >&5
19460sed 's/^/| /' conftest.$ac_ext >&5
19461
19462 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019463fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019464
Reid Spencera773bd52006-08-04 18:18:08 +000019465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019466 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019467ac_cpp='$CPP $CPPFLAGS'
19468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19470ac_compiler_gnu=$ac_cv_c_compiler_gnu
19471
19472fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019473{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19474echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019475
19476if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019478cat >>confdefs.h <<\_ACEOF
19479#define HAVE_STD_ISINF_IN_CMATH 1
19480_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019481
Reid Spencerabec8f92004-10-27 23:03:44 +000019482fi
19483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019484{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19485echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19486if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019488else
Reid Spencera773bd52006-08-04 18:18:08 +000019489 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019490ac_cpp='$CXXCPP $CPPFLAGS'
19491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019495 cat >conftest.$ac_ext <<_ACEOF
19496/* confdefs.h. */
19497_ACEOF
19498cat confdefs.h >>conftest.$ac_ext
19499cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019500/* end confdefs.h. */
19501#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019502int
19503main ()
19504{
19505float f; finite(f);
19506 ;
19507 return 0;
19508}
Brian Gaeked59a6472004-07-21 03:33:58 +000019509_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019510rm -f conftest.$ac_objext
19511if { (ac_try="$ac_compile"
19512case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515esac
19516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_compile") 2>conftest.er1
19518 ac_status=$?
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
19524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19525 { (case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528esac
19529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_try") 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } &&
19534 { ac_try='test -s conftest.$ac_objext'
19535 { (case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538esac
19539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_try") 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019544 ac_cv_func_finite_in_ieeefp_h=yes
19545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019546 echo "$as_me: failed program was:" >&5
19547sed 's/^/| /' conftest.$ac_ext >&5
19548
19549 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019550fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019551
Reid Spencera773bd52006-08-04 18:18:08 +000019552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019553 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019554ac_cpp='$CPP $CPPFLAGS'
19555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19557ac_compiler_gnu=$ac_cv_c_compiler_gnu
19558
19559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019560{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19561echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019562
Brian Gaeke6802b552004-10-28 05:06:45 +000019563if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019565cat >>confdefs.h <<\_ACEOF
19566#define HAVE_FINITE_IN_IEEEFP_H 1
19567_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019568
Reid Spencerabec8f92004-10-27 23:03:44 +000019569fi
19570
19571
19572
Reid Spencer30fe5262007-01-20 07:48:49 +000019573if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019574
19575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019576for ac_header in stdlib.h unistd.h
19577do
19578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19584fi
19585ac_res=`eval echo '${'$as_ac_Header'}'`
19586 { echo "$as_me:$LINENO: result: $ac_res" >&5
19587echo "${ECHO_T}$ac_res" >&6; }
19588else
19589 # Is the header compilable?
19590{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19592cat >conftest.$ac_ext <<_ACEOF
19593/* confdefs.h. */
19594_ACEOF
19595cat confdefs.h >>conftest.$ac_ext
19596cat >>conftest.$ac_ext <<_ACEOF
19597/* end confdefs.h. */
19598$ac_includes_default
19599#include <$ac_header>
19600_ACEOF
19601rm -f conftest.$ac_objext
19602if { (ac_try="$ac_compile"
19603case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606esac
19607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } &&
19615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619esac
19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; } &&
19625 { ac_try='test -s conftest.$ac_objext'
19626 { (case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19629esac
19630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_try") 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 ac_header_compiler=yes
19636else
19637 echo "$as_me: failed program was:" >&5
19638sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019640 ac_header_compiler=no
19641fi
19642
19643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19644{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19645echo "${ECHO_T}$ac_header_compiler" >&6; }
19646
19647# Is the header present?
19648{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19650cat >conftest.$ac_ext <<_ACEOF
19651/* confdefs.h. */
19652_ACEOF
19653cat confdefs.h >>conftest.$ac_ext
19654cat >>conftest.$ac_ext <<_ACEOF
19655/* end confdefs.h. */
19656#include <$ac_header>
19657_ACEOF
19658if { (ac_try="$ac_cpp conftest.$ac_ext"
19659case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662esac
19663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19665 ac_status=$?
19666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -f conftest.er1
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } >/dev/null; then
19671 if test -s conftest.err; then
19672 ac_cpp_err=$ac_c_preproc_warn_flag
19673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19674 else
19675 ac_cpp_err=
19676 fi
19677else
19678 ac_cpp_err=yes
19679fi
19680if test -z "$ac_cpp_err"; then
19681 ac_header_preproc=yes
19682else
19683 echo "$as_me: failed program was:" >&5
19684sed 's/^/| /' conftest.$ac_ext >&5
19685
19686 ac_header_preproc=no
19687fi
19688
19689rm -f conftest.err conftest.$ac_ext
19690{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19691echo "${ECHO_T}$ac_header_preproc" >&6; }
19692
19693# So? What about this header?
19694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19695 yes:no: )
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19700 ac_header_preproc=yes
19701 ;;
19702 no:yes:* )
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19715 ( cat <<\_ASBOX
19716## ----------------------------------- ##
19717## Report this to llvmbugs@cs.uiuc.edu ##
19718## ----------------------------------- ##
19719_ASBOX
19720 ) | sed "s/^/$as_me: WARNING: /" >&2
19721 ;;
19722esac
19723{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19727else
19728 eval "$as_ac_Header=\$ac_header_preproc"
19729fi
19730ac_res=`eval echo '${'$as_ac_Header'}'`
19731 { echo "$as_me:$LINENO: result: $ac_res" >&5
19732echo "${ECHO_T}$ac_res" >&6; }
19733
19734fi
19735if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019736 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019738_ACEOF
19739
19740fi
19741
19742done
19743
19744
19745for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019746do
19747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19748{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19750if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752else
19753 cat >conftest.$ac_ext <<_ACEOF
19754/* confdefs.h. */
19755_ACEOF
19756cat confdefs.h >>conftest.$ac_ext
19757cat >>conftest.$ac_ext <<_ACEOF
19758/* end confdefs.h. */
19759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19761#define $ac_func innocuous_$ac_func
19762
19763/* System header to define __stub macros and hopefully few prototypes,
19764 which can conflict with char $ac_func (); below.
19765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19766 <limits.h> exists even on freestanding compilers. */
19767
19768#ifdef __STDC__
19769# include <limits.h>
19770#else
19771# include <assert.h>
19772#endif
19773
19774#undef $ac_func
19775
19776/* Override any GCC internal prototype to avoid an error.
19777 Use char because int might match the return type of a GCC
19778 builtin and then its argument prototype would still apply. */
19779#ifdef __cplusplus
19780extern "C"
19781#endif
19782char $ac_func ();
19783/* The GNU C library defines this for functions which it implements
19784 to always fail with ENOSYS. Some functions are actually named
19785 something starting with __ and the normal name is an alias. */
19786#if defined __stub_$ac_func || defined __stub___$ac_func
19787choke me
19788#endif
19789
19790int
19791main ()
19792{
19793return $ac_func ();
19794 ;
19795 return 0;
19796}
19797_ACEOF
19798rm -f conftest.$ac_objext conftest$ac_exeext
19799if { (ac_try="$ac_link"
19800case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803esac
19804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_link") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19813 { (case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816esac
19817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_try") 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; } &&
19822 { ac_try='test -s conftest$ac_exeext'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826esac
19827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 eval "$as_ac_var=yes"
19833else
19834 echo "$as_me: failed program was:" >&5
19835sed 's/^/| /' conftest.$ac_ext >&5
19836
19837 eval "$as_ac_var=no"
19838fi
19839
19840rm -f core conftest.err conftest.$ac_objext \
19841 conftest$ac_exeext conftest.$ac_ext
19842fi
19843ac_res=`eval echo '${'$as_ac_var'}'`
19844 { echo "$as_me:$LINENO: result: $ac_res" >&5
19845echo "${ECHO_T}$ac_res" >&6; }
19846if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019847 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019849_ACEOF
19850
19851fi
19852done
19853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019854{ echo "$as_me:$LINENO: checking for working mmap" >&5
19855echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19856if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019859 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019860 ac_cv_func_mmap_fixed_mapped=no
19861else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019862 cat >conftest.$ac_ext <<_ACEOF
19863/* confdefs.h. */
19864_ACEOF
19865cat confdefs.h >>conftest.$ac_ext
19866cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019867/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019868$ac_includes_default
19869/* malloc might have been renamed as rpl_malloc. */
19870#undef malloc
19871
19872/* Thanks to Mike Haertel and Jim Avera for this test.
19873 Here is a matrix of mmap possibilities:
19874 mmap private not fixed
19875 mmap private fixed at somewhere currently unmapped
19876 mmap private fixed at somewhere already mapped
19877 mmap shared not fixed
19878 mmap shared fixed at somewhere currently unmapped
19879 mmap shared fixed at somewhere already mapped
19880 For private mappings, we should verify that changes cannot be read()
19881 back from the file, nor mmap's back from the file at a different
19882 address. (There have been systems where private was not correctly
19883 implemented like the infamous i386 svr4.0, and systems where the
19884 VM page cache was not coherent with the file system buffer cache
19885 like early versions of FreeBSD and possibly contemporary NetBSD.)
19886 For shared mappings, we should conversely verify that changes get
19887 propagated back to all the places they're supposed to be.
19888
19889 Grep wants private fixed already mapped.
19890 The main things grep needs to know about mmap are:
19891 * does it exist and is it safe to write into the mmap'd area
19892 * how to use it (BSD variants) */
19893
19894#include <fcntl.h>
19895#include <sys/mman.h>
19896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019897#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019898char *malloc ();
19899#endif
19900
19901/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019902#if !HAVE_GETPAGESIZE
19903/* Assume that all systems that can run configure have sys/param.h. */
19904# if !HAVE_SYS_PARAM_H
19905# define HAVE_SYS_PARAM_H 1
19906# endif
19907
John Criswell7a73b802003-06-30 21:59:07 +000019908# ifdef _SC_PAGESIZE
19909# define getpagesize() sysconf(_SC_PAGESIZE)
19910# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019911# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019912# include <sys/param.h>
19913# ifdef EXEC_PAGESIZE
19914# define getpagesize() EXEC_PAGESIZE
19915# else /* no EXEC_PAGESIZE */
19916# ifdef NBPG
19917# define getpagesize() NBPG * CLSIZE
19918# ifndef CLSIZE
19919# define CLSIZE 1
19920# endif /* no CLSIZE */
19921# else /* no NBPG */
19922# ifdef NBPC
19923# define getpagesize() NBPC
19924# else /* no NBPC */
19925# ifdef PAGESIZE
19926# define getpagesize() PAGESIZE
19927# endif /* PAGESIZE */
19928# endif /* no NBPC */
19929# endif /* no NBPG */
19930# endif /* no EXEC_PAGESIZE */
19931# else /* no HAVE_SYS_PARAM_H */
19932# define getpagesize() 8192 /* punt totally */
19933# endif /* no HAVE_SYS_PARAM_H */
19934# endif /* no _SC_PAGESIZE */
19935
19936#endif /* no HAVE_GETPAGESIZE */
19937
19938int
19939main ()
19940{
19941 char *data, *data2, *data3;
19942 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019943 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019944
19945 pagesize = getpagesize ();
19946
19947 /* First, make a file with some known garbage in it. */
19948 data = (char *) malloc (pagesize);
19949 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019950 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019951 for (i = 0; i < pagesize; ++i)
19952 *(data + i) = rand ();
19953 umask (0);
19954 fd = creat ("conftest.mmap", 0600);
19955 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019956 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019957 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019958 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019959 close (fd);
19960
19961 /* Next, try to mmap the file at a fixed address which already has
19962 something else allocated at it. If we can, also make sure that
19963 we see the same garbage. */
19964 fd = open ("conftest.mmap", O_RDWR);
19965 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019966 return 1;
19967 data2 = (char *) malloc (2 * pagesize);
19968 if (!data2)
19969 return 1;
19970 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019971 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019972 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019973 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019974 for (i = 0; i < pagesize; ++i)
19975 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019976 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019977
19978 /* Finally, make sure that changes to the mapped area do not
19979 percolate back to the file as seen by read(). (This is a bug on
19980 some variants of i386 svr4.0.) */
19981 for (i = 0; i < pagesize; ++i)
19982 *(data2 + i) = *(data2 + i) + 1;
19983 data3 = (char *) malloc (pagesize);
19984 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019985 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019986 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019987 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019988 for (i = 0; i < pagesize; ++i)
19989 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019990 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019991 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019992 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019993}
19994_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019995rm -f conftest$ac_exeext
19996if { (ac_try="$ac_link"
19997case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20000esac
20001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_link") 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20006 { (case "(($ac_try" in
20007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008 *) ac_try_echo=$ac_try;;
20009esac
20010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011 (eval "$ac_try") 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020015 ac_cv_func_mmap_fixed_mapped=yes
20016else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020017 echo "$as_me: program exited with status $ac_status" >&5
20018echo "$as_me: failed program was:" >&5
20019sed 's/^/| /' conftest.$ac_ext >&5
20020
20021( exit $ac_status )
20022ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020024rm -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 +000020025fi
Reid Spencera773bd52006-08-04 18:18:08 +000020026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020027
John Criswell7a73b802003-06-30 21:59:07 +000020028fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020029{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20030echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020031if test $ac_cv_func_mmap_fixed_mapped = yes; then
20032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020033cat >>confdefs.h <<\_ACEOF
20034#define HAVE_MMAP 1
20035_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020036
20037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020038rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020040 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20041echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20042if test "${ac_cv_func_mmap_file+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020044else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020045 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020046ac_cpp='$CPP $CPPFLAGS'
20047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20049ac_compiler_gnu=$ac_cv_c_compiler_gnu
20050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020051 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020052 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020053else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020054 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020056 /* confdefs.h. */
20057_ACEOF
20058cat confdefs.h >>conftest.$ac_ext
20059cat >>conftest.$ac_ext <<_ACEOF
20060/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020061
John Criswell7a73b802003-06-30 21:59:07 +000020062#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020063#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020064#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020065
20066int
20067main ()
20068{
John Criswell7a73b802003-06-30 21:59:07 +000020069
20070 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020071 fd = creat ("foo",0777);
20072 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20073 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020074 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020075 ;
20076 return 0;
20077}
John Criswell7a73b802003-06-30 21:59:07 +000020078_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020079rm -f conftest$ac_exeext
20080if { (ac_try="$ac_link"
20081case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084esac
20085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_link") 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20090 { (case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20093esac
20094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_try") 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020099 ac_cv_func_mmap_file=yes
20100else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020101 echo "$as_me: program exited with status $ac_status" >&5
20102echo "$as_me: failed program was:" >&5
20103sed 's/^/| /' conftest.$ac_ext >&5
20104
20105( exit $ac_status )
20106ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020108rm -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 +000020109fi
Reid Spencera773bd52006-08-04 18:18:08 +000020110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020111
John Criswell7a73b802003-06-30 21:59:07 +000020112 ac_ext=c
20113ac_cpp='$CPP $CPPFLAGS'
20114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20116ac_compiler_gnu=$ac_cv_c_compiler_gnu
20117
20118
20119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020120{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20121echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020122if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020124cat >>confdefs.h <<\_ACEOF
20125#define HAVE_MMAP_FILE
20126_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020127
20128 MMAP_FILE=yes
20129
20130fi
20131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020132 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20133echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20134if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020136else
Reid Spencer582a23c2004-12-29 07:07:57 +000020137 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020138 ac_cv_need_dev_zero_for_mmap=yes
20139 else
20140 ac_cv_need_dev_zero_for_mmap=no
20141 fi
20142
20143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020144{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20145echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020146if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020148cat >>confdefs.h <<\_ACEOF
20149#define NEED_DEV_ZERO_FOR_MMAP 1
20150_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020151
20152fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020153
Reid Spencer30fe5262007-01-20 07:48:49 +000020154 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20155 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020156 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20157echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020158 fi
20159 if test "$ac_cv_func_mmap_file" = "no"
20160 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020161 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20162echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020163 fi
John Criswellb13092b2003-07-22 21:00:24 +000020164fi
John Criswell7a73b802003-06-30 21:59:07 +000020165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020166{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20167echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20168cat >conftest.$ac_ext <<_ACEOF
20169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020173/* end confdefs.h. */
20174int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020175 volatile unsigned long val = 1;
20176 __sync_synchronize();
20177 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020178 __sync_add_and_fetch(&val, 1);
20179 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020180 return 0;
20181 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020182
20183_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020184rm -f conftest.$ac_objext conftest$ac_exeext
20185if { (ac_try="$ac_link"
20186case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189esac
20190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_link") 2>conftest.er1
20192 ac_status=$?
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } &&
20198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20199 { (case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20202esac
20203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_try") 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; } &&
20208 { ac_try='test -s conftest$ac_exeext'
20209 { (case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20212esac
20213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_try") 2>&5
20215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }; }; then
20218 { echo "$as_me:$LINENO: result: yes" >&5
20219echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020221cat >>confdefs.h <<\_ACEOF
20222#define LLVM_MULTITHREADED 1
20223_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020224
Owen Andersond4b272b2009-05-18 23:58:51 +000020225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020226 echo "$as_me: failed program was:" >&5
20227sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020229 { echo "$as_me:$LINENO: result: no" >&5
20230echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020232cat >>confdefs.h <<\_ACEOF
20233#define LLVM_MULTITHREADED 0
20234_ACEOF
20235
20236 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20237echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020239
Owen Andersond4b272b2009-05-18 23:58:51 +000020240rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020241 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020242
Owen Anderson009f20a2010-07-19 19:24:55 +000020243{ echo "$as_me:$LINENO: checking for getsect()" >&5
20244echo $ECHO_N "checking for getsect()... $ECHO_C" >&6; }
20245cat >conftest.$ac_ext <<_ACEOF
20246/* confdefs.h. */
20247_ACEOF
20248cat confdefs.h >>conftest.$ac_ext
20249cat >>conftest.$ac_ext <<_ACEOF
20250/* end confdefs.h. */
20251#include <mach-o/getsect.h>
20252 int main() {
20253 unsigned long p;
Owen Anderson519f1792010-07-19 19:42:01 +000020254 return (int)getsect("__DATA","__pass_info", &p);
Owen Anderson009f20a2010-07-19 19:24:55 +000020255 }
20256
20257_ACEOF
20258rm -f conftest.$ac_objext
20259if { (ac_try="$ac_compile"
20260case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20263esac
20264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_compile") 2>conftest.er1
20266 ac_status=$?
20267 grep -v '^ *+' conftest.er1 >conftest.err
20268 rm -f conftest.er1
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276esac
20277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest.$ac_objext'
20283 { (case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286esac
20287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_try") 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 { echo "$as_me:$LINENO: result: yes" >&5
20293echo "${ECHO_T}yes" >&6; }
20294
20295cat >>confdefs.h <<\_ACEOF
20296#define HAVE_GETSECT 1
20297_ACEOF
20298
20299else
20300 echo "$as_me: failed program was:" >&5
20301sed 's/^/| /' conftest.$ac_ext >&5
20302
20303 { echo "$as_me:$LINENO: result: no" >&5
20304echo "${ECHO_T}no" >&6; }
20305
20306cat >>confdefs.h <<\_ACEOF
20307#define HAVE_GETSECT 1
20308_ACEOF
20309
20310
20311fi
20312
20313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20314
Owen Andersond4b272b2009-05-18 23:58:51 +000020315
John Criswell7a73b802003-06-30 21:59:07 +000020316
Nick Lewycky4372e692009-09-29 06:18:23 +000020317if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020318 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20319echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20320if test "${llvm_cv_linux_mixed+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020322else
20323 ac_ext=c
20324ac_cpp='$CPP $CPPFLAGS'
20325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20327ac_compiler_gnu=$ac_cv_c_compiler_gnu
20328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020329 cat >conftest.$ac_ext <<_ACEOF
20330/* confdefs.h. */
20331_ACEOF
20332cat confdefs.h >>conftest.$ac_ext
20333cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020334/* end confdefs.h. */
20335#ifndef __x86_64__
20336 error: Not x86-64 even if uname says so!
20337 #endif
20338
20339int
20340main ()
20341{
20342
20343 ;
20344 return 0;
20345}
20346_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020347rm -f conftest.$ac_objext
20348if { (ac_try="$ac_compile"
20349case "(($ac_try" in
20350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351 *) ac_try_echo=$ac_try;;
20352esac
20353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20354 (eval "$ac_compile") 2>conftest.er1
20355 ac_status=$?
20356 grep -v '^ *+' conftest.er1 >conftest.err
20357 rm -f conftest.er1
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } &&
20361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20362 { (case "(($ac_try" in
20363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364 *) ac_try_echo=$ac_try;;
20365esac
20366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20367 (eval "$ac_try") 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (case "(($ac_try" in
20373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374 *) ac_try_echo=$ac_try;;
20375esac
20376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377 (eval "$ac_try") 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020381 llvm_cv_linux_mixed=no
20382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020383 echo "$as_me: failed program was:" >&5
20384sed 's/^/| /' conftest.$ac_ext >&5
20385
20386 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020388
Nick Lewycky4372e692009-09-29 06:18:23 +000020389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20390 ac_ext=c
20391ac_cpp='$CPP $CPPFLAGS'
20392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394ac_compiler_gnu=$ac_cv_c_compiler_gnu
20395
20396
20397fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020398{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20399echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020400
20401 if test "$llvm_cv_linux_mixed" = "yes"; then
20402 llvm_cv_target_arch="x86"
20403 ARCH="x86"
20404 fi
20405fi
20406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020407
Reid Spencer9372f152007-07-30 20:13:24 +000020408for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020409do
20410as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20411{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20412echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20413if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20415else
20416 cat >conftest.$ac_ext <<_ACEOF
20417/* confdefs.h. */
20418_ACEOF
20419cat confdefs.h >>conftest.$ac_ext
20420cat >>conftest.$ac_ext <<_ACEOF
20421/* end confdefs.h. */
20422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20424#define $ac_func innocuous_$ac_func
20425
20426/* System header to define __stub macros and hopefully few prototypes,
20427 which can conflict with char $ac_func (); below.
20428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20429 <limits.h> exists even on freestanding compilers. */
20430
20431#ifdef __STDC__
20432# include <limits.h>
20433#else
20434# include <assert.h>
20435#endif
20436
20437#undef $ac_func
20438
20439/* Override any GCC internal prototype to avoid an error.
20440 Use char because int might match the return type of a GCC
20441 builtin and then its argument prototype would still apply. */
20442#ifdef __cplusplus
20443extern "C"
20444#endif
20445char $ac_func ();
20446/* The GNU C library defines this for functions which it implements
20447 to always fail with ENOSYS. Some functions are actually named
20448 something starting with __ and the normal name is an alias. */
20449#if defined __stub_$ac_func || defined __stub___$ac_func
20450choke me
20451#endif
20452
20453int
20454main ()
20455{
20456return $ac_func ();
20457 ;
20458 return 0;
20459}
20460_ACEOF
20461rm -f conftest.$ac_objext conftest$ac_exeext
20462if { (ac_try="$ac_link"
20463case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20466esac
20467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_link") 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } &&
20475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20476 { (case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20479esac
20480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_try") 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try='test -s conftest$ac_exeext'
20486 { (case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20489esac
20490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_try") 2>&5
20492 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 eval "$as_ac_var=yes"
20496else
20497 echo "$as_me: failed program was:" >&5
20498sed 's/^/| /' conftest.$ac_ext >&5
20499
20500 eval "$as_ac_var=no"
20501fi
20502
20503rm -f core conftest.err conftest.$ac_objext \
20504 conftest$ac_exeext conftest.$ac_ext
20505fi
20506ac_res=`eval echo '${'$as_ac_var'}'`
20507 { echo "$as_me:$LINENO: result: $ac_res" >&5
20508echo "${ECHO_T}$ac_res" >&6; }
20509if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020510 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020512_ACEOF
20513
20514fi
20515done
20516
20517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020518{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20519echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20520if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020522else
20523 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020524if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020525 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020526 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20527 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020528 if test $? -eq 0 ; then
20529 llvm_cv_llvmgcc_sanity="yes"
20530 fi
20531 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020532fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020533fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020534{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20535echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020536
20537if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020538 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20539echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020540 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020541 LLVMCC1=$llvmcc1path
20542
Reid Spencer502935f2004-12-22 05:56:56 +000020543 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020544 LLVMCC1PLUS=$llvmcc1pluspath
20545
Reid Spencer502935f2004-12-22 05:56:56 +000020546 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20547 LLVMGCCDIR=$llvmgccdir
20548
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020549 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020550 LLVMGCC_LANGS=$llvmgcclangs
20551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020552 { echo "$as_me:$LINENO: result: ok" >&5
20553echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020554fi
20555
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020556SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020557
20558
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020559SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20560
20561
Reid Spencere9de0912004-08-20 09:03:57 +000020562# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020563# information into substitutions that will end up in Makefile.config.in
20564# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020565if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020566 prefix="/usr/local"
20567fi
Reid Spencere9de0912004-08-20 09:03:57 +000020568eval LLVM_PREFIX="${prefix}";
20569eval LLVM_BINDIR="${prefix}/bin";
20570eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020571eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020572eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020573eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020574eval LLVM_INCLUDEDIR="${prefix}/include";
20575eval LLVM_INFODIR="${prefix}/info";
20576eval LLVM_MANDIR="${prefix}/man";
20577LLVM_CONFIGTIME=`date`
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020589# Place the various directores into the config.h file as #defines so that we
20590# can know about the installation paths within LLVM.
20591
Reid Spencere9de0912004-08-20 09:03:57 +000020592cat >>confdefs.h <<_ACEOF
20593#define LLVM_PREFIX "$LLVM_PREFIX"
20594_ACEOF
20595
20596
20597cat >>confdefs.h <<_ACEOF
20598#define LLVM_BINDIR "$LLVM_BINDIR"
20599_ACEOF
20600
20601
20602cat >>confdefs.h <<_ACEOF
20603#define LLVM_LIBDIR "$LLVM_LIBDIR"
20604_ACEOF
20605
20606
20607cat >>confdefs.h <<_ACEOF
20608#define LLVM_DATADIR "$LLVM_DATADIR"
20609_ACEOF
20610
20611
20612cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020613#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020614_ACEOF
20615
20616
20617cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020618#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020619_ACEOF
20620
20621
20622cat >>confdefs.h <<_ACEOF
20623#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20624_ACEOF
20625
20626
20627cat >>confdefs.h <<_ACEOF
20628#define LLVM_INFODIR "$LLVM_INFODIR"
20629_ACEOF
20630
20631
20632cat >>confdefs.h <<_ACEOF
20633#define LLVM_MANDIR "$LLVM_MANDIR"
20634_ACEOF
20635
20636
20637cat >>confdefs.h <<_ACEOF
20638#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20639_ACEOF
20640
20641
Eric Christopher790e11c2007-12-01 00:34:39 +000020642cat >>confdefs.h <<_ACEOF
20643#define LLVM_HOSTTRIPLE "$host"
20644_ACEOF
20645
20646
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020647# Determine which bindings to build.
20648if test "$BINDINGS_TO_BUILD" = auto ; then
20649 BINDINGS_TO_BUILD=""
20650 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20651 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20652 fi
20653fi
20654BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20655
20656
20657# This isn't really configurey, but it avoids having to repeat the list in
20658# other files.
20659ALL_BINDINGS=ocaml
20660
20661
Gordon Henriksenf0915682007-10-02 16:42:22 +000020662# Do any work necessary to ensure that bindings have what they need.
20663binding_prereqs_failed=0
20664for a_binding in $BINDINGS_TO_BUILD ; do
20665 case "$a_binding" in
20666 ocaml)
20667 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020668 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20669echo "$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 +000020670 binding_prereqs_failed=1
20671 fi
20672 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020673 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20674echo "$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 +000020675 binding_prereqs_failed=1
20676 fi
20677 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020678 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20679echo "$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 +000020680 fi
20681 if test "x$with_ocaml_libdir" != xauto ; then
20682 OCAML_LIBDIR=$with_ocaml_libdir
20683
20684 else
20685 ocaml_stdlib="`"$OCAMLC" -where`"
20686 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20687 then
20688 # ocaml stdlib is beneath our prefix; use stdlib
20689 OCAML_LIBDIR=$ocaml_stdlib
20690
20691 else
20692 # ocaml stdlib is outside our prefix; use libdir/ocaml
20693 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20694
20695 fi
20696 fi
20697 ;;
20698 esac
20699done
20700if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020701 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20702echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20703 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020704fi
20705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020706{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20707echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20708if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20709 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020710else
20711 ac_ext=cpp
20712ac_cpp='$CXXCPP $CPPFLAGS'
20713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20716
20717 oldcxxflags="$CXXFLAGS"
20718 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020719 cat >conftest.$ac_ext <<_ACEOF
20720/* confdefs.h. */
20721_ACEOF
20722cat confdefs.h >>conftest.$ac_ext
20723cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020724/* end confdefs.h. */
20725
20726int
20727main ()
20728{
20729
20730 ;
20731 return 0;
20732}
20733_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020734rm -f conftest.$ac_objext
20735if { (ac_try="$ac_compile"
20736case "(($ac_try" in
20737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738 *) ac_try_echo=$ac_try;;
20739esac
20740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20741 (eval "$ac_compile") 2>conftest.er1
20742 ac_status=$?
20743 grep -v '^ *+' conftest.er1 >conftest.err
20744 rm -f conftest.er1
20745 cat conftest.err >&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } &&
20748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20749 { (case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20752esac
20753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_try") 2>&5
20755 ac_status=$?
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }; } &&
20758 { ac_try='test -s conftest.$ac_objext'
20759 { (case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20762esac
20763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_try") 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020768 llvm_cv_cxx_visibility_inlines_hidden=yes
20769else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020770 echo "$as_me: failed program was:" >&5
20771sed 's/^/| /' conftest.$ac_ext >&5
20772
20773 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020774fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020775
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20777 CXXFLAGS="$oldcxxflags"
20778 ac_ext=c
20779ac_cpp='$CPP $CPPFLAGS'
20780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20782ac_compiler_gnu=$ac_cv_c_compiler_gnu
20783
20784
20785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020786{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20787echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020788if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20789 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20790
20791else
20792 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20793
20794fi
20795
Gordon Henriksenf0915682007-10-02 16:42:22 +000020796
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020797if test "$llvm_cv_link_use_r" = "yes" ; then
20798 RPATH="-Wl,-R"
20799else
20800 RPATH="-Wl,-rpath"
20801fi
20802
20803
20804if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20805 RDYNAMIC="-Wl,-export-dynamic"
20806else
20807 RDYNAMIC=""
20808fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020809
20810
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020811
Reid Spencera773bd52006-08-04 18:18:08 +000020812ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020813
Douglas Gregor1555a232009-06-16 20:12:29 +000020814ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20815
20816ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20817
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020818ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20819
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020820ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20821
Chandler Carruth8b67f772009-10-26 01:35:46 +000020822ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020823
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020824
Reid Spencera773bd52006-08-04 18:18:08 +000020825ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020826
20827
Reid Spencerea949cf2006-08-16 00:45:38 +000020828ac_config_files="$ac_config_files llvm.spec"
20829
20830
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020831ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20832
20833
Reid Spencera773bd52006-08-04 18:18:08 +000020834ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020835
20836
Reid Spencera773bd52006-08-04 18:18:08 +000020837ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020838
Reid Spencera773bd52006-08-04 18:18:08 +000020839ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020840
20841
Reid Spencera773bd52006-08-04 18:18:08 +000020842ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020843
20844
Reid Spencera773bd52006-08-04 18:18:08 +000020845ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020846
20847
Reid Spencera773bd52006-08-04 18:18:08 +000020848ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020849
20850
Reid Spencer8b2e1412006-11-17 03:32:33 +000020851ac_config_commands="$ac_config_commands runtime/Makefile"
20852
20853
Reid Spencera773bd52006-08-04 18:18:08 +000020854ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020855
20856
Reid Spencera773bd52006-08-04 18:18:08 +000020857ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020858
20859
Bill Wendlingf24eb392009-01-04 23:12:30 +000020860ac_config_commands="$ac_config_commands unittests/Makefile"
20861
20862
Reid Spencera773bd52006-08-04 18:18:08 +000020863ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020864
20865
Reid Spencera773bd52006-08-04 18:18:08 +000020866ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020867
20868
Reid Spencera773bd52006-08-04 18:18:08 +000020869ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020870
20871
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020872ac_config_commands="$ac_config_commands bindings/Makefile"
20873
20874
20875ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20876
20877
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020878
John Criswell7a73b802003-06-30 21:59:07 +000020879cat >confcache <<\_ACEOF
20880# This file is a shell script that caches the results of configure
20881# tests run on this system so they can be shared between configure
20882# scripts and configure runs, see configure's option --config-cache.
20883# It is not useful on other systems. If it contains results you don't
20884# want to keep, you may remove or edit it.
20885#
20886# config.status only pays attention to the cache file if you give it
20887# the --recheck option to rerun configure.
20888#
John Criswell0c38eaf2003-09-10 15:17:25 +000020889# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020890# loading this file, other *unset* `ac_cv_foo' will be assigned the
20891# following values.
20892
20893_ACEOF
20894
20895# The following way of writing the cache mishandles newlines in values,
20896# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020897# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020898# Ultrix sh set writes to stderr and can't be redirected directly,
20899# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020900(
20901 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20902 eval ac_val=\$$ac_var
20903 case $ac_val in #(
20904 *${as_nl}*)
20905 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020906 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20907echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020908 esac
20909 case $ac_var in #(
20910 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020911 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020912 esac ;;
20913 esac
20914 done
20915
John Criswell7a73b802003-06-30 21:59:07 +000020916 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020917 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20918 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020919 # `set' does not quote correctly, so add quotes (double-quote
20920 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020921 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020922 "s/'/'\\\\''/g;
20923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020924 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020925 *)
20926 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020927 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020928 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020929 esac |
20930 sort
20931) |
John Criswell7a73b802003-06-30 21:59:07 +000020932 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020933 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020934 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020935 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020936 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20937 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020938 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20939 :end' >>confcache
20940if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20941 if test -w "$cache_file"; then
20942 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020943 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20944echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020945 cat confcache >$cache_file
20946 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020947 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20948echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020949 fi
20950fi
20951rm -f confcache
20952
20953test "x$prefix" = xNONE && prefix=$ac_default_prefix
20954# Let make expand exec_prefix.
20955test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20956
John Criswell7a73b802003-06-30 21:59:07 +000020957DEFS=-DHAVE_CONFIG_H
20958
John Criswell0c38eaf2003-09-10 15:17:25 +000020959ac_libobjs=
20960ac_ltlibobjs=
20961for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20962 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020963 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020964 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020965 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20966 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020967 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20968 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020969done
20970LIBOBJS=$ac_libobjs
20971
20972LTLIBOBJS=$ac_ltlibobjs
20973
20974
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020975if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020976 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20977Usually this means the macro was only invoked conditionally." >&5
20978echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20979Usually this means the macro was only invoked conditionally." >&2;}
20980 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020981fi
20982if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020983 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20984Usually this means the macro was only invoked conditionally." >&5
20985echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20986Usually this means the macro was only invoked conditionally." >&2;}
20987 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020988fi
John Criswell7a73b802003-06-30 21:59:07 +000020989
20990: ${CONFIG_STATUS=./config.status}
20991ac_clean_files_save=$ac_clean_files
20992ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020993{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20994echo "$as_me: creating $CONFIG_STATUS" >&6;}
20995cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020996#! $SHELL
20997# Generated by $as_me.
20998# Run this file to recreate the current configuration.
20999# Compiler output produced by configure, useful for debugging
21000# configure, is in config.log if it exists.
21001
21002debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021003ac_cs_recheck=false
21004ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021005SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021006_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021008cat >>$CONFIG_STATUS <<\_ACEOF
21009## --------------------- ##
21010## M4sh Initialization. ##
21011## --------------------- ##
21012
21013# Be Bourne compatible
21014if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021015 emulate sh
21016 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021017 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021018 # is contrary to our usage. Disable this feature.
21019 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021020 setopt NO_GLOB_SUBST
21021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021022 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021024BIN_SH=xpg4; export BIN_SH # for Tru64
21025DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021026
John Criswell7a73b802003-06-30 21:59:07 +000021027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021028# PATH needs CR
21029# Avoid depending upon Character Ranges.
21030as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21031as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21032as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21033as_cr_digits='0123456789'
21034as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021035
21036# The user is always right.
21037if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021038 echo "#! /bin/sh" >conf$$.sh
21039 echo "exit 0" >>conf$$.sh
21040 chmod +x conf$$.sh
21041 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21042 PATH_SEPARATOR=';'
21043 else
21044 PATH_SEPARATOR=:
21045 fi
21046 rm -f conf$$.sh
21047fi
21048
21049# Support unset when possible.
21050if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21051 as_unset=unset
21052else
21053 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021054fi
John Criswell7a73b802003-06-30 21:59:07 +000021055
Reid Spencera773bd52006-08-04 18:18:08 +000021056
21057# IFS
21058# We need space, tab and new line, in precisely that order. Quoting is
21059# there to prevent editors from complaining about space-tab.
21060# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21061# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021062as_nl='
21063'
Reid Spencera773bd52006-08-04 18:18:08 +000021064IFS=" "" $as_nl"
21065
21066# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021067case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021068 *[\\/]* ) as_myself=$0 ;;
21069 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021070for as_dir in $PATH
21071do
21072 IFS=$as_save_IFS
21073 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021074 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21075done
Reid Spencera773bd52006-08-04 18:18:08 +000021076IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021077
Reid Spencera773bd52006-08-04 18:18:08 +000021078 ;;
21079esac
21080# We did not find ourselves, most probably we were run as `sh COMMAND'
21081# in which case we are not to be found in the path.
21082if test "x$as_myself" = x; then
21083 as_myself=$0
21084fi
21085if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021086 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21087 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021088fi
21089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021090# Work around bugs in pre-3.0 UWIN ksh.
21091for as_var in ENV MAIL MAILPATH
21092do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021093done
21094PS1='$ '
21095PS2='> '
21096PS4='+ '
21097
21098# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021099for as_var in \
21100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21102 LC_TELEPHONE LC_TIME
21103do
21104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21105 eval $as_var=C; export $as_var
21106 else
21107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021108 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021109done
Torok Edwin871384f2010-01-26 08:50:50 +000021110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021111# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021112if expr a : '\(a\)' >/dev/null 2>&1 &&
21113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21114 as_expr=expr
21115else
21116 as_expr=false
21117fi
21118
21119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21120 as_basename=basename
21121else
21122 as_basename=false
21123fi
21124
21125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021126# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021127as_me=`$as_basename -- "$0" ||
21128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21129 X"$0" : 'X\(//\)$' \| \
21130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021131echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021132 sed '/^.*\/\([^/][^/]*\)\/*$/{
21133 s//\1/
21134 q
21135 }
21136 /^X\/\(\/\/\)$/{
21137 s//\1/
21138 q
21139 }
21140 /^X\/\(\/\).*/{
21141 s//\1/
21142 q
21143 }
21144 s/.*/./; q'`
21145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021146# CDPATH.
21147$as_unset CDPATH
21148
21149
21150
21151 as_lineno_1=$LINENO
21152 as_lineno_2=$LINENO
21153 test "x$as_lineno_1" != "x$as_lineno_2" &&
21154 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21155
21156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21157 # uniformly replaced by the line number. The first 'sed' inserts a
21158 # line-number line after each line using $LINENO; the second 'sed'
21159 # does the real work. The second script uses 'N' to pair each
21160 # line-number line with the line containing $LINENO, and appends
21161 # trailing '-' during substitution so that $LINENO is not a special
21162 # case at line end.
21163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21164 # scripts with optimization help from Paolo Bonzini. Blame Lee
21165 # E. McMahon (1931-1989) for sed's syntax. :-)
21166 sed -n '
21167 p
21168 /[$]LINENO/=
21169 ' <$as_myself |
21170 sed '
21171 s/[$]LINENO.*/&-/
21172 t lineno
21173 b
21174 :lineno
21175 N
21176 :loop
21177 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21178 t loop
21179 s/-\n.*//
21180 ' >$as_me.lineno &&
21181 chmod +x "$as_me.lineno" ||
21182 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21183 { (exit 1); exit 1; }; }
21184
21185 # Don't try to exec as it changes $[0], causing all sort of problems
21186 # (the dirname of $[0] is not the place where we might find the
21187 # original and so on. Autoconf is especially sensitive to this).
21188 . "./$as_me.lineno"
21189 # Exit status is that of the last command.
21190 exit
21191}
21192
21193
21194if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21195 as_dirname=dirname
21196else
21197 as_dirname=false
21198fi
Reid Spencera773bd52006-08-04 18:18:08 +000021199
21200ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021201case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021202-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021203 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021204 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021205 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021206 esac;;
21207*)
21208 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021209esac
21210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021211if expr a : '\(a\)' >/dev/null 2>&1 &&
21212 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21213 as_expr=expr
21214else
21215 as_expr=false
21216fi
21217
John Criswell7a73b802003-06-30 21:59:07 +000021218rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021219if test -d conf$$.dir; then
21220 rm -f conf$$.dir/conf$$.file
21221else
21222 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021223 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021225echo >conf$$.file
21226if ln -s conf$$.file conf$$ 2>/dev/null; then
21227 as_ln_s='ln -s'
21228 # ... but there are two gotchas:
21229 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21230 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21231 # In both cases, we have to default to `cp -p'.
21232 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021233 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021234elif ln conf$$.file conf$$ 2>/dev/null; then
21235 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021236else
21237 as_ln_s='cp -p'
21238fi
Reid Spencera773bd52006-08-04 18:18:08 +000021239rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21240rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021241
John Criswell0c38eaf2003-09-10 15:17:25 +000021242if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021243 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021244else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021245 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021246 as_mkdir_p=false
21247fi
21248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021249# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21250# systems may use methods other than mode bits to determine executability.
21251cat >conf$$.file <<_ASEOF
21252#! /bin/sh
21253exit 0
21254_ASEOF
21255chmod +x conf$$.file
21256if test -x conf$$.file >/dev/null 2>&1; then
21257 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021259 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021261rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021262
21263# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021264as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021265
21266# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021267as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021268
21269
John Criswell7a73b802003-06-30 21:59:07 +000021270exec 6>&1
21271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021272# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021273# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021274# values after options handling.
21275ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021276This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021277generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021278
21279 CONFIG_FILES = $CONFIG_FILES
21280 CONFIG_HEADERS = $CONFIG_HEADERS
21281 CONFIG_LINKS = $CONFIG_LINKS
21282 CONFIG_COMMANDS = $CONFIG_COMMANDS
21283 $ $0 $@
21284
Reid Spencera773bd52006-08-04 18:18:08 +000021285on `(hostname || uname -n) 2>/dev/null | sed 1q`
21286"
21287
John Criswell7a73b802003-06-30 21:59:07 +000021288_ACEOF
21289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021290cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021291# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021292config_files="$ac_config_files"
21293config_headers="$ac_config_headers"
21294config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021295
Reid Spencera773bd52006-08-04 18:18:08 +000021296_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021298cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021299ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021300\`$as_me' instantiates files from templates according to the
21301current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021303Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021304
21305 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306 -V, --version print version number, then exit
21307 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021308 -d, --debug don't remove temporary files
21309 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021310 --file=FILE[:TEMPLATE]
21311 instantiate the configuration file FILE
21312 --header=FILE[:TEMPLATE]
21313 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021314
21315Configuration files:
21316$config_files
21317
21318Configuration headers:
21319$config_headers
21320
John Criswellc764fbc2003-09-06 15:17:13 +000021321Configuration commands:
21322$config_commands
21323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021324Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021325
Reid Spencera773bd52006-08-04 18:18:08 +000021326_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021327cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021328ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021329llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021330configured by $0, generated by GNU Autoconf 2.60,
21331 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021333Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021334This config.status script is free software; the Free Software Foundation
21335gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021336
21337ac_pwd='$ac_pwd'
21338srcdir='$srcdir'
21339INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021340_ACEOF
21341
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021342cat >>$CONFIG_STATUS <<\_ACEOF
21343# If no file are specified by the user, then we need to provide default
21344# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021345ac_need_defaults=:
21346while test $# != 0
21347do
21348 case $1 in
21349 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021350 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21351 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021352 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021353 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021354 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021355 ac_option=$1
21356 ac_optarg=$2
21357 ac_shift=shift
21358 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021359 esac
21360
John Criswell0c38eaf2003-09-10 15:17:25 +000021361 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021362 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021363 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21364 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021365 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021366 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021367 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021368 debug=: ;;
21369 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021370 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021371 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021372 ac_need_defaults=false;;
21373 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021374 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021375 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021376 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021377 --he | --h)
21378 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379 { echo "$as_me: error: ambiguous option: $1
21380Try \`$0 --help' for more information." >&2
21381 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021382 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21385 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21386 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021387
21388 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021389 -*) { echo "$as_me: error: unrecognized option: $1
21390Try \`$0 --help' for more information." >&2
21391 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021393 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021394 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021395
21396 esac
21397 shift
21398done
21399
John Criswell0c38eaf2003-09-10 15:17:25 +000021400ac_configure_extra_args=
21401
21402if $ac_cs_silent; then
21403 exec 6>/dev/null
21404 ac_configure_extra_args="$ac_configure_extra_args --silent"
21405fi
21406
21407_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021408cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021409if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021410 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21411 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021412 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021413 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021414fi
21415
John Criswell7a73b802003-06-30 21:59:07 +000021416_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021417cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021418exec 5>>config.log
21419{
21420 echo
21421 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21422## Running $as_me. ##
21423_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021424 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021425} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021426
Reid Spencera773bd52006-08-04 18:18:08 +000021427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021428cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021429#
Reid Spencera773bd52006-08-04 18:18:08 +000021430# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021431#
Reid Spencerc0682832005-02-24 19:05:19 +000021432llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021433
21434_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021436cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021437
21438# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021439for ac_config_target in $ac_config_targets
21440do
Reid Spencera773bd52006-08-04 18:18:08 +000021441 case $ac_config_target in
21442 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021443 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21444 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021445 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021446 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021447 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021448 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021449 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000021450 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021451 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21452 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21453 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21454 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21455 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21456 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021457 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021458 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21459 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021460 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021461 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21462 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21463 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021464 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21465 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021467 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21468echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21469 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021470 esac
21471done
21472
Reid Spencera773bd52006-08-04 18:18:08 +000021473
John Criswell7a73b802003-06-30 21:59:07 +000021474# If the user did not use the arguments to specify the items to instantiate,
21475# then the envvar interface is used. Set only those that are not.
21476# We use the long form for the default assignment because of an extremely
21477# bizarre bug on SunOS 4.1.3.
21478if $ac_need_defaults; then
21479 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21480 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021481 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021482fi
21483
John Criswell0c38eaf2003-09-10 15:17:25 +000021484# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021485# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021486# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021487# Hook for its removal unless debugging.
21488# Note that there is a small window in which the directory will not be cleaned:
21489# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021490$debug ||
21491{
Reid Spencera773bd52006-08-04 18:18:08 +000021492 tmp=
21493 trap 'exit_status=$?
21494 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21495' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021496 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021497}
John Criswell7a73b802003-06-30 21:59:07 +000021498# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021499
John Criswell7a73b802003-06-30 21:59:07 +000021500{
Reid Spencera773bd52006-08-04 18:18:08 +000021501 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021502 test -n "$tmp" && test -d "$tmp"
21503} ||
21504{
Reid Spencera773bd52006-08-04 18:18:08 +000021505 tmp=./conf$$-$RANDOM
21506 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021507} ||
21508{
21509 echo "$me: cannot create a temporary directory in ." >&2
21510 { (exit 1); exit 1; }
21511}
John Criswell7a73b802003-06-30 21:59:07 +000021512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021513#
21514# Set up the sed scripts for CONFIG_FILES section.
21515#
21516
21517# No need to generate the scripts if there are no CONFIG_FILES.
21518# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021519if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021520
21521_ACEOF
21522
Reid Spencera773bd52006-08-04 18:18:08 +000021523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021524
Reid Spencera773bd52006-08-04 18:18:08 +000021525ac_delim='%!_!# '
21526for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021527 cat >conf$$subs.sed <<_ACEOF
21528SHELL!$SHELL$ac_delim
21529PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21530PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21531PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21532PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21533PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21534PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21535exec_prefix!$exec_prefix$ac_delim
21536prefix!$prefix$ac_delim
21537program_transform_name!$program_transform_name$ac_delim
21538bindir!$bindir$ac_delim
21539sbindir!$sbindir$ac_delim
21540libexecdir!$libexecdir$ac_delim
21541datarootdir!$datarootdir$ac_delim
21542datadir!$datadir$ac_delim
21543sysconfdir!$sysconfdir$ac_delim
21544sharedstatedir!$sharedstatedir$ac_delim
21545localstatedir!$localstatedir$ac_delim
21546includedir!$includedir$ac_delim
21547oldincludedir!$oldincludedir$ac_delim
21548docdir!$docdir$ac_delim
21549infodir!$infodir$ac_delim
21550htmldir!$htmldir$ac_delim
21551dvidir!$dvidir$ac_delim
21552pdfdir!$pdfdir$ac_delim
21553psdir!$psdir$ac_delim
21554libdir!$libdir$ac_delim
21555localedir!$localedir$ac_delim
21556mandir!$mandir$ac_delim
21557DEFS!$DEFS$ac_delim
21558ECHO_C!$ECHO_C$ac_delim
21559ECHO_N!$ECHO_N$ac_delim
21560ECHO_T!$ECHO_T$ac_delim
21561LIBS!$LIBS$ac_delim
21562build_alias!$build_alias$ac_delim
21563host_alias!$host_alias$ac_delim
21564target_alias!$target_alias$ac_delim
21565LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21566subdirs!$subdirs$ac_delim
21567build!$build$ac_delim
21568build_cpu!$build_cpu$ac_delim
21569build_vendor!$build_vendor$ac_delim
21570build_os!$build_os$ac_delim
21571host!$host$ac_delim
21572host_cpu!$host_cpu$ac_delim
21573host_vendor!$host_vendor$ac_delim
21574host_os!$host_os$ac_delim
21575target!$target$ac_delim
21576target_cpu!$target_cpu$ac_delim
21577target_vendor!$target_vendor$ac_delim
21578target_os!$target_os$ac_delim
21579OS!$OS$ac_delim
21580HOST_OS!$HOST_OS$ac_delim
21581TARGET_OS!$TARGET_OS$ac_delim
21582LINKALL!$LINKALL$ac_delim
21583NOLINKALL!$NOLINKALL$ac_delim
21584LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21585LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21586ARCH!$ARCH$ac_delim
21587ENDIAN!$ENDIAN$ac_delim
21588CC!$CC$ac_delim
21589CFLAGS!$CFLAGS$ac_delim
21590LDFLAGS!$LDFLAGS$ac_delim
21591CPPFLAGS!$CPPFLAGS$ac_delim
21592ac_ct_CC!$ac_ct_CC$ac_delim
21593EXEEXT!$EXEEXT$ac_delim
21594OBJEXT!$OBJEXT$ac_delim
21595CPP!$CPP$ac_delim
21596GREP!$GREP$ac_delim
21597EGREP!$EGREP$ac_delim
21598LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21599BUILD_CC!$BUILD_CC$ac_delim
21600BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21601BUILD_CXX!$BUILD_CXX$ac_delim
21602CVSBUILD!$CVSBUILD$ac_delim
21603ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21604ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21605DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21606ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21607EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21608DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21609DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21610JIT!$JIT$ac_delim
21611TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21612ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21613ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21614ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021615ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021616ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021617TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21618LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21619LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21620LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21621LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21622ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021623CLANGPATH!$CLANGPATH$ac_delim
21624CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021627 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021628 break
21629 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21631echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21632 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021633 else
21634 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021635 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021636done
21637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021638ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21639if test -n "$ac_eof"; then
21640 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21641 ac_eof=`expr $ac_eof + 1`
21642fi
21643
21644cat >>$CONFIG_STATUS <<_ACEOF
21645cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21646/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021647_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021648sed '
21649s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21650s/^/s,@/; s/!/@,|#_!!_#|/
21651:n
21652t n
21653s/'"$ac_delim"'$/,g/; t
21654s/$/\\/; p
21655N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21656' >>$CONFIG_STATUS <conf$$subs.sed
21657rm -f conf$$subs.sed
21658cat >>$CONFIG_STATUS <<_ACEOF
21659CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021660_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021661
21662
21663ac_delim='%!_!# '
21664for ac_last_try in false false false false false :; do
21665 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021666ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021667OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021668EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21669BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21670ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021671ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21672CXX!$CXX$ac_delim
21673CXXFLAGS!$CXXFLAGS$ac_delim
21674ac_ct_CXX!$ac_ct_CXX$ac_delim
21675NM!$NM$ac_delim
21676ifGNUmake!$ifGNUmake$ac_delim
21677LN_S!$LN_S$ac_delim
21678CMP!$CMP$ac_delim
21679CP!$CP$ac_delim
21680DATE!$DATE$ac_delim
21681FIND!$FIND$ac_delim
21682MKDIR!$MKDIR$ac_delim
21683MV!$MV$ac_delim
21684RANLIB!$RANLIB$ac_delim
21685AR!$AR$ac_delim
21686RM!$RM$ac_delim
21687SED!$SED$ac_delim
21688TAR!$TAR$ac_delim
21689BINPWD!$BINPWD$ac_delim
21690GRAPHVIZ!$GRAPHVIZ$ac_delim
21691DOT!$DOT$ac_delim
21692FDP!$FDP$ac_delim
21693NEATO!$NEATO$ac_delim
21694TWOPI!$TWOPI$ac_delim
21695CIRCO!$CIRCO$ac_delim
21696GV!$GV$ac_delim
21697DOTTY!$DOTTY$ac_delim
21698PERL!$PERL$ac_delim
21699HAVE_PERL!$HAVE_PERL$ac_delim
21700INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21701INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21702INSTALL_DATA!$INSTALL_DATA$ac_delim
21703BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021704CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021705DOXYGEN!$DOXYGEN$ac_delim
21706GROFF!$GROFF$ac_delim
21707GZIP!$GZIP$ac_delim
21708POD2HTML!$POD2HTML$ac_delim
21709POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021710PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021711RUNTEST!$RUNTEST$ac_delim
21712TCLSH!$TCLSH$ac_delim
21713ZIP!$ZIP$ac_delim
21714OCAMLC!$OCAMLC$ac_delim
21715OCAMLOPT!$OCAMLOPT$ac_delim
21716OCAMLDEP!$OCAMLDEP$ac_delim
21717OCAMLDOC!$OCAMLDOC$ac_delim
21718GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021719HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021720INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21721INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21722CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21723CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21724LIBADD_DL!$LIBADD_DL$ac_delim
21725LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21726LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21727LLVMGCC!$LLVMGCC$ac_delim
21728LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021729LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021730NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21731NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21732USE_UDIS86!$USE_UDIS86$ac_delim
21733USE_OPROFILE!$USE_OPROFILE$ac_delim
21734HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21735HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21736MMAP_FILE!$MMAP_FILE$ac_delim
21737LLVMCC1!$LLVMCC1$ac_delim
21738LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21739LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021740LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21741SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021742SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021743LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21744LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21745LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21746LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21747LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21748LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21749LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21750LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21751LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21752LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21753BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21754ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21755OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21756ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21757RPATH!$RPATH$ac_delim
21758RDYNAMIC!$RDYNAMIC$ac_delim
21759LIBOBJS!$LIBOBJS$ac_delim
21760LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021761_ACEOF
21762
Daniel Dunbardd464df2010-05-10 20:11:56 +000021763 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021764 break
21765 elif $ac_last_try; then
21766 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21767echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21768 { (exit 1); exit 1; }; }
21769 else
21770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21771 fi
21772done
21773
21774ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21775if test -n "$ac_eof"; then
21776 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21777 ac_eof=`expr $ac_eof + 1`
21778fi
21779
21780cat >>$CONFIG_STATUS <<_ACEOF
21781cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21782/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21783_ACEOF
21784sed '
21785s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21786s/^/s,@/; s/!/@,|#_!!_#|/
21787:n
21788t n
21789s/'"$ac_delim"'$/,g/; t
21790s/$/\\/; p
21791N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21792' >>$CONFIG_STATUS <conf$$subs.sed
21793rm -f conf$$subs.sed
21794cat >>$CONFIG_STATUS <<_ACEOF
21795:end
21796s/|#_!!_#|//g
21797CEOF$ac_eof
21798_ACEOF
21799
21800
Reid Spencera773bd52006-08-04 18:18:08 +000021801# VPATH may cause trouble with some makes, so we remove $(srcdir),
21802# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21803# trailing colons and then remove the whole line if VPATH becomes empty
21804# (actually we leave an empty line to preserve line numbers).
21805if test "x$srcdir" = x.; then
21806 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21807s/:*\$(srcdir):*/:/
21808s/:*\${srcdir}:*/:/
21809s/:*@srcdir@:*/:/
21810s/^\([^=]*=[ ]*\):*/\1/
21811s/:*$//
21812s/^[^=]*=[ ]*$//
21813}'
21814fi
21815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021816cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021817fi # test -n "$CONFIG_FILES"
21818
Reid Spencera773bd52006-08-04 18:18:08 +000021819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021821do
21822 case $ac_tag in
21823 :[FHLC]) ac_mode=$ac_tag; continue;;
21824 esac
21825 case $ac_mode$ac_tag in
21826 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021827 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21828echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21829 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021830 :[FH]-) ac_tag=-:-;;
21831 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21832 esac
21833 ac_save_IFS=$IFS
21834 IFS=:
21835 set x $ac_tag
21836 IFS=$ac_save_IFS
21837 shift
21838 ac_file=$1
21839 shift
21840
21841 case $ac_mode in
21842 :L) ac_source=$1;;
21843 :[FH])
21844 ac_file_inputs=
21845 for ac_f
21846 do
21847 case $ac_f in
21848 -) ac_f="$tmp/stdin";;
21849 *) # Look for the file first in the build tree, then in the source tree
21850 # (if the path is not absolute). The absolute path cannot be DOS-style,
21851 # because $ac_f cannot contain `:'.
21852 test -f "$ac_f" ||
21853 case $ac_f in
21854 [\\/$]*) false;;
21855 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21856 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021857 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21858echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21859 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021860 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021861 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021862 done
21863
21864 # Let's still pretend it is `configure' which instantiates (i.e., don't
21865 # use $as_me), people would be surprised to read:
21866 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021867 configure_input="Generated from "`IFS=:
21868 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021869 if test x"$ac_file" != x-; then
21870 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021871 { echo "$as_me:$LINENO: creating $ac_file" >&5
21872echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021873 fi
21874
21875 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021876 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021877 esac
21878 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021879 esac
21880
Reid Spencera773bd52006-08-04 18:18:08 +000021881 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021882$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021883 X"$ac_file" : 'X\(//\)[^/]' \| \
21884 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021885 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021886echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21888 s//\1/
21889 q
21890 }
21891 /^X\(\/\/\)[^/].*/{
21892 s//\1/
21893 q
21894 }
21895 /^X\(\/\/\)$/{
21896 s//\1/
21897 q
21898 }
21899 /^X\(\/\).*/{
21900 s//\1/
21901 q
21902 }
21903 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904 { as_dir="$ac_dir"
21905 case $as_dir in #(
21906 -*) as_dir=./$as_dir;;
21907 esac
21908 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21909 as_dirs=
21910 while :; do
21911 case $as_dir in #(
21912 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21913 *) as_qdir=$as_dir;;
21914 esac
21915 as_dirs="'$as_qdir' $as_dirs"
21916 as_dir=`$as_dirname -- "$as_dir" ||
21917$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21918 X"$as_dir" : 'X\(//\)[^/]' \| \
21919 X"$as_dir" : 'X\(//\)$' \| \
21920 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21921echo X"$as_dir" |
21922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21923 s//\1/
21924 q
21925 }
21926 /^X\(\/\/\)[^/].*/{
21927 s//\1/
21928 q
21929 }
21930 /^X\(\/\/\)$/{
21931 s//\1/
21932 q
21933 }
21934 /^X\(\/\).*/{
21935 s//\1/
21936 q
21937 }
21938 s/.*/./; q'`
21939 test -d "$as_dir" && break
21940 done
21941 test -z "$as_dirs" || eval "mkdir $as_dirs"
21942 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21943echo "$as_me: error: cannot create directory $as_dir" >&2;}
21944 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021945 ac_builddir=.
21946
Reid Spencera773bd52006-08-04 18:18:08 +000021947case "$ac_dir" in
21948.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21949*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021951 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021952 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021953 case $ac_top_builddir_sub in
21954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21956 esac ;;
21957esac
21958ac_abs_top_builddir=$ac_pwd
21959ac_abs_builddir=$ac_pwd$ac_dir_suffix
21960# for backward compatibility:
21961ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021962
21963case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021964 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021965 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021966 ac_top_srcdir=$ac_top_builddir_sub
21967 ac_abs_top_srcdir=$ac_pwd ;;
21968 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021969 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021970 ac_top_srcdir=$srcdir
21971 ac_abs_top_srcdir=$srcdir ;;
21972 *) # Relative name.
21973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21974 ac_top_srcdir=$ac_top_build_prefix$srcdir
21975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021976esac
Reid Spencera773bd52006-08-04 18:18:08 +000021977ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021978
John Criswell7a73b802003-06-30 21:59:07 +000021979
Reid Spencera773bd52006-08-04 18:18:08 +000021980 case $ac_mode in
21981 :F)
21982 #
21983 # CONFIG_FILE
21984 #
John Criswell7a73b802003-06-30 21:59:07 +000021985
21986 case $INSTALL in
21987 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021988 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021989 esac
John Criswell7a73b802003-06-30 21:59:07 +000021990_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021992cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021993# If the template does not know about datarootdir, expand it.
21994# FIXME: This hack should be removed a few years after 2.60.
21995ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021996
21997case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021998 p
21999 q
22000}
22001/@datadir@/p
22002/@docdir@/p
22003/@infodir@/p
22004/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022005/@mandir@/p
22006' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022007*datarootdir*) ac_datarootdir_seen=yes;;
22008*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022009 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22010echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022011_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022013 ac_datarootdir_hack='
22014 s&@datadir@&$datadir&g
22015 s&@docdir@&$docdir&g
22016 s&@infodir@&$infodir&g
22017 s&@localedir@&$localedir&g
22018 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022019 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022020esac
22021_ACEOF
22022
22023# Neutralize VPATH when `$srcdir' = `.'.
22024# Shell code in configure.ac might set extrasub.
22025# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022026cat >>$CONFIG_STATUS <<_ACEOF
22027 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022028$extrasub
22029_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022030cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022031:t
22032/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022033s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022034s&@top_builddir@&$ac_top_builddir_sub&;t t
22035s&@srcdir@&$ac_srcdir&;t t
22036s&@abs_srcdir@&$ac_abs_srcdir&;t t
22037s&@top_srcdir@&$ac_top_srcdir&;t t
22038s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22039s&@builddir@&$ac_builddir&;t t
22040s&@abs_builddir@&$ac_abs_builddir&;t t
22041s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22042s&@INSTALL@&$ac_INSTALL&;t t
22043$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022044" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022045
Reid Spencera773bd52006-08-04 18:18:08 +000022046test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22047 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022049 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022050which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022051echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022052which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022053
Reid Spencera773bd52006-08-04 18:18:08 +000022054 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022055 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022056 -) cat "$tmp/out"; rm -f "$tmp/out";;
22057 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22058 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022059 ;;
22060 :H)
22061 #
22062 # CONFIG_HEADER
22063 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022064_ACEOF
22065
22066# Transform confdefs.h into a sed script `conftest.defines', that
22067# substitutes the proper values into config.h.in to produce config.h.
22068rm -f conftest.defines conftest.tail
22069# First, append a space to every undef/define line, to ease matching.
22070echo 's/$/ /' >conftest.defines
22071# Then, protect against being on the right side of a sed subst, or in
22072# an unquoted here document, in config.status. If some macros were
22073# called several times there might be several #defines for the same
22074# symbol, which is useless. But do not sort them, since the last
22075# AC_DEFINE must be honored.
22076ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22077# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22078# NAME is the cpp macro being defined, VALUE is the value it is being given.
22079# PARAMS is the parameter list in the macro definition--in most cases, it's
22080# just an empty string.
22081ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22082ac_dB='\\)[ (].*,\\1define\\2'
22083ac_dC=' '
22084ac_dD=' ,'
22085
22086uniq confdefs.h |
22087 sed -n '
22088 t rset
22089 :rset
22090 s/^[ ]*#[ ]*define[ ][ ]*//
22091 t ok
22092 d
22093 :ok
22094 s/[\\&,]/\\&/g
22095 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22096 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22097 ' >>conftest.defines
22098
22099# Remove the space that was appended to ease matching.
22100# Then replace #undef with comments. This is necessary, for
22101# example, in the case of _POSIX_SOURCE, which is predefined and required
22102# on some systems where configure will not decide to define it.
22103# (The regexp can be short, since the line contains either #define or #undef.)
22104echo 's/ $//
22105s,^[ #]*u.*,/* & */,' >>conftest.defines
22106
22107# Break up conftest.defines:
22108ac_max_sed_lines=50
22109
22110# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22111# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22112# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22113# et cetera.
22114ac_in='$ac_file_inputs'
22115ac_out='"$tmp/out1"'
22116ac_nxt='"$tmp/out2"'
22117
22118while :
22119do
22120 # Write a here document:
22121 cat >>$CONFIG_STATUS <<_ACEOF
22122 # First, check the format of the line:
22123 cat >"\$tmp/defines.sed" <<\\CEOF
22124/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22125/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22126b
22127:def
22128_ACEOF
22129 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22130 echo 'CEOF
22131 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22132 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22133 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22134 grep . conftest.tail >/dev/null || break
22135 rm -f conftest.defines
22136 mv conftest.tail conftest.defines
22137done
22138rm -f conftest.defines conftest.tail
22139
22140echo "ac_result=$ac_in" >>$CONFIG_STATUS
22141cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022142 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022143 echo "/* $configure_input */" >"$tmp/config.h"
22144 cat "$ac_result" >>"$tmp/config.h"
22145 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22146 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22147echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022148 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149 rm -f $ac_file
22150 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022151 fi
22152 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022153 echo "/* $configure_input */"
22154 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022155 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022156 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022157 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022159 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22160echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022161 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022162 esac
John Criswell7a73b802003-06-30 21:59:07 +000022163
Reid Spencera773bd52006-08-04 18:18:08 +000022164
22165 case $ac_file$ac_mode in
22166 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022167 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022168 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022169 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022170 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022171 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022172 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022173 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022174 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022175 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022176 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022177 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022178 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022179 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022180 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022181 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022182 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022183 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022184 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022185 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022186 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022187 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022188 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022189 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022190 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022191 ${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 +000022192
22193 esac
22194done # for ac_tag
22195
John Criswell7a73b802003-06-30 21:59:07 +000022196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022197{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022198_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022199chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022200ac_clean_files=$ac_clean_files_save
22201
22202
22203# configure is writing to config.log, and then calls config.status.
22204# config.status does its own redirection, appending to config.log.
22205# Unfortunately, on DOS this fails, as config.log is still kept open
22206# by configure, so config.status won't be able to write to it; its
22207# output is simply discarded. So we exec the FD to /dev/null,
22208# effectively closing config.log, so it can be properly (re)opened and
22209# appended to by config.status. When coming back to configure, we
22210# need to make the FD available again.
22211if test "$no_create" != yes; then
22212 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022213 ac_config_status_args=
22214 test "$silent" = yes &&
22215 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022216 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022218 exec 5>>config.log
22219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22220 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022221 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022222fi
22223
John Criswell12399a12003-09-30 15:55:44 +000022224#
22225# CONFIG_SUBDIRS section.
22226#
22227if test "$no_recursion" != yes; then
22228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022229 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022230 ac_sub_configure_args=
22231 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022232 eval "set x $ac_configure_args"
22233 shift
22234 for ac_arg
22235 do
John Criswell12399a12003-09-30 15:55:44 +000022236 if test -n "$ac_prev"; then
22237 ac_prev=
22238 continue
22239 fi
22240 case $ac_arg in
22241 -cache-file | --cache-file | --cache-fil | --cache-fi \
22242 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22243 ac_prev=cache_file ;;
22244 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22245 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22246 | --c=*)
22247 ;;
22248 --config-cache | -C)
22249 ;;
22250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22251 ac_prev=srcdir ;;
22252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22253 ;;
22254 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22255 ac_prev=prefix ;;
22256 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22257 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022258 *)
22259 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022260 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022261 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022262 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022263 esac
22264 done
22265
22266 # Always prepend --prefix to ensure using the same prefix
22267 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022268 ac_arg="--prefix=$prefix"
22269 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022270 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022271 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022272 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022273
22274 ac_popdir=`pwd`
22275 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22276
22277 # Do not complain, so a configure script can configure whichever
22278 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022279 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022280
Reid Spencera773bd52006-08-04 18:18:08 +000022281 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022282 echo "$as_me:$LINENO: $ac_msg" >&5
22283 echo "$ac_msg" >&6
22284 { as_dir="$ac_dir"
22285 case $as_dir in #(
22286 -*) as_dir=./$as_dir;;
22287 esac
22288 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22289 as_dirs=
22290 while :; do
22291 case $as_dir in #(
22292 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22293 *) as_qdir=$as_dir;;
22294 esac
22295 as_dirs="'$as_qdir' $as_dirs"
22296 as_dir=`$as_dirname -- "$as_dir" ||
22297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22298 X"$as_dir" : 'X\(//\)[^/]' \| \
22299 X"$as_dir" : 'X\(//\)$' \| \
22300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22301echo X"$as_dir" |
22302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22303 s//\1/
22304 q
22305 }
22306 /^X\(\/\/\)[^/].*/{
22307 s//\1/
22308 q
22309 }
22310 /^X\(\/\/\)$/{
22311 s//\1/
22312 q
22313 }
22314 /^X\(\/\).*/{
22315 s//\1/
22316 q
22317 }
22318 s/.*/./; q'`
22319 test -d "$as_dir" && break
22320 done
22321 test -z "$as_dirs" || eval "mkdir $as_dirs"
22322 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22323echo "$as_me: error: cannot create directory $as_dir" >&2;}
22324 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022325 ac_builddir=.
22326
Reid Spencera773bd52006-08-04 18:18:08 +000022327case "$ac_dir" in
22328.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22329*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022330 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022331 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022332 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022333 case $ac_top_builddir_sub in
22334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22336 esac ;;
22337esac
22338ac_abs_top_builddir=$ac_pwd
22339ac_abs_builddir=$ac_pwd$ac_dir_suffix
22340# for backward compatibility:
22341ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022342
22343case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022344 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022345 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022346 ac_top_srcdir=$ac_top_builddir_sub
22347 ac_abs_top_srcdir=$ac_pwd ;;
22348 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022349 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022350 ac_top_srcdir=$srcdir
22351 ac_abs_top_srcdir=$srcdir ;;
22352 *) # Relative name.
22353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22354 ac_top_srcdir=$ac_top_build_prefix$srcdir
22355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022356esac
Reid Spencera773bd52006-08-04 18:18:08 +000022357ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022358
22359
Reid Spencera773bd52006-08-04 18:18:08 +000022360 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022361
22362 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022363 if test -f "$ac_srcdir/configure.gnu"; then
22364 ac_sub_configure=$ac_srcdir/configure.gnu
22365 elif test -f "$ac_srcdir/configure"; then
22366 ac_sub_configure=$ac_srcdir/configure
22367 elif test -f "$ac_srcdir/configure.in"; then
22368 # This should be Cygnus configure.
22369 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022370 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022371 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22372echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022373 ac_sub_configure=
22374 fi
22375
22376 # The recursion is here.
22377 if test -n "$ac_sub_configure"; then
22378 # Make the cache file name correct relative to the subdirectory.
22379 case $cache_file in
22380 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022381 *) # Relative name.
22382 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022383 esac
22384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022385 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22386echo "$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 +000022387 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022388 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22389 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022390 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22391echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22392 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022393 fi
22394
Reid Spencera773bd52006-08-04 18:18:08 +000022395 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022396 done
22397fi
22398